[03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]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:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]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:43]accept exits with 9 [04:23:43]New connection [04:23:43]New thread 3066469732 created [04:23:43]Thread 3066613092 joined [04:23:43]Waiting for new connection... [04:23:43] Sock 9.Parse request [04:23:43]Sock 9.Check first char [04:23:43]Sock 9.First char is OK [04:23:43]request: POST /json_proto HTTP/1.0 [04:23:43]Method: POST [04:23:43]URL: /json_proto [04:23:43]Method is POST - this is cgi request [04:23:43]url: /json_proto [04:23:43]query_string will be loaded in cgi processing [04:23:43]execute_cgi json_proto POST (null) [04:23:43]execute_cgi path=json_proto method=POST [04:23:43]POST find Content-Length [04:23:43]Host: 172.17.63.3:8080 [04:23:43]Content-Length: 678 [04:23:43]Content-Type: application/json [04:23:43] [04:23:43]POST finish read [04:23:43]Found Content-Length = 678 [04:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [04:23:43]execute_script... [04:23:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [04:23:43]POST & json_proto [04:23:43]process_json_proto [04:23:43]json parsed OK: [04:23:43]protocol is kg_v1.0 [04:23:43]action value=close_receipt [04:23:43]process_action close_receipt [04:23:43]cmd_close_receipt [04:23:43]MH_GetDate [04:23:43]Write to MH i2c: F0 00 00 FB 0D F7 [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: F0 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: F0 09 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: F0 09 00 FB 0D 00 D1 6E 1C 67 50 D1 6C 64 B3 [04:23:43]GetLastDocTimeStamp 1729908662 [04:23:43]current date 1729916625 [04:23:43]FM_GetShiftState [04:23:43]SAM_PROTO_GetShiftState [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 13 01 00 [04:23:43]Write to MH i2c: E2 08 00 FC 0D 80 13 01 00 00 00 00 00 86 [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 0E 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 0E 00 FC 0D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [04:23:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [04:23:43]wFMCommunicate OK [04:23:43]SAM_PROTO_GetShiftState done [04:23:43]FM_GetShiftState done [04:23:43]opened in 1729902702 [04:23:43]opened+sec_in_day 1729989102 [04:23:43]quantity*price = 100050 [04:23:43]sum+1 = 100052 [04:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 24 26.10.2024 04:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156123 ФПД: 229872542524665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T042345&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156123&fm=229872542524665&tin=02508201610067®Number=0000000000091693&sum=100000 [04:23:44]StoreToDocumentArchive [04:23:44]shift 536 fd 156123 [04:23:44]save to /storage/0536/doc_00156123 [04:23:44]save last doc name /storage/0536/doc_00156123 to /storage/kkm_last_doc_name [04:23:44]save OK [04:23:44]Clear old archive folders... [04:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:23:44]tlvbuf is 00D4E8F0 [04:23:44]SAM_PROTO_ClearQueue [04:23:44]wFMCommunicate request_size=4 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 09 00 00 [04:23:44]Write to MH i2c: E2 08 00 09 0E 80 09 00 00 00 00 00 00 89 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [04:23:44]RAPDU: 90 00 [04:23:44]wFMCommunicate OK [04:23:44]SAM_PROTO_ClearQueue done [04:23:44]KKMCreateOFDPacket [04:23:44]OFDProtocolAddRootSTLVToBuf [04:23:44]FM_MakeSignedData [04:23:44]FM_MakeSignedData [04:23:44]SAM_PROTO_SignData [04:23:44]wFMCommunicate request_size=4 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 0D 01 02 [04:23:44]Write to MH i2c: E2 08 00 0A 0E 80 0D 01 02 00 00 00 00 91 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [04:23:44]RAPDU: 90 00 [04:23:44]wFMCommunicate OK [04:23:44]wFMCommunicate request_size=255 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 D1 6E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 61 02 00 35 04 06 00 D1 11 5F 3D [04:23:44]Write to MH i2c: E2 02 01 0B 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 D1 6E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 61 02 00 35 04 06 00 D1 11 5F 3D 00 00 CB [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [04:23:44]RAPDU: 90 00 [04:23:44]wFMCommunicate OK [04:23:44]wFMCommunicate request_size=7 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 0D 02 02 02 A4 F9 [04:23:44]Write to MH i2c: E2 0A 00 0C 0E 80 0D 02 02 02 00 A4 F9 00 00 35 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [04:23:44]RAPDU: 90 00 [04:23:44]wFMCommunicate OK [04:23:44]wFMCommunicate request_size=4 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 0D 03 02 [04:23:44]Write to MH i2c: E2 08 00 0D 0E 80 0D 03 02 00 00 00 00 96 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 0B 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 0B 00 0D 0E 00 58 76 63 2E D6 A6 AD 9B 90 00 BA [04:23:44]RAPDU: 58 76 63 2E D6 A6 AD 9B 90 00 [04:23:44]wFMCommunicate OK [04:23:44]SAM_PROTO_SignData done [04:23:44]FM_MakeSignedData done [04:23:44]CreateOFDProtocolMessage [04:23:44]wFMCommunicate request_size=4 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 11 00 00 [04:23:44]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 17 00 [04:23:44]MH_I2C_Read... [04:23:44]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 31 37 39 32 90 00 EB [04:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [04:23:44]wFMCommunicate OK [04:23:44]CreateOFDProtocolMessage done [04:23:44]OFDSenderStorePacket 156123 [04:23:44]StoreOFDPacket docnum=156123 [04:23:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F0 4C 04 01 D9 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 D1 6E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 61 02 00 35 04 06 00 D1 11 5F 3D A4 F9 58 76 63 2E D6 A6 AD 9B [04:23:44]CheckFolder [04:23:44]dirname=/storage/ofd_packets [04:23:44]CheckFolder done [04:23:44]ProducePacketName [04:23:44]name=ofd_packets/00156123 [04:23:44]NVStorageSaveData ofd_packets/00156123 [04:23:44]File name is /storage/ofd_packets/00156123 [04:23:44]Write 298 bytes [04:23:44]NVStorageSaveData done [04:23:44]OFDSenderStorePacket done [04:23:44]KKMCreateOFDPacket done [04:23:44]NVStorageSaveData kkm_last_timestamp [04:23:44]File name is /storage/kkm_last_timestamp [04:23:44]Write 4 bytes [04:23:44]NVStorageSaveData done [04:23:44]ExternCall_PrintAddStr [04:23:44]wPrintStart [04:23:44]Write to MH i2c: 01 00 00 0F 0E 1D [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 07 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [04:23:44]RasterBufferAndPrint [04:23:44]line Счет N : (1)98936 [04:23:44]line ИНН: 02508201610067 [04:23:44]line Контрольно-Кассовый Чек [04:23:44]line ПРОДАЖА [04:23:44]line ТРК (МРК, ГНК) : 32 [04:23:44]line Товар: 2710194210 [04:23:44]line ДТ-К-5 [04:23:44]line 13.130 * 76.20 [04:23:44]line = 1000.51 [04:23:44]line НДС 12% НСП 1% [04:23:44]line > о реализуемом товаре [04:23:44]line ОКРУГЛЕНИЕ: -0.51 [04:23:44]line ИТОГО: 1000.00 [04:23:44]line Внесено: 1000.00 [04:23:44]line СДАЧА: 0.00 [04:23:44]line НСП 1% : 8.85 [04:23:44]line НДС 12% : 106.25 [04:23:44]line Наличными: 1000.00 [04:23:44]line Безнал.: 0.00 [04:23:44]line Место: АЗС № 143 "Партнер Нефть" [04:23:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [04:23:44]line СНО: Общий режим [04:23:44]line Чек 24 26.10.2024 04:23 [04:23:44]line Смена: 536 ФФД: 1.0 [04:23:44]line ЗНМ: 0300000096 [04:23:44]line РНМ: 0000000000091693 [04:23:44]line Версия ККМ: 001 [04:23:44]line ФМ: 0000000000871792 [04:23:44]line ФД: 156123 [04:23:44]line ФПД: 229872542524665 [04:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T042345&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156123&fm=229872542524665&tin=02508201610067®Number=0000000000091693&sum=100000 [04:23:45]OFD Sender: Processing packet 156123 [packets to send 31, broken 30] [04:23:45]ProducePacketName [04:23:45]name=ofd_packets/00156123 [04:23:45]OFD Sender: To server: pG, [04:23:45]CommunicateWithHost lk.salyk.kg:30040 [04:23:45]ConnectInit lk.salyk.kg [04:23:45]written 0, free lines is 4095 [04:23:45]Connected sock=10 [04:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F0 4C 04 01 D9 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 D1 6E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 61 02 00 35 04 06 00 D1 11 5F 3D A4 F9 58 76 63 2E D6 A6 AD 9B [04:23:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 11 6B 47 00 EE 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 31 37 39 32 10 04 04 00 DB 61 02 00 F4 03 04 00 45 14 1C 67 B6 04 01 00 00 2C 79 6A F2 AF 5D 51 06 [04:23:45]CommunicateWithHost err = 0 [04:23:45]CheckOFDResponse [04:23:45]1017 (14) - 77093643461234 [04:23:45]1041 (16) - 0000000000871792 [04:23:45]1040 (4) - 156123 [04:23:45]1012 (4) - 25.10.2024 21:57 [04:23:45]1206 (1) - 0 [04:23:45]OFD Sender: Remove packet 156123 [04:23:45]ProducePacketName [04:23:45]name=ofd_packets/00156123 [04:23:45]NVStorageDeleteData [04:23:45]Write to MH i2c: 01 00 00 3A 0E 48 [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: 01 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: 01 07 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: 01 07 00 3A 0E 00 00 00 00 00 E2 0C 3D [04:23:45]RasterBufferAndPrint [04:23:45]line [04:23:45]line [04:23:45]line [04:23:45]line [04:23:45]line [04:23:45]written 0, free lines is 3304 [04:23:45]process_action close_receipt done [04:23:45]requested_data is exist [04:23:45]produce_requested_data [04:23:45]requested_item fm.sn is exist - process it [04:23:45]wFMCommunicate request_size=4 [04:23:45]MH_SAM_APDU [04:23:45]CAPDU: 80 11 00 00 [04:23:45]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:45]Read from MH i2c: E2 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 17 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [04:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [04:23:45]wFMCommunicate OK [04:23:45]requested_item fd.num is exist - process it [04:23:45]SAM_PROTO_GetFieldsCounters [04:23:45]wFMCommunicate request_size=4 [04:23:45]MH_SAM_APDU [04:23:45]CAPDU: 80 13 00 00 [04:23:45]Write to MH i2c: E2 08 00 42 0E 80 13 00 00 00 00 00 00 CC [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:45]Read from MH i2c: E2 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 62 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 62 00 42 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 61 02 00 0E 04 04 00 18 02 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 92 [04:23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 61 02 00 0E 04 04 00 18 02 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 [04:23:45]wFMCommunicate OK [04:23:45]SAM_PROTO_GetFieldsCounters done [04:23:45]requested_item shift.num is exist - process it [04:23:45]requested_item shift.opened is exist - process it [04:23:45]req_shift_opened [04:23:45]FM_GetShiftState [04:23:45]SAM_PROTO_GetShiftState [04:23:45]wFMCommunicate request_size=4 [04:23:45]MH_SAM_APDU [04:23:45]CAPDU: 80 13 01 00 [04:23:45]Write to MH i2c: E2 08 00 43 0E 80 13 01 00 00 00 00 00 CE [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:46]Read from MH i2c: E2 [04:23:46]MH_I2C_Read... [04:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:46]Read from MH i2c: E2 0E 00 [04:23:46]MH_I2C_Read... [04:23:46]Read from MH i2c: E2 0E 00 43 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 03 [04:23:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [04:23:46]wFMCommunicate OK [04:23:46]SAM_PROTO_GetShiftState done [04:23:46]FM_GetShiftState done [04:23:46]req_shift_opened done [04:23:46]requested_item shift.open_date is exist - process it [04:23:46]req_shift_open_date [04:23:46]req_shift_open_date done [04:23:46]produce_requested_data done [04:23:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156123,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [04:23:46]process_action_free close_receipt [04:23:46]json_value_free [04:23:46]json_value_free done [04:23:46]process_json_proto returns [04:23:46]Send response to host [04:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156123,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [04:23:46]free response buf [04:23:46]execute_script done [04:23:46]execute_script returns [04:23:46]free content buf [04:23:46]Sock 9.Close socket [04:23:46]Sock 9.Thread stoped [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34: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:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53: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:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:27]accept exits with 7 [05:05:27]New connection [05:05:27]New thread 3066613092 created [05:05:27]Thread 3066469732 joined [05:05:27]Waiting for new connection... [05:05:27] Sock 7.Parse request [05:05:27]Sock 7.Check first char [05:05:27]Sock 7.First char is OK [05:05:27]request: POST /json_proto HTTP/1.0 [05:05:27]Method: POST [05:05:27]URL: /json_proto [05:05:27]Method is POST - this is cgi request [05:05:27]url: /json_proto [05:05:27]query_string will be loaded in cgi processing [05:05:27]execute_cgi json_proto POST (null) [05:05:27]execute_cgi path=json_proto method=POST [05:05:27]POST find Content-Length [05:05:27]Host: 172.17.63.3:8080 [05:05:27]Content-Length: 765 [05:05:27]Content-Type: application/json [05:05:27] [05:05:27]POST finish read [05:05:27]Found Content-Length = 765 [05:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:05:27]execute_script... [05:05: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)98937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:05:27]POST & json_proto [05:05:27]process_json_proto [05:05:27]json parsed OK: [05:05:27]protocol is kg_v1.0 [05:05:27]action value=close_receipt [05:05:27]process_action close_receipt [05:05:27]cmd_close_receipt [05:05:27]MH_GetDate [05:05:27]Write to MH i2c: F0 00 00 44 0E 41 [05:05:27]Write i2c OK [05:05:27]MH_I2C_Read... [05:05:27]Read from MH i2c: F0 [05:05:27]MH_I2C_Read... [05:05:27]Read from MH i2c: F0 09 00 [05:05:27]MH_I2C_Read... [05:05:27]Read from MH i2c: F0 09 00 44 0E 00 9A 78 1C 67 50 D1 6C 64 D0 [05:05:27]GetLastDocTimeStamp 1729916625 [05:05:27]current date 1729919130 [05:05:27]FM_GetShiftState [05:05:27]SAM_PROTO_GetShiftState [05:05:27]wFMCommunicate request_size=4 [05:05:27]MH_SAM_APDU [05:05:27]CAPDU: 80 13 01 00 [05:05:27]Write to MH i2c: E2 08 00 45 0E 80 13 01 00 00 00 00 00 D0 [05:05:27]Write i2c OK [05:05:27]MH_I2C_Read... [05:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:28]Read from MH i2c: E2 [05:05:28]MH_I2C_Read... [05:05:28]Read from MH i2c: E2 0E 00 [05:05:28]MH_I2C_Read... [05:05:28]Read from MH i2c: E2 0E 00 45 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 05 [05:05:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:05:28]wFMCommunicate OK [05:05:28]SAM_PROTO_GetShiftState done [05:05:28]FM_GetShiftState done [05:05:28]opened in 1729902702 [05:05:28]opened+sec_in_day 1729989102 [05:05:28]quantity*price = 60009 [05:05:28]sum+1 = 60010 [05:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 25 26.10.2024 05:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156124 ФПД: 93043863256638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T050530&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156124&fm=93043863256638&tin=02508201610067®Number=0000000000091693&sum=60009 [05:05:29]StoreToDocumentArchive [05:05:29]shift 536 fd 156124 [05:05:29]save to /storage/0536/doc_00156124 [05:05:29]save last doc name /storage/0536/doc_00156124 to /storage/kkm_last_doc_name [05:05:29]save OK [05:05:29]Clear old archive folders... [05:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:05:29]tlvbuf is 00D335E0 [05:05:29]SAM_PROTO_ClearQueue [05:05:29]wFMCommunicate request_size=4 [05:05:29]MH_SAM_APDU [05:05:29]CAPDU: 80 09 00 00 [05:05:29]Write to MH i2c: E2 08 00 52 0E 80 09 00 00 00 00 00 00 D2 [05:05:29]Write i2c OK [05:05:29]MH_I2C_Read... [05:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:05:29]Read from MH i2c: E2 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 03 00 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [05:05:29]RAPDU: 90 00 [05:05:29]wFMCommunicate OK [05:05:29]SAM_PROTO_ClearQueue done [05:05:29]KKMCreateOFDPacket [05:05:29]OFDProtocolAddRootSTLVToBuf [05:05:29]FM_MakeSignedData [05:05:29]FM_MakeSignedData [05:05:29]SAM_PROTO_SignData [05:05:29]wFMCommunicate request_size=4 [05:05:29]MH_SAM_APDU [05:05:29]CAPDU: 80 0D 01 02 [05:05:29]Write to MH i2c: E2 08 00 53 0E 80 0D 01 02 00 00 00 00 DA [05:05:29]Write i2c OK [05:05:29]MH_I2C_Read... [05:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:05:29]Read from MH i2c: E2 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 03 00 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [05:05:29]RAPDU: 90 00 [05:05:29]wFMCommunicate OK [05:05:29]wFMCommunicate request_size=255 [05:05:29]MH_SAM_APDU [05:05: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9A 78 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 61 02 00 35 04 06 00 54 [05:05:29]Write to MH i2c: E2 02 01 54 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9A 78 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 61 02 00 35 04 06 00 54 00 00 B8 [05:05:29]Write i2c OK [05:05:29]MH_I2C_Read... [05:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:29]Read from MH i2c: E2 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 03 00 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [05:05:29]RAPDU: 90 00 [05:05:29]wFMCommunicate OK [05:05:29]wFMCommunicate request_size=10 [05:05:29]MH_SAM_APDU [05:05:29]CAPDU: 80 0D 02 02 05 9F 76 6A FE 3E [05:05:29]Write to MH i2c: E2 0D 00 55 0E 80 0D 02 02 05 00 9F 76 6A FE 3E 00 00 A2 [05:05:29]Write i2c OK [05:05:29]MH_I2C_Read... [05:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:29]Read from MH i2c: E2 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 03 00 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [05:05:29]RAPDU: 90 00 [05:05:29]wFMCommunicate OK [05:05:29]wFMCommunicate request_size=4 [05:05:29]MH_SAM_APDU [05:05:29]CAPDU: 80 0D 03 02 [05:05:29]Write to MH i2c: E2 08 00 56 0E 80 0D 03 02 00 00 00 00 DF [05:05:29]Write i2c OK [05:05:29]MH_I2C_Read... [05:05:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:05:29]Read from MH i2c: E2 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 0B 00 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 0B 00 56 0E 00 8F 3E 13 36 AE 75 95 0D 90 00 BB [05:05:29]RAPDU: 8F 3E 13 36 AE 75 95 0D 90 00 [05:05:29]wFMCommunicate OK [05:05:29]SAM_PROTO_SignData done [05:05:29]FM_MakeSignedData done [05:05:29]CreateOFDProtocolMessage [05:05:29]wFMCommunicate request_size=4 [05:05:29]MH_SAM_APDU [05:05:29]CAPDU: 80 11 00 00 [05:05:29]Write to MH i2c: E2 08 00 57 0E 80 11 00 00 00 00 00 00 DF [05:05:29]Write i2c OK [05:05:29]MH_I2C_Read... [05:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:29]Read from MH i2c: E2 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: E2 17 00 [05:05:29]MH_I2C_Read... [05:05:29]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 31 37 39 32 90 00 34 [05:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:05:29]wFMCommunicate OK [05:05:29]CreateOFDProtocolMessage done [05:05:29]OFDSenderStorePacket 156124 [05:05:29]StoreOFDPacket docnum=156124 [05:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 02 0F 07 01 59 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9A 78 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 61 02 00 35 04 06 00 54 9F 76 6A FE 3E 8F 3E 13 36 AE 75 95 0D [05:05:29]CheckFolder [05:05:29]dirname=/storage/ofd_packets [05:05:29]CheckFolder done [05:05:29]ProducePacketName [05:05:29]name=ofd_packets/00156124 [05:05:29]NVStorageSaveData ofd_packets/00156124 [05:05:29]File name is /storage/ofd_packets/00156124 [05:05:29]Write 301 bytes [05:05:29]NVStorageSaveData done [05:05:29]OFDSenderStorePacket done [05:05:29]KKMCreateOFDPacket done [05:05:29]NVStorageSaveData kkm_last_timestamp [05:05:29]File name is /storage/kkm_last_timestamp [05:05:29]Write 4 bytes [05:05:29]NVStorageSaveData done [05:05:29]ExternCall_PrintAddStr [05:05:29]wPrintStart [05:05:29]Write to MH i2c: 01 00 00 58 0E 66 [05:05:29]Write i2c OK [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: 01 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: 01 07 00 [05:05:29]MH_I2C_Read... [05:05:29]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [05:05:29]RasterBufferAndPrint [05:05:29]line Счет N : (1)98937 [05:05:29]line ИНН: 02508201610067 [05:05:29]line Контрольно-Кассовый Чек [05:05:29]line ПРОДАЖА [05:05:29]line ТРК (МРК, ГНК) : 31 [05:05:29]line Товар: 2710124130 [05:05:29]line Аи-92-К-5 [05:05:29]line 8.970 * 66.90 [05:05:29]line = 600.09 [05:05:29]line НДС 12% НСП 1% [05:05:29]line > о реализуемом товаре [05:05:29]line ИТОГО: 600.09 [05:05:29]line НСП 1% : 5.31 [05:05:29]line НДС 12% : 63.73 [05:05:29]line Наличными: 0.00 [05:05:29]line Безнал.: 600.09 [05:05:29]line Место: АЗС № 143 "Партнер Нефть" [05:05:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [05:05:29]line СНО: Общий режим [05:05:29]line Чек 25 26.10.2024 05:05 [05:05:29]line Смена: 536 ФФД: 1.0 [05:05:29]line ЗНМ: 0300000096 [05:05:29]line РНМ: 0000000000091693 [05:05:29]line Версия ККМ: 001 [05:05:29]line Платежная система: Mbank [05:05:29]line ФМ: 0000000000871792 [05:05:29]line ФД: 156124 [05:05:29]line ФПД: 93043863256638 [05:05:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T050530&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156124&fm=93043863256638&tin=02508201610067®Number=0000000000091693&sum=60009 [05:05:29]OFD Sender: Processing packet 156124 [packets to send 31, broken 30] [05:05:29]ProducePacketName [05:05:29]name=ofd_packets/00156124 [05:05:29]OFD Sender: To server: pG, [05:05:29]CommunicateWithHost lk.salyk.kg:30040 [05:05:29]ConnectInit lk.salyk.kg [05:05:29]written 0, free lines is 4095 [05:05:30]Connected sock=10 [05:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 02 0F 07 01 59 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9A 78 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 61 02 00 35 04 06 00 54 9F 76 6A FE 3E 8F 3E 13 36 AE 75 95 0D [05:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2A 18 47 00 44 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 61 02 00 F4 03 04 00 0E 1E 1C 67 B6 04 01 00 00 86 40 6D 0A D8 53 F0 8F [05:05:30]CommunicateWithHost err = 0 [05:05:30]CheckOFDResponse [05:05:30]1017 (14) - 77093643461234 [05:05:30]1041 (16) - 0000000000871792 [05:05:30]1040 (4) - 156124 [05:05:30]1012 (4) - 25.10.2024 22:39 [05:05:30]1206 (1) - 0 [05:05:30]OFD Sender: Remove packet 156124 [05:05:30]ProducePacketName [05:05:30]name=ofd_packets/00156124 [05:05:30]NVStorageDeleteData [05:05:30]Write to MH i2c: 01 00 00 81 0E 8F [05:05:30]Write i2c OK [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: 01 [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: 01 07 00 [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: 01 07 00 81 0E 00 00 00 00 00 13 0D B6 [05:05:30]RasterBufferAndPrint [05:05:30]line [05:05:30]line [05:05:30]line [05:05:30]line [05:05:30]line [05:05:30]written 0, free lines is 3354 [05:05:30]process_action close_receipt done [05:05:30]requested_data is exist [05:05:30]produce_requested_data [05:05:30]requested_item fm.sn is exist - process it [05:05:30]wFMCommunicate request_size=4 [05:05:30]MH_SAM_APDU [05:05:30]CAPDU: 80 11 00 00 [05:05:30]Write to MH i2c: E2 08 00 88 0E 80 11 00 00 00 00 00 00 10 [05:05:30]Write i2c OK [05:05:30]MH_I2C_Read... [05:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:30]Read from MH i2c: E2 [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: E2 17 00 [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: E2 17 00 88 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [05:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:05:30]wFMCommunicate OK [05:05:30]requested_item fd.num is exist - process it [05:05:30]SAM_PROTO_GetFieldsCounters [05:05:30]wFMCommunicate request_size=4 [05:05:30]MH_SAM_APDU [05:05:30]CAPDU: 80 13 00 00 [05:05:30]Write to MH i2c: E2 08 00 89 0E 80 13 00 00 00 00 00 00 13 [05:05:30]Write i2c OK [05:05:30]MH_I2C_Read... [05:05:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:30]Read from MH i2c: E2 [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: E2 62 00 [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: E2 62 00 89 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 61 02 00 0E 04 04 00 18 02 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 DD [05:05: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 61 02 00 0E 04 04 00 18 02 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 [05:05:30]wFMCommunicate OK [05:05:30]SAM_PROTO_GetFieldsCounters done [05:05:30]requested_item shift.num is exist - process it [05:05:30]requested_item shift.opened is exist - process it [05:05:30]req_shift_opened [05:05:30]FM_GetShiftState [05:05:30]SAM_PROTO_GetShiftState [05:05:30]wFMCommunicate request_size=4 [05:05:30]MH_SAM_APDU [05:05:30]CAPDU: 80 13 01 00 [05:05:30]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [05:05:30]Write i2c OK [05:05:30]MH_I2C_Read... [05:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:30]Read from MH i2c: E2 [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: E2 0E 00 [05:05:30]MH_I2C_Read... [05:05:30]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4A [05:05:30]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:05:30]wFMCommunicate OK [05:05:30]SAM_PROTO_GetShiftState done [05:05:30]FM_GetShiftState done [05:05:30]req_shift_opened done [05:05:30]requested_item shift.open_date is exist - process it [05:05:30]req_shift_open_date [05:05:30]req_shift_open_date done [05:05:30]produce_requested_data done [05:05:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156124,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [05:05:30]process_action_free close_receipt [05:05:30]json_value_free [05:05:30]json_value_free done [05:05:30]process_json_proto returns [05:05:30]Send response to host [05:05:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156124,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [05:05:30]free response buf [05:05:30]execute_script done [05:05:30]execute_script returns [05:05:30]free content buf [05:05:30]Sock 7.Close socket [05:05:30]Sock 7.Thread stoped [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:25]accept exits with 9 [05:43:25]New connection [05:43:25]New thread 3066469732 created [05:43:25]Thread 3066613092 joined [05:43:25]Waiting for new connection... [05:43:25] Sock 9.Parse request [05:43:25]Sock 9.Check first char [05:43:25]Sock 9.First char is OK [05:43:25]request: POST /json_proto HTTP/1.0 [05:43:25]Method: POST [05:43:25]URL: /json_proto [05:43:25]Method is POST - this is cgi request [05:43:25]url: /json_proto [05:43:25]query_string will be loaded in cgi processing [05:43:25]execute_cgi json_proto POST (null) [05:43:25]execute_cgi path=json_proto method=POST [05:43:25]POST find Content-Length [05:43:25]Host: 172.17.63.3:8080 [05:43:25]Content-Length: 674 [05:43:25]Content-Type: application/json [05:43:25] [05:43:25]POST finish read [05:43:25]Found Content-Length = 674 [05:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.780, "sum" : 592.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:43:25]execute_script... [05:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.780, "sum" : 592.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:43:25]POST & json_proto [05:43:25]process_json_proto [05:43:25]json parsed OK: [05:43:25]protocol is kg_v1.0 [05:43:25]action value=close_receipt [05:43:25]process_action close_receipt [05:43:25]cmd_close_receipt [05:43:25]MH_GetDate [05:43:25]Write to MH i2c: F0 00 00 8B 0E 88 [05:43:25]Write i2c OK [05:43:25]MH_I2C_Read... [05:43:25]Read from MH i2c: F0 [05:43:25]MH_I2C_Read... [05:43:25]Read from MH i2c: F0 09 00 [05:43:25]MH_I2C_Read... [05:43:25]Read from MH i2c: F0 09 00 8B 0E 00 80 81 1C 67 50 D1 6C 64 06 [05:43:25]GetLastDocTimeStamp 1729919130 [05:43:25]current date 1729921408 [05:43:25]FM_GetShiftState [05:43:25]SAM_PROTO_GetShiftState [05:43:25]wFMCommunicate request_size=4 [05:43:25]MH_SAM_APDU [05:43:25]CAPDU: 80 13 01 00 [05:43:25]Write to MH i2c: E2 08 00 8C 0E 80 13 01 00 00 00 00 00 17 [05:43:25]Write i2c OK [05:43:25]MH_I2C_Read... [05:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:25]Read from MH i2c: E2 [05:43:25]MH_I2C_Read... [05:43:25]Read from MH i2c: E2 0E 00 [05:43:25]MH_I2C_Read... [05:43:25]Read from MH i2c: E2 0E 00 8C 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4C [05:43:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:43:25]wFMCommunicate OK [05:43:25]SAM_PROTO_GetShiftState done [05:43:25]FM_GetShiftState done [05:43:25]opened in 1729902702 [05:43:25]opened+sec_in_day 1729989102 [05:43:25]quantity*price = 59283 [05:43:25]sum+1 = 59285 [05:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 592.00 Внесено: 1000.00 СДАЧА: 408.00 НСП 1% : 5.25 НДС 12% : 62.96 Наличными: 592.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 26 26.10.2024 05:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156125 ФПД: 223484764634673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T054328&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156125&fm=223484764634673&tin=02508201610067®Number=0000000000091693&sum=59200 [05:43:26]StoreToDocumentArchive [05:43:26]shift 536 fd 156125 [05:43:26]save to /storage/0536/doc_00156125 [05:43:26]save last doc name /storage/0536/doc_00156125 to /storage/kkm_last_doc_name [05:43:26]save OK [05:43:26]Clear old archive folders... [05:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:43:26]tlvbuf is 00D60B50 [05:43:26]SAM_PROTO_ClearQueue [05:43:26]wFMCommunicate request_size=4 [05:43:26]MH_SAM_APDU [05:43:26]CAPDU: 80 09 00 00 [05:43:26]Write to MH i2c: E2 08 00 99 0E 80 09 00 00 00 00 00 00 19 [05:43:26]Write i2c OK [05:43:26]MH_I2C_Read... [05:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:43:26]Read from MH i2c: E2 [05:43:26]MH_I2C_Read... [05:43:26]Read from MH i2c: E2 03 00 [05:43:26]MH_I2C_Read... [05:43:26]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [05:43:26]RAPDU: 90 00 [05:43:26]wFMCommunicate OK [05:43:26]SAM_PROTO_ClearQueue done [05:43:26]KKMCreateOFDPacket [05:43:26]OFDProtocolAddRootSTLVToBuf [05:43:26]FM_MakeSignedData [05:43:26]FM_MakeSignedData [05:43:26]SAM_PROTO_SignData [05:43:26]wFMCommunicate request_size=4 [05:43:26]MH_SAM_APDU [05:43:26]CAPDU: 80 0D 01 02 [05:43:26]Write to MH i2c: E2 08 00 9A 0E 80 0D 01 02 00 00 00 00 21 [05:43:26]Write i2c OK [05:43:26]MH_I2C_Read... [05:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:43:26]Read from MH i2c: E2 [05:43:26]MH_I2C_Read... [05:43:26]Read from MH i2c: E2 03 00 [05:43:26]MH_I2C_Read... [05:43:26]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [05:43:26]RAPDU: 90 00 [05:43:26]wFMCommunicate OK [05:43:26]wFMCommunicate request_size=255 [05:43:26]MH_SAM_APDU [05:43:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 94 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 18 00 00 00 00 07 04 06 00 40 E7 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 80 81 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 61 02 00 35 04 06 00 CB 42 1A 02 [05:43:26]Write to MH i2c: E2 02 01 9B 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 94 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 18 00 00 00 00 07 04 06 00 40 E7 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 80 81 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 61 02 00 35 04 06 00 CB 42 1A 02 00 00 8F [05:43:26]Write i2c OK [05:43:26]MH_I2C_Read... [05:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:26]Read from MH i2c: E2 [05:43:26]MH_I2C_Read... [05:43:26]Read from MH i2c: E2 03 00 [05:43:26]MH_I2C_Read... [05:43:26]Read from MH i2c: E2 03 00 9B 0E 00 90 00 1D [05:43:26]RAPDU: 90 00 [05:43:26]wFMCommunicate OK [05:43:26]wFMCommunicate request_size=7 [05:43:26]MH_SAM_APDU [05:43:26]CAPDU: 80 0D 02 02 02 3E 31 [05:43:26]Write to MH i2c: E2 0A 00 9C 0E 80 0D 02 02 02 00 3E 31 00 00 97 [05:43:26]Write i2c OK [05:43:26]MH_I2C_Read... [05:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:26]Read from MH i2c: E2 [05:43:26]MH_I2C_Read... [05:43:26]Read from MH i2c: E2 03 00 [05:43:26]MH_I2C_Read... [05:43:26]Read from MH i2c: E2 03 00 9C 0E 00 90 00 1E [05:43:26]RAPDU: 90 00 [05:43:26]wFMCommunicate OK [05:43:26]wFMCommunicate request_size=4 [05:43:26]MH_SAM_APDU [05:43:26]CAPDU: 80 0D 03 02 [05:43:26]Write to MH i2c: E2 08 00 9D 0E 80 0D 03 02 00 00 00 00 26 [05:43:26]Write i2c OK [05:43:26]MH_I2C_Read... [05:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:43:27]Read from MH i2c: E2 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: E2 0B 00 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: E2 0B 00 9D 0E 00 43 26 17 96 3A 83 56 8D 90 00 DD [05:43:27]RAPDU: 43 26 17 96 3A 83 56 8D 90 00 [05:43:27]wFMCommunicate OK [05:43:27]SAM_PROTO_SignData done [05:43:27]FM_MakeSignedData done [05:43:27]CreateOFDProtocolMessage [05:43:27]wFMCommunicate request_size=4 [05:43:27]MH_SAM_APDU [05:43:27]CAPDU: 80 11 00 00 [05:43:27]Write to MH i2c: E2 08 00 9E 0E 80 11 00 00 00 00 00 00 26 [05:43:27]Write i2c OK [05:43:27]MH_I2C_Read... [05:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:27]Read from MH i2c: E2 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: E2 17 00 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: E2 17 00 9E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [05:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:43:27]wFMCommunicate OK [05:43:27]CreateOFDProtocolMessage done [05:43:27]OFDSenderStorePacket 156125 [05:43:27]StoreOFDPacket docnum=156125 [05:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A1 8B 04 01 B0 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 94 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 18 00 00 00 00 07 04 06 00 40 E7 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 80 81 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 61 02 00 35 04 06 00 CB 42 1A 02 3E 31 43 26 17 96 3A 83 56 8D [05:43:27]CheckFolder [05:43:27]dirname=/storage/ofd_packets [05:43:27]CheckFolder done [05:43:27]ProducePacketName [05:43:27]name=ofd_packets/00156125 [05:43:27]NVStorageSaveData ofd_packets/00156125 [05:43:27]File name is /storage/ofd_packets/00156125 [05:43:27]Write 298 bytes [05:43:27]NVStorageSaveData done [05:43:27]OFDSenderStorePacket done [05:43:27]KKMCreateOFDPacket done [05:43:27]NVStorageSaveData kkm_last_timestamp [05:43:27]File name is /storage/kkm_last_timestamp [05:43:27]Write 4 bytes [05:43:27]NVStorageSaveData done [05:43:27]ExternCall_PrintAddStr [05:43:27]wPrintStart [05:43:27]Write to MH i2c: 01 00 00 9F 0E AD [05:43:27]Write i2c OK [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: 01 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: 01 07 00 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 FF 0F C2 [05:43:27]RasterBufferAndPrint [05:43:27]line Счет N : (1)98938 [05:43:27]line ИНН: 02508201610067 [05:43:27]line Контрольно-Кассовый Чек [05:43:27]line ПРОДАЖА [05:43:27]line ТРК (МРК, ГНК) : 32 [05:43:27]line Товар: 2710194210 [05:43:27]line ДТ-К-5 [05:43:27]line 7.780 * 76.20 [05:43:27]line = 592.84 [05:43:27]line НДС 12% НСП 1% [05:43:27]line > о реализуемом товаре [05:43:27]line ОКРУГЛЕНИЕ: -0.84 [05:43:27]line ИТОГО: 592.00 [05:43:27]line Внесено: 1000.00 [05:43:27]line СДАЧА: 408.00 [05:43:27]line НСП 1% : 5.25 [05:43:27]line НДС 12% : 62.96 [05:43:27]line Наличными: 592.00 [05:43:27]line Безнал.: 0.00 [05:43:27]line Место: АЗС № 143 "Партнер Нефть" [05:43:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [05:43:27]line СНО: Общий режим [05:43:27]line Чек 26 26.10.2024 05:43 [05:43:27]line Смена: 536 ФФД: 1.0 [05:43:27]line ЗНМ: 0300000096 [05:43:27]line РНМ: 0000000000091693 [05:43:27]line Версия ККМ: 001 [05:43:27]line ФМ: 0000000000871792 [05:43:27]line ФД: 156125 [05:43:27]line ФПД: 223484764634673 [05:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T054328&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156125&fm=223484764634673&tin=02508201610067®Number=0000000000091693&sum=59200 [05:43:27]OFD Sender: Processing packet 156125 [packets to send 31, broken 30] [05:43:27]ProducePacketName [05:43:27]name=ofd_packets/00156125 [05:43:27]OFD Sender: To server: pG, [05:43:27]CommunicateWithHost lk.salyk.kg:30040 [05:43:27]ConnectInit lk.salyk.kg [05:43:27]written 0, free lines is 4095 [05:43:27]Connected sock=10 [05:43:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A1 8B 04 01 B0 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 94 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 18 00 00 00 00 07 04 06 00 40 E7 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 80 81 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 61 02 00 35 04 06 00 CB 42 1A 02 3E 31 43 26 17 96 3A 83 56 8D [05:43:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 60 FB 47 00 C3 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 31 37 39 32 10 04 04 00 DD 61 02 00 F4 03 04 00 F3 26 1C 67 B6 04 01 00 00 78 41 B0 5D 52 F4 69 F5 [05:43:27]CommunicateWithHost err = 0 [05:43:27]CheckOFDResponse [05:43:27]1017 (14) - 77093643461234 [05:43:27]1041 (16) - 0000000000871792 [05:43:27]1040 (4) - 156125 [05:43:27]1012 (4) - 25.10.2024 23:17 [05:43:27]1206 (1) - 0 [05:43:27]OFD Sender: Remove packet 156125 [05:43:27]ProducePacketName [05:43:27]name=ofd_packets/00156125 [05:43:27]NVStorageDeleteData [05:43:27]Write to MH i2c: 01 00 00 CA 0E D8 [05:43:27]Write i2c OK [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: 01 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: 01 07 00 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: 01 07 00 CA 0E 00 00 00 00 00 E2 0C CD [05:43:27]RasterBufferAndPrint [05:43:27]line [05:43:27]line [05:43:27]line [05:43:27]line [05:43:27]line [05:43:27]written 0, free lines is 3304 [05:43:27]process_action close_receipt done [05:43:27]requested_data is exist [05:43:27]produce_requested_data [05:43:27]requested_item fm.sn is exist - process it [05:43:27]wFMCommunicate request_size=4 [05:43:27]MH_SAM_APDU [05:43:27]CAPDU: 80 11 00 00 [05:43:27]Write to MH i2c: E2 08 00 D1 0E 80 11 00 00 00 00 00 00 59 [05:43:27]Write i2c OK [05:43:27]MH_I2C_Read... [05:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:27]Read from MH i2c: E2 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: E2 17 00 [05:43:27]MH_I2C_Read... [05:43:27]Read from MH i2c: E2 17 00 D1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [05:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:43:27]wFMCommunicate OK [05:43:27]requested_item fd.num is exist - process it [05:43:27]SAM_PROTO_GetFieldsCounters [05:43:27]wFMCommunicate request_size=4 [05:43:27]MH_SAM_APDU [05:43:27]CAPDU: 80 13 00 00 [05:43:27]Write to MH i2c: E2 08 00 D2 0E 80 13 00 00 00 00 00 00 5C [05:43:27]Write i2c OK [05:43:27]MH_I2C_Read... [05:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:43:28]Read from MH i2c: E2 [05:43:28]MH_I2C_Read... [05:43:28]Read from MH i2c: E2 62 00 [05:43:28]MH_I2C_Read... [05:43:28]Read from MH i2c: E2 62 00 D2 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 61 02 00 0E 04 04 00 18 02 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 2A [05:43: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 61 02 00 0E 04 04 00 18 02 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 [05:43:28]wFMCommunicate OK [05:43:28]SAM_PROTO_GetFieldsCounters done [05:43:28]requested_item shift.num is exist - process it [05:43:28]requested_item shift.opened is exist - process it [05:43:28]req_shift_opened [05:43:28]FM_GetShiftState [05:43:28]SAM_PROTO_GetShiftState [05:43:28]wFMCommunicate request_size=4 [05:43:28]MH_SAM_APDU [05:43:28]CAPDU: 80 13 01 00 [05:43:28]Write to MH i2c: E2 08 00 D3 0E 80 13 01 00 00 00 00 00 5E [05:43:28]Write i2c OK [05:43:28]MH_I2C_Read... [05:43:28]Read from MH i2c: E2 [05:43:28]MH_I2C_Read... [05:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:28]Read from MH i2c: E2 0E 00 [05:43:28]MH_I2C_Read... [05:43:28]Read from MH i2c: E2 0E 00 D3 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 93 [05:43:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:43:28]wFMCommunicate OK [05:43:28]SAM_PROTO_GetShiftState done [05:43:28]FM_GetShiftState done [05:43:28]req_shift_opened done [05:43:28]requested_item shift.open_date is exist - process it [05:43:28]req_shift_open_date [05:43:28]req_shift_open_date done [05:43:28]produce_requested_data done [05:43:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156125,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [05:43:28]process_action_free close_receipt [05:43:28]json_value_free [05:43:28]json_value_free done [05:43:28]process_json_proto returns [05:43:28]Send response to host [05:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156125,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [05:43:28]free response buf [05:43:28]execute_script done [05:43:28]execute_script returns [05:43:28]free content buf [05:43:28]Sock 9.Close socket [05:43:28]Sock 9.Thread stoped [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:46]int [05:43:46]Write to MH i2c: 01 00 00 D4 0E E2 [05:43:46]*** FLAG_PRN_KEY set [05:43:46]Write i2c OK [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 D4 0E 00 08 00 00 00 FF 0F FF [05:43:46]state=0 [05:43:46]Key pressed [05:43:46]Feed [05:43:46]Write to MH i2c: D8 00 00 D5 0E BA [05:43:46]Write i2c OK [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: D8 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: D8 01 00 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: D8 01 00 D5 0E 00 BB [05:43:46]int [05:43:46]Write to MH i2c: 01 00 00 D6 0E E4 [05:43:46]Write i2c OK [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 D6 0E 00 48 00 00 00 3D 00 70 [05:43:46]state=2 [05:43:46]Key pressed [05:43:46]int [05:43:46]Write to MH i2c: 01 00 00 D7 0E E5 [05:43:46]*** FLAG_PRN_KEY reset [05:43:46]Write i2c OK [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 D7 0E 00 00 00 00 00 F5 0F F0 [05:43:46]state=2 [05:43:46]Stop feed [05:43:46]int [05:43:46]Write to MH i2c: 01 00 00 D8 0E E6 [05:43:46]*** FLAG_PRN_KEY set [05:43:46]Write i2c OK [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 D8 0E 00 08 00 00 00 FF 0F 03 [05:43:46]state=0 [05:43:46]Key pressed [05:43:46]Feed [05:43:46]Write to MH i2c: D8 00 00 D9 0E BE [05:43:46]Write i2c OK [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: D8 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: D8 01 00 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: D8 01 00 D9 0E 00 BF [05:43:46]int [05:43:46]Write to MH i2c: 01 00 00 DA 0E E8 [05:43:46]Write i2c OK [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 DA 0E 00 48 00 00 00 3C 00 73 [05:43:46]state=2 [05:43:46]Key pressed [05:43:46]int [05:43:46]Write to MH i2c: 01 00 00 DB 0E E9 [05:43:46]*** FLAG_PRN_KEY reset [05:43:46]Write i2c OK [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 [05:43:46]MH_I2C_Read... [05:43:46]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 F5 0F F4 [05:43:46]state=2 [05:43:46]Stop feed [05:43:47]int [05:43:47]Write to MH i2c: 01 00 00 DC 0E EA [05:43:47]*** FLAG_PRN_KEY set [05:43:47]Write i2c OK [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 07 00 [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 07 00 DC 0E 00 08 00 00 00 FF 0F 07 [05:43:47]state=0 [05:43:47]Key pressed [05:43:47]Feed [05:43:47]Write to MH i2c: D8 00 00 DD 0E C2 [05:43:47]Write i2c OK [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: D8 [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: D8 01 00 [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: D8 01 00 DD 0E 00 C3 [05:43:47]int [05:43:47]Write to MH i2c: 01 00 00 DE 0E EC [05:43:47]Write i2c OK [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 07 00 [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 07 00 DE 0E 00 48 00 00 00 3C 00 77 [05:43:47]state=2 [05:43:47]Key pressed [05:43:47]int [05:43:47]Write to MH i2c: 01 00 00 DF 0E ED [05:43:47]*** FLAG_PRN_KEY reset [05:43:47]Write i2c OK [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 07 00 [05:43:47]MH_I2C_Read... [05:43:47]Read from MH i2c: 01 07 00 DF 0E 00 00 00 00 00 F5 0F F8 [05:43:47]state=2 [05:43:47]Stop feed [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:25]accept exits with 7 [05:46:25]New connection [05:46:25]New thread 3066613092 created [05:46:25]Thread 3066469732 joined [05:46:25]Waiting for new connection... [05:46:25] Sock 7.Parse request [05:46:25]Sock 7.Check first char [05:46:25]Sock 7.First char is OK [05:46:25]request: POST /json_proto HTTP/1.0 [05:46:25]Method: POST [05:46:25]URL: /json_proto [05:46:25]Method is POST - this is cgi request [05:46:25]url: /json_proto [05:46:25]query_string will be loaded in cgi processing [05:46:25]execute_cgi json_proto POST (null) [05:46:25]execute_cgi path=json_proto method=POST [05:46:25]POST find Content-Length [05:46:25]Host: 172.17.63.3:8080 [05:46:25]Content-Length: 673 [05:46:25]Content-Type: application/json [05:46:25] [05:46:25]POST finish read [05:46:25]Found Content-Length = 673 [05:46:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.280, "sum" : 18.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 18.00, "payments": [ { "type": 0, "sum" : 18.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:25]execute_script... [05:46:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.280, "sum" : 18.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 18.00, "payments": [ { "type": 0, "sum" : 18.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:25]POST & json_proto [05:46:25]process_json_proto [05:46:25]json parsed OK: [05:46:25]protocol is kg_v1.0 [05:46:25]action value=close_receipt [05:46:25]process_action close_receipt [05:46:25]cmd_close_receipt [05:46:25]MH_GetDate [05:46:25]Write to MH i2c: F0 00 00 E0 0E DD [05:46:25]Write i2c OK [05:46:25]MH_I2C_Read... [05:46:25]Read from MH i2c: F0 [05:46:25]MH_I2C_Read... [05:46:25]Read from MH i2c: F0 09 00 [05:46:25]MH_I2C_Read... [05:46:25]Read from MH i2c: F0 09 00 E0 0E 00 33 82 1C 67 50 D1 6C 64 0F [05:46:25]GetLastDocTimeStamp 1729921408 [05:46:25]current date 1729921587 [05:46:25]FM_GetShiftState [05:46:25]SAM_PROTO_GetShiftState [05:46:25]wFMCommunicate request_size=4 [05:46:25]MH_SAM_APDU [05:46:25]CAPDU: 80 13 01 00 [05:46:25]Write to MH i2c: E2 08 00 E1 0E 80 13 01 00 00 00 00 00 6C [05:46:25]Write i2c OK [05:46:25]MH_I2C_Read... [05:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:25]Read from MH i2c: E2 [05:46:25]MH_I2C_Read... [05:46:25]Read from MH i2c: E2 0E 00 [05:46:25]MH_I2C_Read... [05:46:25]Read from MH i2c: E2 0E 00 E1 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A1 [05:46:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:46:25]wFMCommunicate OK [05:46:25]SAM_PROTO_GetShiftState done [05:46:25]FM_GetShiftState done [05:46:25]opened in 1729902702 [05:46:25]opened+sec_in_day 1729989102 [05:46:25]quantity*price = 1873 [05:46:25]sum+1 = 1874 [05:46:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 18.00 Внесено: 600.00 СДАЧА: 582.00 НСП 1% : 0.17 НДС 12% : 1.99 Наличными: 18.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 27 26.10.2024 05:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156126 ФПД: 92999601798139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T054627&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156126&fm=92999601798139&tin=02508201610067®Number=0000000000091693&sum=1800 [05:46:26]StoreToDocumentArchive [05:46:26]shift 536 fd 156126 [05:46:26]save to /storage/0536/doc_00156126 [05:46:26]save last doc name /storage/0536/doc_00156126 to /storage/kkm_last_doc_name [05:46:26]save OK [05:46:26]Clear old archive folders... [05:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:46:26]tlvbuf is 00D4F3B0 [05:46:26]SAM_PROTO_ClearQueue [05:46:26]wFMCommunicate request_size=4 [05:46:26]MH_SAM_APDU [05:46:26]CAPDU: 80 09 00 00 [05:46:26]Write to MH i2c: E2 08 00 EE 0E 80 09 00 00 00 00 00 00 6E [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:26]Read from MH i2c: E2 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 03 00 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 03 00 EE 0E 00 90 00 70 [05:46:26]RAPDU: 90 00 [05:46:26]wFMCommunicate OK [05:46:26]SAM_PROTO_ClearQueue done [05:46:26]KKMCreateOFDPacket [05:46:26]OFDProtocolAddRootSTLVToBuf [05:46:26]FM_MakeSignedData [05:46:26]FM_MakeSignedData [05:46:26]SAM_PROTO_SignData [05:46:26]wFMCommunicate request_size=4 [05:46:26]MH_SAM_APDU [05:46:26]CAPDU: 80 0D 01 02 [05:46:26]Write to MH i2c: E2 08 00 EF 0E 80 0D 01 02 00 00 00 00 76 [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:26]Read from MH i2c: E2 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 03 00 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 03 00 EF 0E 00 90 00 71 [05:46:26]RAPDU: 90 00 [05:46:26]wFMCommunicate OK [05:46:26]wFMCommunicate request_size=255 [05:46:26]MH_SAM_APDU [05:46:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 51 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 00 00 00 00 00 07 04 06 00 08 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 33 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 61 02 00 35 04 06 00 54 [05:46:26]Write to MH i2c: E2 02 01 F0 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 51 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 00 00 00 00 00 07 04 06 00 08 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 33 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 61 02 00 35 04 06 00 54 00 00 2A [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:26]Read from MH i2c: E2 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 03 00 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 03 00 F0 0E 00 90 00 72 [05:46:26]RAPDU: 90 00 [05:46:26]wFMCommunicate OK [05:46:26]wFMCommunicate request_size=10 [05:46:26]MH_SAM_APDU [05:46:26]CAPDU: 80 0D 02 02 05 95 28 3A BB FB [05:46:26]Write to MH i2c: E2 0D 00 F1 0E 80 0D 02 02 05 00 95 28 3A BB FB 00 00 30 [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:26]Read from MH i2c: E2 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 03 00 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 03 00 F1 0E 00 90 00 73 [05:46:26]RAPDU: 90 00 [05:46:26]wFMCommunicate OK [05:46:26]wFMCommunicate request_size=4 [05:46:26]MH_SAM_APDU [05:46:26]CAPDU: 80 0D 03 02 [05:46:26]Write to MH i2c: E2 08 00 F2 0E 80 0D 03 02 00 00 00 00 7B [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:26]Read from MH i2c: E2 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 0B 00 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 0B 00 F2 0E 00 0A 88 21 EE 03 B9 54 0A 90 00 37 [05:46:26]RAPDU: 0A 88 21 EE 03 B9 54 0A 90 00 [05:46:26]wFMCommunicate OK [05:46:26]SAM_PROTO_SignData done [05:46:26]FM_MakeSignedData done [05:46:26]CreateOFDProtocolMessage [05:46:26]wFMCommunicate request_size=4 [05:46:26]MH_SAM_APDU [05:46:26]CAPDU: 80 11 00 00 [05:46:26]Write to MH i2c: E2 08 00 F3 0E 80 11 00 00 00 00 00 00 7B [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:26]Read from MH i2c: E2 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 17 00 [05:46:26]MH_I2C_Read... [05:46: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 31 37 39 32 90 00 D0 [05:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:46:26]wFMCommunicate OK [05:46:26]CreateOFDProtocolMessage done [05:46:26]OFDSenderStorePacket 156126 [05:46:26]StoreOFDPacket docnum=156126 [05:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 72 CD 07 01 6E 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 51 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 00 00 00 00 00 07 04 06 00 08 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 33 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 61 02 00 35 04 06 00 54 95 28 3A BB FB 0A 88 21 EE 03 B9 54 0A [05:46:26]CheckFolder [05:46:26]dirname=/storage/ofd_packets [05:46:26]CheckFolder done [05:46:26]ProducePacketName [05:46:26]name=ofd_packets/00156126 [05:46:26]NVStorageSaveData ofd_packets/00156126 [05:46:26]File name is /storage/ofd_packets/00156126 [05:46:26]Write 301 bytes [05:46:26]NVStorageSaveData done [05:46:26]OFDSenderStorePacket done [05:46:26]KKMCreateOFDPacket done [05:46:26]NVStorageSaveData kkm_last_timestamp [05:46:26]File name is /storage/kkm_last_timestamp [05:46:26]Write 4 bytes [05:46:26]NVStorageSaveData done [05:46:26]OFD Sender: Processing packet 156126 [packets to send 31, broken 30] [05:46:26]ProducePacketName [05:46:26]name=ofd_packets/00156126 [05:46:26]OFD Sender: To server: pG, [05:46:26]CommunicateWithHost lk.salyk.kg:30040 [05:46:26]ConnectInit lk.salyk.kg [05:46:26]ExternCall_PrintAddStr [05:46:26]wPrintStart [05:46:26]Write to MH i2c: 01 00 00 F4 0E 02 [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: 01 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: 01 07 00 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: 01 07 00 F4 0E 00 00 00 00 00 FF 0F 17 [05:46:26]RasterBufferAndPrint [05:46:26]line Счет N : (1)98940 [05:46:26]line ИНН: 02508201610067 [05:46:26]line Контрольно-Кассовый Чек [05:46:26]line ПРОДАЖА [05:46:26]line ТРК (МРК, ГНК) : 11 [05:46:26]line Товар: 2710124130 [05:46:26]line Аи-92-К-5 [05:46:26]line 0.280 * 66.90 [05:46:26]line = 18.73 [05:46:26]line НДС 12% НСП 1% [05:46:26]line > о реализуемом товаре [05:46:26]line ОКРУГЛЕНИЕ: -0.73 [05:46:26]line ИТОГО: 18.00 [05:46:26]line Внесено: 600.00 [05:46:26]line СДАЧА: 582.00 [05:46:26]line НСП 1% : 0.17 [05:46:26]line НДС 12% : 1.99 [05:46:26]line Наличными: 18.00 [05:46:26]line Безнал.: 0.00 [05:46:26]line Место: АЗС № 143 "Партнер Нефть" [05:46:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [05:46:26]line СНО: Общий режим [05:46:26]line Чек 27 26.10.2024 05:46 [05:46:26]line Смена: 536 ФФД: 1.0 [05:46:26]line ЗНМ: 0300000096 [05:46:26]line РНМ: 0000000000091693 [05:46:26]line Версия ККМ: 001 [05:46:26]line ФМ: 0000000000871792 [05:46:26]line ФД: 156126 [05:46:26]line ФПД: 92999601798139 [05:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T054627&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156126&fm=92999601798139&tin=02508201610067®Number=0000000000091693&sum=1800 [05:46:27]Connected sock=11 [05:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 72 CD 07 01 6E 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 51 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 00 00 00 00 00 07 04 06 00 08 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 33 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 61 02 00 35 04 06 00 54 95 28 3A BB FB 0A 88 21 EE 03 B9 54 0A [05:46:27]written 0, free lines is 4095 [05:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 12 3B 47 00 9B 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 61 02 00 F4 03 04 00 A7 27 1C 67 B6 04 01 00 00 9B F7 72 70 82 9E 35 A5 [05:46:27]CommunicateWithHost err = 0 [05:46:27]CheckOFDResponse [05:46:27]1017 (14) - 77093643461234 [05:46:27]1041 (16) - 0000000000871792 [05:46:27]1040 (4) - 156126 [05:46:27]1012 (4) - 25.10.2024 23:20 [05:46:27]1206 (1) - 0 [05:46:27]OFD Sender: Remove packet 156126 [05:46:27]ProducePacketName [05:46:27]name=ofd_packets/00156126 [05:46:27]NVStorageDeleteData [05:46:27]Write to MH i2c: 01 00 00 1F 0F 2E [05:46:27]Write i2c OK [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: 01 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: 01 07 00 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: 01 07 00 1F 0F 00 00 00 00 00 DF 0C 20 [05:46:27]RasterBufferAndPrint [05:46:27]line [05:46:27]line [05:46:27]line [05:46:27]line [05:46:27]line [05:46:27]written 0, free lines is 3301 [05:46:27]process_action close_receipt done [05:46:27]requested_data is exist [05:46:27]produce_requested_data [05:46:27]requested_item fm.sn is exist - process it [05:46:27]wFMCommunicate request_size=4 [05:46:27]MH_SAM_APDU [05:46:27]CAPDU: 80 11 00 00 [05:46:27]Write to MH i2c: E2 08 00 26 0F 80 11 00 00 00 00 00 00 AF [05:46:27]Write i2c OK [05:46:27]MH_I2C_Read... [05:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:27]Read from MH i2c: E2 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 17 00 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 17 00 26 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [05:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:46:27]wFMCommunicate OK [05:46:27]requested_item fd.num is exist - process it [05:46:27]SAM_PROTO_GetFieldsCounters [05:46:27]wFMCommunicate request_size=4 [05:46:27]MH_SAM_APDU [05:46:27]CAPDU: 80 13 00 00 [05:46:27]Write to MH i2c: E2 08 00 27 0F 80 13 00 00 00 00 00 00 B2 [05:46:27]Write i2c OK [05:46:27]MH_I2C_Read... [05:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:27]Read from MH i2c: E2 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 62 00 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 62 00 27 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 61 02 00 0E 04 04 00 18 02 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 84 [05:46: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 61 02 00 0E 04 04 00 18 02 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 [05:46:27]wFMCommunicate OK [05:46:27]SAM_PROTO_GetFieldsCounters done [05:46:27]requested_item shift.num is exist - process it [05:46:27]requested_item shift.opened is exist - process it [05:46:27]req_shift_opened [05:46:27]FM_GetShiftState [05:46:27]SAM_PROTO_GetShiftState [05:46:27]wFMCommunicate request_size=4 [05:46:27]MH_SAM_APDU [05:46:27]CAPDU: 80 13 01 00 [05:46:27]Write to MH i2c: E2 08 00 28 0F 80 13 01 00 00 00 00 00 B4 [05:46:27]Write i2c OK [05:46:27]MH_I2C_Read... [05:46:27]OFD Sender: No OFD packet to send [05:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:27]Read from MH i2c: E2 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 0E 00 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 0E 00 28 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E9 [05:46:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:46:27]wFMCommunicate OK [05:46:27]SAM_PROTO_GetShiftState done [05:46:27]FM_GetShiftState done [05:46:27]req_shift_opened done [05:46:27]requested_item shift.open_date is exist - process it [05:46:27]req_shift_open_date [05:46:27]req_shift_open_date done [05:46:27]produce_requested_data done [05:46:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156126,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [05:46:27]process_action_free close_receipt [05:46:27]json_value_free [05:46:27]json_value_free done [05:46:27]process_json_proto returns [05:46:27]Send response to host [05:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156126,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [05:46:27]free response buf [05:46:27]execute_script done [05:46:27]execute_script returns [05:46:27]free content buf [05:46:27]Sock 7.Close socket [05:46:27]Sock 7.Thread stoped [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]accept exits with 9 [05:46:52]New connection [05:46:52]New thread 3066469732 created [05:46:52]Thread 3066613092 joined [05:46:52]Waiting for new connection... [05:46:52] Sock 9.Parse request [05:46:52]Sock 9.Check first char [05:46:52]Sock 9.First char is OK [05:46:52]request: POST /json_proto HTTP/1.0 [05:46:52]Method: POST [05:46:52]URL: /json_proto [05:46:52]Method is POST - this is cgi request [05:46:52]url: /json_proto [05:46:52]query_string will be loaded in cgi processing [05:46:52]execute_cgi json_proto POST (null) [05:46:52]execute_cgi path=json_proto method=POST [05:46:52]POST find Content-Length [05:46:52]Host: 172.17.63.3:8080 [05:46:52]Content-Length: 676 [05:46:52]Content-Type: application/json [05:46:52] [05:46:52]POST finish read [05:46:52]Found Content-Length = 676 [05:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:52]execute_script... [05:46:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:52]POST & json_proto [05:46:52]process_json_proto [05:46:52]json parsed OK: [05:46:52]protocol is kg_v1.0 [05:46:52]action value=close_receipt [05:46:52]process_action close_receipt [05:46:52]cmd_close_receipt [05:46:52]MH_GetDate [05:46:52]Write to MH i2c: F0 00 00 29 0F 27 [05:46:52]Write i2c OK [05:46:52]MH_I2C_Read... [05:46:52]Read from MH i2c: F0 [05:46:52]MH_I2C_Read... [05:46:52]Read from MH i2c: F0 09 00 [05:46:52]MH_I2C_Read... [05:46:52]Read from MH i2c: F0 09 00 29 0F 00 4E 82 1C 67 50 D1 6C 64 74 [05:46:52]GetLastDocTimeStamp 1729921587 [05:46:52]current date 1729921614 [05:46:52]FM_GetShiftState [05:46:52]SAM_PROTO_GetShiftState [05:46:52]wFMCommunicate request_size=4 [05:46:52]MH_SAM_APDU [05:46:52]CAPDU: 80 13 01 00 [05:46:52]Write to MH i2c: E2 08 00 2A 0F 80 13 01 00 00 00 00 00 B6 [05:46:52]Write i2c OK [05:46:52]MH_I2C_Read... [05:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:52]Read from MH i2c: E2 [05:46:52]MH_I2C_Read... [05:46:52]Read from MH i2c: E2 0E 00 [05:46:52]MH_I2C_Read... [05:46:52]Read from MH i2c: E2 0E 00 2A 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 EB [05:46:52]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:46:52]wFMCommunicate OK [05:46:52]SAM_PROTO_GetShiftState done [05:46:52]FM_GetShiftState done [05:46:52]opened in 1729902702 [05:46:52]opened+sec_in_day 1729989102 [05:46:52]quantity*price = 20003 [05:46:52]sum+1 = 20004 [05:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 28 26.10.2024 05:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156127 ФПД: 236409222724702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T054655&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156127&fm=236409222724702&tin=02508201610067®Number=0000000000091693&sum=20000 [05:46:53]StoreToDocumentArchive [05:46:53]shift 536 fd 156127 [05:46:53]save to /storage/0536/doc_00156127 [05:46:53]save last doc name /storage/0536/doc_00156127 to /storage/kkm_last_doc_name [05:46:53]save OK [05:46:53]Clear old archive folders... [05:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:46:53]tlvbuf is B6E555D0 [05:46:53]SAM_PROTO_ClearQueue [05:46:53]wFMCommunicate request_size=4 [05:46:53]MH_SAM_APDU [05:46:53]CAPDU: 80 09 00 00 [05:46:53]Write to MH i2c: E2 08 00 37 0F 80 09 00 00 00 00 00 00 B8 [05:46:53]Write i2c OK [05:46:53]MH_I2C_Read... [05:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:53]Read from MH i2c: E2 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 03 00 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 03 00 37 0F 00 90 00 BA [05:46:53]RAPDU: 90 00 [05:46:53]wFMCommunicate OK [05:46:53]SAM_PROTO_ClearQueue done [05:46:53]KKMCreateOFDPacket [05:46:53]OFDProtocolAddRootSTLVToBuf [05:46:53]FM_MakeSignedData [05:46:53]FM_MakeSignedData [05:46:53]SAM_PROTO_SignData [05:46:53]wFMCommunicate request_size=4 [05:46:53]MH_SAM_APDU [05:46:53]CAPDU: 80 0D 01 02 [05:46:53]Write to MH i2c: E2 08 00 38 0F 80 0D 01 02 00 00 00 00 C0 [05:46:53]Write i2c OK [05:46:53]MH_I2C_Read... [05:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:53]Read from MH i2c: E2 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 03 00 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 03 00 38 0F 00 90 00 BB [05:46:53]RAPDU: 90 00 [05:46:53]wFMCommunicate OK [05:46:53]wFMCommunicate request_size=255 [05:46:53]MH_SAM_APDU [05:46:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4F 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 61 02 00 35 04 06 00 D7 [05:46:53]Write to MH i2c: E2 02 01 39 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4F 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 61 02 00 35 04 06 00 D7 00 00 B9 [05:46:53]Write i2c OK [05:46:53]MH_I2C_Read... [05:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:53]Read from MH i2c: E2 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 03 00 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 03 00 39 0F 00 90 00 BC [05:46:53]RAPDU: 90 00 [05:46:53]wFMCommunicate OK [05:46:53]wFMCommunicate request_size=10 [05:46:53]MH_SAM_APDU [05:46:53]CAPDU: 80 0D 02 02 05 03 4F BD FC 5E [05:46:53]Write to MH i2c: E2 0D 00 3A 0F 80 0D 02 02 05 00 03 4F BD FC 5E 00 00 36 [05:46:53]Write i2c OK [05:46:53]MH_I2C_Read... [05:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:53]Read from MH i2c: E2 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 03 00 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 03 00 3A 0F 00 90 00 BD [05:46:53]RAPDU: 90 00 [05:46:53]wFMCommunicate OK [05:46:53]wFMCommunicate request_size=4 [05:46:53]MH_SAM_APDU [05:46:53]CAPDU: 80 0D 03 02 [05:46:53]Write to MH i2c: E2 08 00 3B 0F 80 0D 03 02 00 00 00 00 C5 [05:46:53]Write i2c OK [05:46:53]MH_I2C_Read... [05:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:53]Read from MH i2c: E2 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 0B 00 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 0B 00 3B 0F 00 0D 93 58 25 B0 E2 B6 F9 90 00 24 [05:46:53]RAPDU: 0D 93 58 25 B0 E2 B6 F9 90 00 [05:46:53]wFMCommunicate OK [05:46:53]SAM_PROTO_SignData done [05:46:53]FM_MakeSignedData done [05:46:53]CreateOFDProtocolMessage [05:46:53]wFMCommunicate request_size=4 [05:46:53]MH_SAM_APDU [05:46:53]CAPDU: 80 11 00 00 [05:46:53]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [05:46:53]Write i2c OK [05:46:53]MH_I2C_Read... [05:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:53]Read from MH i2c: E2 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: E2 17 00 [05:46:53]MH_I2C_Read... [05:46:53]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 31 37 39 32 90 00 1A [05:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:46:53]wFMCommunicate OK [05:46:53]CreateOFDProtocolMessage done [05:46:53]OFDSenderStorePacket 156127 [05:46:53]StoreOFDPacket docnum=156127 [05:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 52 07 01 39 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4F 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 61 02 00 35 04 06 00 D7 03 4F BD FC 5E 0D 93 58 25 B0 E2 B6 F9 [05:46:53]CheckFolder [05:46:53]dirname=/storage/ofd_packets [05:46:53]CheckFolder done [05:46:53]ProducePacketName [05:46:53]name=ofd_packets/00156127 [05:46:53]NVStorageSaveData ofd_packets/00156127 [05:46:53]File name is /storage/ofd_packets/00156127 [05:46:53]Write 301 bytes [05:46:53]NVStorageSaveData done [05:46:53]OFDSenderStorePacket done [05:46:53]KKMCreateOFDPacket done [05:46:53]NVStorageSaveData kkm_last_timestamp [05:46:53]File name is /storage/kkm_last_timestamp [05:46:53]Write 4 bytes [05:46:53]NVStorageSaveData done [05:46:53]ExternCall_PrintAddStr [05:46:53]wPrintStart [05:46:53]Write to MH i2c: 01 00 00 3D 0F 4C [05:46:53]Write i2c OK [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: 01 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: 01 07 00 [05:46:53]MH_I2C_Read... [05:46:53]Read from MH i2c: 01 07 00 3D 0F 00 00 00 00 00 FF 0F 61 [05:46:53]RasterBufferAndPrint [05:46:53]line Счет N : (1)98941 [05:46:53]line ИНН: 02508201610067 [05:46:53]line Контрольно-Кассовый Чек [05:46:53]line ПРОДАЖА [05:46:53]line ТРК (МРК, ГНК) : 11 [05:46:53]line Товар: 2710124130 [05:46:53]line Аи-92-К-5 [05:46:53]line 2.990 * 66.90 [05:46:53]line = 200.03 [05:46:53]line НДС 12% НСП 1% [05:46:53]line > о реализуемом товаре [05:46:53]line ОКРУГЛЕНИЕ: -0.03 [05:46:53]line ИТОГО: 200.00 [05:46:53]line Внесено: 200.00 [05:46:53]line СДАЧА: 0.00 [05:46:53]line НСП 1% : 1.77 [05:46:53]line НДС 12% : 21.24 [05:46:53]line Наличными: 200.00 [05:46:53]line Безнал.: 0.00 [05:46:53]line Место: АЗС № 143 "Партнер Нефть" [05:46:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [05:46:53]line СНО: Общий режим [05:46:53]line Чек 28 26.10.2024 05:46 [05:46:53]line Смена: 536 ФФД: 1.0 [05:46:53]line ЗНМ: 0300000096 [05:46:53]line РНМ: 0000000000091693 [05:46:53]line Версия ККМ: 001 [05:46:53]line ФМ: 0000000000871792 [05:46:53]line ФД: 156127 [05:46:53]line ФПД: 236409222724702 [05:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T054655&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156127&fm=236409222724702&tin=02508201610067®Number=0000000000091693&sum=20000 [05:46:54]OFD Sender: Processing packet 156127 [packets to send 31, broken 30] [05:46:54]ProducePacketName [05:46:54]name=ofd_packets/00156127 [05:46:54]OFD Sender: To server: pG, [05:46:54]CommunicateWithHost lk.salyk.kg:30040 [05:46:54]ConnectInit lk.salyk.kg [05:46:54]written 0, free lines is 4095 [05:46:54]Connected sock=10 [05:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 52 07 01 39 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4F 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 61 02 00 35 04 06 00 D7 03 4F BD FC 5E 0D 93 58 25 B0 E2 B6 F9 [05:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 30 4A 47 00 1C 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 31 37 39 32 10 04 04 00 DF 61 02 00 F4 03 04 00 C2 27 1C 67 B6 04 01 00 00 0A 37 4B 5D 74 D4 65 C8 [05:46:54]CommunicateWithHost err = 0 [05:46:54]CheckOFDResponse [05:46:54]1017 (14) - 77093643461234 [05:46:54]1041 (16) - 0000000000871792 [05:46:54]1040 (4) - 156127 [05:46:54]1012 (4) - 25.10.2024 23:20 [05:46:54]1206 (1) - 0 [05:46:54]OFD Sender: Remove packet 156127 [05:46:54]ProducePacketName [05:46:54]name=ofd_packets/00156127 [05:46:54]NVStorageDeleteData [05:46:54]Write to MH i2c: 01 00 00 68 0F 77 [05:46:54]Write i2c OK [05:46:54]MH_I2C_Read... [05:46:54]Read from MH i2c: 01 [05:46:54]MH_I2C_Read... [05:46:54]Read from MH i2c: 01 07 00 [05:46:54]MH_I2C_Read... [05:46:54]Read from MH i2c: 01 07 00 68 0F 00 00 00 00 00 D9 0C 63 [05:46:54]RasterBufferAndPrint [05:46:54]line [05:46:54]line [05:46:54]line [05:46:54]line [05:46:54]line [05:46:54]written 0, free lines is 3296 [05:46:54]process_action close_receipt done [05:46:54]requested_data is exist [05:46:54]produce_requested_data [05:46:54]requested_item fm.sn is exist - process it [05:46:54]wFMCommunicate request_size=4 [05:46:54]MH_SAM_APDU [05:46:54]CAPDU: 80 11 00 00 [05:46:54]Write to MH i2c: E2 08 00 6F 0F 80 11 00 00 00 00 00 00 F8 [05:46:54]Write i2c OK [05:46:54]MH_I2C_Read... [05:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:54]Read from MH i2c: E2 [05:46:54]MH_I2C_Read... [05:46:54]Read from MH i2c: E2 17 00 [05:46:54]MH_I2C_Read... [05:46:54]Read from MH i2c: E2 17 00 6F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4D [05:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:46:54]wFMCommunicate OK [05:46:54]requested_item fd.num is exist - process it [05:46:54]SAM_PROTO_GetFieldsCounters [05:46:54]wFMCommunicate request_size=4 [05:46:54]MH_SAM_APDU [05:46:54]CAPDU: 80 13 00 00 [05:46:54]Write to MH i2c: E2 08 00 70 0F 80 13 00 00 00 00 00 00 FB [05:46:54]Write i2c OK [05:46:54]MH_I2C_Read... [05:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:54]Read from MH i2c: E2 [05:46:54]MH_I2C_Read... [05:46:54]Read from MH i2c: E2 62 00 [05:46:54]MH_I2C_Read... [05:46:54]Read from MH i2c: E2 62 00 70 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 61 02 00 0E 04 04 00 18 02 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 D1 [05:46: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 61 02 00 0E 04 04 00 18 02 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 [05:46:54]wFMCommunicate OK [05:46:54]SAM_PROTO_GetFieldsCounters done [05:46:54]requested_item shift.num is exist - process it [05:46:54]requested_item shift.opened is exist - process it [05:46:54]req_shift_opened [05:46:54]FM_GetShiftState [05:46:54]SAM_PROTO_GetShiftState [05:46:54]wFMCommunicate request_size=4 [05:46:54]MH_SAM_APDU [05:46:54]CAPDU: 80 13 01 00 [05:46:54]Write to MH i2c: E2 08 00 71 0F 80 13 01 00 00 00 00 00 FD [05:46:54]Write i2c OK [05:46:54]MH_I2C_Read... [05:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:55]Read from MH i2c: E2 [05:46:55]MH_I2C_Read... [05:46:55]Read from MH i2c: E2 0E 00 [05:46:55]MH_I2C_Read... [05:46:55]Read from MH i2c: E2 0E 00 71 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 32 [05:46:55]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:46:55]wFMCommunicate OK [05:46:55]SAM_PROTO_GetShiftState done [05:46:55]FM_GetShiftState done [05:46:55]req_shift_opened done [05:46:55]requested_item shift.open_date is exist - process it [05:46:55]req_shift_open_date [05:46:55]req_shift_open_date done [05:46:55]produce_requested_data done [05:46:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156127,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [05:46:55]process_action_free close_receipt [05:46:55]json_value_free [05:46:55]json_value_free done [05:46:55]process_json_proto returns [05:46:55]Send response to host [05:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156127,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [05:46:55]free response buf [05:46:55]execute_script done [05:46:55]execute_script returns [05:46:55]free content buf [05:46:55]Sock 9.Close socket [05:46:55]Sock 9.Thread stoped [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:24]accept exits with 7 [05:48:24]New connection [05:48:24]New thread 3066613092 created [05:48:24]Thread 3066469732 joined [05:48:24]Waiting for new connection... [05:48:24] Sock 7.Parse request [05:48:24]Sock 7.Check first char [05:48:24]Sock 7.First char is OK [05:48:24]request: POST /json_proto HTTP/1.0 [05:48:24]Method: POST [05:48:24]URL: /json_proto [05:48:24]Method is POST - this is cgi request [05:48:24]url: /json_proto [05:48:24]query_string will be loaded in cgi processing [05:48:24]execute_cgi json_proto POST (null) [05:48:24]execute_cgi path=json_proto method=POST [05:48:24]POST find Content-Length [05:48:24]Host: 172.17.63.3:8080 [05:48:24]Content-Length: 678 [05:48:24]Content-Type: application/json [05:48:24] [05:48:24]POST finish read [05:48:24]Found Content-Length = 678 [05:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.290, "sum" : 1469.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1469.00, "payments": [ { "type": 0, "sum" : 1469.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:48:24]execute_script... [05:48:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.290, "sum" : 1469.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1469.00, "payments": [ { "type": 0, "sum" : 1469.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:48:24]POST & json_proto [05:48:24]process_json_proto [05:48:24]json parsed OK: [05:48:24]protocol is kg_v1.0 [05:48:24]action value=close_receipt [05:48:24]process_action close_receipt [05:48:24]cmd_close_receipt [05:48:24]MH_GetDate [05:48:24]Write to MH i2c: F0 00 00 72 0F 70 [05:48:24]Write i2c OK [05:48:24]MH_I2C_Read... [05:48:24]Read from MH i2c: F0 [05:48:24]MH_I2C_Read... [05:48:24]Read from MH i2c: F0 09 00 [05:48:24]MH_I2C_Read... [05:48:24]Read from MH i2c: F0 09 00 72 0F 00 AB 82 1C 67 50 D1 6C 64 1A [05:48:24]GetLastDocTimeStamp 1729921615 [05:48:24]current date 1729921707 [05:48:24]FM_GetShiftState [05:48:24]SAM_PROTO_GetShiftState [05:48:24]wFMCommunicate request_size=4 [05:48:24]MH_SAM_APDU [05:48:24]CAPDU: 80 13 01 00 [05:48:24]Write to MH i2c: E2 08 00 73 0F 80 13 01 00 00 00 00 00 FF [05:48:24]Write i2c OK [05:48:24]MH_I2C_Read... [05:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:24]Read from MH i2c: E2 [05:48:24]MH_I2C_Read... [05:48:24]Read from MH i2c: E2 0E 00 [05:48:24]MH_I2C_Read... [05:48:24]Read from MH i2c: E2 0E 00 73 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 34 [05:48:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:48:24]wFMCommunicate OK [05:48:24]SAM_PROTO_GetShiftState done [05:48:24]FM_GetShiftState done [05:48:24]opened in 1729902702 [05:48:24]opened+sec_in_day 1729989102 [05:48:24]quantity*price = 146989 [05:48:24]sum+1 = 146991 [05:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 1469.00 Внесено: 1500.00 СДАЧА: 31.00 НСП 1% : 13.01 НДС 12% : 156.10 Наличными: 1469.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 29 26.10.2024 05:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156128 ФПД: 273611005377957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T054827&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156128&fm=273611005377957&tin=02508201610067®Number=0000000000091693&sum=146900 [05:48:26]StoreToDocumentArchive [05:48:26]shift 536 fd 156128 [05:48:26]save to /storage/0536/doc_00156128 [05:48:26]save last doc name /storage/0536/doc_00156128 to /storage/kkm_last_doc_name [05:48:26]save OK [05:48:26]Clear old archive folders... [05:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:48:26]tlvbuf is 00D09520 [05:48:26]SAM_PROTO_ClearQueue [05:48:26]wFMCommunicate request_size=4 [05:48:26]MH_SAM_APDU [05:48:26]CAPDU: 80 09 00 00 [05:48:26]Write to MH i2c: E2 08 00 80 0F 80 09 00 00 00 00 00 00 01 [05:48:26]Write i2c OK [05:48:26]MH_I2C_Read... [05:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:48:26]Read from MH i2c: E2 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 03 00 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 03 00 80 0F 00 90 00 03 [05:48:26]RAPDU: 90 00 [05:48:26]wFMCommunicate OK [05:48:26]SAM_PROTO_ClearQueue done [05:48:26]KKMCreateOFDPacket [05:48:26]OFDProtocolAddRootSTLVToBuf [05:48:26]FM_MakeSignedData [05:48:26]FM_MakeSignedData [05:48:26]SAM_PROTO_SignData [05:48:26]wFMCommunicate request_size=4 [05:48:26]MH_SAM_APDU [05:48:26]CAPDU: 80 0D 01 02 [05:48:26]Write to MH i2c: E2 08 00 81 0F 80 0D 01 02 00 00 00 00 09 [05:48:26]Write i2c OK [05:48:26]MH_I2C_Read... [05:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:48:26]Read from MH i2c: E2 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 03 00 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 03 00 81 0F 00 90 00 04 [05:48:26]RAPDU: 90 00 [05:48:26]wFMCommunicate OK [05:48:26]wFMCommunicate request_size=255 [05:48:26]MH_SAM_APDU [05:48:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 3C 00 00 00 00 07 04 06 00 D4 3D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 AB 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 61 02 00 35 04 06 00 F8 D9 06 C8 [05:48:26]Write to MH i2c: E2 02 01 82 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 3C 00 00 00 00 07 04 06 00 D4 3D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 AB 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 61 02 00 35 04 06 00 F8 D9 06 C8 00 00 9E [05:48:26]Write i2c OK [05:48:26]MH_I2C_Read... [05:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:48:26]Read from MH i2c: E2 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 03 00 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 03 00 82 0F 00 90 00 05 [05:48:26]RAPDU: 90 00 [05:48:26]wFMCommunicate OK [05:48:26]wFMCommunicate request_size=7 [05:48:26]MH_SAM_APDU [05:48:26]CAPDU: 80 0D 02 02 02 3D A5 [05:48:26]Write to MH i2c: E2 0A 00 83 0F 80 0D 02 02 02 00 3D A5 00 00 F2 [05:48:26]Write i2c OK [05:48:26]MH_I2C_Read... [05:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:48:26]Read from MH i2c: E2 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 03 00 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 03 00 83 0F 00 90 00 06 [05:48:26]RAPDU: 90 00 [05:48:26]wFMCommunicate OK [05:48:26]wFMCommunicate request_size=4 [05:48:26]MH_SAM_APDU [05:48:26]CAPDU: 80 0D 03 02 [05:48:26]Write to MH i2c: E2 08 00 84 0F 80 0D 03 02 00 00 00 00 0E [05:48:26]Write i2c OK [05:48:26]MH_I2C_Read... [05:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:48:26]Read from MH i2c: E2 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 0B 00 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 0B 00 84 0F 00 25 BE 16 1B E7 EE F2 8B 90 00 75 [05:48:26]RAPDU: 25 BE 16 1B E7 EE F2 8B 90 00 [05:48:26]wFMCommunicate OK [05:48:26]SAM_PROTO_SignData done [05:48:26]FM_MakeSignedData done [05:48:26]CreateOFDProtocolMessage [05:48:26]wFMCommunicate request_size=4 [05:48:26]MH_SAM_APDU [05:48:26]CAPDU: 80 11 00 00 [05:48:26]Write to MH i2c: E2 08 00 85 0F 80 11 00 00 00 00 00 00 0E [05:48:26]Write i2c OK [05:48:26]MH_I2C_Read... [05:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:26]Read from MH i2c: E2 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: E2 17 00 [05:48:26]MH_I2C_Read... [05:48:26]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 31 37 39 32 90 00 63 [05:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:48:26]wFMCommunicate OK [05:48:26]CreateOFDProtocolMessage done [05:48:26]OFDSenderStorePacket 156128 [05:48:26]StoreOFDPacket docnum=156128 [05:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C0 BC 04 01 CD 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 3C 00 00 00 00 07 04 06 00 D4 3D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 AB 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 61 02 00 35 04 06 00 F8 D9 06 C8 3D A5 25 BE 16 1B E7 EE F2 8B [05:48:26]CheckFolder [05:48:26]dirname=/storage/ofd_packets [05:48:26]CheckFolder done [05:48:26]ProducePacketName [05:48:26]name=ofd_packets/00156128 [05:48:26]NVStorageSaveData ofd_packets/00156128 [05:48:26]File name is /storage/ofd_packets/00156128 [05:48:26]Write 298 bytes [05:48:26]NVStorageSaveData done [05:48:26]OFDSenderStorePacket done [05:48:26]KKMCreateOFDPacket done [05:48:26]NVStorageSaveData kkm_last_timestamp [05:48:26]File name is /storage/kkm_last_timestamp [05:48:26]Write 4 bytes [05:48:26]NVStorageSaveData done [05:48:26]ExternCall_PrintAddStr [05:48:26]wPrintStart [05:48:26]Write to MH i2c: 01 00 00 86 0F 95 [05:48:26]Write i2c OK [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: 01 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: 01 07 00 [05:48:26]MH_I2C_Read... [05:48:26]Read from MH i2c: 01 07 00 86 0F 00 00 00 00 00 FF 0F AA [05:48:26]RasterBufferAndPrint [05:48:26]line Счет N : (1)98942 [05:48:26]line ИНН: 02508201610067 [05:48:26]line Контрольно-Кассовый Чек [05:48:26]line ПРОДАЖА [05:48:26]line ТРК (МРК, ГНК) : 32 [05:48:26]line Товар: 2710194210 [05:48:26]line ДТ-К-5 [05:48:26]line 19.290 * 76.20 [05:48:26]line = 1469.90 [05:48:26]line НДС 12% НСП 1% [05:48:26]line > о реализуемом товаре [05:48:26]line ОКРУГЛЕНИЕ: -0.90 [05:48:26]line ИТОГО: 1469.00 [05:48:26]line Внесено: 1500.00 [05:48:26]line СДАЧА: 31.00 [05:48:26]line НСП 1% : 13.01 [05:48:26]line НДС 12% : 156.10 [05:48:26]line Наличными: 1469.00 [05:48:26]line Безнал.: 0.00 [05:48:26]line Место: АЗС № 143 "Партнер Нефть" [05:48:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [05:48:26]line СНО: Общий режим [05:48:26]line Чек 29 26.10.2024 05:48 [05:48:26]line Смена: 536 ФФД: 1.0 [05:48:26]line ЗНМ: 0300000096 [05:48:26]line РНМ: 0000000000091693 [05:48:26]line Версия ККМ: 001 [05:48:26]line ФМ: 0000000000871792 [05:48:26]line ФД: 156128 [05:48:26]line ФПД: 273611005377957 [05:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T054827&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156128&fm=273611005377957&tin=02508201610067®Number=0000000000091693&sum=146900 [05:48:26]OFD Sender: Processing packet 156128 [packets to send 31, broken 30] [05:48:26]ProducePacketName [05:48:26]name=ofd_packets/00156128 [05:48:26]OFD Sender: To server: pG, [05:48:26]CommunicateWithHost lk.salyk.kg:30040 [05:48:26]ConnectInit lk.salyk.kg [05:48:26]written 0, free lines is 4095 [05:48:27]Connected sock=11 [05:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C0 BC 04 01 CD 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 3C 00 00 00 00 07 04 06 00 D4 3D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 AB 82 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 61 02 00 35 04 06 00 F8 D9 06 C8 3D A5 25 BE 16 1B E7 EE F2 8B [05:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7E CE 47 00 77 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 31 37 39 32 10 04 04 00 E0 61 02 00 F4 03 04 00 1F 28 1C 67 B6 04 01 00 00 0C 47 03 5C 09 8F B2 9D [05:48:27]CommunicateWithHost err = 0 [05:48:27]CheckOFDResponse [05:48:27]1017 (14) - 77093643461234 [05:48:27]1041 (16) - 0000000000871792 [05:48:27]1040 (4) - 156128 [05:48:27]1012 (4) - 25.10.2024 23:22 [05:48:27]1206 (1) - 0 [05:48:27]OFD Sender: Remove packet 156128 [05:48:27]ProducePacketName [05:48:27]name=ofd_packets/00156128 [05:48:27]NVStorageDeleteData [05:48:27]Write to MH i2c: 01 00 00 B1 0F C0 [05:48:27]Write i2c OK [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: 01 [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: 01 07 00 [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: 01 07 00 B1 0F 00 00 00 00 00 EE 0C C1 [05:48:27]RasterBufferAndPrint [05:48:27]line [05:48:27]line [05:48:27]line [05:48:27]line [05:48:27]line [05:48:27]written 0, free lines is 3316 [05:48:27]process_action close_receipt done [05:48:27]requested_data is exist [05:48:27]produce_requested_data [05:48:27]requested_item fm.sn is exist - process it [05:48:27]wFMCommunicate request_size=4 [05:48:27]MH_SAM_APDU [05:48:27]CAPDU: 80 11 00 00 [05:48:27]Write to MH i2c: E2 08 00 B8 0F 80 11 00 00 00 00 00 00 41 [05:48:27]Write i2c OK [05:48:27]MH_I2C_Read... [05:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:27]Read from MH i2c: E2 [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: E2 17 00 [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: E2 17 00 B8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 96 [05:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:48:27]wFMCommunicate OK [05:48:27]requested_item fd.num is exist - process it [05:48:27]SAM_PROTO_GetFieldsCounters [05:48:27]wFMCommunicate request_size=4 [05:48:27]MH_SAM_APDU [05:48:27]CAPDU: 80 13 00 00 [05:48:27]Write to MH i2c: E2 08 00 B9 0F 80 13 00 00 00 00 00 00 44 [05:48:27]Write i2c OK [05:48:27]MH_I2C_Read... [05:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:48:27]Read from MH i2c: E2 [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: E2 62 00 [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: E2 62 00 B9 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 61 02 00 0E 04 04 00 18 02 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 1E [05:48: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 61 02 00 0E 04 04 00 18 02 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 [05:48:27]wFMCommunicate OK [05:48:27]SAM_PROTO_GetFieldsCounters done [05:48:27]requested_item shift.num is exist - process it [05:48:27]requested_item shift.opened is exist - process it [05:48:27]req_shift_opened [05:48:27]FM_GetShiftState [05:48:27]SAM_PROTO_GetShiftState [05:48:27]wFMCommunicate request_size=4 [05:48:27]MH_SAM_APDU [05:48:27]CAPDU: 80 13 01 00 [05:48:27]Write to MH i2c: E2 08 00 BA 0F 80 13 01 00 00 00 00 00 46 [05:48:27]Write i2c OK [05:48:27]MH_I2C_Read... [05:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:27]Read from MH i2c: E2 [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: E2 0E 00 [05:48:27]MH_I2C_Read... [05:48:27]Read from MH i2c: E2 0E 00 BA 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 7B [05:48:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [05:48:27]wFMCommunicate OK [05:48:27]SAM_PROTO_GetShiftState done [05:48:27]FM_GetShiftState done [05:48:27]req_shift_opened done [05:48:27]requested_item shift.open_date is exist - process it [05:48:27]req_shift_open_date [05:48:27]req_shift_open_date done [05:48:27]produce_requested_data done [05:48:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156128,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [05:48:27]process_action_free close_receipt [05:48:27]json_value_free [05:48:27]json_value_free done [05:48:27]process_json_proto returns [05:48:27]Send response to host [05:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156128,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [05:48:27]free response buf [05:48:27]execute_script done [05:48:27]execute_script returns [05:48:27]free content buf [05:48:27]Sock 7.Close socket [05:48:27]Sock 7.Thread stoped [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:56]int [05:48:56]Write to MH i2c: 01 00 00 BB 0F CA [05:48:56]*** FLAG_PRN_KEY set [05:48:56]Write i2c OK [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: 01 [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: 01 07 00 [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: 01 07 00 BB 0F 00 08 00 00 00 FF 0F E7 [05:48:56]state=0 [05:48:56]Key pressed [05:48:56]Feed [05:48:56]Write to MH i2c: D8 00 00 BC 0F A2 [05:48:56]Write i2c OK [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: D8 [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: D8 01 00 [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: D8 01 00 BC 0F 00 A3 [05:48:56]int [05:48:56]Write to MH i2c: 01 00 00 BD 0F CC [05:48:56]Write i2c OK [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: 01 [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: 01 07 00 [05:48:56]MH_I2C_Read... [05:48:56]Read from MH i2c: 01 07 00 BD 0F 00 48 00 00 00 3D 00 58 [05:48:56]state=2 [05:48:56]Key pressed [05:48:57]int [05:48:57]Write to MH i2c: 01 00 00 BE 0F CD [05:48:57]*** FLAG_PRN_KEY reset [05:48:57]Write i2c OK [05:48:57]MH_I2C_Read... [05:48:57]Read from MH i2c: 01 [05:48:57]MH_I2C_Read... [05:48:57]Read from MH i2c: 01 07 00 [05:48:57]MH_I2C_Read... [05:48:57]Read from MH i2c: 01 07 00 BE 0F 00 00 00 00 00 F6 0F D9 [05:48:57]state=2 [05:48:57]Stop feed [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:09]accept exits with 9 [06:35:09]New connection [06:35:09]New thread 3066469732 created [06:35:09]Thread 3066613092 joined [06:35:09]Waiting for new connection... [06:35:09] Sock 9.Parse request [06:35:09]Sock 9.Check first char [06:35:09]Sock 9.First char is OK [06:35:09]request: POST /json_proto HTTP/1.0 [06:35:09]Method: POST [06:35:09]URL: /json_proto [06:35:09]Method is POST - this is cgi request [06:35:09]url: /json_proto [06:35:09]query_string will be loaded in cgi processing [06:35:09]execute_cgi json_proto POST (null) [06:35:09]execute_cgi path=json_proto method=POST [06:35:09]POST find Content-Length [06:35:09]Host: 172.17.63.3:8080 [06:35:09]Content-Length: 678 [06:35:09]Content-Type: application/json [06:35:09] [06:35:09]POST finish read [06:35:09]Found Content-Length = 678 [06:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:09]execute_script... [06:35:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:09]POST & json_proto [06:35:09]process_json_proto [06:35:09]json parsed OK: [06:35:09]protocol is kg_v1.0 [06:35:09]action value=close_receipt [06:35:09]process_action close_receipt [06:35:09]cmd_close_receipt [06:35:09]MH_GetDate [06:35:09]Write to MH i2c: F0 00 00 BF 0F BD [06:35:09]Write i2c OK [06:35:09]MH_I2C_Read... [06:35:09]Read from MH i2c: F0 [06:35:09]MH_I2C_Read... [06:35:09]Read from MH i2c: F0 09 00 [06:35:09]MH_I2C_Read... [06:35:09]Read from MH i2c: F0 09 00 BF 0F 00 A0 8D 1C 67 50 D1 6C 64 67 [06:35:09]GetLastDocTimeStamp 1729921707 [06:35:09]current date 1729924512 [06:35:09]FM_GetShiftState [06:35:09]SAM_PROTO_GetShiftState [06:35:09]wFMCommunicate request_size=4 [06:35:09]MH_SAM_APDU [06:35:09]CAPDU: 80 13 01 00 [06:35:09]Write to MH i2c: E2 08 00 C0 0F 80 13 01 00 00 00 00 00 4C [06:35:09]Write i2c OK [06:35:09]MH_I2C_Read... [06:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:10]Read from MH i2c: E2 [06:35:10]MH_I2C_Read... [06:35:10]Read from MH i2c: E2 0E 00 [06:35:10]MH_I2C_Read... [06:35:10]Read from MH i2c: E2 0E 00 C0 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 81 [06:35:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [06:35:10]wFMCommunicate OK [06:35:10]SAM_PROTO_GetShiftState done [06:35:10]FM_GetShiftState done [06:35:10]opened in 1729902702 [06:35:10]opened+sec_in_day 1729989102 [06:35:10]quantity*price = 400050 [06:35:10]sum+1 = 400051 [06:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 30 26.10.2024 06:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156129 ФПД: 109666267290410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T063512&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156129&fm=109666267290410&tin=02508201610067®Number=0000000000091693&sum=400000 [06:35:10]StoreToDocumentArchive [06:35:10]shift 536 fd 156129 [06:35:10]save to /storage/0536/doc_00156129 [06:35:10]save last doc name /storage/0536/doc_00156129 to /storage/kkm_last_doc_name [06:35:10]save OK [06:35:10]Clear old archive folders... [06:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:35:10]tlvbuf is 00D08BF0 [06:35:10]SAM_PROTO_ClearQueue [06:35:10]wFMCommunicate request_size=4 [06:35:10]MH_SAM_APDU [06:35:10]CAPDU: 80 09 00 00 [06:35:10]Write to MH i2c: E2 08 00 CD 0F 80 09 00 00 00 00 00 00 4E [06:35:10]Write i2c OK [06:35:10]MH_I2C_Read... [06:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:10]Read from MH i2c: E2 [06:35:10]MH_I2C_Read... [06:35:10]Read from MH i2c: E2 03 00 [06:35:10]MH_I2C_Read... [06:35:10]Read from MH i2c: E2 03 00 CD 0F 00 90 00 50 [06:35:10]RAPDU: 90 00 [06:35:10]wFMCommunicate OK [06:35:10]SAM_PROTO_ClearQueue done [06:35:10]KKMCreateOFDPacket [06:35:10]OFDProtocolAddRootSTLVToBuf [06:35:10]FM_MakeSignedData [06:35:10]FM_MakeSignedData [06:35:10]SAM_PROTO_SignData [06:35:10]wFMCommunicate request_size=4 [06:35:10]MH_SAM_APDU [06:35:10]CAPDU: 80 0D 01 02 [06:35:10]Write to MH i2c: E2 08 00 CE 0F 80 0D 01 02 00 00 00 00 56 [06:35:10]Write i2c OK [06:35:10]MH_I2C_Read... [06:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:10]Read from MH i2c: E2 [06:35:10]MH_I2C_Read... [06:35:10]Read from MH i2c: E2 03 00 [06:35:10]MH_I2C_Read... [06:35:10]Read from MH i2c: E2 03 00 CE 0F 00 90 00 51 [06:35:10]RAPDU: 90 00 [06:35:10]wFMCommunicate OK [06:35:10]wFMCommunicate request_size=255 [06:35:10]MH_SAM_APDU [06:35:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A0 8D 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 61 02 00 35 04 06 00 63 BD AA E7 [06:35:10]Write to MH i2c: E2 02 01 CF 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A0 8D 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 61 02 00 35 04 06 00 63 BD AA E7 00 00 E2 [06:35:11]Write i2c OK [06:35:11]MH_I2C_Read... [06:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:11]Read from MH i2c: E2 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: E2 03 00 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: E2 03 00 CF 0F 00 90 00 52 [06:35:11]RAPDU: 90 00 [06:35:11]wFMCommunicate OK [06:35:11]wFMCommunicate request_size=7 [06:35:11]MH_SAM_APDU [06:35:11]CAPDU: 80 0D 02 02 02 DB 2A [06:35:11]Write to MH i2c: E2 0A 00 D0 0F 80 0D 02 02 02 00 DB 2A 00 00 62 [06:35:11]Write i2c OK [06:35:11]MH_I2C_Read... [06:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:11]Read from MH i2c: E2 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: E2 03 00 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: E2 03 00 D0 0F 00 90 00 53 [06:35:11]RAPDU: 90 00 [06:35:11]wFMCommunicate OK [06:35:11]wFMCommunicate request_size=4 [06:35:11]MH_SAM_APDU [06:35:11]CAPDU: 80 0D 03 02 [06:35:11]Write to MH i2c: E2 08 00 D1 0F 80 0D 03 02 00 00 00 00 5B [06:35:11]Write i2c OK [06:35:11]MH_I2C_Read... [06:35:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:11]Read from MH i2c: E2 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: E2 0B 00 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: E2 0B 00 D1 0F 00 02 63 BE 24 1D F7 83 E1 90 00 1B [06:35:11]RAPDU: 02 63 BE 24 1D F7 83 E1 90 00 [06:35:11]wFMCommunicate OK [06:35:11]SAM_PROTO_SignData done [06:35:11]FM_MakeSignedData done [06:35:11]CreateOFDProtocolMessage [06:35:11]wFMCommunicate request_size=4 [06:35:11]MH_SAM_APDU [06:35:11]CAPDU: 80 11 00 00 [06:35:11]Write to MH i2c: E2 08 00 D2 0F 80 11 00 00 00 00 00 00 5B [06:35:11]Write i2c OK [06:35:11]MH_I2C_Read... [06:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:11]Read from MH i2c: E2 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: E2 17 00 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: E2 17 00 D2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [06:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:35:11]wFMCommunicate OK [06:35:11]CreateOFDProtocolMessage done [06:35:11]OFDSenderStorePacket 156129 [06:35:11]StoreOFDPacket docnum=156129 [06:35:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 65 2C 04 01 CE 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A0 8D 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 61 02 00 35 04 06 00 63 BD AA E7 DB 2A 02 63 BE 24 1D F7 83 E1 [06:35:11]CheckFolder [06:35:11]dirname=/storage/ofd_packets [06:35:11]CheckFolder done [06:35:11]ProducePacketName [06:35:11]name=ofd_packets/00156129 [06:35:11]NVStorageSaveData ofd_packets/00156129 [06:35:11]File name is /storage/ofd_packets/00156129 [06:35:11]Write 298 bytes [06:35:11]NVStorageSaveData done [06:35:11]OFDSenderStorePacket done [06:35:11]KKMCreateOFDPacket done [06:35:11]NVStorageSaveData kkm_last_timestamp [06:35:11]File name is /storage/kkm_last_timestamp [06:35:11]Write 4 bytes [06:35:11]NVStorageSaveData done [06:35:11]ExternCall_PrintAddStr [06:35:11]wPrintStart [06:35:11]Write to MH i2c: 01 00 00 D3 0F E2 [06:35:11]Write i2c OK [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: 01 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: 01 07 00 [06:35:11]MH_I2C_Read... [06:35:11]Read from MH i2c: 01 07 00 D3 0F 00 00 00 00 00 FF 0F F7 [06:35:11]RasterBufferAndPrint [06:35:11]line Счет N : (1)98943 [06:35:11]line ИНН: 02508201610067 [06:35:11]line Контрольно-Кассовый Чек [06:35:11]line ПРОДАЖА [06:35:11]line ТРК (МРК, ГНК) : 32 [06:35:11]line Товар: 2710194210 [06:35:11]line ДТ-К-5 [06:35:11]line 52.500 * 76.20 [06:35:11]line = 4000.50 [06:35:11]line НДС 12% НСП 1% [06:35:11]line > о реализуемом товаре [06:35:11]line ОКРУГЛЕНИЕ: -0.50 [06:35:11]line ИТОГО: 4000.00 [06:35:11]line Внесено: 4000.00 [06:35:11]line СДАЧА: 0.00 [06:35:11]line НСП 1% : 35.40 [06:35:11]line НДС 12% : 424.83 [06:35:11]line Наличными: 4000.00 [06:35:11]line Безнал.: 0.00 [06:35:11]line Место: АЗС № 143 "Партнер Нефть" [06:35:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [06:35:11]line СНО: Общий режим [06:35:11]line Чек 30 26.10.2024 06:35 [06:35:11]line Смена: 536 ФФД: 1.0 [06:35:11]line ЗНМ: 0300000096 [06:35:11]line РНМ: 0000000000091693 [06:35:11]line Версия ККМ: 001 [06:35:11]line ФМ: 0000000000871792 [06:35:11]line ФД: 156129 [06:35:11]line ФПД: 109666267290410 [06:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T063512&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156129&fm=109666267290410&tin=02508201610067®Number=0000000000091693&sum=400000 [06:35:11]OFD Sender: Processing packet 156129 [packets to send 31, broken 30] [06:35:11]ProducePacketName [06:35:11]name=ofd_packets/00156129 [06:35:11]OFD Sender: To server: pG, [06:35:11]CommunicateWithHost lk.salyk.kg:30040 [06:35:11]ConnectInit lk.salyk.kg [06:35:11]written 0, free lines is 4095 [06:35:11]Connected sock=10 [06:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 65 2C 04 01 CE 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A0 8D 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 61 02 00 35 04 06 00 63 BD AA E7 DB 2A 02 63 BE 24 1D F7 83 E1 [06:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 88 2F 47 00 92 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 31 37 39 32 10 04 04 00 E1 61 02 00 F4 03 04 00 14 33 1C 67 B6 04 01 00 00 2F EF 82 43 EE 0B EA AC [06:35:12]CommunicateWithHost err = 0 [06:35:12]CheckOFDResponse [06:35:12]1017 (14) - 77093643461234 [06:35:12]1041 (16) - 0000000000871792 [06:35:12]1040 (4) - 156129 [06:35:12]1012 (4) - 26.10.2024 00:08 [06:35:12]1206 (1) - 0 [06:35:12]OFD Sender: Remove packet 156129 [06:35:12]ProducePacketName [06:35:12]name=ofd_packets/00156129 [06:35:12]NVStorageDeleteData [06:35:12]Write to MH i2c: 01 00 00 FE 0F 0D [06:35:12]Write i2c OK [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: 01 [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: 01 07 00 [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: 01 07 00 FE 0F 00 00 00 00 00 F5 0C 15 [06:35:12]RasterBufferAndPrint [06:35:12]line [06:35:12]line [06:35:12]line [06:35:12]line [06:35:12]line [06:35:12]written 0, free lines is 3323 [06:35:12]process_action close_receipt done [06:35:12]requested_data is exist [06:35:12]produce_requested_data [06:35:12]requested_item fm.sn is exist - process it [06:35:12]wFMCommunicate request_size=4 [06:35:12]MH_SAM_APDU [06:35:12]CAPDU: 80 11 00 00 [06:35:12]Write to MH i2c: E2 08 00 05 10 80 11 00 00 00 00 00 00 8F [06:35:12]Write i2c OK [06:35:12]MH_I2C_Read... [06:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:12]Read from MH i2c: E2 [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: E2 17 00 [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: E2 17 00 05 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [06:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:35:12]wFMCommunicate OK [06:35:12]requested_item fd.num is exist - process it [06:35:12]SAM_PROTO_GetFieldsCounters [06:35:12]wFMCommunicate request_size=4 [06:35:12]MH_SAM_APDU [06:35:12]CAPDU: 80 13 00 00 [06:35:12]Write to MH i2c: E2 08 00 06 10 80 13 00 00 00 00 00 00 92 [06:35:12]Write i2c OK [06:35:12]MH_I2C_Read... [06:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:12]Read from MH i2c: E2 [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: E2 62 00 [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: E2 62 00 06 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 61 02 00 0E 04 04 00 18 02 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 70 [06:35: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 61 02 00 0E 04 04 00 18 02 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 [06:35:12]wFMCommunicate OK [06:35:12]SAM_PROTO_GetFieldsCounters done [06:35:12]requested_item shift.num is exist - process it [06:35:12]requested_item shift.opened is exist - process it [06:35:12]req_shift_opened [06:35:12]FM_GetShiftState [06:35:12]SAM_PROTO_GetShiftState [06:35:12]wFMCommunicate request_size=4 [06:35:12]MH_SAM_APDU [06:35:12]CAPDU: 80 13 01 00 [06:35:12]Write to MH i2c: E2 08 00 07 10 80 13 01 00 00 00 00 00 94 [06:35:12]Write i2c OK [06:35:12]MH_I2C_Read... [06:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:12]Read from MH i2c: E2 [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: E2 0E 00 [06:35:12]MH_I2C_Read... [06:35:12]Read from MH i2c: E2 0E 00 07 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C9 [06:35:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [06:35:12]wFMCommunicate OK [06:35:12]SAM_PROTO_GetShiftState done [06:35:12]FM_GetShiftState done [06:35:12]req_shift_opened done [06:35:12]requested_item shift.open_date is exist - process it [06:35:12]req_shift_open_date [06:35:12]req_shift_open_date done [06:35:12]produce_requested_data done [06:35:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156129,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [06:35:12]process_action_free close_receipt [06:35:12]json_value_free [06:35:12]json_value_free done [06:35:12]process_json_proto returns [06:35:12]Send response to host [06:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156129,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [06:35:12]free response buf [06:35:12]execute_script done [06:35:12]execute_script returns [06:35:12]free content buf [06:35:12]Sock 9.Close socket [06:35:12]Sock 9.Thread stoped [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:06]accept exits with 7 [06:42:06]New connection [06:42:06]New thread 3066613092 created [06:42:06]Thread 3066469732 joined [06:42:06]Waiting for new connection... [06:42:06] Sock 7.Parse request [06:42:06]Sock 7.Check first char [06:42:06]Sock 7.First char is OK [06:42:06]request: POST /json_proto HTTP/1.0 [06:42:06]Method: POST [06:42:06]URL: /json_proto [06:42:06]Method is POST - this is cgi request [06:42:06]url: /json_proto [06:42:06]query_string will be loaded in cgi processing [06:42:06]execute_cgi json_proto POST (null) [06:42:06]execute_cgi path=json_proto method=POST [06:42:06]POST find Content-Length [06:42:06]Host: 172.17.63.3:8080 [06:42:06]Content-Length: 676 [06:42:06]Content-Type: application/json [06:42:06] [06:42:06]POST finish read [06:42:06]Found Content-Length = 676 [06:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:06]execute_script... [06:42:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:06]POST & json_proto [06:42:06]process_json_proto [06:42:06]json parsed OK: [06:42:06]protocol is kg_v1.0 [06:42:06]action value=close_receipt [06:42:06]process_action close_receipt [06:42:06]cmd_close_receipt [06:42:06]MH_GetDate [06:42:06]Write to MH i2c: F0 00 00 08 10 07 [06:42:06]Write i2c OK [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: F0 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: F0 09 00 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: F0 09 00 08 10 00 41 8F 1C 67 50 D1 6C 64 54 [06:42:06]GetLastDocTimeStamp 1729924512 [06:42:06]current date 1729924929 [06:42:06]FM_GetShiftState [06:42:06]SAM_PROTO_GetShiftState [06:42:06]wFMCommunicate request_size=4 [06:42:06]MH_SAM_APDU [06:42:06]CAPDU: 80 13 01 00 [06:42:06]Write to MH i2c: E2 08 00 09 10 80 13 01 00 00 00 00 00 96 [06:42:06]Write i2c OK [06:42:06]MH_I2C_Read... [06:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:06]Read from MH i2c: E2 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: E2 0E 00 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: E2 0E 00 09 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CB [06:42:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [06:42:06]wFMCommunicate OK [06:42:06]SAM_PROTO_GetShiftState done [06:42:06]FM_GetShiftState done [06:42:06]opened in 1729902702 [06:42:06]opened+sec_in_day 1729989102 [06:42:06]quantity*price = 60009 [06:42:06]sum+1 = 60010 [06:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 31 26.10.2024 06:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156130 ФПД: 246749724808512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T064209&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156130&fm=246749724808512&tin=02508201610067®Number=0000000000091693&sum=60000 [06:42:07]StoreToDocumentArchive [06:42:07]shift 536 fd 156130 [06:42:07]save to /storage/0536/doc_00156130 [06:42:07]save last doc name /storage/0536/doc_00156130 to /storage/kkm_last_doc_name [06:42:07]save OK [06:42:07]Clear old archive folders... [06:42:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:42:07]tlvbuf is 00D2DCB0 [06:42:07]SAM_PROTO_ClearQueue [06:42:07]wFMCommunicate request_size=4 [06:42:07]MH_SAM_APDU [06:42:07]CAPDU: 80 09 00 00 [06:42:07]Write to MH i2c: E2 08 00 16 10 80 09 00 00 00 00 00 00 98 [06:42:07]Write i2c OK [06:42:07]MH_I2C_Read... [06:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:08]Read from MH i2c: E2 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 03 00 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 03 00 16 10 00 90 00 9A [06:42:08]RAPDU: 90 00 [06:42:08]wFMCommunicate OK [06:42:08]SAM_PROTO_ClearQueue done [06:42:08]KKMCreateOFDPacket [06:42:08]OFDProtocolAddRootSTLVToBuf [06:42:08]FM_MakeSignedData [06:42:08]FM_MakeSignedData [06:42:08]SAM_PROTO_SignData [06:42:08]wFMCommunicate request_size=4 [06:42:08]MH_SAM_APDU [06:42:08]CAPDU: 80 0D 01 02 [06:42:08]Write to MH i2c: E2 08 00 17 10 80 0D 01 02 00 00 00 00 A0 [06:42:08]Write i2c OK [06:42:08]MH_I2C_Read... [06:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:08]Read from MH i2c: E2 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 03 00 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 03 00 17 10 00 90 00 9B [06:42:08]RAPDU: 90 00 [06:42:08]wFMCommunicate OK [06:42:08]wFMCommunicate request_size=255 [06:42:08]MH_SAM_APDU [06:42:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 41 8F 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 61 02 00 35 04 06 00 E0 [06:42:08]Write to MH i2c: E2 02 01 18 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 41 8F 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 61 02 00 35 04 06 00 E0 00 00 C2 [06:42:08]Write i2c OK [06:42:08]MH_I2C_Read... [06:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:08]Read from MH i2c: E2 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 03 00 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 03 00 18 10 00 90 00 9C [06:42:08]RAPDU: 90 00 [06:42:08]wFMCommunicate OK [06:42:08]wFMCommunicate request_size=10 [06:42:08]MH_SAM_APDU [06:42:08]CAPDU: 80 0D 02 02 05 6A E5 B2 15 40 [06:42:08]Write to MH i2c: E2 0D 00 19 10 80 0D 02 02 05 00 6A E5 B2 15 40 00 00 03 [06:42:08]Write i2c OK [06:42:08]MH_I2C_Read... [06:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:08]Read from MH i2c: E2 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 03 00 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 03 00 19 10 00 90 00 9D [06:42:08]RAPDU: 90 00 [06:42:08]wFMCommunicate OK [06:42:08]wFMCommunicate request_size=4 [06:42:08]MH_SAM_APDU [06:42:08]CAPDU: 80 0D 03 02 [06:42:08]Write to MH i2c: E2 08 00 1A 10 80 0D 03 02 00 00 00 00 A5 [06:42:08]Write i2c OK [06:42:08]MH_I2C_Read... [06:42:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:08]Read from MH i2c: E2 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 0B 00 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 0B 00 1A 10 00 5A 0F E0 4A E0 4C 27 8E 90 00 1A [06:42:08]RAPDU: 5A 0F E0 4A E0 4C 27 8E 90 00 [06:42:08]wFMCommunicate OK [06:42:08]SAM_PROTO_SignData done [06:42:08]FM_MakeSignedData done [06:42:08]CreateOFDProtocolMessage [06:42:08]wFMCommunicate request_size=4 [06:42:08]MH_SAM_APDU [06:42:08]CAPDU: 80 11 00 00 [06:42:08]Write to MH i2c: E2 08 00 1B 10 80 11 00 00 00 00 00 00 A5 [06:42:08]Write i2c OK [06:42:08]MH_I2C_Read... [06:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:08]Read from MH i2c: E2 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 17 00 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: E2 17 00 1B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [06:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:42:08]wFMCommunicate OK [06:42:08]CreateOFDProtocolMessage done [06:42:08]OFDSenderStorePacket 156130 [06:42:08]StoreOFDPacket docnum=156130 [06:42:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9D 9C 07 01 F7 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 41 8F 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 61 02 00 35 04 06 00 E0 6A E5 B2 15 40 5A 0F E0 4A E0 4C 27 8E [06:42:08]CheckFolder [06:42:08]dirname=/storage/ofd_packets [06:42:08]CheckFolder done [06:42:08]ProducePacketName [06:42:08]name=ofd_packets/00156130 [06:42:08]NVStorageSaveData ofd_packets/00156130 [06:42:08]File name is /storage/ofd_packets/00156130 [06:42:08]Write 301 bytes [06:42:08]NVStorageSaveData done [06:42:08]OFDSenderStorePacket done [06:42:08]KKMCreateOFDPacket done [06:42:08]NVStorageSaveData kkm_last_timestamp [06:42:08]File name is /storage/kkm_last_timestamp [06:42:08]Write 4 bytes [06:42:08]NVStorageSaveData done [06:42:08]ExternCall_PrintAddStr [06:42:08]wPrintStart [06:42:08]Write to MH i2c: 01 00 00 1C 10 2C [06:42:08]Write i2c OK [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: 01 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: 01 07 00 [06:42:08]MH_I2C_Read... [06:42:08]Read from MH i2c: 01 07 00 1C 10 00 00 00 00 00 FF 0F 41 [06:42:08]RasterBufferAndPrint [06:42:08]line Счет N : (1)98944 [06:42:08]line ИНН: 02508201610067 [06:42:08]line Контрольно-Кассовый Чек [06:42:08]line ПРОДАЖА [06:42:08]line ТРК (МРК, ГНК) : 21 [06:42:08]line Товар: 2710124130 [06:42:08]line Аи-92-К-5 [06:42:08]line 8.970 * 66.90 [06:42:08]line = 600.09 [06:42:08]line НДС 12% НСП 1% [06:42:08]line > о реализуемом товаре [06:42:08]line ОКРУГЛЕНИЕ: -0.09 [06:42:08]line ИТОГО: 600.00 [06:42:08]line Внесено: 600.00 [06:42:08]line СДАЧА: 0.00 [06:42:08]line НСП 1% : 5.31 [06:42:08]line НДС 12% : 63.73 [06:42:08]line Наличными: 600.00 [06:42:08]line Безнал.: 0.00 [06:42:08]line Место: АЗС № 143 "Партнер Нефть" [06:42:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [06:42:08]line СНО: Общий режим [06:42:08]line Чек 31 26.10.2024 06:42 [06:42:08]line Смена: 536 ФФД: 1.0 [06:42:08]line ЗНМ: 0300000096 [06:42:08]line РНМ: 0000000000091693 [06:42:08]line Версия ККМ: 001 [06:42:08]line ФМ: 0000000000871792 [06:42:08]line ФД: 156130 [06:42:08]line ФПД: 246749724808512 [06:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T064209&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156130&fm=246749724808512&tin=02508201610067®Number=0000000000091693&sum=60000 [06:42:08]written 0, free lines is 4095 [06:42:08]OFD Sender: Processing packet 156130 [packets to send 31, broken 30] [06:42:08]ProducePacketName [06:42:08]name=ofd_packets/00156130 [06:42:08]OFD Sender: To server: pG, [06:42:08]CommunicateWithHost lk.salyk.kg:30040 [06:42:08]ConnectInit lk.salyk.kg [06:42:08]Connected sock=9 [06:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9D 9C 07 01 F7 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 41 8F 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 61 02 00 35 04 06 00 E0 6A E5 B2 15 40 5A 0F E0 4A E0 4C 27 8E [06:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DA 4E 47 00 3D 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 61 02 00 F4 03 04 00 B4 34 1C 67 B6 04 01 00 00 41 2D D1 BD 62 3C 0E 95 [06:42:08]CommunicateWithHost err = 0 [06:42:08]CheckOFDResponse [06:42:08]1017 (14) - 77093643461234 [06:42:08]1041 (16) - 0000000000871792 [06:42:08]1040 (4) - 156130 [06:42:08]1012 (4) - 26.10.2024 00:15 [06:42:08]1206 (1) - 0 [06:42:08]OFD Sender: Remove packet 156130 [06:42:08]ProducePacketName [06:42:08]name=ofd_packets/00156130 [06:42:08]NVStorageDeleteData [06:42:09]Write to MH i2c: 01 00 00 47 10 57 [06:42:09]Write i2c OK [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: 01 [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: 01 07 00 [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: 01 07 00 47 10 00 00 00 00 00 F1 0C 5B [06:42:09]RasterBufferAndPrint [06:42:09]line [06:42:09]line [06:42:09]line [06:42:09]line [06:42:09]line [06:42:09]written 0, free lines is 3319 [06:42:09]process_action close_receipt done [06:42:09]requested_data is exist [06:42:09]produce_requested_data [06:42:09]requested_item fm.sn is exist - process it [06:42:09]wFMCommunicate request_size=4 [06:42:09]MH_SAM_APDU [06:42:09]CAPDU: 80 11 00 00 [06:42:09]Write to MH i2c: E2 08 00 4E 10 80 11 00 00 00 00 00 00 D8 [06:42:09]Write i2c OK [06:42:09]MH_I2C_Read... [06:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:09]Read from MH i2c: E2 [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: E2 17 00 [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: E2 17 00 4E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2D [06:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:42:09]wFMCommunicate OK [06:42:09]requested_item fd.num is exist - process it [06:42:09]SAM_PROTO_GetFieldsCounters [06:42:09]wFMCommunicate request_size=4 [06:42:09]MH_SAM_APDU [06:42:09]CAPDU: 80 13 00 00 [06:42:09]Write to MH i2c: E2 08 00 4F 10 80 13 00 00 00 00 00 00 DB [06:42:09]Write i2c OK [06:42:09]MH_I2C_Read... [06:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:09]Read from MH i2c: E2 [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: E2 62 00 [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: E2 62 00 4F 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 61 02 00 0E 04 04 00 18 02 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 BD [06:42: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 61 02 00 0E 04 04 00 18 02 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 [06:42:09]wFMCommunicate OK [06:42:09]SAM_PROTO_GetFieldsCounters done [06:42:09]requested_item shift.num is exist - process it [06:42:09]requested_item shift.opened is exist - process it [06:42:09]req_shift_opened [06:42:09]FM_GetShiftState [06:42:09]SAM_PROTO_GetShiftState [06:42:09]wFMCommunicate request_size=4 [06:42:09]MH_SAM_APDU [06:42:09]CAPDU: 80 13 01 00 [06:42:09]Write to MH i2c: E2 08 00 50 10 80 13 01 00 00 00 00 00 DD [06:42:09]Write i2c OK [06:42:09]MH_I2C_Read... [06:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:09]Read from MH i2c: E2 [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: E2 0E 00 [06:42:09]MH_I2C_Read... [06:42:09]Read from MH i2c: E2 0E 00 50 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 12 [06:42:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [06:42:09]wFMCommunicate OK [06:42:09]SAM_PROTO_GetShiftState done [06:42:09]FM_GetShiftState done [06:42:09]req_shift_opened done [06:42:09]requested_item shift.open_date is exist - process it [06:42:09]req_shift_open_date [06:42:09]req_shift_open_date done [06:42:09]produce_requested_data done [06:42:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156130,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [06:42:09]process_action_free close_receipt [06:42:09]json_value_free [06:42:09]json_value_free done [06:42:09]process_json_proto returns [06:42:09]Send response to host [06:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156130,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [06:42:09]free response buf [06:42:09]execute_script done [06:42:09]execute_script returns [06:42:09]free content buf [06:42:09]Sock 7.Close socket [06:42:09]Sock 7.Thread stoped [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:08]accept exits with 10 [07:05:08]New connection [07:05:08]New thread 3066469732 created [07:05:08]Thread 3066613092 joined [07:05:08]Waiting for new connection... [07:05:08] Sock 10.Parse request [07:05:08]Sock 10.Check first char [07:05:08]Sock 10.First char is OK [07:05:08]request: POST /json_proto HTTP/1.0 [07:05:08]Method: POST [07:05:08]URL: /json_proto [07:05:08]Method is POST - this is cgi request [07:05:08]url: /json_proto [07:05:08]query_string will be loaded in cgi processing [07:05:08]execute_cgi json_proto POST (null) [07:05:08]execute_cgi path=json_proto method=POST [07:05:08]POST find Content-Length [07:05:08]Host: 172.17.63.3:8080 [07:05:08]Content-Length: 676 [07:05:08]Content-Type: application/json [07:05:08] [07:05:08]POST finish read [07:05:08]Found Content-Length = 676 [07:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:08]execute_script... [07:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:08]POST & json_proto [07:05:08]process_json_proto [07:05:08]json parsed OK: [07:05:08]protocol is kg_v1.0 [07:05:08]action value=close_receipt [07:05:08]process_action close_receipt [07:05:08]cmd_close_receipt [07:05:08]MH_GetDate [07:05:08]Write to MH i2c: F0 00 00 51 10 50 [07:05:08]Write i2c OK [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: F0 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: F0 09 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: F0 09 00 51 10 00 A7 94 1C 67 50 D1 6C 64 08 [07:05:08]GetLastDocTimeStamp 1729924929 [07:05:08]current date 1729926311 [07:05:08]FM_GetShiftState [07:05:08]SAM_PROTO_GetShiftState [07:05:08]wFMCommunicate request_size=4 [07:05:08]MH_SAM_APDU [07:05:08]CAPDU: 80 13 01 00 [07:05:08]Write to MH i2c: E2 08 00 52 10 80 13 01 00 00 00 00 00 DF [07:05:08]Write i2c OK [07:05:08]MH_I2C_Read... [07:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:08]Read from MH i2c: E2 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 0E 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 0E 00 52 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 14 [07:05:08]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:05:08]wFMCommunicate OK [07:05:08]SAM_PROTO_GetShiftState done [07:05:08]FM_GetShiftState done [07:05:08]opened in 1729902702 [07:05:08]opened+sec_in_day 1729989102 [07:05:08]quantity*price = 50041 [07:05:08]sum+1 = 50042 [07:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 32 26.10.2024 07:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156131 ФПД: 34500853004552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T070511&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156131&fm=34500853004552&tin=02508201610067®Number=0000000000091693&sum=50000 [07:05:09]StoreToDocumentArchive [07:05:09]shift 536 fd 156131 [07:05:09]save to /storage/0536/doc_00156131 [07:05:09]save last doc name /storage/0536/doc_00156131 to /storage/kkm_last_doc_name [07:05:09]save OK [07:05:09]Clear old archive folders... [07:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:05:09]tlvbuf is B6E55B30 [07:05:09]SAM_PROTO_ClearQueue [07:05:09]wFMCommunicate request_size=4 [07:05:09]MH_SAM_APDU [07:05:09]CAPDU: 80 09 00 00 [07:05:09]Write to MH i2c: E2 08 00 5F 10 80 09 00 00 00 00 00 00 E1 [07:05:09]Write i2c OK [07:05:09]MH_I2C_Read... [07:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:09]Read from MH i2c: E2 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: E2 03 00 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [07:05:09]RAPDU: 90 00 [07:05:09]wFMCommunicate OK [07:05:09]SAM_PROTO_ClearQueue done [07:05:09]KKMCreateOFDPacket [07:05:09]OFDProtocolAddRootSTLVToBuf [07:05:09]FM_MakeSignedData [07:05:09]FM_MakeSignedData [07:05:09]SAM_PROTO_SignData [07:05:09]wFMCommunicate request_size=4 [07:05:09]MH_SAM_APDU [07:05:09]CAPDU: 80 0D 01 02 [07:05:09]Write to MH i2c: E2 08 00 60 10 80 0D 01 02 00 00 00 00 E9 [07:05:09]Write i2c OK [07:05:09]MH_I2C_Read... [07:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:09]Read from MH i2c: E2 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: E2 03 00 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: E2 03 00 60 10 00 90 00 E4 [07:05:09]RAPDU: 90 00 [07:05:09]wFMCommunicate OK [07:05:09]wFMCommunicate request_size=255 [07:05:09]MH_SAM_APDU [07:05:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A7 94 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 61 02 00 35 04 06 00 1F [07:05:09]Write to MH i2c: E2 02 01 61 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A7 94 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 61 02 00 35 04 06 00 1F 00 00 DA [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 03 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 03 00 61 10 00 90 00 E5 [07:05:10]RAPDU: 90 00 [07:05:10]wFMCommunicate OK [07:05:10]wFMCommunicate request_size=10 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 0D 02 02 05 60 DB 16 79 08 [07:05:10]Write to MH i2c: E2 0D 00 62 10 80 0D 02 02 05 00 60 DB 16 79 08 00 00 C8 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:10]Read from MH i2c: E2 03 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 03 00 62 10 00 90 00 E6 [07:05:10]RAPDU: 90 00 [07:05:10]wFMCommunicate OK [07:05:10]wFMCommunicate request_size=4 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 0D 03 02 [07:05:10]Write to MH i2c: E2 08 00 63 10 80 0D 03 02 00 00 00 00 EE [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 0B 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 0B 00 63 10 00 F8 F6 85 B8 C4 FC 91 4C 90 00 B7 [07:05:10]RAPDU: F8 F6 85 B8 C4 FC 91 4C 90 00 [07:05:10]wFMCommunicate OK [07:05:10]SAM_PROTO_SignData done [07:05:10]FM_MakeSignedData done [07:05:10]CreateOFDProtocolMessage [07:05:10]wFMCommunicate request_size=4 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 11 00 00 [07:05:10]Write to MH i2c: E2 08 00 64 10 80 11 00 00 00 00 00 00 EE [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:10]Read from MH i2c: E2 17 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 17 00 64 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [07:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:05:10]wFMCommunicate OK [07:05:10]CreateOFDProtocolMessage done [07:05:10]OFDSenderStorePacket 156131 [07:05:10]StoreOFDPacket docnum=156131 [07:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9B 55 07 01 4C 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A7 94 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 61 02 00 35 04 06 00 1F 60 DB 16 79 08 F8 F6 85 B8 C4 FC 91 4C [07:05:10]CheckFolder [07:05:10]dirname=/storage/ofd_packets [07:05:10]CheckFolder done [07:05:10]ProducePacketName [07:05:10]name=ofd_packets/00156131 [07:05:10]NVStorageSaveData ofd_packets/00156131 [07:05:10]File name is /storage/ofd_packets/00156131 [07:05:10]Write 301 bytes [07:05:10]NVStorageSaveData done [07:05:10]OFDSenderStorePacket done [07:05:10]KKMCreateOFDPacket done [07:05:10]NVStorageSaveData kkm_last_timestamp [07:05:10]File name is /storage/kkm_last_timestamp [07:05:10]Write 4 bytes [07:05:10]NVStorageSaveData done [07:05:10]ExternCall_PrintAddStr [07:05:10]wPrintStart [07:05:10]Write to MH i2c: 01 00 00 65 10 75 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 07 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 FF 0F 8A [07:05:10]RasterBufferAndPrint [07:05:10]line Счет N : (1)98945 [07:05:10]line ИНН: 02508201610067 [07:05:10]line Контрольно-Кассовый Чек [07:05:10]line ПРОДАЖА [07:05:10]line ТРК (МРК, ГНК) : 11 [07:05:10]line Товар: 2710124130 [07:05:10]line Аи-92-К-5 [07:05:10]line 7.480 * 66.90 [07:05:10]line = 500.41 [07:05:10]line НДС 12% НСП 1% [07:05:10]line > о реализуемом товаре [07:05:10]line ОКРУГЛЕНИЕ: -0.41 [07:05:10]line ИТОГО: 500.00 [07:05:10]line Внесено: 500.00 [07:05:10]line СДАЧА: 0.00 [07:05:10]line НСП 1% : 4.43 [07:05:10]line НДС 12% : 53.14 [07:05:10]line Наличными: 500.00 [07:05:10]line Безнал.: 0.00 [07:05:10]line Место: АЗС № 143 "Партнер Нефть" [07:05:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:05:10]line СНО: Общий режим [07:05:10]line Чек 32 26.10.2024 07:05 [07:05:10]line Смена: 536 ФФД: 1.0 [07:05:10]line ЗНМ: 0300000096 [07:05:10]line РНМ: 0000000000091693 [07:05:10]line Версия ККМ: 001 [07:05:10]line ФМ: 0000000000871792 [07:05:10]line ФД: 156131 [07:05:10]line ФПД: 34500853004552 [07:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T070511&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156131&fm=34500853004552&tin=02508201610067®Number=0000000000091693&sum=50000 [07:05:10]written 0, free lines is 4095 [07:05:10]OFD Sender: Processing packet 156131 [packets to send 31, broken 30] [07:05:10]ProducePacketName [07:05:10]name=ofd_packets/00156131 [07:05:10]OFD Sender: To server: pG, [07:05:10]CommunicateWithHost lk.salyk.kg:30040 [07:05:10]ConnectInit lk.salyk.kg [07:05:10]Connected sock=9 [07:05:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9B 55 07 01 4C 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A7 94 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 61 02 00 35 04 06 00 1F 60 DB 16 79 08 F8 F6 85 B8 C4 FC 91 4C [07:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 62 33 47 00 85 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 31 37 39 32 10 04 04 00 E3 61 02 00 F4 03 04 00 1A 3A 1C 67 B6 04 01 00 00 69 1E 3A C1 A6 85 E7 8B [07:05:10]CommunicateWithHost err = 0 [07:05:10]CheckOFDResponse [07:05:10]1017 (14) - 77093643461234 [07:05:10]1041 (16) - 0000000000871792 [07:05:10]1040 (4) - 156131 [07:05:10]1012 (4) - 26.10.2024 00:38 [07:05:10]1206 (1) - 0 [07:05:10]OFD Sender: Remove packet 156131 [07:05:10]ProducePacketName [07:05:10]name=ofd_packets/00156131 [07:05:10]NVStorageDeleteData [07:05:10]Write to MH i2c: 01 00 00 90 10 A0 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 07 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 07 00 90 10 00 00 00 00 00 E8 0C 9B [07:05:10]RasterBufferAndPrint [07:05:10]line [07:05:10]line [07:05:10]line [07:05:10]line [07:05:10]line [07:05:10]written 0, free lines is 3310 [07:05:10]process_action close_receipt done [07:05:10]requested_data is exist [07:05:10]produce_requested_data [07:05:10]requested_item fm.sn is exist - process it [07:05:10]wFMCommunicate request_size=4 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 11 00 00 [07:05:10]Write to MH i2c: E2 08 00 97 10 80 11 00 00 00 00 00 00 21 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 17 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 17 00 97 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 76 [07:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:05:11]wFMCommunicate OK [07:05:11]requested_item fd.num is exist - process it [07:05:11]SAM_PROTO_GetFieldsCounters [07:05:11]wFMCommunicate request_size=4 [07:05:11]MH_SAM_APDU [07:05:11]CAPDU: 80 13 00 00 [07:05:11]Write to MH i2c: E2 08 00 98 10 80 13 00 00 00 00 00 00 24 [07:05:11]Write i2c OK [07:05:11]MH_I2C_Read... [07:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:05:11]Read from MH i2c: E2 [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: E2 62 00 [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: E2 62 00 98 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 61 02 00 0E 04 04 00 18 02 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 0A [07: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 61 02 00 0E 04 04 00 18 02 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 [07:05:11]wFMCommunicate OK [07:05:11]SAM_PROTO_GetFieldsCounters done [07:05:11]requested_item shift.num is exist - process it [07:05:11]requested_item shift.opened is exist - process it [07:05:11]req_shift_opened [07:05:11]FM_GetShiftState [07:05:11]SAM_PROTO_GetShiftState [07:05:11]wFMCommunicate request_size=4 [07:05:11]MH_SAM_APDU [07:05:11]CAPDU: 80 13 01 00 [07:05:11]Write to MH i2c: E2 08 00 99 10 80 13 01 00 00 00 00 00 26 [07:05:11]Write i2c OK [07:05:11]MH_I2C_Read... [07:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:11]Read from MH i2c: E2 [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: E2 0E 00 [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: E2 0E 00 99 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5B [07:05:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:05:11]wFMCommunicate OK [07:05:11]SAM_PROTO_GetShiftState done [07:05:11]FM_GetShiftState done [07:05:11]req_shift_opened done [07:05:11]requested_item shift.open_date is exist - process it [07:05:11]req_shift_open_date [07:05:11]req_shift_open_date done [07:05:11]produce_requested_data done [07:05:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156131,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [07:05:11]process_action_free close_receipt [07:05:11]json_value_free [07:05:11]json_value_free done [07:05:11]process_json_proto returns [07:05:11]Send response to host [07:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156131,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [07:05:11]free response buf [07:05:11]execute_script done [07:05:11]execute_script returns [07:05:11]free content buf [07:05:11]Sock 10.Close socket [07:05:11]Sock 10.Thread stoped [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:15]accept exits with 7 [07:07:15]New connection [07:07:15]New thread 3066613092 created [07:07:15]Thread 3066469732 joined [07:07:15]Waiting for new connection... [07:07:15] Sock 7.Parse request [07:07:15]Sock 7.Check first char [07:07:15]Sock 7.First char is OK [07:07:15]request: POST /json_proto HTTP/1.0 [07:07:15]Method: POST [07:07:15]URL: /json_proto [07:07:15]Method is POST - this is cgi request [07:07:15]url: /json_proto [07:07:15]query_string will be loaded in cgi processing [07:07:15]execute_cgi json_proto POST (null) [07:07:15]execute_cgi path=json_proto method=POST [07:07:15]POST find Content-Length [07:07:15]Host: 172.17.63.3:8080 [07:07:15]Content-Length: 678 [07:07:15]Content-Type: application/json [07:07:15] [07:07:15]POST finish read [07:07:15]Found Content-Length = 678 [07:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:15]execute_script... [07:07:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:15]POST & json_proto [07:07:15]process_json_proto [07:07:15]json parsed OK: [07:07:15]protocol is kg_v1.0 [07:07:15]action value=close_receipt [07:07:15]process_action close_receipt [07:07:15]cmd_close_receipt [07:07:15]MH_GetDate [07:07:15]Write to MH i2c: F0 00 00 9A 10 99 [07:07:15]Write i2c OK [07:07:15]MH_I2C_Read... [07:07:15]Read from MH i2c: F0 [07:07:15]MH_I2C_Read... [07:07:15]Read from MH i2c: F0 09 00 [07:07:15]MH_I2C_Read... [07:07:15]Read from MH i2c: F0 09 00 9A 10 00 26 95 1C 67 50 D1 6C 64 D1 [07:07:15]GetLastDocTimeStamp 1729926311 [07:07:15]current date 1729926438 [07:07:15]FM_GetShiftState [07:07:15]SAM_PROTO_GetShiftState [07:07:15]wFMCommunicate request_size=4 [07:07:15]MH_SAM_APDU [07:07:15]CAPDU: 80 13 01 00 [07:07:15]Write to MH i2c: E2 08 00 9B 10 80 13 01 00 00 00 00 00 28 [07:07:15]Write i2c OK [07:07:15]MH_I2C_Read... [07:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:15]Read from MH i2c: E2 [07:07:15]MH_I2C_Read... [07:07:15]Read from MH i2c: E2 0E 00 [07:07:15]MH_I2C_Read... [07:07:15]Read from MH i2c: E2 0E 00 9B 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5D [07:07:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:07:15]wFMCommunicate OK [07:07:15]SAM_PROTO_GetShiftState done [07:07:15]FM_GetShiftState done [07:07:15]opened in 1729902702 [07:07:15]opened+sec_in_day 1729989102 [07:07:15]quantity*price = 100050 [07:07:15]sum+1 = 100052 [07:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 33 26.10.2024 07:07 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156132 ФПД: 217243650139588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T070718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156132&fm=217243650139588&tin=02508201610067®Number=0000000000091693&sum=100000 [07:07:16]StoreToDocumentArchive [07:07:16]shift 536 fd 156132 [07:07:16]save to /storage/0536/doc_00156132 [07:07:16]save last doc name /storage/0536/doc_00156132 to /storage/kkm_last_doc_name [07:07:16]save OK [07:07:16]Clear old archive folders... [07:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:07:16]tlvbuf is 00D5C070 [07:07:16]SAM_PROTO_ClearQueue [07:07:16]wFMCommunicate request_size=4 [07:07:16]MH_SAM_APDU [07:07:16]CAPDU: 80 09 00 00 [07:07:16]Write to MH i2c: E2 08 00 A8 10 80 09 00 00 00 00 00 00 2A [07:07:16]Write i2c OK [07:07:16]MH_I2C_Read... [07:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:16]Read from MH i2c: E2 [07:07:16]MH_I2C_Read... [07:07:16]Read from MH i2c: E2 03 00 [07:07:16]MH_I2C_Read... [07:07:16]Read from MH i2c: E2 03 00 A8 10 00 90 00 2C [07:07:16]RAPDU: 90 00 [07:07:16]wFMCommunicate OK [07:07:16]SAM_PROTO_ClearQueue done [07:07:16]KKMCreateOFDPacket [07:07:16]OFDProtocolAddRootSTLVToBuf [07:07:16]FM_MakeSignedData [07:07:16]FM_MakeSignedData [07:07:16]SAM_PROTO_SignData [07:07:16]wFMCommunicate request_size=4 [07:07:16]MH_SAM_APDU [07:07:16]CAPDU: 80 0D 01 02 [07:07:16]Write to MH i2c: E2 08 00 A9 10 80 0D 01 02 00 00 00 00 32 [07:07:16]Write i2c OK [07:07:16]MH_I2C_Read... [07:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:16]Read from MH i2c: E2 [07:07:16]MH_I2C_Read... [07:07:16]Read from MH i2c: E2 03 00 [07:07:16]MH_I2C_Read... [07:07:16]Read from MH i2c: E2 03 00 A9 10 00 90 00 2D [07:07:16]RAPDU: 90 00 [07:07:16]wFMCommunicate OK [07:07:16]wFMCommunicate request_size=255 [07:07:16]MH_SAM_APDU [07:07:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 26 95 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 61 02 00 35 04 06 00 C5 94 FA 98 [07:07:16]Write to MH i2c: E2 02 01 AA 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 26 95 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 61 02 00 35 04 06 00 C5 94 FA 98 00 00 67 [07:07:16]Write i2c OK [07:07:16]MH_I2C_Read... [07:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:17]Read from MH i2c: E2 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: E2 03 00 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: E2 03 00 AA 10 00 90 00 2E [07:07:17]RAPDU: 90 00 [07:07:17]wFMCommunicate OK [07:07:17]wFMCommunicate request_size=7 [07:07:17]MH_SAM_APDU [07:07:17]CAPDU: 80 0D 02 02 02 A5 C4 [07:07:17]Write to MH i2c: E2 0A 00 AB 10 80 0D 02 02 02 00 A5 C4 00 00 A2 [07:07:17]Write i2c OK [07:07:17]MH_I2C_Read... [07:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:17]Read from MH i2c: E2 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: E2 03 00 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: E2 03 00 AB 10 00 90 00 2F [07:07:17]RAPDU: 90 00 [07:07:17]wFMCommunicate OK [07:07:17]wFMCommunicate request_size=4 [07:07:17]MH_SAM_APDU [07:07:17]CAPDU: 80 0D 03 02 [07:07:17]Write to MH i2c: E2 08 00 AC 10 80 0D 03 02 00 00 00 00 37 [07:07:17]Write i2c OK [07:07:17]MH_I2C_Read... [07:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:17]Read from MH i2c: E2 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: E2 0B 00 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: E2 0B 00 AC 10 00 B0 29 9F 1A 71 C2 9A 54 90 00 EB [07:07:17]RAPDU: B0 29 9F 1A 71 C2 9A 54 90 00 [07:07:17]wFMCommunicate OK [07:07:17]SAM_PROTO_SignData done [07:07:17]FM_MakeSignedData done [07:07:17]CreateOFDProtocolMessage [07:07:17]wFMCommunicate request_size=4 [07:07:17]MH_SAM_APDU [07:07:17]CAPDU: 80 11 00 00 [07:07:17]Write to MH i2c: E2 08 00 AD 10 80 11 00 00 00 00 00 00 37 [07:07:17]Write i2c OK [07:07:17]MH_I2C_Read... [07:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:17]Read from MH i2c: E2 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: E2 17 00 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: E2 17 00 AD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [07:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:07:17]wFMCommunicate OK [07:07:17]CreateOFDProtocolMessage done [07:07:17]OFDSenderStorePacket 156132 [07:07:17]StoreOFDPacket docnum=156132 [07:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 1E 5B 04 01 F0 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 26 95 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 61 02 00 35 04 06 00 C5 94 FA 98 A5 C4 B0 29 9F 1A 71 C2 9A 54 [07:07:17]CheckFolder [07:07:17]dirname=/storage/ofd_packets [07:07:17]CheckFolder done [07:07:17]ProducePacketName [07:07:17]name=ofd_packets/00156132 [07:07:17]NVStorageSaveData ofd_packets/00156132 [07:07:17]File name is /storage/ofd_packets/00156132 [07:07:17]Write 298 bytes [07:07:17]NVStorageSaveData done [07:07:17]OFDSenderStorePacket done [07:07:17]KKMCreateOFDPacket done [07:07:17]NVStorageSaveData kkm_last_timestamp [07:07:17]File name is /storage/kkm_last_timestamp [07:07:17]Write 4 bytes [07:07:17]NVStorageSaveData done [07:07:17]ExternCall_PrintAddStr [07:07:17]wPrintStart [07:07:17]Write to MH i2c: 01 00 00 AE 10 BE [07:07:17]Write i2c OK [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: 01 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: 01 07 00 [07:07:17]MH_I2C_Read... [07:07:17]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 FF 0F D3 [07:07:17]RasterBufferAndPrint [07:07:17]line Счет N : (1)98946 [07:07:17]line ИНН: 02508201610067 [07:07:17]line Контрольно-Кассовый Чек [07:07:17]line ПРОДАЖА [07:07:17]line ТРК (МРК, ГНК) : 32 [07:07:17]line Товар: 2710194210 [07:07:17]line ДТ-К-5 [07:07:17]line 13.130 * 76.20 [07:07:17]line = 1000.51 [07:07:17]line НДС 12% НСП 1% [07:07:17]line > о реализуемом товаре [07:07:17]line ОКРУГЛЕНИЕ: -0.51 [07:07:17]line ИТОГО: 1000.00 [07:07:17]line Внесено: 1000.00 [07:07:17]line СДАЧА: 0.00 [07:07:17]line НСП 1% : 8.85 [07:07:17]line НДС 12% : 106.25 [07:07:17]line Наличными: 1000.00 [07:07:17]line Безнал.: 0.00 [07:07:17]line Место: АЗС № 143 "Партнер Нефть" [07:07:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:07:17]line СНО: Общий режим [07:07:17]line Чек 33 26.10.2024 07:07 [07:07:17]line Смена: 536 ФФД: 1.0 [07:07:17]line ЗНМ: 0300000096 [07:07:17]line РНМ: 0000000000091693 [07:07:17]line Версия ККМ: 001 [07:07:17]line ФМ: 0000000000871792 [07:07:17]line ФД: 156132 [07:07:17]line ФПД: 217243650139588 [07:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T070718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156132&fm=217243650139588&tin=02508201610067®Number=0000000000091693&sum=100000 [07:07:17]OFD Sender: Processing packet 156132 [packets to send 31, broken 30] [07:07:17]ProducePacketName [07:07:17]name=ofd_packets/00156132 [07:07:17]OFD Sender: To server: pG, [07:07:17]CommunicateWithHost lk.salyk.kg:30040 [07:07:17]ConnectInit lk.salyk.kg [07:07:17]written 0, free lines is 4095 [07:07:17]Connected sock=10 [07:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 1E 5B 04 01 F0 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 26 95 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 61 02 00 35 04 06 00 C5 94 FA 98 A5 C4 B0 29 9F 1A 71 C2 9A 54 [07:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 78 75 47 00 D3 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 61 02 00 F4 03 04 00 9A 3A 1C 67 B6 04 01 00 00 06 31 2D 2D FB 9E F8 D8 [07:07:17]CommunicateWithHost err = 0 [07:07:17]CheckOFDResponse [07:07:17]1017 (14) - 77093643461234 [07:07:17]1041 (16) - 0000000000871792 [07:07:17]1040 (4) - 156132 [07:07:17]1012 (4) - 26.10.2024 00:40 [07:07:17]1206 (1) - 0 [07:07:17]OFD Sender: Remove packet 156132 [07:07:17]ProducePacketName [07:07:17]name=ofd_packets/00156132 [07:07:17]NVStorageDeleteData [07:07:18]Write to MH i2c: 01 00 00 D9 10 E9 [07:07:18]Write i2c OK [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: 01 [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: 01 07 00 [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: 01 07 00 D9 10 00 00 00 00 00 F4 0C F0 [07:07:18]RasterBufferAndPrint [07:07:18]line [07:07:18]line [07:07:18]line [07:07:18]line [07:07:18]line [07:07:18]written 0, free lines is 3322 [07:07:18]process_action close_receipt done [07:07:18]requested_data is exist [07:07:18]produce_requested_data [07:07:18]requested_item fm.sn is exist - process it [07:07:18]wFMCommunicate request_size=4 [07:07:18]MH_SAM_APDU [07:07:18]CAPDU: 80 11 00 00 [07:07:18]Write to MH i2c: E2 08 00 E0 10 80 11 00 00 00 00 00 00 6A [07:07:18]Write i2c OK [07:07:18]MH_I2C_Read... [07:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:18]Read from MH i2c: E2 [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: E2 17 00 [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: E2 17 00 E0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BF [07:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:07:18]wFMCommunicate OK [07:07:18]requested_item fd.num is exist - process it [07:07:18]SAM_PROTO_GetFieldsCounters [07:07:18]wFMCommunicate request_size=4 [07:07:18]MH_SAM_APDU [07:07:18]CAPDU: 80 13 00 00 [07:07:18]Write to MH i2c: E2 08 00 E1 10 80 13 00 00 00 00 00 00 6D [07:07:18]Write i2c OK [07:07:18]MH_I2C_Read... [07:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:18]Read from MH i2c: E2 [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: E2 62 00 [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: E2 62 00 E1 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 61 02 00 0E 04 04 00 18 02 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 57 [07:07: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 61 02 00 0E 04 04 00 18 02 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 [07:07:18]wFMCommunicate OK [07:07:18]SAM_PROTO_GetFieldsCounters done [07:07:18]requested_item shift.num is exist - process it [07:07:18]requested_item shift.opened is exist - process it [07:07:18]req_shift_opened [07:07:18]FM_GetShiftState [07:07:18]SAM_PROTO_GetShiftState [07:07:18]wFMCommunicate request_size=4 [07:07:18]MH_SAM_APDU [07:07:18]CAPDU: 80 13 01 00 [07:07:18]Write to MH i2c: E2 08 00 E2 10 80 13 01 00 00 00 00 00 6F [07:07:18]Write i2c OK [07:07:18]MH_I2C_Read... [07:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:18]Read from MH i2c: E2 [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: E2 0E 00 [07:07:18]MH_I2C_Read... [07:07:18]Read from MH i2c: E2 0E 00 E2 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A4 [07:07:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:07:18]wFMCommunicate OK [07:07:18]SAM_PROTO_GetShiftState done [07:07:18]FM_GetShiftState done [07:07:18]req_shift_opened done [07:07:18]requested_item shift.open_date is exist - process it [07:07:18]req_shift_open_date [07:07:18]req_shift_open_date done [07:07:18]produce_requested_data done [07:07:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156132,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [07:07:18]process_action_free close_receipt [07:07:18]json_value_free [07:07:18]json_value_free done [07:07:18]process_json_proto returns [07:07:18]Send response to host [07:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156132,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [07:07:18]free response buf [07:07:18]execute_script done [07:07:18]execute_script returns [07:07:18]free content buf [07:07:18]Sock 7.Close socket [07:07:18]Sock 7.Thread stoped [07:07:18]OFD Sender: No OFD packet to send [07:07:20]accept exits with 9 [07:07:20]New connection [07:07:20]New thread 3066469732 created [07:07:20]Thread 3066613092 joined [07:07:20]Waiting for new connection... [07:07:20] Sock 9.Parse request [07:07:20]Sock 9.Check first char [07:07:20]Sock 9.First char is OK [07:07:20]request: POST /json_proto HTTP/1.0 [07:07:20]Method: POST [07:07:20]URL: /json_proto [07:07:20]Method is POST - this is cgi request [07:07:20]url: /json_proto [07:07:20]query_string will be loaded in cgi processing [07:07:20]execute_cgi json_proto POST (null) [07:07:20]execute_cgi path=json_proto method=POST [07:07:20]POST find Content-Length [07:07:20]Host: 172.17.63.3:8080 [07:07:20]Content-Length: 676 [07:07:20]Content-Type: application/json [07:07:20] [07:07:20]POST finish read [07:07:20]Found Content-Length = 676 [07:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:20]execute_script... [07:07:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:20]POST & json_proto [07:07:20]process_json_proto [07:07:20]json parsed OK: [07:07:20]protocol is kg_v1.0 [07:07:20]action value=close_receipt [07:07:20]process_action close_receipt [07:07:20]cmd_close_receipt [07:07:20]MH_GetDate [07:07:20]Write to MH i2c: F0 00 00 E3 10 E2 [07:07:20]Write i2c OK [07:07:20]MH_I2C_Read... [07:07:20]Read from MH i2c: F0 [07:07:20]MH_I2C_Read... [07:07:20]Read from MH i2c: F0 09 00 [07:07:20]MH_I2C_Read... [07:07:20]Read from MH i2c: F0 09 00 E3 10 00 2B 95 1C 67 50 D1 6C 64 1F [07:07:20]GetLastDocTimeStamp 1729926438 [07:07:20]current date 1729926443 [07:07:20]FM_GetShiftState [07:07:20]SAM_PROTO_GetShiftState [07:07:20]wFMCommunicate request_size=4 [07:07:20]MH_SAM_APDU [07:07:20]CAPDU: 80 13 01 00 [07:07:20]Write to MH i2c: E2 08 00 E4 10 80 13 01 00 00 00 00 00 71 [07:07:20]Write i2c OK [07:07:20]MH_I2C_Read... [07:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:20]Read from MH i2c: E2 [07:07:20]MH_I2C_Read... [07:07:20]Read from MH i2c: E2 0E 00 [07:07:20]MH_I2C_Read... [07:07:20]Read from MH i2c: E2 0E 00 E4 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A6 [07:07:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:07:20]wFMCommunicate OK [07:07:20]SAM_PROTO_GetShiftState done [07:07:20]FM_GetShiftState done [07:07:20]opened in 1729902702 [07:07:20]opened+sec_in_day 1729989102 [07:07:20]quantity*price = 50041 [07:07:20]sum+1 = 50042 [07:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 34 26.10.2024 07:07 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156133 ФПД: 233933735318941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T070723&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156133&fm=233933735318941&tin=02508201610067®Number=0000000000091693&sum=50000 [07:07:21]StoreToDocumentArchive [07:07:21]shift 536 fd 156133 [07:07:21]save to /storage/0536/doc_00156133 [07:07:21]save last doc name /storage/0536/doc_00156133 to /storage/kkm_last_doc_name [07:07:21]save OK [07:07:21]Clear old archive folders... [07:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:07:21]tlvbuf is 00D86680 [07:07:21]SAM_PROTO_ClearQueue [07:07:21]wFMCommunicate request_size=4 [07:07:21]MH_SAM_APDU [07:07:21]CAPDU: 80 09 00 00 [07:07:21]Write to MH i2c: E2 08 00 F1 10 80 09 00 00 00 00 00 00 73 [07:07:21]Write i2c OK [07:07:21]MH_I2C_Read... [07:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:21]Read from MH i2c: E2 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 03 00 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 03 00 F1 10 00 90 00 75 [07:07:21]RAPDU: 90 00 [07:07:21]wFMCommunicate OK [07:07:21]SAM_PROTO_ClearQueue done [07:07:21]KKMCreateOFDPacket [07:07:21]OFDProtocolAddRootSTLVToBuf [07:07:21]FM_MakeSignedData [07:07:21]FM_MakeSignedData [07:07:21]SAM_PROTO_SignData [07:07:21]wFMCommunicate request_size=4 [07:07:21]MH_SAM_APDU [07:07:21]CAPDU: 80 0D 01 02 [07:07:21]Write to MH i2c: E2 08 00 F2 10 80 0D 01 02 00 00 00 00 7B [07:07:21]Write i2c OK [07:07:21]MH_I2C_Read... [07:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:21]Read from MH i2c: E2 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 03 00 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 03 00 F2 10 00 90 00 76 [07:07:21]RAPDU: 90 00 [07:07:21]wFMCommunicate OK [07:07:21]wFMCommunicate request_size=255 [07:07:21]MH_SAM_APDU [07:07:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2B 95 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 61 02 00 35 04 06 00 D4 [07:07:21]Write to MH i2c: E2 02 01 F3 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 2B 95 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 61 02 00 35 04 06 00 D4 00 00 AA [07:07:21]Write i2c OK [07:07:21]MH_I2C_Read... [07:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:21]Read from MH i2c: E2 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 03 00 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 03 00 F3 10 00 90 00 77 [07:07:21]RAPDU: 90 00 [07:07:21]wFMCommunicate OK [07:07:21]wFMCommunicate request_size=10 [07:07:21]MH_SAM_APDU [07:07:21]CAPDU: 80 0D 02 02 05 C2 F1 31 D5 9D [07:07:21]Write to MH i2c: E2 0D 00 F4 10 80 0D 02 02 05 00 C2 F1 31 D5 9D 00 00 DE [07:07:21]Write i2c OK [07:07:21]MH_I2C_Read... [07:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:21]Read from MH i2c: E2 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 03 00 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 03 00 F4 10 00 90 00 78 [07:07:21]RAPDU: 90 00 [07:07:21]wFMCommunicate OK [07:07:21]wFMCommunicate request_size=4 [07:07:21]MH_SAM_APDU [07:07:21]CAPDU: 80 0D 03 02 [07:07:21]Write to MH i2c: E2 08 00 F5 10 80 0D 03 02 00 00 00 00 80 [07:07:21]Write i2c OK [07:07:21]MH_I2C_Read... [07:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:21]Read from MH i2c: E2 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 0B 00 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 0B 00 F5 10 00 CD B7 50 A7 27 60 A5 96 90 00 BE [07:07:21]RAPDU: CD B7 50 A7 27 60 A5 96 90 00 [07:07:21]wFMCommunicate OK [07:07:21]SAM_PROTO_SignData done [07:07:21]FM_MakeSignedData done [07:07:21]CreateOFDProtocolMessage [07:07:21]wFMCommunicate request_size=4 [07:07:21]MH_SAM_APDU [07:07:21]CAPDU: 80 11 00 00 [07:07:21]Write to MH i2c: E2 08 00 F6 10 80 11 00 00 00 00 00 00 80 [07:07:21]Write i2c OK [07:07:21]MH_I2C_Read... [07:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:21]Read from MH i2c: E2 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 17 00 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: E2 17 00 F6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [07:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:07:21]wFMCommunicate OK [07:07:21]CreateOFDProtocolMessage done [07:07:21]OFDSenderStorePacket 156133 [07:07:21]StoreOFDPacket docnum=156133 [07:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 33 07 01 80 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2B 95 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 61 02 00 35 04 06 00 D4 C2 F1 31 D5 9D CD B7 50 A7 27 60 A5 96 [07:07:21]CheckFolder [07:07:21]dirname=/storage/ofd_packets [07:07:21]CheckFolder done [07:07:21]ProducePacketName [07:07:21]name=ofd_packets/00156133 [07:07:21]NVStorageSaveData ofd_packets/00156133 [07:07:21]File name is /storage/ofd_packets/00156133 [07:07:21]Write 301 bytes [07:07:21]NVStorageSaveData done [07:07:21]OFDSenderStorePacket done [07:07:21]KKMCreateOFDPacket done [07:07:21]NVStorageSaveData kkm_last_timestamp [07:07:21]File name is /storage/kkm_last_timestamp [07:07:21]Write 4 bytes [07:07:21]NVStorageSaveData done [07:07:21]ExternCall_PrintAddStr [07:07:21]wPrintStart [07:07:21]Write to MH i2c: 01 00 00 F7 10 07 [07:07:21]Write i2c OK [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: 01 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: 01 07 00 [07:07:21]MH_I2C_Read... [07:07:21]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 FF 0F 1C [07:07:21]RasterBufferAndPrint [07:07:21]line Счет N : (1)98947 [07:07:21]line ИНН: 02508201610067 [07:07:21]line Контрольно-Кассовый Чек [07:07:21]line ПРОДАЖА [07:07:21]line ТРК (МРК, ГНК) : 21 [07:07:21]line Товар: 2710124130 [07:07:21]line Аи-92-К-5 [07:07:21]line 7.480 * 66.90 [07:07:21]line = 500.41 [07:07:21]line НДС 12% НСП 1% [07:07:21]line > о реализуемом товаре [07:07:21]line ОКРУГЛЕНИЕ: -0.41 [07:07:21]line ИТОГО: 500.00 [07:07:21]line Внесено: 500.00 [07:07:21]line СДАЧА: 0.00 [07:07:21]line НСП 1% : 4.43 [07:07:21]line НДС 12% : 53.14 [07:07:21]line Наличными: 500.00 [07:07:21]line Безнал.: 0.00 [07:07:21]line Место: АЗС № 143 "Партнер Нефть" [07:07:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:07:21]line СНО: Общий режим [07:07:21]line Чек 34 26.10.2024 07:07 [07:07:21]line Смена: 536 ФФД: 1.0 [07:07:21]line ЗНМ: 0300000096 [07:07:21]line РНМ: 0000000000091693 [07:07:21]line Версия ККМ: 001 [07:07:21]line ФМ: 0000000000871792 [07:07:21]line ФД: 156133 [07:07:21]line ФПД: 233933735318941 [07:07:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T070723&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156133&fm=233933735318941&tin=02508201610067®Number=0000000000091693&sum=50000 [07:07:22]written 0, free lines is 4095 [07:07:22]OFD Sender: Processing packet 156133 [packets to send 31, broken 30] [07:07:22]ProducePacketName [07:07:22]name=ofd_packets/00156133 [07:07:22]OFD Sender: To server: pG, [07:07:22]CommunicateWithHost lk.salyk.kg:30040 [07:07:22]ConnectInit lk.salyk.kg [07:07:22]Connected sock=10 [07:07:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 33 07 01 80 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2B 95 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 61 02 00 35 04 06 00 D4 C2 F1 31 D5 9D CD B7 50 A7 27 60 A5 96 [07:07:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 43 90 47 00 B6 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 61 02 00 F4 03 04 00 9E 3A 1C 67 B6 04 01 00 00 EC 47 9D 49 2D 18 FA 7E [07:07:22]CommunicateWithHost err = 0 [07:07:22]CheckOFDResponse [07:07:22]1017 (14) - 77093643461234 [07:07:22]1041 (16) - 0000000000871792 [07:07:22]1040 (4) - 156133 [07:07:22]1012 (4) - 26.10.2024 00:41 [07:07:22]1206 (1) - 0 [07:07:22]OFD Sender: Remove packet 156133 [07:07:22]ProducePacketName [07:07:22]name=ofd_packets/00156133 [07:07:22]NVStorageDeleteData [07:07:22]Write to MH i2c: 01 00 00 22 11 33 [07:07:22]Write i2c OK [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: 01 [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: 01 07 00 [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: 01 07 00 22 11 00 00 00 00 00 F1 0C 37 [07:07:22]RasterBufferAndPrint [07:07:22]line [07:07:22]line [07:07:22]line [07:07:22]line [07:07:22]line [07:07:22]written 0, free lines is 3326 [07:07:22]process_action close_receipt done [07:07:22]requested_data is exist [07:07:22]produce_requested_data [07:07:22]requested_item fm.sn is exist - process it [07:07:22]wFMCommunicate request_size=4 [07:07:22]MH_SAM_APDU [07:07:22]CAPDU: 80 11 00 00 [07:07:22]Write to MH i2c: E2 08 00 29 11 80 11 00 00 00 00 00 00 B4 [07:07:22]Write i2c OK [07:07:22]MH_I2C_Read... [07:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:22]Read from MH i2c: E2 [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: E2 17 00 [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: E2 17 00 29 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [07:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:07:22]wFMCommunicate OK [07:07:22]requested_item fd.num is exist - process it [07:07:22]SAM_PROTO_GetFieldsCounters [07:07:22]wFMCommunicate request_size=4 [07:07:22]MH_SAM_APDU [07:07:22]CAPDU: 80 13 00 00 [07:07:22]Write to MH i2c: E2 08 00 2A 11 80 13 00 00 00 00 00 00 B7 [07:07:22]Write i2c OK [07:07:22]MH_I2C_Read... [07:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:22]Read from MH i2c: E2 [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: E2 62 00 [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: E2 62 00 2A 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 61 02 00 0E 04 04 00 18 02 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 A5 [07:07:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 61 02 00 0E 04 04 00 18 02 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 [07:07:22]wFMCommunicate OK [07:07:22]SAM_PROTO_GetFieldsCounters done [07:07:22]requested_item shift.num is exist - process it [07:07:22]requested_item shift.opened is exist - process it [07:07:22]req_shift_opened [07:07:22]FM_GetShiftState [07:07:22]SAM_PROTO_GetShiftState [07:07:22]wFMCommunicate request_size=4 [07:07:22]MH_SAM_APDU [07:07:22]CAPDU: 80 13 01 00 [07:07:22]Write to MH i2c: E2 08 00 2B 11 80 13 01 00 00 00 00 00 B9 [07:07:22]Write i2c OK [07:07:22]MH_I2C_Read... [07:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:22]Read from MH i2c: E2 [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: E2 0E 00 [07:07:22]MH_I2C_Read... [07:07:22]Read from MH i2c: E2 0E 00 2B 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 EE [07:07:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:07:22]wFMCommunicate OK [07:07:22]SAM_PROTO_GetShiftState done [07:07:22]FM_GetShiftState done [07:07:22]req_shift_opened done [07:07:22]requested_item shift.open_date is exist - process it [07:07:22]req_shift_open_date [07:07:22]req_shift_open_date done [07:07:22]produce_requested_data done [07:07:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156133,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [07:07:22]process_action_free close_receipt [07:07:22]json_value_free [07:07:22]json_value_free done [07:07:22]process_json_proto returns [07:07:22]Send response to host [07:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156133,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [07:07:22]free response buf [07:07:22]execute_script done [07:07:22]execute_script returns [07:07:22]free content buf [07:07:22]Sock 9.Close socket [07:07:22]Sock 9.Thread stoped [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08: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:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:34]ConnectInit Can't connect to host [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28: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:50]accept exits with 7 [07:29:50]New connection [07:29:50]New thread 3066613092 created [07:29:50]Thread 3066469732 joined [07:29:50]Waiting for new connection... [07:29:50] Sock 7.Parse request [07:29:50]Sock 7.Check first char [07:29:50]Sock 7.First char is OK [07:29:50]request: POST /json_proto HTTP/1.0 [07:29:50]Method: POST [07:29:50]URL: /json_proto [07:29:50]Method is POST - this is cgi request [07:29:50]url: /json_proto [07:29:50]query_string will be loaded in cgi processing [07:29:50]execute_cgi json_proto POST (null) [07:29:50]execute_cgi path=json_proto method=POST [07:29:50]POST find Content-Length [07:29:50]Host: 172.17.63.3:8080 [07:29:50]Content-Length: 681 [07:29:50]Content-Type: application/json [07:29:50] [07:29:50]POST finish read [07:29:50]Found Content-Length = 681 [07:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:50]execute_script... [07:29:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:50]POST & json_proto [07:29:50]process_json_proto [07:29:50]json parsed OK: [07:29:50]protocol is kg_v1.0 [07:29:50]action value=close_receipt [07:29:50]process_action close_receipt [07:29:50]cmd_close_receipt [07:29:50]MH_GetDate [07:29:50]Write to MH i2c: F0 00 00 2C 11 2C [07:29:50]Write i2c OK [07:29:50]MH_I2C_Read... [07:29:50]Read from MH i2c: F0 [07:29:50]MH_I2C_Read... [07:29:50]Read from MH i2c: F0 09 00 [07:29:50]MH_I2C_Read... [07:29:50]Read from MH i2c: F0 09 00 2C 11 00 72 9A 1C 67 50 D1 6C 64 B5 [07:29:50]GetLastDocTimeStamp 1729926443 [07:29:50]current date 1729927794 [07:29:50]FM_GetShiftState [07:29:50]SAM_PROTO_GetShiftState [07:29:50]wFMCommunicate request_size=4 [07:29:50]MH_SAM_APDU [07:29:50]CAPDU: 80 13 01 00 [07:29:50]Write to MH i2c: E2 08 00 2D 11 80 13 01 00 00 00 00 00 BB [07:29:50]Write i2c OK [07:29:50]MH_I2C_Read... [07:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:50]Read from MH i2c: E2 [07:29:50]MH_I2C_Read... [07:29:50]Read from MH i2c: E2 0E 00 [07:29:50]MH_I2C_Read... [07:29:50]Read from MH i2c: E2 0E 00 2D 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F0 [07:29:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:29:50]wFMCommunicate OK [07:29:50]SAM_PROTO_GetShiftState done [07:29:50]FM_GetShiftState done [07:29:50]opened in 1729902702 [07:29:50]opened+sec_in_day 1729989102 [07:29:50]quantity*price = 100015 [07:29:50]sum+1 = 100017 [07:29:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 35 26.10.2024 07:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156134 ФПД: 141277662162104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T072954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156134&fm=141277662162104&tin=02508201610067®Number=0000000000091693&sum=100000 [07:29:52]StoreToDocumentArchive [07:29:52]shift 536 fd 156134 [07:29:52]save to /storage/0536/doc_00156134 [07:29:52]save last doc name /storage/0536/doc_00156134 to /storage/kkm_last_doc_name [07:29:52]save OK [07:29:52]Clear old archive folders... [07:29:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:52]tlvbuf is 00D09A10 [07:29:52]SAM_PROTO_ClearQueue [07:29:52]wFMCommunicate request_size=4 [07:29:52]MH_SAM_APDU [07:29:52]CAPDU: 80 09 00 00 [07:29:52]Write to MH i2c: E2 08 00 3A 11 80 09 00 00 00 00 00 00 BD [07:29:52]Write i2c OK [07:29:52]MH_I2C_Read... [07:29:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:52]Read from MH i2c: E2 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 03 00 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 03 00 3A 11 00 90 00 BF [07:29:52]RAPDU: 90 00 [07:29:52]wFMCommunicate OK [07:29:52]SAM_PROTO_ClearQueue done [07:29:52]KKMCreateOFDPacket [07:29:52]OFDProtocolAddRootSTLVToBuf [07:29:52]FM_MakeSignedData [07:29:52]FM_MakeSignedData [07:29:52]SAM_PROTO_SignData [07:29:52]wFMCommunicate request_size=4 [07:29:52]MH_SAM_APDU [07:29:52]CAPDU: 80 0D 01 02 [07:29:52]Write to MH i2c: E2 08 00 3B 11 80 0D 01 02 00 00 00 00 C5 [07:29:52]Write i2c OK [07:29:52]MH_I2C_Read... [07:29:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:52]Read from MH i2c: E2 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 03 00 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 03 00 3B 11 00 90 00 C0 [07:29:52]RAPDU: 90 00 [07:29:52]wFMCommunicate OK [07:29:52]wFMCommunicate request_size=255 [07:29:52]MH_SAM_APDU [07:29:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 9A 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 61 02 00 35 04 06 00 80 [07:29:52]Write to MH i2c: E2 02 01 3C 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 9A 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 61 02 00 35 04 06 00 80 00 00 E8 [07:29:52]Write i2c OK [07:29:52]MH_I2C_Read... [07:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:52]Read from MH i2c: E2 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 03 00 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 03 00 3C 11 00 90 00 C1 [07:29:52]RAPDU: 90 00 [07:29:52]wFMCommunicate OK [07:29:52]wFMCommunicate request_size=10 [07:29:52]MH_SAM_APDU [07:29:52]CAPDU: 80 0D 02 02 05 7D C4 DE 2C B8 [07:29:52]Write to MH i2c: E2 0D 00 3D 11 80 0D 02 02 05 00 7D C4 DE 2C B8 00 00 D5 [07:29:52]Write i2c OK [07:29:52]MH_I2C_Read... [07:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:52]Read from MH i2c: E2 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 03 00 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 03 00 3D 11 00 90 00 C2 [07:29:52]RAPDU: 90 00 [07:29:52]wFMCommunicate OK [07:29:52]wFMCommunicate request_size=4 [07:29:52]MH_SAM_APDU [07:29:52]CAPDU: 80 0D 03 02 [07:29:52]Write to MH i2c: E2 08 00 3E 11 80 0D 03 02 00 00 00 00 CA [07:29:52]Write i2c OK [07:29:52]MH_I2C_Read... [07:29:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:52]Read from MH i2c: E2 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 0B 00 [07:29:52]MH_I2C_Read... [07:29:52]Read from MH i2c: E2 0B 00 3E 11 00 16 71 C0 38 83 B5 E9 49 90 00 B4 [07:29:52]RAPDU: 16 71 C0 38 83 B5 E9 49 90 00 [07:29:52]wFMCommunicate OK [07:29:52]SAM_PROTO_SignData done [07:29:52]FM_MakeSignedData done [07:29:52]CreateOFDProtocolMessage [07:29:52]wFMCommunicate request_size=4 [07:29:52]MH_SAM_APDU [07:29:52]CAPDU: 80 11 00 00 [07:29:52]Write to MH i2c: E2 08 00 3F 11 80 11 00 00 00 00 00 00 CA [07:29:52]Write i2c OK [07:29:52]MH_I2C_Read... [07:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:52]Read from MH i2c: E2 [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:19]ConnectInit Can't connect to host [07:32:23]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33: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:43]ConnectInit Can't connect to host [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:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:21]accept exits with 9 [07:38:21]New connection [07:38:21]New thread 3066469732 created [07:38:21]Thread 3066613092 joined [07:38:21]Waiting for new connection... [07:38:21] Sock 9.Parse request [07:38:21]Sock 9.Check first char [07:38:21]Sock 9.First char is OK [07:38:21]request: POST /json_proto HTTP/1.0 [07:38:21]Method: POST [07:38:21]URL: /json_proto [07:38:21]Method is POST - this is cgi request [07:38:21]url: /json_proto [07:38:21]query_string will be loaded in cgi processing [07:38:21]execute_cgi json_proto POST (null) [07:38:21]execute_cgi path=json_proto method=POST [07:38:21]POST find Content-Length [07:38:21]Host: 172.17.63.3:8080 [07:38:21]Content-Length: 676 [07:38:21]Content-Type: application/json [07:38:21] [07:38:21]POST finish read [07:38:21]Found Content-Length = 676 [07:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:21]execute_script... [07:38:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:21]POST & json_proto [07:38:21]process_json_proto [07:38:21]json parsed OK: [07:38:21]protocol is kg_v1.0 [07:38:21]action value=close_receipt [07:38:21]process_action close_receipt [07:38:21]cmd_close_receipt [07:38:21]MH_GetDate [07:38:21]Write to MH i2c: F0 00 00 75 11 75 [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: F0 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: F0 09 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: F0 09 00 75 11 00 70 9C 1C 67 50 D1 6C 64 FE [07:38:21]GetLastDocTimeStamp 1729927794 [07:38:21]current date 1729928304 [07:38:21]FM_GetShiftState [07:38:21]SAM_PROTO_GetShiftState [07:38:21]wFMCommunicate request_size=4 [07:38:21]MH_SAM_APDU [07:38:21]CAPDU: 80 13 01 00 [07:38:21]Write to MH i2c: E2 08 00 76 11 80 13 01 00 00 00 00 00 04 [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:21]Read from MH i2c: E2 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 0E 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 0E 00 76 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 39 [07:38:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:38:21]wFMCommunicate OK [07:38:21]SAM_PROTO_GetShiftState done [07:38:21]FM_GetShiftState done [07:38:21]opened in 1729902702 [07:38:21]opened+sec_in_day 1729989102 [07:38:21]quantity*price = 60009 [07:38:21]sum+1 = 60010 [07:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 36 26.10.2024 07:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156135 ФПД: 119222084606886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T073824&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156135&fm=119222084606886&tin=02508201610067®Number=0000000000091693&sum=60000 [07:38:22]StoreToDocumentArchive [07:38:22]shift 536 fd 156135 [07:38:22]save to /storage/0536/doc_00156135 [07:38:22]save last doc name /storage/0536/doc_00156135 to /storage/kkm_last_doc_name [07:38:22]save OK [07:38:22]Clear old archive folders... [07:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:22]tlvbuf is 00CEBC90 [07:38:22]SAM_PROTO_ClearQueue [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 09 00 00 [07:38:22]Write to MH i2c: E2 08 00 83 11 80 09 00 00 00 00 00 00 06 [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 83 11 00 90 00 08 [07:38:22]RAPDU: 90 00 [07:38:22]wFMCommunicate OK [07:38:22]SAM_PROTO_ClearQueue done [07:38:22]KKMCreateOFDPacket [07:38:22]OFDProtocolAddRootSTLVToBuf [07:38:22]FM_MakeSignedData [07:38:22]FM_MakeSignedData [07:38:22]SAM_PROTO_SignData [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 0D 01 02 [07:38:22]Write to MH i2c: E2 08 00 84 11 80 0D 01 02 00 00 00 00 0E [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 84 11 00 90 00 09 [07:38:22]RAPDU: 90 00 [07:38:22]wFMCommunicate OK [07:38:22]wFMCommunicate request_size=255 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 70 9C 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 61 02 00 35 04 06 00 6C [07:38:22]Write to MH i2c: E2 02 01 85 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 70 9C 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 61 02 00 35 04 06 00 6C 00 00 02 [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 85 11 00 90 00 0A [07:38:22]RAPDU: 90 00 [07:38:22]wFMCommunicate OK [07:38:22]wFMCommunicate request_size=10 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 0D 02 02 05 6E 8E 00 9B A6 [07:38:22]Write to MH i2c: E2 0D 00 86 11 80 0D 02 02 05 00 6E 8E 00 9B A6 00 00 58 [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 86 11 00 90 00 0B [07:38:22]RAPDU: 90 00 [07:38:22]wFMCommunicate OK [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 0D 03 02 [07:38:22]Write to MH i2c: E2 08 00 87 11 80 0D 03 02 00 00 00 00 13 [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 0B 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 0B 00 87 11 00 3B BC 37 38 A6 A3 2B EC 90 00 DA [07:38:22]RAPDU: 3B BC 37 38 A6 A3 2B EC 90 00 [07:38:22]wFMCommunicate OK [07:38:22]SAM_PROTO_SignData done [07:38:22]FM_MakeSignedData done [07:38:22]CreateOFDProtocolMessage [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 11 00 00 [07:38:22]Write to MH i2c: E2 08 00 88 11 80 11 00 00 00 00 00 00 13 [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 17 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 17 00 88 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [07:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:38:22]wFMCommunicate OK [07:38:22]CreateOFDProtocolMessage done [07:38:22]OFDSenderStorePacket 156135 [07:38:22]StoreOFDPacket docnum=156135 [07:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9D 05 07 01 89 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 70 9C 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 61 02 00 35 04 06 00 6C 6E 8E 00 9B A6 3B BC 37 38 A6 A3 2B EC [07:38:22]CheckFolder [07:38:22]dirname=/storage/ofd_packets [07:38:22]CheckFolder done [07:38:22]ProducePacketName [07:38:22]name=ofd_packets/00156135 [07:38:22]NVStorageSaveData ofd_packets/00156135 [07:38:22]File name is /storage/ofd_packets/00156135 [07:38:22]Write 301 bytes [07:38:22]NVStorageSaveData done [07:38:22]OFDSenderStorePacket done [07:38:22]KKMCreateOFDPacket done [07:38:22]NVStorageSaveData kkm_last_timestamp [07:38:22]File name is /storage/kkm_last_timestamp [07:38:22]Write 4 bytes [07:38:22]NVStorageSaveData done [07:38:22]ExternCall_PrintAddStr [07:38:22]wPrintStart [07:38:22]Write to MH i2c: 01 00 00 89 11 9A [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: 01 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: 01 07 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: 01 07 00 89 11 00 00 00 00 00 FF 0F AF [07:38:22]RasterBufferAndPrint [07:38:22]line Счет N : (1)98949 [07:38:22]line ИНН: 02508201610067 [07:38:22]line Контрольно-Кассовый Чек [07:38:22]line ПРОДАЖА [07:38:22]line ТРК (МРК, ГНК) : 31 [07:38:22]line Товар: 2710124130 [07:38:22]line Аи-92-К-5 [07:38:22]line 8.970 * 66.90 [07:38:22]line = 600.09 [07:38:22]line НДС 12% НСП 1% [07:38:22]line > о реализуемом товаре [07:38:22]line ОКРУГЛЕНИЕ: -0.09 [07:38:22]line ИТОГО: 600.00 [07:38:22]line Внесено: 600.00 [07:38:22]line СДАЧА: 0.00 [07:38:22]line НСП 1% : 5.31 [07:38:22]line НДС 12% : 63.73 [07:38:22]line Наличными: 600.00 [07:38:22]line Безнал.: 0.00 [07:38:22]line Место: АЗС № 143 "Партнер Нефть" [07:38:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:38:22]line СНО: Общий режим [07:38:22]line Чек 36 26.10.2024 07:38 [07:38:22]line Смена: 536 ФФД: 1.0 [07:38:22]line ЗНМ: 0300000096 [07:38:22]line РНМ: 0000000000091693 [07:38:22]line Версия ККМ: 001 [07:38:22]line ФМ: 0000000000871792 [07:38:22]line ФД: 156135 [07:38:22]line ФПД: 119222084606886 [07:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T073824&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156135&fm=119222084606886&tin=02508201610067®Number=0000000000091693&sum=60000 [07:38:22]written 0, free lines is 4095 [07:38:22]OFD Sender: Processing packet 156135 [packets to send 31, broken 30] [07:38:22]ProducePacketName [07:38:22]name=ofd_packets/00156135 [07:38:22]OFD Sender: To server: pG, [07:38:22]CommunicateWithHost lk.salyk.kg:30040 [07:38:22]ConnectInit lk.salyk.kg [07:38:23]Connected sock=11 [07:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9D 05 07 01 89 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 70 9C 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 61 02 00 35 04 06 00 6C 6E 8E 00 9B A6 3B BC 37 38 A6 A3 2B EC [07:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1F 50 47 00 74 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 61 02 00 F4 03 04 00 E3 41 1C 67 B6 04 01 00 00 5B C5 55 8A 84 C7 BB A4 [07:38:23]CommunicateWithHost err = 0 [07:38:23]CheckOFDResponse [07:38:23]1017 (14) - 77093643461234 [07:38:23]1041 (16) - 0000000000871792 [07:38:23]1040 (4) - 156135 [07:38:23]1012 (4) - 26.10.2024 01:12 [07:38:23]1206 (1) - 0 [07:38:23]OFD Sender: Remove packet 156135 [07:38:23]ProducePacketName [07:38:23]name=ofd_packets/00156135 [07:38:23]NVStorageDeleteData [07:38:23]Write to MH i2c: 01 00 00 B4 11 C5 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 07 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 07 00 B4 11 00 00 00 00 00 F7 0C CF [07:38:23]RasterBufferAndPrint [07:38:23]line [07:38:23]line [07:38:23]line [07:38:23]line [07:38:23]line [07:38:23]written 0, free lines is 3326 [07:38:23]process_action close_receipt done [07:38:23]requested_data is exist [07:38:23]produce_requested_data [07:38:23]requested_item fm.sn is exist - process it [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 11 00 00 [07:38:23]Write to MH i2c: E2 08 00 BB 11 80 11 00 00 00 00 00 00 46 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:23]Read from MH i2c: E2 17 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 17 00 BB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [07:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:38:23]wFMCommunicate OK [07:38:23]requested_item fd.num is exist - process it [07:38:23]SAM_PROTO_GetFieldsCounters [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 13 00 00 [07:38:23]Write to MH i2c: E2 08 00 BC 11 80 13 00 00 00 00 00 00 49 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 62 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 62 00 BC 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 61 02 00 0E 04 04 00 18 02 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 3F [07:38:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 61 02 00 0E 04 04 00 18 02 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 [07:38:23]wFMCommunicate OK [07:38:23]SAM_PROTO_GetFieldsCounters done [07:38:23]requested_item shift.num is exist - process it [07:38:23]requested_item shift.opened is exist - process it [07:38:23]req_shift_opened [07:38:23]FM_GetShiftState [07:38:23]SAM_PROTO_GetShiftState [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 13 01 00 [07:38:23]Write to MH i2c: E2 08 00 BD 11 80 13 01 00 00 00 00 00 4B [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 0E 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 0E 00 BD 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 80 [07:38:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:38:23]wFMCommunicate OK [07:38:23]SAM_PROTO_GetShiftState done [07:38:23]FM_GetShiftState done [07:38:23]req_shift_opened done [07:38:23]requested_item shift.open_date is exist - process it [07:38:23]req_shift_open_date [07:38:23]req_shift_open_date done [07:38:23]produce_requested_data done [07:38:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156135,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [07:38:23]process_action_free close_receipt [07:38:23]json_value_free [07:38:23]json_value_free done [07:38:23]process_json_proto returns [07:38:23]Send response to host [07:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156135,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [07:38:23]free response buf [07:38:23]execute_script done [07:38:23]execute_script returns [07:38:23]free content buf [07:38:23]Sock 9.Close socket [07:38:23]Sock 9.Thread stoped [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:49]ConnectInit Can't connect to host [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:28]accept exits with 10 [07:48:28]New connection [07:48:28]New thread 3066613092 created [07:48:28]Thread 3066469732 joined [07:48:28]Waiting for new connection... [07:48:28] Sock 10.Parse request [07:48:28]Sock 10.Check first char [07:48:28]Sock 10.First char is OK [07:48:28]request: POST /json_proto HTTP/1.0 [07:48:28]Method: POST [07:48:28]URL: /json_proto [07:48:28]Method is POST - this is cgi request [07:48:28]url: /json_proto [07:48:28]query_string will be loaded in cgi processing [07:48:28]execute_cgi json_proto POST (null) [07:48:28]execute_cgi path=json_proto method=POST [07:48:28]POST find Content-Length [07:48:28]Host: 172.17.63.3:8080 [07:48:28]Content-Length: 765 [07:48:28]Content-Type: application/json [07:48:28] [07:48:28]POST finish read [07:48:28]Found Content-Length = 765 [07:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 210.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:28]execute_script... [07:48: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)98950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 210.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:28]POST & json_proto [07:48:28]process_json_proto [07:48:28]json parsed OK: [07:48:28]protocol is kg_v1.0 [07:48:28]action value=close_receipt [07:48:28]process_action close_receipt [07:48:28]cmd_close_receipt [07:48:28]MH_GetDate [07:48:28]Write to MH i2c: F0 00 00 BE 11 BE [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: F0 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: F0 09 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: F0 09 00 BE 11 00 CF 9E 1C 67 50 D1 6C 64 A8 [07:48:28]GetLastDocTimeStamp 1729928304 [07:48:28]current date 1729928911 [07:48:28]FM_GetShiftState [07:48:28]SAM_PROTO_GetShiftState [07:48:28]wFMCommunicate request_size=4 [07:48:28]MH_SAM_APDU [07:48:28]CAPDU: 80 13 01 00 [07:48:28]Write to MH i2c: E2 08 00 BF 11 80 13 01 00 00 00 00 00 4D [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:28]Read from MH i2c: E2 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 0E 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 0E 00 BF 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 82 [07:48:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:48:28]wFMCommunicate OK [07:48:28]SAM_PROTO_GetShiftState done [07:48:28]FM_GetShiftState done [07:48:28]opened in 1729902702 [07:48:28]opened+sec_in_day 1729989102 [07:48:28]quantity*price = 21006 [07:48:28]sum+1 = 21008 [07:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.07 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 0.00 Безнал.: 210.07 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 37 26.10.2024 07:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156136 ФПД: 59524187559688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156136&fm=59524187559688&tin=02508201610067®Number=0000000000091693&sum=21007 [07:48:29]StoreToDocumentArchive [07:48:29]shift 536 fd 156136 [07:48:29]save to /storage/0536/doc_00156136 [07:48:29]save last doc name /storage/0536/doc_00156136 to /storage/kkm_last_doc_name [07:48:29]save OK [07:48:29]Clear old archive folders... [07:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:29]tlvbuf is B6D55630 [07:48:29]SAM_PROTO_ClearQueue [07:48:29]wFMCommunicate request_size=4 [07:48:29]MH_SAM_APDU [07:48:29]CAPDU: 80 09 00 00 [07:48:29]Write to MH i2c: E2 08 00 CC 11 80 09 00 00 00 00 00 00 4F [07:48:29]Write i2c OK [07:48:29]MH_I2C_Read... [07:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:29]Read from MH i2c: E2 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 03 00 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [07:48:29]RAPDU: 90 00 [07:48:29]wFMCommunicate OK [07:48:29]SAM_PROTO_ClearQueue done [07:48:29]KKMCreateOFDPacket [07:48:29]OFDProtocolAddRootSTLVToBuf [07:48:29]FM_MakeSignedData [07:48:29]FM_MakeSignedData [07:48:29]SAM_PROTO_SignData [07:48:29]wFMCommunicate request_size=4 [07:48:29]MH_SAM_APDU [07:48:29]CAPDU: 80 0D 01 02 [07:48:29]Write to MH i2c: E2 08 00 CD 11 80 0D 01 02 00 00 00 00 57 [07:48:29]Write i2c OK [07:48:29]MH_I2C_Read... [07:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:29]Read from MH i2c: E2 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 03 00 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 03 00 CD 11 00 90 00 52 [07:48:29]RAPDU: 90 00 [07:48:29]wFMCommunicate OK [07:48:29]wFMCommunicate request_size=255 [07:48:29]MH_SAM_APDU [07:48: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 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CF 9E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 61 02 00 35 04 06 00 36 [07:48:29]Write to MH i2c: E2 02 01 CE 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CF 9E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 61 02 00 35 04 06 00 36 00 00 3E [07:48:29]Write i2c OK [07:48:29]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 03 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 03 00 CE 11 00 90 00 53 [07:48:30]RAPDU: 90 00 [07:48:30]wFMCommunicate OK [07:48:30]wFMCommunicate request_size=10 [07:48:30]MH_SAM_APDU [07:48:30]CAPDU: 80 0D 02 02 05 23 0E 0E 17 08 [07:48:30]Write to MH i2c: E2 0D 00 CF 11 80 0D 02 02 05 00 23 0E 0E 17 08 00 00 C2 [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 03 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 03 00 CF 11 00 90 00 54 [07:48:30]RAPDU: 90 00 [07:48:30]wFMCommunicate OK [07:48:30]wFMCommunicate request_size=4 [07:48:30]MH_SAM_APDU [07:48:30]CAPDU: 80 0D 03 02 [07:48:30]Write to MH i2c: E2 08 00 D0 11 80 0D 03 02 00 00 00 00 5C [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 0B 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 0B 00 D0 11 00 3B B0 07 AA 3B 52 AC C9 90 00 FB [07:48:30]RAPDU: 3B B0 07 AA 3B 52 AC C9 90 00 [07:48:30]wFMCommunicate OK [07:48:30]SAM_PROTO_SignData done [07:48:30]FM_MakeSignedData done [07:48:30]CreateOFDProtocolMessage [07:48:30]wFMCommunicate request_size=4 [07:48:30]MH_SAM_APDU [07:48:30]CAPDU: 80 11 00 00 [07:48:30]Write to MH i2c: E2 08 00 D1 11 80 11 00 00 00 00 00 00 5C [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 17 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 17 00 D1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [07:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:48:30]wFMCommunicate OK [07:48:30]CreateOFDProtocolMessage done [07:48:30]OFDSenderStorePacket 156136 [07:48:30]StoreOFDPacket docnum=156136 [07:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 45 D8 07 01 11 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CF 9E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 61 02 00 35 04 06 00 36 23 0E 0E 17 08 3B B0 07 AA 3B 52 AC C9 [07:48:30]CheckFolder [07:48:30]dirname=/storage/ofd_packets [07:48:30]CheckFolder done [07:48:30]ProducePacketName [07:48:30]name=ofd_packets/00156136 [07:48:30]NVStorageSaveData ofd_packets/00156136 [07:48:30]File name is /storage/ofd_packets/00156136 [07:48:30]Write 301 bytes [07:48:30]NVStorageSaveData done [07:48:30]OFDSenderStorePacket done [07:48:30]KKMCreateOFDPacket done [07:48:30]NVStorageSaveData kkm_last_timestamp [07:48:30]File name is /storage/kkm_last_timestamp [07:48:30]Write 4 bytes [07:48:30]NVStorageSaveData done [07:48:30]ExternCall_PrintAddStr [07:48:30]wPrintStart [07:48:30]Write to MH i2c: 01 00 00 D2 11 E3 [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: 01 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: 01 07 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: 01 07 00 D2 11 00 00 00 00 00 FF 0F F8 [07:48:30]RasterBufferAndPrint [07:48:30]line Счет N : (1)98950 [07:48:30]line ИНН: 02508201610067 [07:48:30]line Контрольно-Кассовый Чек [07:48:30]line ПРОДАЖА [07:48:30]line ТРК (МРК, ГНК) : 21 [07:48:30]line Товар: 2710124130 [07:48:30]line Аи-92-К-5 [07:48:30]line 3.140 * 66.90 [07:48:30]line = 210.07 [07:48:30]line НДС 12% НСП 1% [07:48:30]line > о реализуемом товаре [07:48:30]line ИТОГО: 210.07 [07:48:30]line НСП 1% : 1.86 [07:48:30]line НДС 12% : 22.31 [07:48:30]line Наличными: 0.00 [07:48:30]line Безнал.: 210.07 [07:48:30]line Место: АЗС № 143 "Партнер Нефть" [07:48:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:48:30]line СНО: Общий режим [07:48:30]line Чек 37 26.10.2024 07:48 [07:48:30]line Смена: 536 ФФД: 1.0 [07:48:30]line ЗНМ: 0300000096 [07:48:30]line РНМ: 0000000000091693 [07:48:30]line Версия ККМ: 001 [07:48:30]line Платежная система: Mbank [07:48:30]line ФМ: 0000000000871792 [07:48:30]line ФД: 156136 [07:48:30]line ФПД: 59524187559688 [07:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156136&fm=59524187559688&tin=02508201610067®Number=0000000000091693&sum=21007 [07:48:30]written 0, free lines is 4095 [07:48:30]OFD Sender: Processing packet 156136 [packets to send 31, broken 30] [07:48:30]ProducePacketName [07:48:30]name=ofd_packets/00156136 [07:48:30]OFD Sender: To server: pG, [07:48:30]CommunicateWithHost lk.salyk.kg:30040 [07:48:30]ConnectInit lk.salyk.kg [07:48:30]Connected sock=9 [07:48:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 45 D8 07 01 11 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CF 9E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 61 02 00 35 04 06 00 36 23 0E 0E 17 08 3B B0 07 AA 3B 52 AC C9 [07:48:30]Write to MH i2c: 01 00 00 FB 11 0C [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: 01 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: 01 07 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: 01 07 00 FB 11 00 00 00 00 00 0E 0D 2E [07:48:30]RasterBufferAndPrint [07:48:30]line [07:48:30]line [07:48:30]line [07:48:30]line [07:48:30]line [07:48:30]written 0, free lines is 3348 [07:48:30]process_action close_receipt done [07:48:30]requested_data is exist [07:48:30]produce_requested_data [07:48:30]requested_item fm.sn is exist - process it [07:48:30]wFMCommunicate request_size=4 [07:48:30]MH_SAM_APDU [07:48:30]CAPDU: 80 11 00 00 [07:48:30]Write to MH i2c: E2 08 00 02 12 80 11 00 00 00 00 00 00 8E [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C3 85 47 00 C2 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 61 02 00 F4 03 04 00 42 44 1C 67 B6 04 01 00 00 ED 83 8A 64 B1 92 22 26 [07:48:30]CommunicateWithHost err = 0 [07:48:30]CheckOFDResponse [07:48:30]1017 (14) - 77093643461234 [07:48:30]1041 (16) - 0000000000871792 [07:48:30]1040 (4) - 156136 [07:48:30]1012 (4) - 26.10.2024 01:22 [07:48:30]1206 (1) - 0 [07:48:30]OFD Sender: Remove packet 156136 [07:48:30]ProducePacketName [07:48:30]name=ofd_packets/00156136 [07:48:30]NVStorageDeleteData [07:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 17 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 17 00 02 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E3 [07:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:48:30]wFMCommunicate OK [07:48:30]requested_item fd.num is exist - process it [07:48:30]SAM_PROTO_GetFieldsCounters [07:48:30]wFMCommunicate request_size=4 [07:48:30]MH_SAM_APDU [07:48:30]CAPDU: 80 13 00 00 [07:48:30]Write to MH i2c: E2 08 00 03 12 80 13 00 00 00 00 00 00 91 [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 62 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 62 00 03 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 61 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [07:48: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 61 02 00 0E 04 04 00 18 02 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 [07:48:30]wFMCommunicate OK [07:48:30]SAM_PROTO_GetFieldsCounters done [07:48:30]requested_item shift.num is exist - process it [07:48:30]requested_item shift.opened is exist - process it [07:48:30]req_shift_opened [07:48:30]FM_GetShiftState [07:48:30]SAM_PROTO_GetShiftState [07:48:30]wFMCommunicate request_size=4 [07:48:30]MH_SAM_APDU [07:48:30]CAPDU: 80 13 01 00 [07:48:30]Write to MH i2c: E2 08 00 04 12 80 13 01 00 00 00 00 00 93 [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 0E 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 0E 00 04 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C8 [07:48:30]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:48:30]wFMCommunicate OK [07:48:30]SAM_PROTO_GetShiftState done [07:48:30]FM_GetShiftState done [07:48:30]req_shift_opened done [07:48:30]requested_item shift.open_date is exist - process it [07:48:30]req_shift_open_date [07:48:30]req_shift_open_date done [07:48:30]produce_requested_data done [07:48:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156136,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [07:48:30]process_action_free close_receipt [07:48:30]json_value_free [07:48:30]json_value_free done [07:48:30]process_json_proto returns [07:48:30]Send response to host [07:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156136,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [07:48:30]free response buf [07:48:30]execute_script done [07:48:30]execute_script returns [07:48:30]free content buf [07:48:30]Sock 10.Close socket [07:48:30]Sock 10.Thread stoped [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]accept exits with 7 [07:48:51]New connection [07:48:51]New thread 3066469732 created [07:48:51]Thread 3066613092 joined [07:48:51]Waiting for new connection... [07:48:51] Sock 7.Parse request [07:48:51]Sock 7.Check first char [07:48:51]Sock 7.First char is OK [07:48:51]request: POST /json_proto HTTP/1.0 [07:48:51]Method: POST [07:48:51]URL: /json_proto [07:48:51]Method is POST - this is cgi request [07:48:51]url: /json_proto [07:48:51]query_string will be loaded in cgi processing [07:48:51]execute_cgi json_proto POST (null) [07:48:51]execute_cgi path=json_proto method=POST [07:48:51]POST find Content-Length [07:48:51]Host: 172.17.63.3:8080 [07:48:51]Content-Length: 676 [07:48:51]Content-Type: application/json [07:48:51] [07:48:51]POST finish read [07:48:51]Found Content-Length = 676 [07:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:51]execute_script... [07:48:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:51]POST & json_proto [07:48:51]process_json_proto [07:48:51]json parsed OK: [07:48:51]protocol is kg_v1.0 [07:48:51]action value=close_receipt [07:48:51]process_action close_receipt [07:48:51]cmd_close_receipt [07:48:51]MH_GetDate [07:48:51]Write to MH i2c: F0 00 00 05 12 06 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 09 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 09 00 05 12 00 E6 9E 1C 67 50 D1 6C 64 07 [07:48:51]GetLastDocTimeStamp 1729928911 [07:48:51]current date 1729928934 [07:48:51]FM_GetShiftState [07:48:51]SAM_PROTO_GetShiftState [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 13 01 00 [07:48:51]Write to MH i2c: E2 08 00 06 12 80 13 01 00 00 00 00 00 95 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 06 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CA [07:48:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_GetShiftState done [07:48:51]FM_GetShiftState done [07:48:51]opened in 1729902702 [07:48:51]opened+sec_in_day 1729989102 [07:48:51]quantity*price = 24017 [07:48:51]sum+1 = 24018 [07:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 38 26.10.2024 07:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156137 ФПД: 158794026898823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074854&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156137&fm=158794026898823&tin=02508201610067®Number=0000000000091693&sum=24000 [07:48:52]StoreToDocumentArchive [07:48:52]shift 536 fd 156137 [07:48:52]save to /storage/0536/doc_00156137 [07:48:52]save last doc name /storage/0536/doc_00156137 to /storage/kkm_last_doc_name [07:48:52]save OK [07:48:52]Clear old archive folders... [07:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:52]tlvbuf is 00D1EBA0 [07:48:52]SAM_PROTO_ClearQueue [07:48:52]wFMCommunicate request_size=4 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 09 00 00 [07:48:52]Write to MH i2c: E2 08 00 13 12 80 09 00 00 00 00 00 00 97 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [07:48:52]RAPDU: 90 00 [07:48:52]wFMCommunicate OK [07:48:52]SAM_PROTO_ClearQueue done [07:48:52]KKMCreateOFDPacket [07:48:52]OFDProtocolAddRootSTLVToBuf [07:48:52]FM_MakeSignedData [07:48:52]FM_MakeSignedData [07:48:52]SAM_PROTO_SignData [07:48:52]wFMCommunicate request_size=4 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 0D 01 02 [07:48:52]Write to MH i2c: E2 08 00 14 12 80 0D 01 02 00 00 00 00 9F [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [07:48:52]RAPDU: 90 00 [07:48:52]wFMCommunicate OK [07:48:52]wFMCommunicate request_size=255 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 9E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 61 02 00 35 04 06 00 90 [07:48:52]Write to MH i2c: E2 02 01 15 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 9E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 61 02 00 35 04 06 00 90 00 00 5C [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [07:48:52]RAPDU: 90 00 [07:48:52]wFMCommunicate OK [07:48:52]wFMCommunicate request_size=10 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 0D 02 02 05 6C 1D 90 D5 87 [07:48:52]Write to MH i2c: E2 0D 00 16 12 80 0D 02 02 05 00 6C 1D 90 D5 87 00 00 21 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 16 12 00 90 00 9C [07:48:52]RAPDU: 90 00 [07:48:52]wFMCommunicate OK [07:48:52]wFMCommunicate request_size=4 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 0D 03 02 [07:48:52]Write to MH i2c: E2 08 00 17 12 80 0D 03 02 00 00 00 00 A4 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 0B 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 0B 00 17 12 00 C4 35 39 64 D9 74 D2 6B 90 00 C5 [07:48:52]RAPDU: C4 35 39 64 D9 74 D2 6B 90 00 [07:48:52]wFMCommunicate OK [07:48:52]SAM_PROTO_SignData done [07:48:52]FM_MakeSignedData done [07:48:52]CreateOFDProtocolMessage [07:48:52]wFMCommunicate request_size=4 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 11 00 00 [07:48:52]Write to MH i2c: E2 08 00 18 12 80 11 00 00 00 00 00 00 A4 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 17 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 17 00 18 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [07:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:48:52]wFMCommunicate OK [07:48:52]CreateOFDProtocolMessage done [07:48:52]OFDSenderStorePacket 156137 [07:48:52]StoreOFDPacket docnum=156137 [07:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 46 DE 07 01 D6 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 9E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 61 02 00 35 04 06 00 90 6C 1D 90 D5 87 C4 35 39 64 D9 74 D2 6B [07:48:52]CheckFolder [07:48:52]dirname=/storage/ofd_packets [07:48:52]CheckFolder done [07:48:52]ProducePacketName [07:48:52]name=ofd_packets/00156137 [07:48:52]NVStorageSaveData ofd_packets/00156137 [07:48:52]File name is /storage/ofd_packets/00156137 [07:48:52]Write 301 bytes [07:48:52]NVStorageSaveData done [07:48:52]OFDSenderStorePacket done [07:48:52]KKMCreateOFDPacket done [07:48:52]NVStorageSaveData kkm_last_timestamp [07:48:52]File name is /storage/kkm_last_timestamp [07:48:52]Write 4 bytes [07:48:52]NVStorageSaveData done [07:48:52]ExternCall_PrintAddStr [07:48:52]wPrintStart [07:48:52]Write to MH i2c: 01 00 00 19 12 2B [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 07 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 07 00 19 12 00 00 00 00 00 FF 0F 40 [07:48:52]RasterBufferAndPrint [07:48:52]line Счет N : (1)98951 [07:48:52]line ИНН: 02508201610067 [07:48:52]line Контрольно-Кассовый Чек [07:48:52]line ПРОДАЖА [07:48:52]line ТРК (МРК, ГНК) : 21 [07:48:52]line Товар: 2710124130 [07:48:52]line Аи-92-К-5 [07:48:52]line 3.590 * 66.90 [07:48:52]line = 240.17 [07:48:52]line НДС 12% НСП 1% [07:48:52]line > о реализуемом товаре [07:48:52]line ОКРУГЛЕНИЕ: -0.17 [07:48:52]line ИТОГО: 240.00 [07:48:52]line Внесено: 240.00 [07:48:52]line СДАЧА: 0.00 [07:48:52]line НСП 1% : 2.12 [07:48:52]line НДС 12% : 25.50 [07:48:52]line Наличными: 240.00 [07:48:52]line Безнал.: 0.00 [07:48:52]line Место: АЗС № 143 "Партнер Нефть" [07:48:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:48:52]line СНО: Общий режим [07:48:52]line Чек 38 26.10.2024 07:48 [07:48:52]line Смена: 536 ФФД: 1.0 [07:48:52]line ЗНМ: 0300000096 [07:48:52]line РНМ: 0000000000091693 [07:48:52]line Версия ККМ: 001 [07:48:52]line ФМ: 0000000000871792 [07:48:52]line ФД: 156137 [07:48:52]line ФПД: 158794026898823 [07:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074854&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156137&fm=158794026898823&tin=02508201610067®Number=0000000000091693&sum=24000 [07:48:53]OFD Sender: Processing packet 156137 [packets to send 31, broken 30] [07:48:53]ProducePacketName [07:48:53]name=ofd_packets/00156137 [07:48:53]OFD Sender: To server: pG, [07:48:53]CommunicateWithHost lk.salyk.kg:30040 [07:48:53]ConnectInit lk.salyk.kg [07:48:53]written 0, free lines is 4095 [07:48:53]Connected sock=10 [07:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 46 DE 07 01 D6 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 9E 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 61 02 00 35 04 06 00 90 6C 1D 90 D5 87 C4 35 39 64 D9 74 D2 6B [07:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 98 2D 47 00 C2 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 61 02 00 F4 03 04 00 59 44 1C 67 B6 04 01 00 00 8F 7E 8B 0D B9 FF 04 57 [07:48:53]CommunicateWithHost err = 0 [07:48:53]CheckOFDResponse [07:48:53]1017 (14) - 77093643461234 [07:48:53]1041 (16) - 0000000000871792 [07:48:53]1040 (4) - 156137 [07:48:53]1012 (4) - 26.10.2024 01:22 [07:48:53]1206 (1) - 0 [07:48:53]OFD Sender: Remove packet 156137 [07:48:53]ProducePacketName [07:48:53]name=ofd_packets/00156137 [07:48:53]NVStorageDeleteData [07:48:53]Write to MH i2c: 01 00 00 44 12 56 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 07 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 07 00 44 12 00 00 00 00 00 F1 0C 5A [07:48:53]RasterBufferAndPrint [07:48:53]line [07:48:53]line [07:48:53]line [07:48:53]line [07:48:53]line [07:48:53]written 0, free lines is 3323 [07:48:53]process_action close_receipt done [07:48:53]requested_data is exist [07:48:53]produce_requested_data [07:48:53]requested_item fm.sn is exist - process it [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 11 00 00 [07:48:53]Write to MH i2c: E2 08 00 4B 12 80 11 00 00 00 00 00 00 D7 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 17 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 17 00 4B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2C [07:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:48:53]wFMCommunicate OK [07:48:53]requested_item fd.num is exist - process it [07:48:53]SAM_PROTO_GetFieldsCounters [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 13 00 00 [07:48:53]Write to MH i2c: E2 08 00 4C 12 80 13 00 00 00 00 00 00 DA [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:53]Read from MH i2c: E2 62 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 62 00 4C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 61 02 00 0E 04 04 00 18 02 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 D8 [07:48: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 61 02 00 0E 04 04 00 18 02 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 [07:48:53]wFMCommunicate OK [07:48:53]SAM_PROTO_GetFieldsCounters done [07:48:53]requested_item shift.num is exist - process it [07:48:53]requested_item shift.opened is exist - process it [07:48:53]req_shift_opened [07:48:53]FM_GetShiftState [07:48:53]SAM_PROTO_GetShiftState [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 13 01 00 [07:48:53]Write to MH i2c: E2 08 00 4D 12 80 13 01 00 00 00 00 00 DC [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 0E 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 0E 00 4D 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 11 [07:48:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:48:53]wFMCommunicate OK [07:48:53]SAM_PROTO_GetShiftState done [07:48:53]FM_GetShiftState done [07:48:53]req_shift_opened done [07:48:53]requested_item shift.open_date is exist - process it [07:48:53]req_shift_open_date [07:48:53]req_shift_open_date done [07:48:53]produce_requested_data done [07:48:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156137,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [07:48:53]process_action_free close_receipt [07:48:53]json_value_free [07:48:53]json_value_free done [07:48:53]process_json_proto returns [07:48:53]Send response to host [07:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156137,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [07:48:53]free response buf [07:48:53]execute_script done [07:48:53]execute_script returns [07:48:53]free content buf [07:48:53]Sock 7.Close socket [07:48:53]Sock 7.Thread stoped [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:53]accept exits with 9 [07:49:53]New connection [07:49:53]New thread 3066613092 created [07:49:53]Thread 3066469732 joined [07:49:53]Waiting for new connection... [07:49:53] Sock 9.Parse request [07:49:53]Sock 9.Check first char [07:49:53]Sock 9.First char is OK [07:49:53]request: POST /json_proto HTTP/1.0 [07:49:53]Method: POST [07:49:53]URL: /json_proto [07:49:53]Method is POST - this is cgi request [07:49:53]url: /json_proto [07:49:53]query_string will be loaded in cgi processing [07:49:53]execute_cgi json_proto POST (null) [07:49:53]execute_cgi path=json_proto method=POST [07:49:53]POST find Content-Length [07:49:53]Host: 172.17.63.3:8080 [07:49:53]Content-Length: 673 [07:49:53]Content-Type: application/json [07:49:53] [07:49:53]POST finish read [07:49:53]Found Content-Length = 673 [07:49:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.760, "sum" : 50.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 50.00, "payments": [ { "type": 0, "sum" : 50.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:53]execute_script... [07:49:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.760, "sum" : 50.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 50.00, "payments": [ { "type": 0, "sum" : 50.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:53]POST & json_proto [07:49:53]process_json_proto [07:49:53]json parsed OK: [07:49:53]protocol is kg_v1.0 [07:49:53]action value=close_receipt [07:49:53]process_action close_receipt [07:49:53]cmd_close_receipt [07:49:53]MH_GetDate [07:49:53]Write to MH i2c: F0 00 00 4E 12 4F [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: F0 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: F0 09 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: F0 09 00 4E 12 00 24 9F 1C 67 50 D1 6C 64 8F [07:49:53]GetLastDocTimeStamp 1729928934 [07:49:53]current date 1729928996 [07:49:53]FM_GetShiftState [07:49:53]SAM_PROTO_GetShiftState [07:49:53]wFMCommunicate request_size=4 [07:49:53]MH_SAM_APDU [07:49:53]CAPDU: 80 13 01 00 [07:49:53]Write to MH i2c: E2 08 00 4F 12 80 13 01 00 00 00 00 00 DE [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:53]Read from MH i2c: E2 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 0E 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 0E 00 4F 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 13 [07:49:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:49:53]wFMCommunicate OK [07:49:53]SAM_PROTO_GetShiftState done [07:49:53]FM_GetShiftState done [07:49:53]opened in 1729902702 [07:49:53]opened+sec_in_day 1729989102 [07:49:53]quantity*price = 5084 [07:49:53]sum+1 = 5085 [07:49:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 50.00 Внесено: 100.00 СДАЧА: 50.00 НСП 1% : 0.45 НДС 12% : 5.40 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 39 26.10.2024 07:49 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156138 ФПД: 18175283395150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074956&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156138&fm=18175283395150&tin=02508201610067®Number=0000000000091693&sum=5000 [07:49:54]StoreToDocumentArchive [07:49:54]shift 536 fd 156138 [07:49:54]save to /storage/0536/doc_00156138 [07:49:54]save last doc name /storage/0536/doc_00156138 to /storage/kkm_last_doc_name [07:49:54]save OK [07:49:54]Clear old archive folders... [07:49:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:54]tlvbuf is 00D8AFB0 [07:49:54]SAM_PROTO_ClearQueue [07:49:54]wFMCommunicate request_size=4 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 09 00 00 [07:49:54]Write to MH i2c: E2 08 00 5C 12 80 09 00 00 00 00 00 00 E0 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [07:49:54]RAPDU: 90 00 [07:49:54]wFMCommunicate OK [07:49:54]SAM_PROTO_ClearQueue done [07:49:54]KKMCreateOFDPacket [07:49:54]OFDProtocolAddRootSTLVToBuf [07:49:54]FM_MakeSignedData [07:49:54]FM_MakeSignedData [07:49:54]SAM_PROTO_SignData [07:49:54]wFMCommunicate request_size=4 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 0D 01 02 [07:49:54]Write to MH i2c: E2 08 00 5D 12 80 0D 01 02 00 00 00 00 E8 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [07:49:54]RAPDU: 90 00 [07:49:54]wFMCommunicate OK [07:49:54]wFMCommunicate request_size=255 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 02 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DC 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 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 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 27 00 00 00 F4 03 04 00 24 9F 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 61 02 00 35 04 06 00 10 [07:49:54]Write to MH i2c: E2 02 01 5E 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 02 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DC 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 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 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 27 00 00 00 F4 03 04 00 24 9F 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 61 02 00 35 04 06 00 10 00 00 81 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [07:49:54]RAPDU: 90 00 [07:49:54]wFMCommunicate OK [07:49:54]wFMCommunicate request_size=10 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 0D 02 02 05 87 C3 4F 7A 4E [07:49:54]Write to MH i2c: E2 0D 00 5F 12 80 0D 02 02 05 00 87 C3 4F 7A 4E 00 00 56 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [07:49:54]RAPDU: 90 00 [07:49:54]wFMCommunicate OK [07:49:54]wFMCommunicate request_size=4 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 0D 03 02 [07:49:54]Write to MH i2c: E2 08 00 60 12 80 0D 03 02 00 00 00 00 ED [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 0B 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 0B 00 60 12 00 82 A4 C1 F8 9E C5 E9 E4 90 00 FD [07:49:54]RAPDU: 82 A4 C1 F8 9E C5 E9 E4 90 00 [07:49:54]wFMCommunicate OK [07:49:54]SAM_PROTO_SignData done [07:49:54]FM_MakeSignedData done [07:49:54]CreateOFDProtocolMessage [07:49:54]wFMCommunicate request_size=4 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 11 00 00 [07:49:54]Write to MH i2c: E2 08 00 61 12 80 11 00 00 00 00 00 00 ED [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 17 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 17 00 61 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [07:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:49:54]wFMCommunicate OK [07:49:54]CreateOFDProtocolMessage done [07:49:54]OFDSenderStorePacket 156138 [07:49:54]StoreOFDPacket docnum=156138 [07:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AC 25 07 01 D9 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 02 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DC 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 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 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 27 00 00 00 F4 03 04 00 24 9F 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 61 02 00 35 04 06 00 10 87 C3 4F 7A 4E 82 A4 C1 F8 9E C5 E9 E4 [07:49:54]CheckFolder [07:49:54]dirname=/storage/ofd_packets [07:49:54]CheckFolder done [07:49:54]ProducePacketName [07:49:54]name=ofd_packets/00156138 [07:49:54]NVStorageSaveData ofd_packets/00156138 [07:49:54]File name is /storage/ofd_packets/00156138 [07:49:54]Write 301 bytes [07:49:54]NVStorageSaveData done [07:49:54]OFDSenderStorePacket done [07:49:54]KKMCreateOFDPacket done [07:49:54]NVStorageSaveData kkm_last_timestamp [07:49:54]File name is /storage/kkm_last_timestamp [07:49:54]Write 4 bytes [07:49:54]NVStorageSaveData done [07:49:54]ExternCall_PrintAddStr [07:49:54]wPrintStart [07:49:54]Write to MH i2c: 01 00 00 62 12 74 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: 01 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: 01 07 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: 01 07 00 62 12 00 00 00 00 00 FF 0F 89 [07:49:54]RasterBufferAndPrint [07:49:54]line Счет N : (1)98952 [07:49:54]line ИНН: 02508201610067 [07:49:54]line Контрольно-Кассовый Чек [07:49:54]line ПРОДАЖА [07:49:54]line ТРК (МРК, ГНК) : 21 [07:49:54]line Товар: 2710124130 [07:49:54]line Аи-92-К-5 [07:49:54]line 0.760 * 66.90 [07:49:54]line = 50.84 [07:49:54]line НДС 12% НСП 1% [07:49:54]line > о реализуемом товаре [07:49:54]line ОКРУГЛЕНИЕ: -0.84 [07:49:54]line ИТОГО: 50.00 [07:49:54]line Внесено: 100.00 [07:49:54]line СДАЧА: 50.00 [07:49:54]line НСП 1% : 0.45 [07:49:54]line НДС 12% : 5.40 [07:49:54]line Наличными: 50.00 [07:49:54]line Безнал.: 0.00 [07:49:54]line Место: АЗС № 143 "Партнер Нефть" [07:49:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:49:54]line СНО: Общий режим [07:49:54]line Чек 39 26.10.2024 07:49 [07:49:54]line Смена: 536 ФФД: 1.0 [07:49:54]line ЗНМ: 0300000096 [07:49:54]line РНМ: 0000000000091693 [07:49:54]line Версия ККМ: 001 [07:49:54]line ФМ: 0000000000871792 [07:49:54]line ФД: 156138 [07:49:54]line ФПД: 18175283395150 [07:49:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074956&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156138&fm=18175283395150&tin=02508201610067®Number=0000000000091693&sum=5000 [07:49:55]OFD Sender: Processing packet 156138 [packets to send 31, broken 30] [07:49:55]ProducePacketName [07:49:55]name=ofd_packets/00156138 [07:49:55]OFD Sender: To server: pG, [07:49:55]CommunicateWithHost lk.salyk.kg:30040 [07:49:55]ConnectInit lk.salyk.kg [07:49:55]written 0, free lines is 4095 [07:49:55]Connected sock=10 [07:49:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AC 25 07 01 D9 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 02 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DC 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 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 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 27 00 00 00 F4 03 04 00 24 9F 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 61 02 00 35 04 06 00 10 87 C3 4F 7A 4E 82 A4 C1 F8 9E C5 E9 E4 [07:49:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 25 71 47 00 8D B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 61 02 00 F4 03 04 00 97 44 1C 67 B6 04 01 00 00 DF 2A 35 73 84 5F B9 8F [07:49:55]CommunicateWithHost err = 0 [07:49:55]CheckOFDResponse [07:49:55]1017 (14) - 77093643461234 [07:49:55]1041 (16) - 0000000000871792 [07:49:55]1040 (4) - 156138 [07:49:55]1012 (4) - 26.10.2024 01:23 [07:49:55]1206 (1) - 0 [07:49:55]OFD Sender: Remove packet 156138 [07:49:55]ProducePacketName [07:49:55]name=ofd_packets/00156138 [07:49:55]NVStorageDeleteData [07:49:55]Write to MH i2c: 01 00 00 8D 12 9F [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 07 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 07 00 8D 12 00 00 00 00 00 F0 0C A2 [07:49:55]RasterBufferAndPrint [07:49:55]line [07:49:55]line [07:49:55]line [07:49:55]line [07:49:55]line [07:49:55]written 0, free lines is 3318 [07:49:55]process_action close_receipt done [07:49:55]requested_data is exist [07:49:55]produce_requested_data [07:49:55]requested_item fm.sn is exist - process it [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 11 00 00 [07:49:55]Write to MH i2c: E2 08 00 94 12 80 11 00 00 00 00 00 00 20 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 17 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 17 00 94 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 75 [07:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:49:55]wFMCommunicate OK [07:49:55]requested_item fd.num is exist - process it [07:49:55]SAM_PROTO_GetFieldsCounters [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 13 00 00 [07:49:55]Write to MH i2c: E2 08 00 95 12 80 13 00 00 00 00 00 00 23 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 62 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 62 00 95 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 61 02 00 0E 04 04 00 18 02 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 25 [07:49: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 61 02 00 0E 04 04 00 18 02 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 [07:49:55]wFMCommunicate OK [07:49:55]SAM_PROTO_GetFieldsCounters done [07:49:55]requested_item shift.num is exist - process it [07:49:55]requested_item shift.opened is exist - process it [07:49:55]req_shift_opened [07:49:55]FM_GetShiftState [07:49:55]SAM_PROTO_GetShiftState [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 13 01 00 [07:49:55]Write to MH i2c: E2 08 00 96 12 80 13 01 00 00 00 00 00 25 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 0E 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 0E 00 96 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5A [07:49:55]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:49:55]wFMCommunicate OK [07:49:55]SAM_PROTO_GetShiftState done [07:49:55]FM_GetShiftState done [07:49:55]req_shift_opened done [07:49:55]requested_item shift.open_date is exist - process it [07:49:55]req_shift_open_date [07:49:55]req_shift_open_date done [07:49:55]produce_requested_data done [07:49:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156138,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [07:49:55]process_action_free close_receipt [07:49:55]json_value_free [07:49:55]json_value_free done [07:49:55]process_json_proto returns [07:49:55]Send response to host [07:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156138,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [07:49:55]free response buf [07:49:55]execute_script done [07:49:55]execute_script returns [07:49:55]free content buf [07:49:55]Sock 9.Close socket [07:49:55]Sock 9.Thread stoped [07:49:56]OFD Sender: No OFD packet to send [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 97 12 A9 [07:49:57]*** FLAG_PRN_KEY set [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 97 12 00 08 00 00 00 FF 0F C6 [07:49:57]state=0 [07:49:57]Key pressed [07:49:57]Feed [07:49:57]Write to MH i2c: D8 00 00 98 12 81 [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 01 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 01 00 98 12 00 82 [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 99 12 AB [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 99 12 00 48 00 00 00 3C 00 36 [07:49:57]state=2 [07:49:57]Key pressed [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 9A 12 AC [07:49:57]*** FLAG_PRN_KEY reset [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 9A 12 00 00 00 00 00 F7 0F B9 [07:49:57]state=2 [07:49:57]Stop feed [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 9B 12 AD [07:49:57]*** FLAG_PRN_KEY set [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 9B 12 00 08 00 00 00 FF 0F CA [07:49:57]state=0 [07:49:57]Key pressed [07:49:57]Feed [07:49:57]Write to MH i2c: D8 00 00 9C 12 85 [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 01 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 01 00 9C 12 00 86 [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 9D 12 AF [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 9D 12 00 48 00 00 00 3C 00 3A [07:49:57]state=2 [07:49:57]Key pressed [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 9E 12 B0 [07:49:57]*** FLAG_PRN_KEY reset [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 9E 12 00 00 00 00 00 F7 0F BD [07:49:57]state=2 [07:49:57]Stop feed [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 9F 12 B1 [07:49:57]*** FLAG_PRN_KEY set [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 9F 12 00 08 00 00 00 FF 0F CE [07:49:57]state=0 [07:49:57]Key pressed [07:49:57]Feed [07:49:57]Write to MH i2c: D8 00 00 A0 12 89 [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 01 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: D8 01 00 A0 12 00 8A [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 A1 12 B3 [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 A1 12 00 48 00 00 00 3C 00 3E [07:49:57]state=2 [07:49:57]Key pressed [07:49:57]int [07:49:57]Write to MH i2c: 01 00 00 A2 12 B4 [07:49:57]*** FLAG_PRN_KEY reset [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 A2 12 00 00 00 00 00 F7 0F C1 [07:49:57]state=2 [07:49:57]Stop feed [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]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:44]accept exits with 7 [07:58:44]New connection [07:58:44]New thread 3066469732 created [07:58:44]Thread 3066613092 joined [07:58:44]Waiting for new connection... [07:58:44] Sock 7.Parse request [07:58:44]Sock 7.Check first char [07:58:44]Sock 7.First char is OK [07:58:44]request: POST /json_proto HTTP/1.0 [07:58:44]Method: POST [07:58:44]URL: /json_proto [07:58:44]Method is POST - this is cgi request [07:58:44]url: /json_proto [07:58:44]query_string will be loaded in cgi processing [07:58:44]execute_cgi json_proto POST (null) [07:58:44]execute_cgi path=json_proto method=POST [07:58:44]POST find Content-Length [07:58:44]Host: 172.17.63.3:8080 [07:58:44]Content-Length: 676 [07:58:44]Content-Type: application/json [07:58:44] [07:58:44]POST finish read [07:58:44]Found Content-Length = 676 [07:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:44]execute_script... [07: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 : (1)98953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:44]POST & json_proto [07:58:44]process_json_proto [07:58:44]json parsed OK: [07:58:44]protocol is kg_v1.0 [07:58:44]action value=close_receipt [07:58:44]process_action close_receipt [07:58:44]cmd_close_receipt [07:58:44]MH_GetDate [07:58:44]Write to MH i2c: F0 00 00 A3 12 A4 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: F0 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: F0 09 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: F0 09 00 A3 12 00 38 A1 1C 67 50 D1 6C 64 FA [07:58:44]GetLastDocTimeStamp 1729928996 [07:58:44]current date 1729929528 [07:58:44]FM_GetShiftState [07:58:44]SAM_PROTO_GetShiftState [07:58:44]wFMCommunicate request_size=4 [07:58:44]MH_SAM_APDU [07:58:44]CAPDU: 80 13 01 00 [07:58:44]Write to MH i2c: E2 08 00 A4 12 80 13 01 00 00 00 00 00 33 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:44]Read from MH i2c: E2 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 0E 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 0E 00 A4 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 68 [07:58:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:58:44]wFMCommunicate OK [07:58:44]SAM_PROTO_GetShiftState done [07:58:44]FM_GetShiftState done [07:58:44]opened in 1729902702 [07:58:44]opened+sec_in_day 1729989102 [07:58:44]quantity*price = 20003 [07:58:44]sum+1 = 20004 [07:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 40 26.10.2024 07:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156139 ФПД: 218291245340043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T075848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156139&fm=218291245340043&tin=02508201610067®Number=0000000000091693&sum=20000 [07:58:45]StoreToDocumentArchive [07:58:45]shift 536 fd 156139 [07:58:45]save to /storage/0536/doc_00156139 [07:58:45]save last doc name /storage/0536/doc_00156139 to /storage/kkm_last_doc_name [07:58:45]save OK [07:58:45]Clear old archive folders... [07:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:45]tlvbuf is B6E55ED0 [07:58:45]SAM_PROTO_ClearQueue [07:58:45]wFMCommunicate request_size=4 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 09 00 00 [07:58:45]Write to MH i2c: E2 08 00 B1 12 80 09 00 00 00 00 00 00 35 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [07:58:46]RAPDU: 90 00 [07:58:46]wFMCommunicate OK [07:58:46]SAM_PROTO_ClearQueue done [07:58:46]KKMCreateOFDPacket [07:58:46]OFDProtocolAddRootSTLVToBuf [07:58:46]FM_MakeSignedData [07:58:46]FM_MakeSignedData [07:58:46]SAM_PROTO_SignData [07:58:46]wFMCommunicate request_size=4 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 0D 01 02 [07:58:46]Write to MH i2c: E2 08 00 B2 12 80 0D 01 02 00 00 00 00 3D [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [07:58:46]RAPDU: 90 00 [07:58:46]wFMCommunicate OK [07:58:46]wFMCommunicate request_size=255 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 38 A1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 61 02 00 35 04 06 00 C6 [07:58:46]Write to MH i2c: E2 02 01 B3 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 38 A1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 61 02 00 35 04 06 00 C6 00 00 45 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 B3 12 00 90 00 39 [07:58:46]RAPDU: 90 00 [07:58:46]wFMCommunicate OK [07:58:46]wFMCommunicate request_size=10 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 0D 02 02 05 88 E4 22 D5 8B [07:58:46]Write to MH i2c: E2 0D 00 B4 12 80 0D 02 02 05 00 88 E4 22 D5 8B 00 00 38 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 B4 12 00 90 00 3A [07:58:46]RAPDU: 90 00 [07:58:46]wFMCommunicate OK [07:58:46]wFMCommunicate request_size=4 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 0D 03 02 [07:58:46]Write to MH i2c: E2 08 00 B5 12 80 0D 03 02 00 00 00 00 42 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 0B 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 0B 00 B5 12 00 68 44 C3 A5 7D 9B 5B 4B 90 00 15 [07:58:46]RAPDU: 68 44 C3 A5 7D 9B 5B 4B 90 00 [07:58:46]wFMCommunicate OK [07:58:46]SAM_PROTO_SignData done [07:58:46]FM_MakeSignedData done [07:58:46]CreateOFDProtocolMessage [07:58:46]wFMCommunicate request_size=4 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 11 00 00 [07:58:46]Write to MH i2c: E2 08 00 B6 12 80 11 00 00 00 00 00 00 42 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 17 00 [07:58:46]MH_I2C_Read... [07:58:46]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 31 37 39 32 90 00 97 [07:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:58:46]wFMCommunicate OK [07:58:46]CreateOFDProtocolMessage done [07:58:46]OFDSenderStorePacket 156139 [07:58:46]StoreOFDPacket docnum=156139 [07:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 54 4D 07 01 34 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 38 A1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 61 02 00 35 04 06 00 C6 88 E4 22 D5 8B 68 44 C3 A5 7D 9B 5B 4B [07:58:46]CheckFolder [07:58:46]dirname=/storage/ofd_packets [07:58:46]CheckFolder done [07:58:46]ProducePacketName [07:58:46]name=ofd_packets/00156139 [07:58:46]NVStorageSaveData ofd_packets/00156139 [07:58:46]File name is /storage/ofd_packets/00156139 [07:58:46]Write 301 bytes [07:58:46]NVStorageSaveData done [07:58:46]OFDSenderStorePacket done [07:58:46]KKMCreateOFDPacket done [07:58:46]NVStorageSaveData kkm_last_timestamp [07:58:46]File name is /storage/kkm_last_timestamp [07:58:46]Write 4 bytes [07:58:46]NVStorageSaveData done [07:58:46]ExternCall_PrintAddStr [07:58:46]wPrintStart [07:58:46]Write to MH i2c: 01 00 00 B7 12 C9 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 07 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 07 00 B7 12 00 00 00 00 00 FF 0F DE [07:58:46]RasterBufferAndPrint [07:58:46]line Счет N : (1)98953 [07:58:46]line ИНН: 02508201610067 [07:58:46]line Контрольно-Кассовый Чек [07:58:46]line ПРОДАЖА [07:58:46]line ТРК (МРК, ГНК) : 11 [07:58:46]line Товар: 2710124130 [07:58:46]line Аи-92-К-5 [07:58:46]line 2.990 * 66.90 [07:58:46]line = 200.03 [07:58:46]line НДС 12% НСП 1% [07:58:46]line > о реализуемом товаре [07:58:46]line ОКРУГЛЕНИЕ: -0.03 [07:58:46]line ИТОГО: 200.00 [07:58:46]line Внесено: 200.00 [07:58:46]line СДАЧА: 0.00 [07:58:46]line НСП 1% : 1.77 [07:58:46]line НДС 12% : 21.24 [07:58:46]line Наличными: 200.00 [07:58:46]line Безнал.: 0.00 [07:58:46]line Место: АЗС № 143 "Партнер Нефть" [07:58:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:58:46]line СНО: Общий режим [07:58:46]line Чек 40 26.10.2024 07:58 [07:58:46]line Смена: 536 ФФД: 1.0 [07:58:46]line ЗНМ: 0300000096 [07:58:46]line РНМ: 0000000000091693 [07:58:46]line Версия ККМ: 001 [07:58:46]line ФМ: 0000000000871792 [07:58:46]line ФД: 156139 [07:58:46]line ФПД: 218291245340043 [07:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T075848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156139&fm=218291245340043&tin=02508201610067®Number=0000000000091693&sum=20000 [07:58:46]OFD Sender: Processing packet 156139 [packets to send 31, broken 30] [07:58:46]ProducePacketName [07:58:46]name=ofd_packets/00156139 [07:58:46]OFD Sender: To server: pG, [07:58:46]CommunicateWithHost lk.salyk.kg:30040 [07:58:46]ConnectInit lk.salyk.kg [07:58:46]written 0, free lines is 4095 [07:58:46]Connected sock=10 [07: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 31 37 39 32 0F 01 00 00 54 4D 07 01 34 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 38 A1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 61 02 00 35 04 06 00 C6 88 E4 22 D5 8B 68 44 C3 A5 7D 9B 5B 4B [07:58:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B2 32 47 00 5A E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 61 02 00 F4 03 04 00 AB 46 1C 67 B6 04 01 00 00 DC C9 7D ED FD 4A 69 AE [07:58:47]CommunicateWithHost err = 0 [07:58:47]CheckOFDResponse [07:58:47]1017 (14) - 77093643461234 [07:58:47]1041 (16) - 0000000000871792 [07:58:47]1040 (4) - 156139 [07:58:47]1012 (4) - 26.10.2024 01:32 [07:58:47]1206 (1) - 0 [07:58:47]OFD Sender: Remove packet 156139 [07:58:47]ProducePacketName [07:58:47]name=ofd_packets/00156139 [07:58:47]NVStorageDeleteData [07:58:47]Write to MH i2c: 01 00 00 E2 12 F4 [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: 01 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: 01 07 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: 01 07 00 E2 12 00 00 00 00 00 F3 0C FA [07:58:47]RasterBufferAndPrint [07:58:47]line [07:58:47]line [07:58:47]line [07:58:47]line [07:58:47]line [07:58:47]written 0, free lines is 3321 [07:58:47]process_action close_receipt done [07:58:47]requested_data is exist [07:58:47]produce_requested_data [07:58:47]requested_item fm.sn is exist - process it [07:58:47]wFMCommunicate request_size=4 [07:58:47]MH_SAM_APDU [07:58:47]CAPDU: 80 11 00 00 [07:58:47]Write to MH i2c: E2 08 00 E9 12 80 11 00 00 00 00 00 00 75 [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:47]Read from MH i2c: E2 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 17 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 17 00 E9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CA [07:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:58:47]wFMCommunicate OK [07:58:47]requested_item fd.num is exist - process it [07:58:47]SAM_PROTO_GetFieldsCounters [07:58:47]wFMCommunicate request_size=4 [07:58:47]MH_SAM_APDU [07:58:47]CAPDU: 80 13 00 00 [07:58:47]Write to MH i2c: E2 08 00 EA 12 80 13 00 00 00 00 00 00 78 [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:47]Read from MH i2c: E2 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 62 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 62 00 EA 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 61 02 00 0E 04 04 00 18 02 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 7E [07:58:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 61 02 00 0E 04 04 00 18 02 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 [07:58:47]wFMCommunicate OK [07:58:47]SAM_PROTO_GetFieldsCounters done [07:58:47]requested_item shift.num is exist - process it [07:58:47]requested_item shift.opened is exist - process it [07:58:47]req_shift_opened [07:58:47]FM_GetShiftState [07:58:47]SAM_PROTO_GetShiftState [07:58:47]wFMCommunicate request_size=4 [07:58:47]MH_SAM_APDU [07:58:47]CAPDU: 80 13 01 00 [07:58:47]Write to MH i2c: E2 08 00 EB 12 80 13 01 00 00 00 00 00 7A [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:47]Read from MH i2c: E2 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 0E 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 0E 00 EB 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 AF [07:58:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [07:58:47]wFMCommunicate OK [07:58:47]SAM_PROTO_GetShiftState done [07:58:47]FM_GetShiftState done [07:58:47]req_shift_opened done [07:58:47]requested_item shift.open_date is exist - process it [07:58:47]req_shift_open_date [07:58:47]req_shift_open_date done [07:58:47]produce_requested_data done [07:58:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156139,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [07:58:47]process_action_free close_receipt [07:58:47]json_value_free [07:58:47]json_value_free done [07:58:47]process_json_proto returns [07:58:47]Send response to host [07:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156139,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [07:58:47]free response buf [07:58:47]execute_script done [07:58:47]execute_script returns [07:58:47]free content buf [07:58:47]Sock 7.Close socket [07:58:47]Sock 7.Thread stoped [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01: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:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:43]accept exits with 9 [08:08:43]New connection [08:08:43]New thread 3066613092 created [08:08:43]Thread 3066469732 joined [08:08:43]Waiting for new connection... [08:08:43] Sock 9.Parse request [08:08:43]Sock 9.Check first char [08:08:43]Sock 9.First char is OK [08:08:43]request: POST /json_proto HTTP/1.0 [08:08:43]Method: POST [08:08:43]URL: /json_proto [08:08:43]Method is POST - this is cgi request [08:08:43]url: /json_proto [08:08:43]query_string will be loaded in cgi processing [08:08:43]execute_cgi json_proto POST (null) [08:08:43]execute_cgi path=json_proto method=POST [08:08:43]POST find Content-Length [08:08:43]Host: 172.17.63.3:8080 [08:08:43]Content-Length: 676 [08:08:43]Content-Type: application/json [08:08:43] [08:08:43]POST finish read [08:08:43]Found Content-Length = 676 [08:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:43]execute_script... [08:08:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:43]POST & json_proto [08:08:43]process_json_proto [08:08:43]json parsed OK: [08:08:43]protocol is kg_v1.0 [08:08:43]action value=close_receipt [08:08:43]process_action close_receipt [08:08:43]cmd_close_receipt [08:08:43]MH_GetDate [08:08:43]Write to MH i2c: F0 00 00 EC 12 ED [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: F0 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: F0 09 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: F0 09 00 EC 12 00 8E A3 1C 67 50 D1 6C 64 9B [08:08:43]GetLastDocTimeStamp 1729929528 [08:08:43]current date 1729930126 [08:08:43]FM_GetShiftState [08:08:43]SAM_PROTO_GetShiftState [08:08:43]wFMCommunicate request_size=4 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 13 01 00 [08:08:43]Write to MH i2c: E2 08 00 ED 12 80 13 01 00 00 00 00 00 7C [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 0E 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 0E 00 ED 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B1 [08:08:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:08:43]wFMCommunicate OK [08:08:43]SAM_PROTO_GetShiftState done [08:08:43]FM_GetShiftState done [08:08:43]opened in 1729902702 [08:08:43]opened+sec_in_day 1729989102 [08:08:43]quantity*price = 40006 [08:08:43]sum+1 = 40007 [08:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 41 26.10.2024 08:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156140 ФПД: 146745357538945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080846&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156140&fm=146745357538945&tin=02508201610067®Number=0000000000091693&sum=40000 [08:08:44]StoreToDocumentArchive [08:08:44]shift 536 fd 156140 [08:08:44]save to /storage/0536/doc_00156140 [08:08:44]save last doc name /storage/0536/doc_00156140 to /storage/kkm_last_doc_name [08:08:44]save OK [08:08:44]Clear old archive folders... [08:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:44]tlvbuf is 00D3F420 [08:08:44]SAM_PROTO_ClearQueue [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 09 00 00 [08:08:44]Write to MH i2c: E2 08 00 FA 12 80 09 00 00 00 00 00 00 7E [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 FA 12 00 90 00 80 [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]SAM_PROTO_ClearQueue done [08:08:44]KKMCreateOFDPacket [08:08:44]OFDProtocolAddRootSTLVToBuf [08:08:44]FM_MakeSignedData [08:08:44]FM_MakeSignedData [08:08:44]SAM_PROTO_SignData [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 01 02 [08:08:44]Write to MH i2c: E2 08 00 FB 12 80 0D 01 02 00 00 00 00 86 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 FB 12 00 90 00 81 [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]wFMCommunicate request_size=255 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8E A3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 61 02 00 35 04 06 00 85 [08:08:44]Write to MH i2c: E2 02 01 FC 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8E A3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 61 02 00 35 04 06 00 85 00 00 B4 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 FC 12 00 90 00 82 [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]wFMCommunicate request_size=10 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 02 02 05 76 D0 E8 96 81 [08:08:44]Write to MH i2c: E2 0D 00 FD 12 80 0D 02 02 05 00 76 D0 E8 96 81 00 00 D8 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 FD 12 00 90 00 83 [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 03 02 [08:08:44]Write to MH i2c: E2 08 00 FE 12 80 0D 03 02 00 00 00 00 8B [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 0B 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 0B 00 FE 12 00 C9 B6 8D D0 4E B8 12 30 90 00 B0 [08:08:44]RAPDU: C9 B6 8D D0 4E B8 12 30 90 00 [08:08:44]wFMCommunicate OK [08:08:44]SAM_PROTO_SignData done [08:08:44]FM_MakeSignedData done [08:08:44]CreateOFDProtocolMessage [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 11 00 00 [08:08:44]Write to MH i2c: E2 08 00 FF 12 80 11 00 00 00 00 00 00 8B [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 17 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 17 00 FF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E0 [08:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:08:44]wFMCommunicate OK [08:08:44]CreateOFDProtocolMessage done [08:08:44]OFDSenderStorePacket 156140 [08:08:44]StoreOFDPacket docnum=156140 [08:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 39 37 07 01 20 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8E A3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 61 02 00 35 04 06 00 85 76 D0 E8 96 81 C9 B6 8D D0 4E B8 12 30 [08:08:44]CheckFolder [08:08:44]dirname=/storage/ofd_packets [08:08:44]CheckFolder done [08:08:44]ProducePacketName [08:08:44]name=ofd_packets/00156140 [08:08:44]NVStorageSaveData ofd_packets/00156140 [08:08:44]File name is /storage/ofd_packets/00156140 [08:08:44]Write 301 bytes [08:08:44]NVStorageSaveData done [08:08:44]OFDSenderStorePacket done [08:08:44]KKMCreateOFDPacket done [08:08:44]NVStorageSaveData kkm_last_timestamp [08:08:44]File name is /storage/kkm_last_timestamp [08:08:44]Write 4 bytes [08:08:44]NVStorageSaveData done [08:08:44]ExternCall_PrintAddStr [08:08:44]wPrintStart [08:08:44]Write to MH i2c: 01 00 00 00 13 13 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 00 13 00 00 00 00 00 FF 0F 28 [08:08:44]RasterBufferAndPrint [08:08:44]line Счет N : (1)98954 [08:08:44]line ИНН: 02508201610067 [08:08:44]line Контрольно-Кассовый Чек [08:08:44]line ПРОДАЖА [08:08:44]line ТРК (МРК, ГНК) : 11 [08:08:44]line Товар: 2710124130 [08:08:44]line Аи-92-К-5 [08:08:44]line 5.980 * 66.90 [08:08:44]line = 400.06 [08:08:44]line НДС 12% НСП 1% [08:08:44]line > о реализуемом товаре [08:08:44]line ОКРУГЛЕНИЕ: -0.06 [08:08:44]line ИТОГО: 400.00 [08:08:44]line Внесено: 400.00 [08:08:44]line СДАЧА: 0.00 [08:08:44]line НСП 1% : 3.54 [08:08:44]line НДС 12% : 42.48 [08:08:44]line Наличными: 400.00 [08:08:44]line Безнал.: 0.00 [08:08:44]line Место: АЗС № 143 "Партнер Нефть" [08:08:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:08:44]line СНО: Общий режим [08:08:44]line Чек 41 26.10.2024 08:08 [08:08:44]line Смена: 536 ФФД: 1.0 [08:08:44]line ЗНМ: 0300000096 [08:08:44]line РНМ: 0000000000091693 [08:08:44]line Версия ККМ: 001 [08:08:44]line ФМ: 0000000000871792 [08:08:44]line ФД: 156140 [08:08:44]line ФПД: 146745357538945 [08:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080846&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156140&fm=146745357538945&tin=02508201610067®Number=0000000000091693&sum=40000 [08:08:44]written 0, free lines is 4095 [08:08:45]OFD Sender: Processing packet 156140 [packets to send 31, broken 30] [08:08:45]ProducePacketName [08:08:45]name=ofd_packets/00156140 [08:08:45]OFD Sender: To server: pG, [08:08:45]CommunicateWithHost lk.salyk.kg:30040 [08:08:45]ConnectInit lk.salyk.kg [08:08:45]Connected sock=10 [08:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 39 37 07 01 20 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8E A3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 61 02 00 35 04 06 00 85 76 D0 E8 96 81 C9 B6 8D D0 4E B8 12 30 [08:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B1 FB 47 00 2C 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 61 02 00 F4 03 04 00 01 49 1C 67 B6 04 01 00 00 61 B6 EA 68 B7 04 4E CE [08:08:45]CommunicateWithHost err = 0 [08:08:45]CheckOFDResponse [08:08:45]1017 (14) - 77093643461234 [08:08:45]1041 (16) - 0000000000871792 [08:08:45]1040 (4) - 156140 [08:08:45]1012 (4) - 26.10.2024 01:42 [08:08:45]1206 (1) - 0 [08:08:45]OFD Sender: Remove packet 156140 [08:08:45]ProducePacketName [08:08:45]name=ofd_packets/00156140 [08:08:45]NVStorageDeleteData [08:08:45]Write to MH i2c: 01 00 00 2B 13 3E [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 07 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 07 00 2B 13 00 00 00 00 00 E4 0C 35 [08:08:45]RasterBufferAndPrint [08:08:45]line [08:08:45]line [08:08:45]line [08:08:45]line [08:08:45]line [08:08:45]written 0, free lines is 3306 [08:08:45]process_action close_receipt done [08:08:45]requested_data is exist [08:08:45]produce_requested_data [08:08:45]requested_item fm.sn is exist - process it [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 11 00 00 [08:08:45]Write to MH i2c: E2 08 00 32 13 80 11 00 00 00 00 00 00 BF [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 17 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 17 00 32 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [08:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:08:45]wFMCommunicate OK [08:08:45]requested_item fd.num is exist - process it [08:08:45]SAM_PROTO_GetFieldsCounters [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 13 00 00 [08:08:45]Write to MH i2c: E2 08 00 33 13 80 13 00 00 00 00 00 00 C2 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 62 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 62 00 33 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 61 02 00 0E 04 04 00 18 02 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 CC [08:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 61 02 00 0E 04 04 00 18 02 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 [08:08:45]wFMCommunicate OK [08:08:45]SAM_PROTO_GetFieldsCounters done [08:08:45]requested_item shift.num is exist - process it [08:08:45]requested_item shift.opened is exist - process it [08:08:45]req_shift_opened [08:08:45]FM_GetShiftState [08:08:45]SAM_PROTO_GetShiftState [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 13 01 00 [08:08:45]Write to MH i2c: E2 08 00 34 13 80 13 01 00 00 00 00 00 C4 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 0E 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 0E 00 34 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F9 [08:08:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:08:45]wFMCommunicate OK [08:08:45]SAM_PROTO_GetShiftState done [08:08:45]FM_GetShiftState done [08:08:45]req_shift_opened done [08:08:45]requested_item shift.open_date is exist - process it [08:08:45]req_shift_open_date [08:08:45]req_shift_open_date done [08:08:45]produce_requested_data done [08:08:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156140,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:08:45]process_action_free close_receipt [08:08:45]json_value_free [08:08:45]json_value_free done [08:08:45]process_json_proto returns [08:08:45]Send response to host [08:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156140,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:08:45]free response buf [08:08:45]execute_script done [08:08:45]execute_script returns [08:08:45]free content buf [08:08:45]Sock 9.Close socket [08:08:45]Sock 9.Thread stoped [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:13:57]accept exits with 7 [08:13:57]New connection [08:13:57]New thread 3066469732 created [08:13:57]Thread 3066613092 joined [08:13:57]Waiting for new connection... [08:13:57] Sock 7.Parse request [08:13:57]Sock 7.Check first char [08:13:57]Sock 7.First char is OK [08:13:57]request: POST /json_proto HTTP/1.0 [08:13:57]Method: POST [08:13:57]URL: /json_proto [08:13:57]Method is POST - this is cgi request [08:13:57]url: /json_proto [08:13:57]query_string will be loaded in cgi processing [08:13:57]execute_cgi json_proto POST (null) [08:13:57]execute_cgi path=json_proto method=POST [08:13:57]POST find Content-Length [08:13:57]Host: 172.17.63.3:8080 [08:13:57]Content-Length: 681 [08:13:57]Content-Type: application/json [08:13:57] [08:13:57]POST finish read [08:13:57]Found Content-Length = 681 [08:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:57]execute_script... [08:13:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:57]POST & json_proto [08:13:57]process_json_proto [08:13:57]json parsed OK: [08:13:57]protocol is kg_v1.0 [08:13:57]action value=close_receipt [08:13:57]process_action close_receipt [08:13:57]cmd_close_receipt [08:13:57]MH_GetDate [08:13:57]Write to MH i2c: F0 00 00 35 13 37 [08:13:57]Write i2c OK [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: F0 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: F0 09 00 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: F0 09 00 35 13 00 C8 A4 1C 67 50 D1 6C 64 20 [08:13:57]GetLastDocTimeStamp 1729930126 [08:13:57]current date 1729930440 [08:13:57]FM_GetShiftState [08:13:57]SAM_PROTO_GetShiftState [08:13:57]wFMCommunicate request_size=4 [08:13:57]MH_SAM_APDU [08:13:57]CAPDU: 80 13 01 00 [08:13:57]Write to MH i2c: E2 08 00 36 13 80 13 01 00 00 00 00 00 C6 [08:13:57]Write i2c OK [08:13:57]MH_I2C_Read... [08:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:57]Read from MH i2c: E2 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: E2 0E 00 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: E2 0E 00 36 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FB [08:13:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:13:57]wFMCommunicate OK [08:13:57]SAM_PROTO_GetShiftState done [08:13:57]FM_GetShiftState done [08:13:57]opened in 1729902702 [08:13:57]opened+sec_in_day 1729989102 [08:13:57]quantity*price = 100015 [08:13:57]sum+1 = 100017 [08:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 42 26.10.2024 08:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156141 ФПД: 121688399616215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081400&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156141&fm=121688399616215&tin=02508201610067®Number=0000000000091693&sum=100000 [08:13:58]StoreToDocumentArchive [08:13:58]shift 536 fd 156141 [08:13:58]save to /storage/0536/doc_00156141 [08:13:58]save last doc name /storage/0536/doc_00156141 to /storage/kkm_last_doc_name [08:13:58]save OK [08:13:58]Clear old archive folders... [08:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:58]tlvbuf is B6E6E3D0 [08:13:58]SAM_PROTO_ClearQueue [08:13:58]wFMCommunicate request_size=4 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 09 00 00 [08:13:58]Write to MH i2c: E2 08 00 43 13 80 09 00 00 00 00 00 00 C8 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 03 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 03 00 43 13 00 90 00 CA [08:13:58]RAPDU: 90 00 [08:13:58]wFMCommunicate OK [08:13:58]SAM_PROTO_ClearQueue done [08:13:58]KKMCreateOFDPacket [08:13:58]OFDProtocolAddRootSTLVToBuf [08:13:58]FM_MakeSignedData [08:13:58]FM_MakeSignedData [08:13:58]SAM_PROTO_SignData [08:13:58]wFMCommunicate request_size=4 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 0D 01 02 [08:13:58]Write to MH i2c: E2 08 00 44 13 80 0D 01 02 00 00 00 00 D0 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 03 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [08:13:58]RAPDU: 90 00 [08:13:58]wFMCommunicate OK [08:13:58]wFMCommunicate request_size=255 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 C8 A4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 61 02 00 35 04 06 00 6E [08:13:58]Write to MH i2c: E2 02 01 45 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 C8 A4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 61 02 00 35 04 06 00 6E 00 00 4F [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 03 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [08:13:58]RAPDU: 90 00 [08:13:58]wFMCommunicate OK [08:13:58]wFMCommunicate request_size=10 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 0D 02 02 05 AC C9 D5 18 D7 [08:13:58]Write to MH i2c: E2 0D 00 46 13 80 0D 02 02 05 00 AC C9 D5 18 D7 00 00 16 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 03 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 03 00 46 13 00 90 00 CD [08:13:58]RAPDU: 90 00 [08:13:58]wFMCommunicate OK [08:13:58]wFMCommunicate request_size=4 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 0D 03 02 [08:13:58]Write to MH i2c: E2 08 00 47 13 80 0D 03 02 00 00 00 00 D5 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 0B 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 0B 00 47 13 00 C4 3A A2 7D 0C 15 66 6E 90 00 E8 [08:13:58]RAPDU: C4 3A A2 7D 0C 15 66 6E 90 00 [08:13:58]wFMCommunicate OK [08:13:58]SAM_PROTO_SignData done [08:13:58]FM_MakeSignedData done [08:13:58]CreateOFDProtocolMessage [08:13:58]wFMCommunicate request_size=4 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 11 00 00 [08:13:58]Write to MH i2c: E2 08 00 48 13 80 11 00 00 00 00 00 00 D5 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 17 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 17 00 48 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2A [08:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:13:58]wFMCommunicate OK [08:13:58]CreateOFDProtocolMessage done [08:13:58]OFDSenderStorePacket 156141 [08:13:58]StoreOFDPacket docnum=156141 [08:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 6F 07 01 2F 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 C8 A4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 61 02 00 35 04 06 00 6E AC C9 D5 18 D7 C4 3A A2 7D 0C 15 66 6E [08:13:58]CheckFolder [08:13:58]dirname=/storage/ofd_packets [08:13:58]CheckFolder done [08:13:58]ProducePacketName [08:13:58]name=ofd_packets/00156141 [08:13:58]NVStorageSaveData ofd_packets/00156141 [08:13:58]File name is /storage/ofd_packets/00156141 [08:13:58]Write 301 bytes [08:13:58]NVStorageSaveData done [08:13:58]OFDSenderStorePacket done [08:13:58]KKMCreateOFDPacket done [08:13:58]NVStorageSaveData kkm_last_timestamp [08:13:58]File name is /storage/kkm_last_timestamp [08:13:58]Write 4 bytes [08:13:58]NVStorageSaveData done [08:13:58]ExternCall_PrintAddStr [08:13:58]wPrintStart [08:13:58]Write to MH i2c: 01 00 00 49 13 5C [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: 01 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: 01 07 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: 01 07 00 49 13 00 00 00 00 00 FF 0F 71 [08:13:58]RasterBufferAndPrint [08:13:58]line Счет N : (1)98955 [08:13:58]line ИНН: 02508201610067 [08:13:58]line Контрольно-Кассовый Чек [08:13:58]line ПРОДАЖА [08:13:58]line ТРК (МРК, ГНК) : 31 [08:13:58]line Товар: 2710124130 [08:13:58]line Аи-92-К-5 [08:13:58]line 14.950 * 66.90 [08:13:58]line = 1000.16 [08:13:58]line НДС 12% НСП 1% [08:13:58]line > о реализуемом товаре [08:13:58]line ОКРУГЛЕНИЕ: -0.16 [08:13:58]line ИТОГО: 1000.00 [08:13:58]line Внесено: 1000.00 [08:13:58]line СДАЧА: 0.00 [08:13:58]line НСП 1% : 8.85 [08:13:58]line НДС 12% : 106.21 [08:13:58]line Наличными: 1000.00 [08:13:58]line Безнал.: 0.00 [08:13:58]line Место: АЗС № 143 "Партнер Нефть" [08:13:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:13:58]line СНО: Общий режим [08:13:58]line Чек 42 26.10.2024 08:14 [08:13:58]line Смена: 536 ФФД: 1.0 [08:13:58]line ЗНМ: 0300000096 [08:13:58]line РНМ: 0000000000091693 [08:13:58]line Версия ККМ: 001 [08:13:58]line ФМ: 0000000000871792 [08:13:58]line ФД: 156141 [08:13:58]line ФПД: 121688399616215 [08:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081400&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156141&fm=121688399616215&tin=02508201610067®Number=0000000000091693&sum=100000 [08:13:58]written 0, free lines is 4095 [08:13:58]OFD Sender: Processing packet 156141 [packets to send 31, broken 30] [08:13:58]ProducePacketName [08:13:58]name=ofd_packets/00156141 [08:13:58]OFD Sender: To server: pG, [08:13:58]CommunicateWithHost lk.salyk.kg:30040 [08:13:58]ConnectInit lk.salyk.kg [08:13:59]Connected sock=10 [08:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 6F 07 01 2F 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 C8 A4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 61 02 00 35 04 06 00 6E AC C9 D5 18 D7 C4 3A A2 7D 0C 15 66 6E [08:13:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 96 15 47 00 AC A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 61 02 00 F4 03 04 00 3B 4A 1C 67 B6 04 01 00 00 D9 D6 81 DD 37 C5 CA EF [08:13:59]CommunicateWithHost err = 0 [08:13:59]CheckOFDResponse [08:13:59]1017 (14) - 77093643461234 [08:13:59]1041 (16) - 0000000000871792 [08:13:59]1040 (4) - 156141 [08:13:59]1012 (4) - 26.10.2024 01:47 [08:13:59]1206 (1) - 0 [08:13:59]OFD Sender: Remove packet 156141 [08:13:59]ProducePacketName [08:13:59]name=ofd_packets/00156141 [08:13:59]NVStorageDeleteData [08:13:59]Write to MH i2c: 01 00 00 74 13 87 [08:13:59]Write i2c OK [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: 01 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: 01 07 00 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: 01 07 00 74 13 00 00 00 00 00 F5 0C 8F [08:13:59]RasterBufferAndPrint [08:13:59]line [08:13:59]line [08:13:59]line [08:13:59]line [08:13:59]line [08:13:59]written 0, free lines is 3324 [08:13:59]process_action close_receipt done [08:13:59]requested_data is exist [08:13:59]produce_requested_data [08:13:59]requested_item fm.sn is exist - process it [08:13:59]wFMCommunicate request_size=4 [08:13:59]MH_SAM_APDU [08:13:59]CAPDU: 80 11 00 00 [08:13:59]Write to MH i2c: E2 08 00 7B 13 80 11 00 00 00 00 00 00 08 [08:13:59]Write i2c OK [08:13:59]MH_I2C_Read... [08:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:59]Read from MH i2c: E2 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: E2 17 00 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: E2 17 00 7B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5D [08:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:13:59]wFMCommunicate OK [08:13:59]requested_item fd.num is exist - process it [08:13:59]SAM_PROTO_GetFieldsCounters [08:13:59]wFMCommunicate request_size=4 [08:13:59]MH_SAM_APDU [08:13:59]CAPDU: 80 13 00 00 [08:13:59]Write to MH i2c: E2 08 00 7C 13 80 13 00 00 00 00 00 00 0B [08:13:59]Write i2c OK [08:13:59]MH_I2C_Read... [08:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:59]Read from MH i2c: E2 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: E2 62 00 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: E2 62 00 7C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 61 02 00 0E 04 04 00 18 02 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 19 [08:13: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 61 02 00 0E 04 04 00 18 02 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 [08:13:59]wFMCommunicate OK [08:13:59]SAM_PROTO_GetFieldsCounters done [08:13:59]requested_item shift.num is exist - process it [08:13:59]requested_item shift.opened is exist - process it [08:13:59]req_shift_opened [08:13:59]FM_GetShiftState [08:13:59]SAM_PROTO_GetShiftState [08:13:59]wFMCommunicate request_size=4 [08:13:59]MH_SAM_APDU [08:13:59]CAPDU: 80 13 01 00 [08:13:59]Write to MH i2c: E2 08 00 7D 13 80 13 01 00 00 00 00 00 0D [08:13:59]Write i2c OK [08:13:59]MH_I2C_Read... [08:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:59]Read from MH i2c: E2 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: E2 0E 00 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: E2 0E 00 7D 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 42 [08:13:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:13:59]wFMCommunicate OK [08:13:59]SAM_PROTO_GetShiftState done [08:13:59]FM_GetShiftState done [08:13:59]req_shift_opened done [08:13:59]requested_item shift.open_date is exist - process it [08:13:59]req_shift_open_date [08:13:59]req_shift_open_date done [08:13:59]produce_requested_data done [08:13:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156141,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:13:59]process_action_free close_receipt [08:13:59]json_value_free [08:13:59]json_value_free done [08:13:59]process_json_proto returns [08:13:59]Send response to host [08:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156141,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:13:59]free response buf [08:13:59]execute_script done [08:13:59]execute_script returns [08:13:59]free content buf [08:13:59]Sock 7.Close socket [08:13:59]Sock 7.Thread stoped [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:17]accept exits with 9 [08:23:17]New connection [08:23:17]New thread 3066613092 created [08:23:17]Thread 3066469732 joined [08:23:17]Waiting for new connection... [08:23:17] Sock 9.Parse request [08:23:17]Sock 9.Check first char [08:23:17]Sock 9.First char is OK [08:23:17]request: POST /json_proto HTTP/1.0 [08:23:17]Method: POST [08:23:17]URL: /json_proto [08:23:17]Method is POST - this is cgi request [08:23:17]url: /json_proto [08:23:17]query_string will be loaded in cgi processing [08:23:17]execute_cgi json_proto POST (null) [08:23:17]execute_cgi path=json_proto method=POST [08:23:17]POST find Content-Length [08:23:17]Host: 172.17.63.3:8080 [08:23:17]Content-Length: 676 [08:23:17]Content-Type: application/json [08:23:17] [08:23:17]POST finish read [08:23:17]Found Content-Length = 676 [08:23:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:17]execute_script... [08:23:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:17]POST & json_proto [08:23:17]process_json_proto [08:23:17]json parsed OK: [08:23:17]protocol is kg_v1.0 [08:23:17]action value=close_receipt [08:23:17]process_action close_receipt [08:23:17]cmd_close_receipt [08:23:17]MH_GetDate [08:23:17]Write to MH i2c: F0 00 00 7E 13 80 [08:23:17]Write i2c OK [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: F0 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: F0 09 00 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: F0 09 00 7E 13 00 F8 A6 1C 67 50 D1 6C 64 9B [08:23:17]GetLastDocTimeStamp 1729930440 [08:23:17]current date 1729931000 [08:23:17]FM_GetShiftState [08:23:17]SAM_PROTO_GetShiftState [08:23:17]wFMCommunicate request_size=4 [08:23:17]MH_SAM_APDU [08:23:17]CAPDU: 80 13 01 00 [08:23:17]Write to MH i2c: E2 08 00 7F 13 80 13 01 00 00 00 00 00 0F [08:23:17]Write i2c OK [08:23:17]MH_I2C_Read... [08:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:17]Read from MH i2c: E2 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: E2 0E 00 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: E2 0E 00 7F 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 44 [08:23:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:23:17]wFMCommunicate OK [08:23:17]SAM_PROTO_GetShiftState done [08:23:17]FM_GetShiftState done [08:23:17]opened in 1729902702 [08:23:17]opened+sec_in_day 1729989102 [08:23:17]quantity*price = 25020 [08:23:17]sum+1 = 25022 [08:23:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 43 26.10.2024 08:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156142 ФПД: 34106612776491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082320&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156142&fm=34106612776491&tin=02508201610067®Number=0000000000091693&sum=25000 [08:23:18]StoreToDocumentArchive [08:23:18]shift 536 fd 156142 [08:23:18]save to /storage/0536/doc_00156142 [08:23:18]save last doc name /storage/0536/doc_00156142 to /storage/kkm_last_doc_name [08:23:18]save OK [08:23:18]Clear old archive folders... [08:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:18]tlvbuf is 00D3F0F0 [08:23:18]SAM_PROTO_ClearQueue [08:23:18]wFMCommunicate request_size=4 [08:23:18]MH_SAM_APDU [08:23:18]CAPDU: 80 09 00 00 [08:23:18]Write to MH i2c: E2 08 00 8C 13 80 09 00 00 00 00 00 00 11 [08:23:18]Write i2c OK [08:23:18]MH_I2C_Read... [08:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:18]Read from MH i2c: E2 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 03 00 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 03 00 8C 13 00 90 00 13 [08:23:18]RAPDU: 90 00 [08:23:18]wFMCommunicate OK [08:23:18]SAM_PROTO_ClearQueue done [08:23:18]KKMCreateOFDPacket [08:23:18]OFDProtocolAddRootSTLVToBuf [08:23:18]FM_MakeSignedData [08:23:18]FM_MakeSignedData [08:23:18]SAM_PROTO_SignData [08:23:18]wFMCommunicate request_size=4 [08:23:18]MH_SAM_APDU [08:23:18]CAPDU: 80 0D 01 02 [08:23:18]Write to MH i2c: E2 08 00 8D 13 80 0D 01 02 00 00 00 00 19 [08:23:18]Write i2c OK [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 [08:23:18]MH_I2C_Read... [08:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:18]Read from MH i2c: E2 03 00 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 03 00 8D 13 00 90 00 14 [08:23:18]RAPDU: 90 00 [08:23:18]wFMCommunicate OK [08:23:18]wFMCommunicate request_size=255 [08:23:18]MH_SAM_APDU [08:23:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F8 A6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 61 02 00 35 04 06 00 1F [08:23:18]Write to MH i2c: E2 02 01 8E 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F8 A6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 61 02 00 35 04 06 00 1F 00 00 5C [08:23:18]Write i2c OK [08:23:18]MH_I2C_Read... [08:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:19]Read from MH i2c: E2 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: E2 03 00 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: E2 03 00 8E 13 00 90 00 15 [08:23:19]RAPDU: 90 00 [08:23:19]wFMCommunicate OK [08:23:19]wFMCommunicate request_size=10 [08:23:19]MH_SAM_APDU [08:23:19]CAPDU: 80 0D 02 02 05 05 10 89 FE 2B [08:23:19]Write to MH i2c: E2 0D 00 8F 13 80 0D 02 02 05 00 05 10 89 FE 2B 00 00 ED [08:23:19]Write i2c OK [08:23:19]MH_I2C_Read... [08:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:19]Read from MH i2c: E2 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: E2 03 00 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: E2 03 00 8F 13 00 90 00 16 [08:23:19]RAPDU: 90 00 [08:23:19]wFMCommunicate OK [08:23:19]wFMCommunicate request_size=4 [08:23:19]MH_SAM_APDU [08:23:19]CAPDU: 80 0D 03 02 [08:23:19]Write to MH i2c: E2 08 00 90 13 80 0D 03 02 00 00 00 00 1E [08:23:19]Write i2c OK [08:23:19]MH_I2C_Read... [08:23:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:19]Read from MH i2c: E2 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: E2 0B 00 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: E2 0B 00 90 13 00 7A 95 85 01 DE 71 22 9B 90 00 C0 [08:23:19]RAPDU: 7A 95 85 01 DE 71 22 9B 90 00 [08:23:19]wFMCommunicate OK [08:23:19]SAM_PROTO_SignData done [08:23:19]FM_MakeSignedData done [08:23:19]CreateOFDProtocolMessage [08:23:19]wFMCommunicate request_size=4 [08:23:19]MH_SAM_APDU [08:23:19]CAPDU: 80 11 00 00 [08:23:19]Write to MH i2c: E2 08 00 91 13 80 11 00 00 00 00 00 00 1E [08:23:19]Write i2c OK [08:23:19]MH_I2C_Read... [08:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:19]Read from MH i2c: E2 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: E2 17 00 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: E2 17 00 91 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 73 [08:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:23:19]wFMCommunicate OK [08:23:19]CreateOFDProtocolMessage done [08:23:19]OFDSenderStorePacket 156142 [08:23:19]StoreOFDPacket docnum=156142 [08:23:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E8 CD 07 01 52 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F8 A6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 61 02 00 35 04 06 00 1F 05 10 89 FE 2B 7A 95 85 01 DE 71 22 9B [08:23:19]CheckFolder [08:23:19]dirname=/storage/ofd_packets [08:23:19]CheckFolder done [08:23:19]ProducePacketName [08:23:19]name=ofd_packets/00156142 [08:23:19]NVStorageSaveData ofd_packets/00156142 [08:23:19]File name is /storage/ofd_packets/00156142 [08:23:19]Write 301 bytes [08:23:19]NVStorageSaveData done [08:23:19]OFDSenderStorePacket done [08:23:19]KKMCreateOFDPacket done [08:23:19]NVStorageSaveData kkm_last_timestamp [08:23:19]File name is /storage/kkm_last_timestamp [08:23:19]Write 4 bytes [08:23:19]NVStorageSaveData done [08:23:19]ExternCall_PrintAddStr [08:23:19]wPrintStart [08:23:19]Write to MH i2c: 01 00 00 92 13 A5 [08:23:19]Write i2c OK [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 07 00 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 07 00 92 13 00 00 00 00 00 FF 0F BA [08:23:19]RasterBufferAndPrint [08:23:19]line Счет N : (1)98956 [08:23:19]line ИНН: 02508201610067 [08:23:19]line Контрольно-Кассовый Чек [08:23:19]line ПРОДАЖА [08:23:19]line ТРК (МРК, ГНК) : 11 [08:23:19]line Товар: 2710124130 [08:23:19]line Аи-92-К-5 [08:23:19]line 3.740 * 66.90 [08:23:19]line = 250.21 [08:23:19]line НДС 12% НСП 1% [08:23:19]line > о реализуемом товаре [08:23:19]line ОКРУГЛЕНИЕ: -0.21 [08:23:19]line ИТОГО: 250.00 [08:23:19]line Внесено: 250.00 [08:23:19]line СДАЧА: 0.00 [08:23:19]line НСП 1% : 2.21 [08:23:19]line НДС 12% : 26.57 [08:23:19]line Наличными: 250.00 [08:23:19]line Безнал.: 0.00 [08:23:19]line Место: АЗС № 143 "Партнер Нефть" [08:23:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:23:19]line СНО: Общий режим [08:23:19]line Чек 43 26.10.2024 08:23 [08:23:19]line Смена: 536 ФФД: 1.0 [08:23:19]line ЗНМ: 0300000096 [08:23:19]line РНМ: 0000000000091693 [08:23:19]line Версия ККМ: 001 [08:23:19]line ФМ: 0000000000871792 [08:23:19]line ФД: 156142 [08:23:19]line ФПД: 34106612776491 [08:23:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082320&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156142&fm=34106612776491&tin=02508201610067®Number=0000000000091693&sum=25000 [08:23:19]OFD Sender: Processing packet 156142 [packets to send 31, broken 30] [08:23:19]ProducePacketName [08:23:19]name=ofd_packets/00156142 [08:23:19]OFD Sender: To server: pG, [08:23:19]CommunicateWithHost lk.salyk.kg:30040 [08:23:19]ConnectInit lk.salyk.kg [08:23:19]written 0, free lines is 4095 [08:23:19]Connected sock=10 [08:23:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E8 CD 07 01 52 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F8 A6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 61 02 00 35 04 06 00 1F 05 10 89 FE 2B 7A 95 85 01 DE 71 22 9B [08:23:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 56 76 47 00 FB 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 31 37 39 32 10 04 04 00 EE 61 02 00 F4 03 04 00 6C 4C 1C 67 B6 04 01 00 00 F5 D6 CD E4 75 BE 87 5C [08:23:19]CommunicateWithHost err = 0 [08:23:19]CheckOFDResponse [08:23:19]1017 (14) - 77093643461234 [08:23:19]1041 (16) - 0000000000871792 [08:23:19]1040 (4) - 156142 [08:23:19]1012 (4) - 26.10.2024 01:57 [08:23:19]1206 (1) - 0 [08:23:19]OFD Sender: Remove packet 156142 [08:23:19]ProducePacketName [08:23:19]name=ofd_packets/00156142 [08:23:19]NVStorageDeleteData [08:23:20]Write to MH i2c: 01 00 00 BD 13 D0 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: 01 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: 01 07 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: 01 07 00 BD 13 00 00 00 00 00 EE 0C D1 [08:23:20]RasterBufferAndPrint [08:23:20]line [08:23:20]line [08:23:20]line [08:23:20]line [08:23:20]line [08:23:20]written 0, free lines is 3316 [08:23:20]process_action close_receipt done [08:23:20]requested_data is exist [08:23:20]produce_requested_data [08:23:20]requested_item fm.sn is exist - process it [08:23:20]wFMCommunicate request_size=4 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 11 00 00 [08:23:20]Write to MH i2c: E2 08 00 C4 13 80 11 00 00 00 00 00 00 51 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 17 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 17 00 C4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [08:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:23:20]wFMCommunicate OK [08:23:20]requested_item fd.num is exist - process it [08:23:20]SAM_PROTO_GetFieldsCounters [08:23:20]wFMCommunicate request_size=4 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 13 00 00 [08:23:20]Write to MH i2c: E2 08 00 C5 13 80 13 00 00 00 00 00 00 54 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 62 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 62 00 C5 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 61 02 00 0E 04 04 00 18 02 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 66 [08:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 61 02 00 0E 04 04 00 18 02 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:23:20]wFMCommunicate OK [08:23:20]SAM_PROTO_GetFieldsCounters done [08:23:20]requested_item shift.num is exist - process it [08:23:20]requested_item shift.opened is exist - process it [08:23:20]req_shift_opened [08:23:20]FM_GetShiftState [08:23:20]SAM_PROTO_GetShiftState [08:23:20]wFMCommunicate request_size=4 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 13 01 00 [08:23:20]Write to MH i2c: E2 08 00 C6 13 80 13 01 00 00 00 00 00 56 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 0E 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 0E 00 C6 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8B [08:23:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:23:20]wFMCommunicate OK [08:23:20]SAM_PROTO_GetShiftState done [08:23:20]FM_GetShiftState done [08:23:20]req_shift_opened done [08:23:20]requested_item shift.open_date is exist - process it [08:23:20]req_shift_open_date [08:23:20]req_shift_open_date done [08:23:20]produce_requested_data done [08:23:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156142,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:23:20]process_action_free close_receipt [08:23:20]json_value_free [08:23:20]json_value_free done [08:23:20]process_json_proto returns [08:23:20]Send response to host [08:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156142,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:23:20]free response buf [08:23:20]execute_script done [08:23:20]execute_script returns [08:23:20]free content buf [08:23:20]Sock 9.Close socket [08:23:20]Sock 9.Thread stoped [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:46]accept exits with 7 [08:23:46]New connection [08:23:46]New thread 3066469732 created [08:23:46]Thread 3066613092 joined [08:23:46]Waiting for new connection... [08:23:46] Sock 7.Parse request [08:23:46]Sock 7.Check first char [08:23:46]Sock 7.First char is OK [08:23:46]request: POST /json_proto HTTP/1.0 [08:23:46]Method: POST [08:23:46]URL: /json_proto [08:23:46]Method is POST - this is cgi request [08:23:46]url: /json_proto [08:23:46]query_string will be loaded in cgi processing [08:23:46]execute_cgi json_proto POST (null) [08:23:46]execute_cgi path=json_proto method=POST [08:23:46]POST find Content-Length [08:23:46]Host: 172.17.63.3:8080 [08:23:46]Content-Length: 676 [08:23:46]Content-Type: application/json [08:23:46] [08:23:46]POST finish read [08:23:46]Found Content-Length = 676 [08:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:46]execute_script... [08:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:46]POST & json_proto [08:23:46]process_json_proto [08:23:46]json parsed OK: [08:23:46]protocol is kg_v1.0 [08:23:46]action value=close_receipt [08:23:46]process_action close_receipt [08:23:46]cmd_close_receipt [08:23:46]MH_GetDate [08:23:46]Write to MH i2c: F0 00 00 C7 13 C9 [08:23:46]Write i2c OK [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: F0 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: F0 09 00 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: F0 09 00 C7 13 00 16 A7 1C 67 50 D1 6C 64 03 [08:23:46]GetLastDocTimeStamp 1729931000 [08:23:46]current date 1729931030 [08:23:46]FM_GetShiftState [08:23:46]SAM_PROTO_GetShiftState [08:23:46]wFMCommunicate request_size=4 [08:23:46]MH_SAM_APDU [08:23:46]CAPDU: 80 13 01 00 [08:23:46]Write to MH i2c: E2 08 00 C8 13 80 13 01 00 00 00 00 00 58 [08:23:46]Write i2c OK [08:23:46]MH_I2C_Read... [08:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:46]Read from MH i2c: E2 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 0E 00 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 0E 00 C8 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8D [08:23:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:23:46]wFMCommunicate OK [08:23:46]SAM_PROTO_GetShiftState done [08:23:46]FM_GetShiftState done [08:23:46]opened in 1729902702 [08:23:46]opened+sec_in_day 1729989102 [08:23:46]quantity*price = 20003 [08:23:46]sum+1 = 20004 [08:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 44 26.10.2024 08:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156143 ФПД: 28126304998675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082350&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156143&fm=28126304998675&tin=02508201610067®Number=0000000000091693&sum=20000 [08:23:47]StoreToDocumentArchive [08:23:47]shift 536 fd 156143 [08:23:47]save to /storage/0536/doc_00156143 [08:23:47]save last doc name /storage/0536/doc_00156143 to /storage/kkm_last_doc_name [08:23:47]save OK [08:23:47]Clear old archive folders... [08:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:47]tlvbuf is B6E6E130 [08:23:47]SAM_PROTO_ClearQueue [08:23:47]wFMCommunicate request_size=4 [08:23:47]MH_SAM_APDU [08:23:47]CAPDU: 80 09 00 00 [08:23:47]Write to MH i2c: E2 08 00 D5 13 80 09 00 00 00 00 00 00 5A [08:23:47]Write i2c OK [08:23:47]MH_I2C_Read... [08:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:48]Read from MH i2c: E2 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 03 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [08:23:48]RAPDU: 90 00 [08:23:48]wFMCommunicate OK [08:23:48]SAM_PROTO_ClearQueue done [08:23:48]KKMCreateOFDPacket [08:23:48]OFDProtocolAddRootSTLVToBuf [08:23:48]FM_MakeSignedData [08:23:48]FM_MakeSignedData [08:23:48]SAM_PROTO_SignData [08:23:48]wFMCommunicate request_size=4 [08:23:48]MH_SAM_APDU [08:23:48]CAPDU: 80 0D 01 02 [08:23:48]Write to MH i2c: E2 08 00 D6 13 80 0D 01 02 00 00 00 00 62 [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:48]Read from MH i2c: E2 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 03 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 03 00 D6 13 00 90 00 5D [08:23:48]RAPDU: 90 00 [08:23:48]wFMCommunicate OK [08:23:48]wFMCommunicate request_size=255 [08:23:48]MH_SAM_APDU [08:23:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 16 A7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 61 02 00 35 04 06 00 19 [08:23:48]Write to MH i2c: E2 02 01 D7 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 16 A7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 61 02 00 35 04 06 00 19 00 00 A9 [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:48]Read from MH i2c: E2 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 03 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 03 00 D7 13 00 90 00 5E [08:23:48]RAPDU: 90 00 [08:23:48]wFMCommunicate OK [08:23:48]wFMCommunicate request_size=10 [08:23:48]MH_SAM_APDU [08:23:48]CAPDU: 80 0D 02 02 05 94 AA 6B 15 13 [08:23:48]Write to MH i2c: E2 0D 00 D8 13 80 0D 02 02 05 00 94 AA 6B 15 13 00 00 40 [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:48]Read from MH i2c: E2 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 03 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 03 00 D8 13 00 90 00 5F [08:23:48]RAPDU: 90 00 [08:23:48]wFMCommunicate OK [08:23:48]wFMCommunicate request_size=4 [08:23:48]MH_SAM_APDU [08:23:48]CAPDU: 80 0D 03 02 [08:23:48]Write to MH i2c: E2 08 00 D9 13 80 0D 03 02 00 00 00 00 67 [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:48]Read from MH i2c: E2 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 0B 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 0B 00 D9 13 00 2D 31 70 7A 6E BB 4A 8E 90 00 B1 [08:23:48]RAPDU: 2D 31 70 7A 6E BB 4A 8E 90 00 [08:23:48]wFMCommunicate OK [08:23:48]SAM_PROTO_SignData done [08:23:48]FM_MakeSignedData done [08:23:48]CreateOFDProtocolMessage [08:23:48]wFMCommunicate request_size=4 [08:23:48]MH_SAM_APDU [08:23:48]CAPDU: 80 11 00 00 [08:23:48]Write to MH i2c: E2 08 00 DA 13 80 11 00 00 00 00 00 00 67 [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:48]Read from MH i2c: E2 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 17 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 17 00 DA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BC [08:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:23:48]wFMCommunicate OK [08:23:48]CreateOFDProtocolMessage done [08:23:48]OFDSenderStorePacket 156143 [08:23:48]StoreOFDPacket docnum=156143 [08:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA A1 07 01 D5 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 16 A7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 61 02 00 35 04 06 00 19 94 AA 6B 15 13 2D 31 70 7A 6E BB 4A 8E [08:23:48]CheckFolder [08:23:48]dirname=/storage/ofd_packets [08:23:48]CheckFolder done [08:23:48]ProducePacketName [08:23:48]name=ofd_packets/00156143 [08:23:48]NVStorageSaveData ofd_packets/00156143 [08:23:48]File name is /storage/ofd_packets/00156143 [08:23:48]Write 301 bytes [08:23:48]NVStorageSaveData done [08:23:48]OFDSenderStorePacket done [08:23:48]KKMCreateOFDPacket done [08:23:48]NVStorageSaveData kkm_last_timestamp [08:23:48]File name is /storage/kkm_last_timestamp [08:23:48]Write 4 bytes [08:23:48]NVStorageSaveData done [08:23:48]ExternCall_PrintAddStr [08:23:48]wPrintStart [08:23:48]Write to MH i2c: 01 00 00 DB 13 EE [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: 01 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: 01 07 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: 01 07 00 DB 13 00 00 00 00 00 FF 0F 03 [08:23:48]RasterBufferAndPrint [08:23:48]line Счет N : (1)98957 [08:23:48]line ИНН: 02508201610067 [08:23:48]line Контрольно-Кассовый Чек [08:23:48]line ПРОДАЖА [08:23:48]line ТРК (МРК, ГНК) : 21 [08:23:48]line Товар: 2710124130 [08:23:48]line Аи-92-К-5 [08:23:48]line 2.990 * 66.90 [08:23:48]line = 200.03 [08:23:48]line НДС 12% НСП 1% [08:23:48]line > о реализуемом товаре [08:23:48]line ОКРУГЛЕНИЕ: -0.03 [08:23:48]line ИТОГО: 200.00 [08:23:48]line Внесено: 200.00 [08:23:48]line СДАЧА: 0.00 [08:23:48]line НСП 1% : 1.77 [08:23:48]line НДС 12% : 21.24 [08:23:48]line Наличными: 200.00 [08:23:48]line Безнал.: 0.00 [08:23:48]line Место: АЗС № 143 "Партнер Нефть" [08:23:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:23:48]line СНО: Общий режим [08:23:48]line Чек 44 26.10.2024 08:23 [08:23:48]line Смена: 536 ФФД: 1.0 [08:23:48]line ЗНМ: 0300000096 [08:23:48]line РНМ: 0000000000091693 [08:23:48]line Версия ККМ: 001 [08:23:48]line ФМ: 0000000000871792 [08:23:48]line ФД: 156143 [08:23:48]line ФПД: 28126304998675 [08:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082350&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156143&fm=28126304998675&tin=02508201610067®Number=0000000000091693&sum=20000 [08:23:48]written 0, free lines is 4095 [08:23:48]OFD Sender: Processing packet 156143 [packets to send 31, broken 30] [08:23:48]ProducePacketName [08:23:48]name=ofd_packets/00156143 [08:23:48]OFD Sender: To server: pG, [08:23:48]CommunicateWithHost lk.salyk.kg:30040 [08:23:48]ConnectInit lk.salyk.kg [08:23:48]Connected sock=10 [08:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA A1 07 01 D5 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 16 A7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 61 02 00 35 04 06 00 19 94 AA 6B 15 13 2D 31 70 7A 6E BB 4A 8E [08:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 14 EC 47 00 DF 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 61 02 00 F4 03 04 00 89 4C 1C 67 B6 04 01 00 00 E8 77 C4 F6 60 53 2C C2 [08:23:48]CommunicateWithHost err = 0 [08:23:48]CheckOFDResponse [08:23:48]1017 (14) - 77093643461234 [08:23:48]1041 (16) - 0000000000871792 [08:23:48]1040 (4) - 156143 [08:23:48]1012 (4) - 26.10.2024 01:57 [08:23:48]1206 (1) - 0 [08:23:48]OFD Sender: Remove packet 156143 [08:23:48]ProducePacketName [08:23:48]name=ofd_packets/00156143 [08:23:48]NVStorageDeleteData [08:23:48]Write to MH i2c: 01 00 00 06 14 1A [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: 01 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: 01 07 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 F3 0C 20 [08:23:48]RasterBufferAndPrint [08:23:48]line [08:23:48]line [08:23:48]line [08:23:48]line [08:23:48]line [08:23:48]written 0, free lines is 3321 [08:23:48]process_action close_receipt done [08:23:48]requested_data is exist [08:23:48]produce_requested_data [08:23:48]requested_item fm.sn is exist - process it [08:23:48]wFMCommunicate request_size=4 [08:23:48]MH_SAM_APDU [08:23:48]CAPDU: 80 11 00 00 [08:23:48]Write to MH i2c: E2 08 00 0D 14 80 11 00 00 00 00 00 00 9B [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:49]Read from MH i2c: E2 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 17 00 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 17 00 0D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F0 [08:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:23:49]wFMCommunicate OK [08:23:49]requested_item fd.num is exist - process it [08:23:49]SAM_PROTO_GetFieldsCounters [08:23:49]wFMCommunicate request_size=4 [08:23:49]MH_SAM_APDU [08:23:49]CAPDU: 80 13 00 00 [08:23:49]Write to MH i2c: E2 08 00 0E 14 80 13 00 00 00 00 00 00 9E [08:23:49]Write i2c OK [08:23:49]MH_I2C_Read... [08:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:49]Read from MH i2c: E2 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 62 00 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 62 00 0E 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 61 02 00 0E 04 04 00 18 02 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 B4 [08:23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 61 02 00 0E 04 04 00 18 02 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 [08:23:49]wFMCommunicate OK [08:23:49]SAM_PROTO_GetFieldsCounters done [08:23:49]requested_item shift.num is exist - process it [08:23:49]requested_item shift.opened is exist - process it [08:23:49]req_shift_opened [08:23:49]FM_GetShiftState [08:23:49]SAM_PROTO_GetShiftState [08:23:49]wFMCommunicate request_size=4 [08:23:49]MH_SAM_APDU [08:23:49]CAPDU: 80 13 01 00 [08:23:49]Write to MH i2c: E2 08 00 0F 14 80 13 01 00 00 00 00 00 A0 [08:23:49]Write i2c OK [08:23:49]MH_I2C_Read... [08:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:49]Read from MH i2c: E2 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 0E 00 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 0E 00 0F 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D5 [08:23:49]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:23:49]wFMCommunicate OK [08:23:49]SAM_PROTO_GetShiftState done [08:23:49]FM_GetShiftState done [08:23:49]req_shift_opened done [08:23:49]requested_item shift.open_date is exist - process it [08:23:49]req_shift_open_date [08:23:49]req_shift_open_date done [08:23:49]produce_requested_data done [08:23:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156143,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:23:49]process_action_free close_receipt [08:23:49]json_value_free [08:23:49]json_value_free done [08:23:49]process_json_proto returns [08:23:49]Send response to host [08:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156143,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:23:49]free response buf [08:23:49]execute_script done [08:23:49]execute_script returns [08:23:49]free content buf [08:23:49]Sock 7.Close socket [08:23:49]Sock 7.Thread stoped [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:10]accept exits with 9 [08:29:10]New connection [08:29:10]New thread 3066613092 created [08:29:10]Thread 3066469732 joined [08:29:10]Waiting for new connection... [08:29:10] Sock 9.Parse request [08:29:10]Sock 9.Check first char [08:29:10]Sock 9.First char is OK [08:29:10]request: POST /json_proto HTTP/1.0 [08:29:10]Method: POST [08:29:10]URL: /json_proto [08:29:10]Method is POST - this is cgi request [08:29:10]url: /json_proto [08:29:10]query_string will be loaded in cgi processing [08:29:10]execute_cgi json_proto POST (null) [08:29:10]execute_cgi path=json_proto method=POST [08:29:10]POST find Content-Length [08:29:10]Host: 172.17.63.3:8080 [08:29:10]Content-Length: 677 [08:29:10]Content-Type: application/json [08:29:10] [08:29:10]POST finish read [08:29:10]Found Content-Length = 677 [08:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:10]execute_script... [08:29:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:10]POST & json_proto [08:29:10]process_json_proto [08:29:10]json parsed OK: [08:29:10]protocol is kg_v1.0 [08:29:10]action value=close_receipt [08:29:10]process_action close_receipt [08:29:10]cmd_close_receipt [08:29:10]MH_GetDate [08:29:10]Write to MH i2c: F0 00 00 10 14 13 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: F0 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: F0 09 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: F0 09 00 10 14 00 59 A8 1C 67 50 D1 6C 64 91 [08:29:10]GetLastDocTimeStamp 1729931030 [08:29:10]current date 1729931353 [08:29:10]FM_GetShiftState [08:29:10]SAM_PROTO_GetShiftState [08:29:10]wFMCommunicate request_size=4 [08:29:10]MH_SAM_APDU [08:29:10]CAPDU: 80 13 01 00 [08:29:10]Write to MH i2c: E2 08 00 11 14 80 13 01 00 00 00 00 00 A2 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:10]Read from MH i2c: E2 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 0E 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 0E 00 11 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D7 [08:29:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:29:10]wFMCommunicate OK [08:29:10]SAM_PROTO_GetShiftState done [08:29:10]FM_GetShiftState done [08:29:10]opened in 1729902702 [08:29:10]opened+sec_in_day 1729989102 [08:29:10]quantity*price = 80012 [08:29:10]sum+1 = 80013 [08:29:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 45 26.10.2024 08:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156144 ФПД: 85342455940995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082913&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156144&fm=85342455940995&tin=02508201610067®Number=0000000000091693&sum=80000 [08:29:11]StoreToDocumentArchive [08:29:11]shift 536 fd 156144 [08:29:11]save to /storage/0536/doc_00156144 [08:29:11]save last doc name /storage/0536/doc_00156144 to /storage/kkm_last_doc_name [08:29:11]save OK [08:29:11]Clear old archive folders... [08:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:11]tlvbuf is 00D49D50 [08:29:11]SAM_PROTO_ClearQueue [08:29:11]wFMCommunicate request_size=4 [08:29:11]MH_SAM_APDU [08:29:11]CAPDU: 80 09 00 00 [08:29:11]Write to MH i2c: E2 08 00 1E 14 80 09 00 00 00 00 00 00 A4 [08:29:11]Write i2c OK [08:29:11]MH_I2C_Read... [08:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:11]Read from MH i2c: E2 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 03 00 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [08:29:11]RAPDU: 90 00 [08:29:11]wFMCommunicate OK [08:29:11]SAM_PROTO_ClearQueue done [08:29:11]KKMCreateOFDPacket [08:29:11]OFDProtocolAddRootSTLVToBuf [08:29:11]FM_MakeSignedData [08:29:11]FM_MakeSignedData [08:29:11]SAM_PROTO_SignData [08:29:11]wFMCommunicate request_size=4 [08:29:11]MH_SAM_APDU [08:29:11]CAPDU: 80 0D 01 02 [08:29:11]Write to MH i2c: E2 08 00 1F 14 80 0D 01 02 00 00 00 00 AC [08:29:11]Write i2c OK [08:29:11]MH_I2C_Read... [08:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:11]Read from MH i2c: E2 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 03 00 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [08:29:11]RAPDU: 90 00 [08:29:11]wFMCommunicate OK [08:29:11]wFMCommunicate request_size=255 [08:29:11]MH_SAM_APDU [08:29:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 59 A8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 61 02 00 35 04 06 00 4D [08:29:11]Write to MH i2c: E2 02 01 20 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 59 A8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 61 02 00 35 04 06 00 4D 00 00 97 [08:29:11]Write i2c OK [08:29:11]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [08:29:12]RAPDU: 90 00 [08:29:12]wFMCommunicate OK [08:29:12]wFMCommunicate request_size=10 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 0D 02 02 05 9E 56 C5 47 83 [08:29:12]Write to MH i2c: E2 0D 00 21 14 80 0D 02 02 05 00 9E 56 C5 47 83 00 00 3C [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [08:29:12]RAPDU: 90 00 [08:29:12]wFMCommunicate OK [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 0D 03 02 [08:29:12]Write to MH i2c: E2 08 00 22 14 80 0D 03 02 00 00 00 00 B1 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 0B 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 0B 00 22 14 00 13 08 46 21 FB 04 0D 19 90 00 59 [08:29:12]RAPDU: 13 08 46 21 FB 04 0D 19 90 00 [08:29:12]wFMCommunicate OK [08:29:12]SAM_PROTO_SignData done [08:29:12]FM_MakeSignedData done [08:29:12]CreateOFDProtocolMessage [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 11 00 00 [08:29:12]Write to MH i2c: E2 08 00 23 14 80 11 00 00 00 00 00 00 B1 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 17 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 17 00 23 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 06 [08:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:29:12]wFMCommunicate OK [08:29:12]CreateOFDProtocolMessage done [08:29:12]OFDSenderStorePacket 156144 [08:29:12]StoreOFDPacket docnum=156144 [08:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 C2 07 01 B0 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 59 A8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 61 02 00 35 04 06 00 4D 9E 56 C5 47 83 13 08 46 21 FB 04 0D 19 [08:29:12]CheckFolder [08:29:12]dirname=/storage/ofd_packets [08:29:12]CheckFolder done [08:29:12]ProducePacketName [08:29:12]name=ofd_packets/00156144 [08:29:12]NVStorageSaveData ofd_packets/00156144 [08:29:12]File name is /storage/ofd_packets/00156144 [08:29:12]Write 301 bytes [08:29:12]NVStorageSaveData done [08:29:12]OFDSenderStorePacket done [08:29:12]KKMCreateOFDPacket done [08:29:12]NVStorageSaveData kkm_last_timestamp [08:29:12]File name is /storage/kkm_last_timestamp [08:29:12]Write 4 bytes [08:29:12]NVStorageSaveData done [08:29:12]ExternCall_PrintAddStr [08:29:12]wPrintStart [08:29:12]Write to MH i2c: 01 00 00 24 14 38 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 07 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 07 00 24 14 00 00 00 00 00 FF 0F 4D [08:29:12]RasterBufferAndPrint [08:29:12]line Счет N : (1)98958 [08:29:12]line ИНН: 02508201610067 [08:29:12]line Контрольно-Кассовый Чек [08:29:12]line ПРОДАЖА [08:29:12]line ТРК (МРК, ГНК) : 31 [08:29:12]line Товар: 2710124130 [08:29:12]line Аи-92-К-5 [08:29:12]line 11.960 * 66.90 [08:29:12]line = 800.12 [08:29:12]line НДС 12% НСП 1% [08:29:12]line > о реализуемом товаре [08:29:12]line ОКРУГЛЕНИЕ: -0.12 [08:29:12]line ИТОГО: 800.00 [08:29:12]line Внесено: 800.00 [08:29:12]line СДАЧА: 0.00 [08:29:12]line НСП 1% : 7.08 [08:29:12]line НДС 12% : 84.97 [08:29:12]line Наличными: 800.00 [08:29:12]line Безнал.: 0.00 [08:29:12]line Место: АЗС № 143 "Партнер Нефть" [08:29:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:29:12]line СНО: Общий режим [08:29:12]line Чек 45 26.10.2024 08:29 [08:29:12]line Смена: 536 ФФД: 1.0 [08:29:12]line ЗНМ: 0300000096 [08:29:12]line РНМ: 0000000000091693 [08:29:12]line Версия ККМ: 001 [08:29:12]line ФМ: 0000000000871792 [08:29:12]line ФД: 156144 [08:29:12]line ФПД: 85342455940995 [08:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082913&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156144&fm=85342455940995&tin=02508201610067®Number=0000000000091693&sum=80000 [08:29:12]written 0, free lines is 4095 [08:29:12]OFD Sender: Processing packet 156144 [packets to send 31, broken 30] [08:29:12]ProducePacketName [08:29:12]name=ofd_packets/00156144 [08:29:12]OFD Sender: To server: pG, [08:29:12]CommunicateWithHost lk.salyk.kg:30040 [08:29:12]ConnectInit lk.salyk.kg [08:29:12]Connected sock=10 [08:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 C2 07 01 B0 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 59 A8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 61 02 00 35 04 06 00 4D 9E 56 C5 47 83 13 08 46 21 FB 04 0D 19 [08:29:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 85 47 47 00 CF CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 61 02 00 F4 03 04 00 CC 4D 1C 67 B6 04 01 00 00 7E A3 95 F9 30 98 F1 CE [08:29:12]CommunicateWithHost err = 0 [08:29:12]CheckOFDResponse [08:29:12]1017 (14) - 77093643461234 [08:29:12]1041 (16) - 0000000000871792 [08:29:12]1040 (4) - 156144 [08:29:12]1012 (4) - 26.10.2024 02:02 [08:29:12]1206 (1) - 0 [08:29:12]OFD Sender: Remove packet 156144 [08:29:12]ProducePacketName [08:29:12]name=ofd_packets/00156144 [08:29:12]NVStorageDeleteData [08:29:12]Write to MH i2c: 01 00 00 4F 14 63 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 07 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 07 00 4F 14 00 00 00 00 00 F3 0C 69 [08:29:12]RasterBufferAndPrint [08:29:12]line [08:29:12]line [08:29:12]line [08:29:12]line [08:29:12]line [08:29:12]written 0, free lines is 3321 [08:29:12]process_action close_receipt done [08:29:12]requested_data is exist [08:29:12]produce_requested_data [08:29:12]requested_item fm.sn is exist - process it [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 11 00 00 [08:29:12]Write to MH i2c: E2 08 00 56 14 80 11 00 00 00 00 00 00 E4 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 17 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 17 00 56 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 39 [08:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:29:12]wFMCommunicate OK [08:29:12]requested_item fd.num is exist - process it [08:29:12]SAM_PROTO_GetFieldsCounters [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 13 00 00 [08:29:12]Write to MH i2c: E2 08 00 57 14 80 13 00 00 00 00 00 00 E7 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 62 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 62 00 57 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 61 02 00 0E 04 04 00 18 02 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 01 [08:29: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 61 02 00 0E 04 04 00 18 02 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 [08:29:12]wFMCommunicate OK [08:29:12]SAM_PROTO_GetFieldsCounters done [08:29:12]requested_item shift.num is exist - process it [08:29:12]requested_item shift.opened is exist - process it [08:29:12]req_shift_opened [08:29:12]FM_GetShiftState [08:29:12]SAM_PROTO_GetShiftState [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 13 01 00 [08:29:12]Write to MH i2c: E2 08 00 58 14 80 13 01 00 00 00 00 00 E9 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:13]Read from MH i2c: E2 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 0E 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 0E 00 58 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 1E [08:29:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:29:13]wFMCommunicate OK [08:29:13]SAM_PROTO_GetShiftState done [08:29:13]FM_GetShiftState done [08:29:13]req_shift_opened done [08:29:13]requested_item shift.open_date is exist - process it [08:29:13]req_shift_open_date [08:29:13]req_shift_open_date done [08:29:13]produce_requested_data done [08:29:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156144,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:29:13]process_action_free close_receipt [08:29:13]json_value_free [08:29:13]json_value_free done [08:29:13]process_json_proto returns [08:29:13]Send response to host [08:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156144,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:29:13]free response buf [08:29:13]execute_script done [08:29:13]execute_script returns [08:29:13]free content buf [08:29:13]Sock 9.Close socket [08:29:13]Sock 9.Thread stoped [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:03]accept exits with 7 [08:32:03]New connection [08:32:03]New thread 3066469732 created [08:32:03]Thread 3066613092 joined [08:32:03]Waiting for new connection... [08:32:03] Sock 7.Parse request [08:32:03]Sock 7.Check first char [08:32:03]Sock 7.First char is OK [08:32:03]request: POST /json_proto HTTP/1.0 [08:32:03]Method: POST [08:32:03]URL: /json_proto [08:32:03]Method is POST - this is cgi request [08:32:03]url: /json_proto [08:32:03]query_string will be loaded in cgi processing [08:32:03]execute_cgi json_proto POST (null) [08:32:03]execute_cgi path=json_proto method=POST [08:32:03]POST find Content-Length [08:32:03]Host: 172.17.63.3:8080 [08:32:03]Content-Length: 676 [08:32:03]Content-Type: application/json [08:32:03] [08:32:03]POST finish read [08:32:03]Found Content-Length = 676 [08:32:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:03]execute_script... [08:32:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:03]POST & json_proto [08:32:03]process_json_proto [08:32:03]json parsed OK: [08:32:03]protocol is kg_v1.0 [08:32:03]action value=close_receipt [08:32:03]process_action close_receipt [08:32:03]cmd_close_receipt [08:32:03]MH_GetDate [08:32:03]Write to MH i2c: F0 00 00 59 14 5C [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: F0 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: F0 09 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: F0 09 00 59 14 00 07 A9 1C 67 50 D1 6C 64 89 [08:32:03]GetLastDocTimeStamp 1729931353 [08:32:03]current date 1729931527 [08:32:03]FM_GetShiftState [08:32:03]SAM_PROTO_GetShiftState [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 13 01 00 [08:32:03]Write to MH i2c: E2 08 00 5A 14 80 13 01 00 00 00 00 00 EB [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 0E 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 0E 00 5A 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 20 [08:32:03]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:32:03]wFMCommunicate OK [08:32:03]SAM_PROTO_GetShiftState done [08:32:03]FM_GetShiftState done [08:32:03]opened in 1729902702 [08:32:03]opened+sec_in_day 1729989102 [08:32:03]quantity*price = 30038 [08:32:03]sum+1 = 30039 [08:32:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 46 26.10.2024 08:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156145 ФПД: 275749363899694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083207&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156145&fm=275749363899694&tin=02508201610067®Number=0000000000091693&sum=30000 [08:32:04]StoreToDocumentArchive [08:32:04]shift 536 fd 156145 [08:32:04]save to /storage/0536/doc_00156145 [08:32:04]save last doc name /storage/0536/doc_00156145 to /storage/kkm_last_doc_name [08:32:04]save OK [08:32:04]Clear old archive folders... [08:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:04]tlvbuf is B6D55010 [08:32:04]SAM_PROTO_ClearQueue [08:32:04]wFMCommunicate request_size=4 [08:32:04]MH_SAM_APDU [08:32:04]CAPDU: 80 09 00 00 [08:32:04]Write to MH i2c: E2 08 00 67 14 80 09 00 00 00 00 00 00 ED [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:05]Read from MH i2c: E2 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 03 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [08:32:05]RAPDU: 90 00 [08:32:05]wFMCommunicate OK [08:32:05]SAM_PROTO_ClearQueue done [08:32:05]KKMCreateOFDPacket [08:32:05]OFDProtocolAddRootSTLVToBuf [08:32:05]FM_MakeSignedData [08:32:05]FM_MakeSignedData [08:32:05]SAM_PROTO_SignData [08:32:05]wFMCommunicate request_size=4 [08:32:05]MH_SAM_APDU [08:32:05]CAPDU: 80 0D 01 02 [08:32:05]Write to MH i2c: E2 08 00 68 14 80 0D 01 02 00 00 00 00 F5 [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:05]Read from MH i2c: E2 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 03 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [08:32:05]RAPDU: 90 00 [08:32:05]wFMCommunicate OK [08:32:05]wFMCommunicate request_size=255 [08:32:05]MH_SAM_APDU [08:32:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 07 A9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 61 02 00 35 04 06 00 FA [08:32:05]Write to MH i2c: E2 02 01 69 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 07 A9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 61 02 00 35 04 06 00 FA 00 00 46 [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:05]Read from MH i2c: E2 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 03 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 03 00 69 14 00 90 00 F1 [08:32:05]RAPDU: 90 00 [08:32:05]wFMCommunicate OK [08:32:05]wFMCommunicate request_size=10 [08:32:05]MH_SAM_APDU [08:32:05]CAPDU: 80 0D 02 02 05 CA E6 E1 DD 2E [08:32:05]Write to MH i2c: E2 0D 00 6A 14 80 0D 02 02 05 00 CA E6 E1 DD 2E 00 00 9E [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:05]Read from MH i2c: E2 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 03 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [08:32:05]RAPDU: 90 00 [08:32:05]wFMCommunicate OK [08:32:05]wFMCommunicate request_size=4 [08:32:05]MH_SAM_APDU [08:32:05]CAPDU: 80 0D 03 02 [08:32:05]Write to MH i2c: E2 08 00 6B 14 80 0D 03 02 00 00 00 00 FA [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:05]Read from MH i2c: E2 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 0B 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 0B 00 6B 14 00 45 03 A0 51 72 C4 FB 90 90 00 F5 [08:32:05]RAPDU: 45 03 A0 51 72 C4 FB 90 90 00 [08:32:05]wFMCommunicate OK [08:32:05]SAM_PROTO_SignData done [08:32:05]FM_MakeSignedData done [08:32:05]CreateOFDProtocolMessage [08:32:05]wFMCommunicate request_size=4 [08:32:05]MH_SAM_APDU [08:32:05]CAPDU: 80 11 00 00 [08:32:05]Write to MH i2c: E2 08 00 6C 14 80 11 00 00 00 00 00 00 FA [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:05]Read from MH i2c: E2 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 17 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 17 00 6C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [08:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:32:05]wFMCommunicate OK [08:32:05]CreateOFDProtocolMessage done [08:32:05]OFDSenderStorePacket 156145 [08:32:05]StoreOFDPacket docnum=156145 [08:32:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 80 84 07 01 29 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 07 A9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 61 02 00 35 04 06 00 FA CA E6 E1 DD 2E 45 03 A0 51 72 C4 FB 90 [08:32:05]CheckFolder [08:32:05]dirname=/storage/ofd_packets [08:32:05]CheckFolder done [08:32:05]ProducePacketName [08:32:05]name=ofd_packets/00156145 [08:32:05]NVStorageSaveData ofd_packets/00156145 [08:32:05]File name is /storage/ofd_packets/00156145 [08:32:05]Write 301 bytes [08:32:05]NVStorageSaveData done [08:32:05]OFDSenderStorePacket done [08:32:05]KKMCreateOFDPacket done [08:32:05]NVStorageSaveData kkm_last_timestamp [08:32:05]File name is /storage/kkm_last_timestamp [08:32:05]Write 4 bytes [08:32:05]NVStorageSaveData done [08:32:05]ExternCall_PrintAddStr [08:32:05]wPrintStart [08:32:05]Write to MH i2c: 01 00 00 6D 14 81 [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 07 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 07 00 6D 14 00 00 00 00 00 FF 0F 96 [08:32:05]RasterBufferAndPrint [08:32:05]line Счет N : (1)98959 [08:32:05]line ИНН: 02508201610067 [08:32:05]line Контрольно-Кассовый Чек [08:32:05]line ПРОДАЖА [08:32:05]line ТРК (МРК, ГНК) : 31 [08:32:05]line Товар: 2710124130 [08:32:05]line Аи-92-К-5 [08:32:05]line 4.490 * 66.90 [08:32:05]line = 300.38 [08:32:05]line НДС 12% НСП 1% [08:32:05]line > о реализуемом товаре [08:32:05]line ОКРУГЛЕНИЕ: -0.38 [08:32:05]line ИТОГО: 300.00 [08:32:05]line Внесено: 300.00 [08:32:05]line СДАЧА: 0.00 [08:32:05]line НСП 1% : 2.66 [08:32:05]line НДС 12% : 31.90 [08:32:05]line Наличными: 300.00 [08:32:05]line Безнал.: 0.00 [08:32:05]line Место: АЗС № 143 "Партнер Нефть" [08:32:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:32:05]line СНО: Общий режим [08:32:05]line Чек 46 26.10.2024 08:32 [08:32:05]line Смена: 536 ФФД: 1.0 [08:32:05]line ЗНМ: 0300000096 [08:32:05]line РНМ: 0000000000091693 [08:32:05]line Версия ККМ: 001 [08:32:05]line ФМ: 0000000000871792 [08:32:05]line ФД: 156145 [08:32:05]line ФПД: 275749363899694 [08:32:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083207&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156145&fm=275749363899694&tin=02508201610067®Number=0000000000091693&sum=30000 [08:32:05]OFD Sender: Processing packet 156145 [packets to send 31, broken 30] [08:32:05]ProducePacketName [08:32:05]name=ofd_packets/00156145 [08:32:05]OFD Sender: To server: pG, [08:32:05]CommunicateWithHost lk.salyk.kg:30040 [08:32:05]ConnectInit lk.salyk.kg [08:32:05]written 0, free lines is 4095 [08:32:05]Connected sock=10 [08:32:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 80 84 07 01 29 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 07 A9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 61 02 00 35 04 06 00 FA CA E6 E1 DD 2E 45 03 A0 51 72 C4 FB 90 [08:32:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 68 C9 47 00 16 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 61 02 00 F4 03 04 00 7A 4E 1C 67 B6 04 01 00 00 EC E1 E8 FB ED F5 1E DB [08:32:06]CommunicateWithHost err = 0 [08:32:06]CheckOFDResponse [08:32:06]1017 (14) - 77093643461234 [08:32:06]1041 (16) - 0000000000871792 [08:32:06]1040 (4) - 156145 [08:32:06]1012 (4) - 26.10.2024 02:05 [08:32:06]1206 (1) - 0 [08:32:06]OFD Sender: Remove packet 156145 [08:32:06]ProducePacketName [08:32:06]name=ofd_packets/00156145 [08:32:06]NVStorageDeleteData [08:32:06]Write to MH i2c: 01 00 00 98 14 AC [08:32:06]Write i2c OK [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: 01 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: 01 07 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: 01 07 00 98 14 00 00 00 00 00 E4 0C A3 [08:32:06]RasterBufferAndPrint [08:32:06]line [08:32:06]line [08:32:06]line [08:32:06]line [08:32:06]line [08:32:06]written 0, free lines is 3306 [08:32:06]process_action close_receipt done [08:32:06]requested_data is exist [08:32:06]produce_requested_data [08:32:06]requested_item fm.sn is exist - process it [08:32:06]wFMCommunicate request_size=4 [08:32:06]MH_SAM_APDU [08:32:06]CAPDU: 80 11 00 00 [08:32:06]Write to MH i2c: E2 08 00 9F 14 80 11 00 00 00 00 00 00 2D [08:32:06]Write i2c OK [08:32:06]MH_I2C_Read... [08:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:06]Read from MH i2c: E2 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 17 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 17 00 9F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 82 [08:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:32:06]wFMCommunicate OK [08:32:06]requested_item fd.num is exist - process it [08:32:06]SAM_PROTO_GetFieldsCounters [08:32:06]wFMCommunicate request_size=4 [08:32:06]MH_SAM_APDU [08:32:06]CAPDU: 80 13 00 00 [08:32:06]Write to MH i2c: E2 08 00 A0 14 80 13 00 00 00 00 00 00 30 [08:32:06]Write i2c OK [08:32:06]MH_I2C_Read... [08:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:06]Read from MH i2c: E2 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 62 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 62 00 A0 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 61 02 00 0E 04 04 00 18 02 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 4E [08:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 61 02 00 0E 04 04 00 18 02 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 [08:32:06]wFMCommunicate OK [08:32:06]SAM_PROTO_GetFieldsCounters done [08:32:06]requested_item shift.num is exist - process it [08:32:06]requested_item shift.opened is exist - process it [08:32:06]req_shift_opened [08:32:06]FM_GetShiftState [08:32:06]SAM_PROTO_GetShiftState [08:32:06]wFMCommunicate request_size=4 [08:32:06]MH_SAM_APDU [08:32:06]CAPDU: 80 13 01 00 [08:32:06]Write to MH i2c: E2 08 00 A1 14 80 13 01 00 00 00 00 00 32 [08:32:06]Write i2c OK [08:32:06]MH_I2C_Read... [08:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:06]Read from MH i2c: E2 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 0E 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 0E 00 A1 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 67 [08:32:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:32:06]wFMCommunicate OK [08:32:06]SAM_PROTO_GetShiftState done [08:32:06]FM_GetShiftState done [08:32:06]req_shift_opened done [08:32:06]requested_item shift.open_date is exist - process it [08:32:06]req_shift_open_date [08:32:06]req_shift_open_date done [08:32:06]produce_requested_data done [08:32:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156145,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:32:06]process_action_free close_receipt [08:32:06]json_value_free [08:32:06]json_value_free done [08:32:06]process_json_proto returns [08:32:06]Send response to host [08:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156145,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:32:06]free response buf [08:32:06]execute_script done [08:32:06]execute_script returns [08:32:06]free content buf [08:32:06]Sock 7.Close socket [08:32:06]Sock 7.Thread stoped [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:13]accept exits with 9 [08:42:13]New connection [08:42:13]New thread 3066613092 created [08:42:13]Thread 3066469732 joined [08:42:13]Waiting for new connection... [08:42:13] Sock 9.Parse request [08:42:13]Sock 9.Check first char [08:42:13]Sock 9.First char is OK [08:42:13]request: POST /json_proto HTTP/1.0 [08:42:13]Method: POST [08:42:13]URL: /json_proto [08:42:13]Method is POST - this is cgi request [08:42:13]url: /json_proto [08:42:13]query_string will be loaded in cgi processing [08:42:13]execute_cgi json_proto POST (null) [08:42:13]execute_cgi path=json_proto method=POST [08:42:13]POST find Content-Length [08:42:13]Host: 172.17.63.3:8080 [08:42:13]Content-Length: 678 [08:42:13]Content-Type: application/json [08:42:13] [08:42:13]POST finish read [08:42:13]Found Content-Length = 678 [08:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:13]execute_script... [08:42:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:13]POST & json_proto [08:42:13]process_json_proto [08:42:13]json parsed OK: [08:42:13]protocol is kg_v1.0 [08:42:13]action value=close_receipt [08:42:13]process_action close_receipt [08:42:13]cmd_close_receipt [08:42:13]MH_GetDate [08:42:13]Write to MH i2c: F0 00 00 A2 14 A5 [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: F0 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: F0 09 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: F0 09 00 A2 14 00 68 AB 1C 67 50 D1 6C 64 35 [08:42:13]GetLastDocTimeStamp 1729931527 [08:42:13]current date 1729932136 [08:42:13]FM_GetShiftState [08:42:13]SAM_PROTO_GetShiftState [08:42:13]wFMCommunicate request_size=4 [08:42:13]MH_SAM_APDU [08:42:13]CAPDU: 80 13 01 00 [08:42:13]Write to MH i2c: E2 08 00 A3 14 80 13 01 00 00 00 00 00 34 [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 0E 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 0E 00 A3 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 69 [08:42:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:42:13]wFMCommunicate OK [08:42:13]SAM_PROTO_GetShiftState done [08:42:13]FM_GetShiftState done [08:42:13]opened in 1729902702 [08:42:13]opened+sec_in_day 1729989102 [08:42:13]quantity*price = 100050 [08:42:13]sum+1 = 100052 [08:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 47 26.10.2024 08:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156146 ФПД: 128684580713786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084216&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156146&fm=128684580713786&tin=02508201610067®Number=0000000000091693&sum=100000 [08:42:14]StoreToDocumentArchive [08:42:14]shift 536 fd 156146 [08:42:14]save to /storage/0536/doc_00156146 [08:42:14]save last doc name /storage/0536/doc_00156146 to /storage/kkm_last_doc_name [08:42:14]save OK [08:42:14]Clear old archive folders... [08:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:42:14]tlvbuf is 00D0B620 [08:42:14]SAM_PROTO_ClearQueue [08:42:14]wFMCommunicate request_size=4 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 09 00 00 [08:42:14]Write to MH i2c: E2 08 00 B0 14 80 09 00 00 00 00 00 00 36 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [08:42:14]RAPDU: 90 00 [08:42:14]wFMCommunicate OK [08:42:14]SAM_PROTO_ClearQueue done [08:42:14]KKMCreateOFDPacket [08:42:14]OFDProtocolAddRootSTLVToBuf [08:42:14]FM_MakeSignedData [08:42:14]FM_MakeSignedData [08:42:14]SAM_PROTO_SignData [08:42:14]wFMCommunicate request_size=4 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 0D 01 02 [08:42:14]Write to MH i2c: E2 08 00 B1 14 80 0D 01 02 00 00 00 00 3E [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 B1 14 00 90 00 39 [08:42:14]RAPDU: 90 00 [08:42:14]wFMCommunicate OK [08:42:14]wFMCommunicate request_size=255 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 68 AB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 61 02 00 35 04 06 00 75 09 B6 B8 [08:42:14]Write to MH i2c: E2 02 01 B2 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 68 AB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 61 02 00 35 04 06 00 75 09 B6 B8 00 00 E8 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 B2 14 00 90 00 3A [08:42:14]RAPDU: 90 00 [08:42:14]wFMCommunicate OK [08:42:14]wFMCommunicate request_size=7 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 0D 02 02 02 B5 3A [08:42:14]Write to MH i2c: E2 0A 00 B3 14 80 0D 02 02 02 00 B5 3A 00 00 34 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 03 00 B3 14 00 90 00 3B [08:42:14]RAPDU: 90 00 [08:42:14]wFMCommunicate OK [08:42:14]wFMCommunicate request_size=4 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 0D 03 02 [08:42:14]Write to MH i2c: E2 08 00 B4 14 80 0D 03 02 00 00 00 00 43 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 0B 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 0B 00 B4 14 00 BC 8C F6 22 9B 75 6F 8D 90 00 B0 [08:42:14]RAPDU: BC 8C F6 22 9B 75 6F 8D 90 00 [08:42:14]wFMCommunicate OK [08:42:14]SAM_PROTO_SignData done [08:42:14]FM_MakeSignedData done [08:42:14]CreateOFDProtocolMessage [08:42:14]wFMCommunicate request_size=4 [08:42:14]MH_SAM_APDU [08:42:14]CAPDU: 80 11 00 00 [08:42:14]Write to MH i2c: E2 08 00 B5 14 80 11 00 00 00 00 00 00 43 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:14]Read from MH i2c: E2 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 17 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: E2 17 00 B5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 98 [08:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:42:14]wFMCommunicate OK [08:42:14]CreateOFDProtocolMessage done [08:42:14]OFDSenderStorePacket 156146 [08:42:14]StoreOFDPacket docnum=156146 [08:42:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 EC A3 04 01 3A 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 68 AB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 61 02 00 35 04 06 00 75 09 B6 B8 B5 3A BC 8C F6 22 9B 75 6F 8D [08:42:14]CheckFolder [08:42:14]dirname=/storage/ofd_packets [08:42:14]CheckFolder done [08:42:14]ProducePacketName [08:42:14]name=ofd_packets/00156146 [08:42:14]NVStorageSaveData ofd_packets/00156146 [08:42:14]File name is /storage/ofd_packets/00156146 [08:42:14]Write 298 bytes [08:42:14]NVStorageSaveData done [08:42:14]OFDSenderStorePacket done [08:42:14]KKMCreateOFDPacket done [08:42:14]NVStorageSaveData kkm_last_timestamp [08:42:14]File name is /storage/kkm_last_timestamp [08:42:14]Write 4 bytes [08:42:14]NVStorageSaveData done [08:42:14]ExternCall_PrintAddStr [08:42:14]wPrintStart [08:42:14]Write to MH i2c: 01 00 00 B6 14 CA [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 07 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 07 00 B6 14 00 00 00 00 00 FF 0F DF [08:42:14]RasterBufferAndPrint [08:42:14]line Счет N : (1)98960 [08:42:14]line ИНН: 02508201610067 [08:42:14]line Контрольно-Кассовый Чек [08:42:14]line ПРОДАЖА [08:42:14]line ТРК (МРК, ГНК) : 32 [08:42:14]line Товар: 2710194210 [08:42:14]line ДТ-К-5 [08:42:14]line 13.130 * 76.20 [08:42:14]line = 1000.51 [08:42:14]line НДС 12% НСП 1% [08:42:14]line > о реализуемом товаре [08:42:14]line ОКРУГЛЕНИЕ: -0.51 [08:42:14]line ИТОГО: 1000.00 [08:42:14]line Внесено: 1000.00 [08:42:14]line СДАЧА: 0.00 [08:42:14]line НСП 1% : 8.85 [08:42:14]line НДС 12% : 106.25 [08:42:14]line Наличными: 1000.00 [08:42:14]line Безнал.: 0.00 [08:42:14]line Место: АЗС № 143 "Партнер Нефть" [08:42:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:42:14]line СНО: Общий режим [08:42:14]line Чек 47 26.10.2024 08:42 [08:42:14]line Смена: 536 ФФД: 1.0 [08:42:14]line ЗНМ: 0300000096 [08:42:14]line РНМ: 0000000000091693 [08:42:15]line Версия ККМ: 001 [08:42:15]line ФМ: 0000000000871792 [08:42:15]line ФД: 156146 [08:42:15]line ФПД: 128684580713786 [08:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084216&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156146&fm=128684580713786&tin=02508201610067®Number=0000000000091693&sum=100000 [08:42:15]OFD Sender: Processing packet 156146 [packets to send 31, broken 30] [08:42:15]ProducePacketName [08:42:15]name=ofd_packets/00156146 [08:42:15]OFD Sender: To server: pG, [08:42:15]CommunicateWithHost lk.salyk.kg:30040 [08:42:15]ConnectInit lk.salyk.kg [08:42:15]written 0, free lines is 4095 [08:42:15]Connected sock=10 [08:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 EC A3 04 01 3A 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 68 AB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 61 02 00 35 04 06 00 75 09 B6 B8 B5 3A BC 8C F6 22 9B 75 6F 8D [08:42:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A3 B3 47 00 D8 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 61 02 00 F4 03 04 00 DB 50 1C 67 B6 04 01 00 00 63 9D FF E5 23 7E 30 5F [08:42:15]CommunicateWithHost err = 0 [08:42:15]CheckOFDResponse [08:42:15]1017 (14) - 77093643461234 [08:42:15]1041 (16) - 0000000000871792 [08:42:15]1040 (4) - 156146 [08:42:15]1012 (4) - 26.10.2024 02:15 [08:42:15]1206 (1) - 0 [08:42:15]OFD Sender: Remove packet 156146 [08:42:15]ProducePacketName [08:42:15]name=ofd_packets/00156146 [08:42:15]NVStorageDeleteData [08:42:15]Write to MH i2c: 01 00 00 E1 14 F5 [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: 01 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: 01 07 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: 01 07 00 E1 14 00 00 00 00 00 D4 0C DC [08:42:15]RasterBufferAndPrint [08:42:15]line [08:42:15]line [08:42:15]line [08:42:15]line [08:42:15]line [08:42:15]written 0, free lines is 3288 [08:42:15]process_action close_receipt done [08:42:15]requested_data is exist [08:42:15]produce_requested_data [08:42:15]requested_item fm.sn is exist - process it [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 11 00 00 [08:42:15]Write to MH i2c: E2 08 00 E8 14 80 11 00 00 00 00 00 00 76 [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 17 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 17 00 E8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [08:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:42:15]wFMCommunicate OK [08:42:15]requested_item fd.num is exist - process it [08:42:15]SAM_PROTO_GetFieldsCounters [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 13 00 00 [08:42:15]Write to MH i2c: E2 08 00 E9 14 80 13 00 00 00 00 00 00 79 [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 62 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 62 00 E9 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 61 02 00 0E 04 04 00 18 02 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 9B [08:42: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 61 02 00 0E 04 04 00 18 02 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 [08:42:15]wFMCommunicate OK [08:42:15]SAM_PROTO_GetFieldsCounters done [08:42:15]requested_item shift.num is exist - process it [08:42:15]requested_item shift.opened is exist - process it [08:42:15]req_shift_opened [08:42:15]FM_GetShiftState [08:42:15]SAM_PROTO_GetShiftState [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 13 01 00 [08:42:15]Write to MH i2c: E2 08 00 EA 14 80 13 01 00 00 00 00 00 7B [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 0E 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 0E 00 EA 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B0 [08:42:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:42:15]wFMCommunicate OK [08:42:15]SAM_PROTO_GetShiftState done [08:42:15]FM_GetShiftState done [08:42:15]req_shift_opened done [08:42:15]requested_item shift.open_date is exist - process it [08:42:15]req_shift_open_date [08:42:15]req_shift_open_date done [08:42:15]produce_requested_data done [08:42:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156146,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:42:15]process_action_free close_receipt [08:42:15]json_value_free [08:42:15]json_value_free done [08:42:15]process_json_proto returns [08:42:15]Send response to host [08:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156146,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:42:15]free response buf [08:42:15]execute_script done [08:42:15]execute_script returns [08:42:15]free content buf [08:42:15]Sock 9.Close socket [08:42:15]Sock 9.Thread stoped [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:19]accept exits with 7 [08:44:19]New connection [08:44:19]New thread 3066469732 created [08:44:19]Thread 3066613092 joined [08:44:19]Waiting for new connection... [08:44:19] Sock 7.Parse request [08:44:19]Sock 7.Check first char [08:44:19]Sock 7.First char is OK [08:44:19]request: POST /json_proto HTTP/1.0 [08:44:19]Method: POST [08:44:19]URL: /json_proto [08:44:19]Method is POST - this is cgi request [08:44:19]url: /json_proto [08:44:19]query_string will be loaded in cgi processing [08:44:19]execute_cgi json_proto POST (null) [08:44:19]execute_cgi path=json_proto method=POST [08:44:19]POST find Content-Length [08:44:19]Host: 172.17.63.3:8080 [08:44:19]Content-Length: 677 [08:44:19]Content-Type: application/json [08:44:19] [08:44:19]POST finish read [08:44:19]Found Content-Length = 677 [08:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:19]execute_script... [08:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:19]POST & json_proto [08:44:19]process_json_proto [08:44:19]json parsed OK: [08:44:19]protocol is kg_v1.0 [08:44:19]action value=close_receipt [08:44:19]process_action close_receipt [08:44:19]cmd_close_receipt [08:44:19]MH_GetDate [08:44:19]Write to MH i2c: F0 00 00 EB 14 EE [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 09 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 09 00 EB 14 00 E7 AB 1C 67 50 D1 6C 64 FD [08:44:19]GetLastDocTimeStamp 1729932136 [08:44:19]current date 1729932263 [08:44:19]FM_GetShiftState [08:44:19]SAM_PROTO_GetShiftState [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 13 01 00 [08:44:19]Write to MH i2c: E2 08 00 EC 14 80 13 01 00 00 00 00 00 7D [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 EC 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B2 [08:44:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_GetShiftState done [08:44:19]FM_GetShiftState done [08:44:19]opened in 1729902702 [08:44:19]opened+sec_in_day 1729989102 [08:44:19]quantity*price = 70044 [08:44:19]sum+1 = 70045 [08:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 48 26.10.2024 08:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156147 ФПД: 119017835654237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084423&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156147&fm=119017835654237&tin=02508201610067®Number=0000000000091693&sum=70000 [08:44:20]StoreToDocumentArchive [08:44:20]shift 536 fd 156147 [08:44:20]save to /storage/0536/doc_00156147 [08:44:20]save last doc name /storage/0536/doc_00156147 to /storage/kkm_last_doc_name [08:44:20]save OK [08:44:20]Clear old archive folders... [08:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:20]tlvbuf is B6E55ED0 [08:44:20]SAM_PROTO_ClearQueue [08:44:20]wFMCommunicate request_size=4 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 09 00 00 [08:44:20]Write to MH i2c: E2 08 00 F9 14 80 09 00 00 00 00 00 00 7F [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 F9 14 00 90 00 81 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_ClearQueue done [08:44:21]KKMCreateOFDPacket [08:44:21]OFDProtocolAddRootSTLVToBuf [08:44:21]FM_MakeSignedData [08:44:21]FM_MakeSignedData [08:44:21]SAM_PROTO_SignData [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 01 02 [08:44:21]Write to MH i2c: E2 08 00 FA 14 80 0D 01 02 00 00 00 00 87 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 FA 14 00 90 00 82 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]wFMCommunicate request_size=255 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E7 AB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 61 02 00 35 04 06 00 6C [08:44:21]Write to MH i2c: E2 02 01 FB 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E7 AB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 61 02 00 35 04 06 00 6C 00 00 4C [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]OFD Sender: No OFD packet to send [08:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 FB 14 00 90 00 83 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]wFMCommunicate request_size=10 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 02 02 05 3E FF D0 EC 5D [08:44:21]Write to MH i2c: E2 0D 00 FC 14 80 0D 02 02 05 00 3E FF D0 EC 5D 00 00 EA [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 FC 14 00 90 00 84 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 03 02 [08:44:21]Write to MH i2c: E2 08 00 FD 14 80 0D 03 02 00 00 00 00 8C [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0B 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0B 00 FD 14 00 CF EB CF 82 6D 44 CC B1 90 00 C6 [08:44:21]RAPDU: CF EB CF 82 6D 44 CC B1 90 00 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_SignData done [08:44:21]FM_MakeSignedData done [08:44:21]CreateOFDProtocolMessage [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 11 00 00 [08:44:21]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E1 [08:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:44:21]wFMCommunicate OK [08:44:21]CreateOFDProtocolMessage done [08:44:21]OFDSenderStorePacket 156147 [08:44:21]StoreOFDPacket docnum=156147 [08:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 45 30 07 01 79 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E7 AB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 61 02 00 35 04 06 00 6C 3E FF D0 EC 5D CF EB CF 82 6D 44 CC B1 [08:44:21]CheckFolder [08:44:21]dirname=/storage/ofd_packets [08:44:21]CheckFolder done [08:44:21]ProducePacketName [08:44:21]name=ofd_packets/00156147 [08:44:21]NVStorageSaveData ofd_packets/00156147 [08:44:21]File name is /storage/ofd_packets/00156147 [08:44:21]Write 301 bytes [08:44:21]NVStorageSaveData done [08:44:21]OFDSenderStorePacket done [08:44:21]KKMCreateOFDPacket done [08:44:21]NVStorageSaveData kkm_last_timestamp [08:44:21]File name is /storage/kkm_last_timestamp [08:44:21]Write 4 bytes [08:44:21]NVStorageSaveData done [08:44:21]ExternCall_PrintAddStr [08:44:21]wPrintStart [08:44:21]Write to MH i2c: 01 00 00 FF 14 13 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 FF 14 00 00 00 00 00 FF 0F 28 [08:44:21]RasterBufferAndPrint [08:44:21]line Счет N : (1)98961 [08:44:21]line ИНН: 02508201610067 [08:44:21]line Контрольно-Кассовый Чек [08:44:21]line ПРОДАЖА [08:44:21]line ТРК (МРК, ГНК) : 31 [08:44:21]line Товар: 2710124130 [08:44:21]line Аи-92-К-5 [08:44:21]line 10.470 * 66.90 [08:44:21]line = 700.44 [08:44:21]line НДС 12% НСП 1% [08:44:21]line > о реализуемом товаре [08:44:21]line ОКРУГЛЕНИЕ: -0.44 [08:44:21]line ИТОГО: 700.00 [08:44:21]line Внесено: 700.00 [08:44:21]line СДАЧА: 0.00 [08:44:21]line НСП 1% : 6.20 [08:44:21]line НДС 12% : 74.38 [08:44:21]line Наличными: 700.00 [08:44:21]line Безнал.: 0.00 [08:44:21]line Место: АЗС № 143 "Партнер Нефть" [08:44:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:44:21]line СНО: Общий режим [08:44:21]line Чек 48 26.10.2024 08:44 [08:44:21]line Смена: 536 ФФД: 1.0 [08:44:21]line ЗНМ: 0300000096 [08:44:21]line РНМ: 0000000000091693 [08:44:21]line Версия ККМ: 001 [08:44:21]line ФМ: 0000000000871792 [08:44:21]line ФД: 156147 [08:44:21]line ФПД: 119017835654237 [08:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084423&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156147&fm=119017835654237&tin=02508201610067®Number=0000000000091693&sum=70000 [08:44:21]OFD Sender: Processing packet 156147 [packets to send 31, broken 30] [08:44:21]ProducePacketName [08:44:21]name=ofd_packets/00156147 [08:44:21]OFD Sender: To server: pG, [08:44:21]CommunicateWithHost lk.salyk.kg:30040 [08:44:21]ConnectInit lk.salyk.kg [08:44:21]written 0, free lines is 4095 [08:44:21]Connected sock=10 [08:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 45 30 07 01 79 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E7 AB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 61 02 00 35 04 06 00 6C 3E FF D0 EC 5D CF EB CF 82 6D 44 CC B1 [08:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E0 03 47 00 41 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 61 02 00 F4 03 04 00 5A 51 1C 67 B6 04 01 00 00 AA 31 6C 2B 2B BA BE B9 [08:44:22]CommunicateWithHost err = 0 [08:44:22]CheckOFDResponse [08:44:22]1017 (14) - 77093643461234 [08:44:22]1041 (16) - 0000000000871792 [08:44:22]1040 (4) - 156147 [08:44:22]1012 (4) - 26.10.2024 02:18 [08:44:22]1206 (1) - 0 [08:44:22]OFD Sender: Remove packet 156147 [08:44:22]ProducePacketName [08:44:22]name=ofd_packets/00156147 [08:44:22]NVStorageDeleteData [08:44:22]Write to MH i2c: 01 00 00 2A 15 3F [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 07 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 07 00 2A 15 00 00 00 00 00 DC 0C 2E [08:44:22]RasterBufferAndPrint [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]written 0, free lines is 3298 [08:44:22]process_action close_receipt done [08:44:22]requested_data is exist [08:44:22]produce_requested_data [08:44:22]requested_item fm.sn is exist - process it [08:44:22]wFMCommunicate request_size=4 [08:44:22]MH_SAM_APDU [08:44:22]CAPDU: 80 11 00 00 [08:44:22]Write to MH i2c: E2 08 00 31 15 80 11 00 00 00 00 00 00 C0 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:22]Read from MH i2c: E2 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 17 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 17 00 31 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [08:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:44:22]wFMCommunicate OK [08:44:22]requested_item fd.num is exist - process it [08:44:22]SAM_PROTO_GetFieldsCounters [08:44:22]wFMCommunicate request_size=4 [08:44:22]MH_SAM_APDU [08:44:22]CAPDU: 80 13 00 00 [08:44:22]Write to MH i2c: E2 08 00 32 15 80 13 00 00 00 00 00 00 C3 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:22]Read from MH i2c: E2 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 62 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 62 00 32 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 61 02 00 0E 04 04 00 18 02 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 E9 [08:44:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 61 02 00 0E 04 04 00 18 02 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 [08:44:22]wFMCommunicate OK [08:44:22]SAM_PROTO_GetFieldsCounters done [08:44:22]requested_item shift.num is exist - process it [08:44:22]requested_item shift.opened is exist - process it [08:44:22]req_shift_opened [08:44:22]FM_GetShiftState [08:44:22]SAM_PROTO_GetShiftState [08:44:22]wFMCommunicate request_size=4 [08:44:22]MH_SAM_APDU [08:44:22]CAPDU: 80 13 01 00 [08:44:22]Write to MH i2c: E2 08 00 33 15 80 13 01 00 00 00 00 00 C5 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:22]Read from MH i2c: E2 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 0E 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 0E 00 33 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FA [08:44:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:44:22]wFMCommunicate OK [08:44:22]SAM_PROTO_GetShiftState done [08:44:22]FM_GetShiftState done [08:44:22]req_shift_opened done [08:44:22]requested_item shift.open_date is exist - process it [08:44:22]req_shift_open_date [08:44:22]req_shift_open_date done [08:44:22]produce_requested_data done [08:44:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156147,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:44:22]process_action_free close_receipt [08:44:22]json_value_free [08:44:22]json_value_free done [08:44:22]process_json_proto returns [08:44:22]Send response to host [08:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156147,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:44:22]free response buf [08:44:22]execute_script done [08:44:22]execute_script returns [08:44:22]free content buf [08:44:22]Sock 7.Close socket [08:44:22]Sock 7.Thread stoped [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:10]accept exits with 9 [08:47:10]New connection [08:47:10]New thread 3066613092 created [08:47:10]Thread 3066469732 joined [08:47:10]Waiting for new connection... [08:47:10] Sock 9.Parse request [08:47:10]Sock 9.Check first char [08:47:10]Sock 9.First char is OK [08:47:10]request: POST /json_proto HTTP/1.0 [08:47:10]Method: POST [08:47:10]URL: /json_proto [08:47:10]Method is POST - this is cgi request [08:47:10]url: /json_proto [08:47:10]query_string will be loaded in cgi processing [08:47:10]execute_cgi json_proto POST (null) [08:47:10]execute_cgi path=json_proto method=POST [08:47:10]POST find Content-Length [08:47:10]Host: 172.17.63.3:8080 [08:47:10]Content-Length: 673 [08:47:10]Content-Type: application/json [08:47:10] [08:47:10]POST finish read [08:47:10]Found Content-Length = 673 [08:47:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.450, "sum" : 720.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:10]execute_script... [08:47:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.450, "sum" : 720.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:10]POST & json_proto [08:47:10]process_json_proto [08:47:10]json parsed OK: [08:47:10]protocol is kg_v1.0 [08:47:10]action value=close_receipt [08:47:10]process_action close_receipt [08:47:10]cmd_close_receipt [08:47:10]MH_GetDate [08:47:10]Write to MH i2c: F0 00 00 34 15 38 [08:47:10]Write i2c OK [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: F0 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: F0 09 00 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: F0 09 00 34 15 00 92 AC 1C 67 50 D1 6C 64 F3 [08:47:10]GetLastDocTimeStamp 1729932263 [08:47:10]current date 1729932434 [08:47:10]FM_GetShiftState [08:47:10]SAM_PROTO_GetShiftState [08:47:10]wFMCommunicate request_size=4 [08:47:10]MH_SAM_APDU [08:47:10]CAPDU: 80 13 01 00 [08:47:10]Write to MH i2c: E2 08 00 35 15 80 13 01 00 00 00 00 00 C7 [08:47:10]Write i2c OK [08:47:10]MH_I2C_Read... [08:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:10]Read from MH i2c: E2 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: E2 0E 00 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: E2 0E 00 35 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FC [08:47:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:47:10]wFMCommunicate OK [08:47:10]SAM_PROTO_GetShiftState done [08:47:10]FM_GetShiftState done [08:47:10]opened in 1729902702 [08:47:10]opened+sec_in_day 1729989102 [08:47:10]quantity*price = 72009 [08:47:10]sum+1 = 72010 [08:47:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.47 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 49 26.10.2024 08:47 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156148 ФПД: 208896334553708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084714&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156148&fm=208896334553708&tin=02508201610067®Number=0000000000091693&sum=72000 [08:47:12]StoreToDocumentArchive [08:47:12]shift 536 fd 156148 [08:47:12]save to /storage/0536/doc_00156148 [08:47:12]save last doc name /storage/0536/doc_00156148 to /storage/kkm_last_doc_name [08:47:12]save OK [08:47:12]Clear old archive folders... [08:47:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:47:12]tlvbuf is B6F02AA0 [08:47:12]SAM_PROTO_ClearQueue [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 09 00 00 [08:47:12]Write to MH i2c: E2 08 00 42 15 80 09 00 00 00 00 00 00 C9 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 42 15 00 90 00 CB [08:47:12]RAPDU: 90 00 [08:47:12]wFMCommunicate OK [08:47:12]SAM_PROTO_ClearQueue done [08:47:12]KKMCreateOFDPacket [08:47:12]OFDProtocolAddRootSTLVToBuf [08:47:12]FM_MakeSignedData [08:47:12]FM_MakeSignedData [08:47:12]SAM_PROTO_SignData [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 0D 01 02 [08:47:12]Write to MH i2c: E2 08 00 43 15 80 0D 01 02 00 00 00 00 D1 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 43 15 00 90 00 CC [08:47:12]RAPDU: 90 00 [08:47:12]wFMCommunicate OK [08:47:12]wFMCommunicate request_size=255 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 92 AC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 61 02 00 35 04 06 00 BD FD 77 D0 [08:47:12]Write to MH i2c: E2 02 01 44 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 92 AC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 61 02 00 35 04 06 00 BD FD 77 D0 00 00 18 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 44 15 00 90 00 CD [08:47:12]RAPDU: 90 00 [08:47:12]wFMCommunicate OK [08:47:12]wFMCommunicate request_size=7 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 0D 02 02 02 E2 6C [08:47:12]Write to MH i2c: E2 0A 00 45 15 80 0D 02 02 02 00 E2 6C 00 00 26 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 45 15 00 90 00 CE [08:47:12]RAPDU: 90 00 [08:47:12]wFMCommunicate OK [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 0D 03 02 [08:47:12]Write to MH i2c: E2 08 00 46 15 80 0D 03 02 00 00 00 00 D6 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 0B 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 0B 00 46 15 00 DF 42 09 56 80 B9 94 6E 90 00 92 [08:47:12]RAPDU: DF 42 09 56 80 B9 94 6E 90 00 [08:47:12]wFMCommunicate OK [08:47:12]SAM_PROTO_SignData done [08:47:12]FM_MakeSignedData done [08:47:12]CreateOFDProtocolMessage [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 11 00 00 [08:47:12]Write to MH i2c: E2 08 00 47 15 80 11 00 00 00 00 00 00 D6 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 17 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 17 00 47 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2B [08:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:47:12]wFMCommunicate OK [08:47:12]CreateOFDProtocolMessage done [08:47:12]OFDSenderStorePacket 156148 [08:47:12]StoreOFDPacket docnum=156148 [08:47:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4A C3 04 01 C5 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 92 AC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 61 02 00 35 04 06 00 BD FD 77 D0 E2 6C DF 42 09 56 80 B9 94 6E [08:47:12]CheckFolder [08:47:12]dirname=/storage/ofd_packets [08:47:12]CheckFolder done [08:47:12]ProducePacketName [08:47:12]name=ofd_packets/00156148 [08:47:12]NVStorageSaveData ofd_packets/00156148 [08:47:12]File name is /storage/ofd_packets/00156148 [08:47:12]Write 298 bytes [08:47:12]NVStorageSaveData done [08:47:12]OFDSenderStorePacket done [08:47:12]KKMCreateOFDPacket done [08:47:12]NVStorageSaveData kkm_last_timestamp [08:47:12]File name is /storage/kkm_last_timestamp [08:47:12]Write 4 bytes [08:47:12]NVStorageSaveData done [08:47:12]ExternCall_PrintAddStr [08:47:12]wPrintStart [08:47:12]Write to MH i2c: 01 00 00 48 15 5D [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: 01 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: 01 07 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: 01 07 00 48 15 00 00 00 00 00 FF 0F 72 [08:47:12]RasterBufferAndPrint [08:47:12]line Счет N : (1)98962 [08:47:12]line ИНН: 02508201610067 [08:47:12]line Контрольно-Кассовый Чек [08:47:12]line ПРОДАЖА [08:47:12]line ТРК (МРК, ГНК) : 32 [08:47:12]line Товар: 2710194210 [08:47:12]line ДТ-К-5 [08:47:12]line 9.450 * 76.20 [08:47:12]line = 720.09 [08:47:12]line НДС 12% НСП 1% [08:47:12]line > о реализуемом товаре [08:47:12]line ОКРУГЛЕНИЕ: -0.09 [08:47:12]line ИТОГО: 720.00 [08:47:12]line Внесено: 720.00 [08:47:12]line СДАЧА: 0.00 [08:47:12]line НСП 1% : 6.37 [08:47:12]line НДС 12% : 76.47 [08:47:12]line Наличными: 720.00 [08:47:12]line Безнал.: 0.00 [08:47:12]line Место: АЗС № 143 "Партнер Нефть" [08:47:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:47:12]line СНО: Общий режим [08:47:12]line Чек 49 26.10.2024 08:47 [08:47:12]line Смена: 536 ФФД: 1.0 [08:47:12]line ЗНМ: 0300000096 [08:47:12]line РНМ: 0000000000091693 [08:47:12]line Версия ККМ: 001 [08:47:12]line ФМ: 0000000000871792 [08:47:12]line ФД: 156148 [08:47:12]line ФПД: 208896334553708 [08:47:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084714&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156148&fm=208896334553708&tin=02508201610067®Number=0000000000091693&sum=72000 [08:47:12]OFD Sender: Processing packet 156148 [packets to send 31, broken 30] [08:47:12]ProducePacketName [08:47:12]name=ofd_packets/00156148 [08:47:12]OFD Sender: To server: pG, [08:47:12]CommunicateWithHost lk.salyk.kg:30040 [08:47:12]ConnectInit lk.salyk.kg [08:47:12]written 0, free lines is 4095 [08:47:13]Connected sock=10 [08:47:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4A C3 04 01 C5 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 92 AC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 61 02 00 35 04 06 00 BD FD 77 D0 E2 6C DF 42 09 56 80 B9 94 6E [08:47:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 50 43 47 00 A6 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 31 37 39 32 10 04 04 00 F4 61 02 00 F4 03 04 00 05 52 1C 67 B6 04 01 00 00 39 5E 6F F3 3B BC 7C 03 [08:47:13]CommunicateWithHost err = 0 [08:47:13]CheckOFDResponse [08:47:13]1017 (14) - 77093643461234 [08:47:13]1041 (16) - 0000000000871792 [08:47:13]1040 (4) - 156148 [08:47:13]1012 (4) - 26.10.2024 02:20 [08:47:13]1206 (1) - 0 [08:47:13]OFD Sender: Remove packet 156148 [08:47:13]ProducePacketName [08:47:13]name=ofd_packets/00156148 [08:47:13]NVStorageDeleteData [08:47:13]Write to MH i2c: 01 00 00 73 15 88 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: 01 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: 01 07 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: 01 07 00 73 15 00 00 00 00 00 DE 0C 79 [08:47:13]RasterBufferAndPrint [08:47:13]line [08:47:13]line [08:47:13]line [08:47:13]line [08:47:13]line [08:47:13]written 0, free lines is 3300 [08:47:13]process_action close_receipt done [08:47:13]requested_data is exist [08:47:13]produce_requested_data [08:47:13]requested_item fm.sn is exist - process it [08:47:13]wFMCommunicate request_size=4 [08:47:13]MH_SAM_APDU [08:47:13]CAPDU: 80 11 00 00 [08:47:13]Write to MH i2c: E2 08 00 7A 15 80 11 00 00 00 00 00 00 09 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:13]Read from MH i2c: E2 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 17 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 17 00 7A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [08:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:47:13]wFMCommunicate OK [08:47:13]requested_item fd.num is exist - process it [08:47:13]SAM_PROTO_GetFieldsCounters [08:47:13]wFMCommunicate request_size=4 [08:47:13]MH_SAM_APDU [08:47:13]CAPDU: 80 13 00 00 [08:47:13]Write to MH i2c: E2 08 00 7B 15 80 13 00 00 00 00 00 00 0C [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:13]Read from MH i2c: E2 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 62 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 62 00 7B 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 61 02 00 0E 04 04 00 18 02 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 36 [08:47: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 61 02 00 0E 04 04 00 18 02 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 [08:47:13]wFMCommunicate OK [08:47:13]SAM_PROTO_GetFieldsCounters done [08:47:13]requested_item shift.num is exist - process it [08:47:13]requested_item shift.opened is exist - process it [08:47:13]req_shift_opened [08:47:13]FM_GetShiftState [08:47:13]SAM_PROTO_GetShiftState [08:47:13]wFMCommunicate request_size=4 [08:47:13]MH_SAM_APDU [08:47:13]CAPDU: 80 13 01 00 [08:47:13]Write to MH i2c: E2 08 00 7C 15 80 13 01 00 00 00 00 00 0E [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 [08:47:13]MH_I2C_Read... [08:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:13]Read from MH i2c: E2 0E 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 0E 00 7C 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 43 [08:47:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:47:13]wFMCommunicate OK [08:47:13]SAM_PROTO_GetShiftState done [08:47:13]FM_GetShiftState done [08:47:13]req_shift_opened done [08:47:13]requested_item shift.open_date is exist - process it [08:47:13]req_shift_open_date [08:47:13]req_shift_open_date done [08:47:13]produce_requested_data done [08:47:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156148,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:47:13]process_action_free close_receipt [08:47:13]json_value_free [08:47:13]json_value_free done [08:47:13]process_json_proto returns [08:47:13]Send response to host [08:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156148,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:47:13]free response buf [08:47:13]execute_script done [08:47:13]execute_script returns [08:47:13]free content buf [08:47:13]Sock 9.Close socket [08:47:13]Sock 9.Thread stoped [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:56]accept exits with 7 [08:48:56]New connection [08:48:56]New thread 3066469732 created [08:48:56]Thread 3066613092 joined [08:48:56]Waiting for new connection... [08:48:56] Sock 7.Parse request [08:48:56]Sock 7.Check first char [08:48:56]Sock 7.First char is OK [08:48:56]request: POST /json_proto HTTP/1.0 [08:48:56]Method: POST [08:48:56]URL: /json_proto [08:48:56]Method is POST - this is cgi request [08:48:56]url: /json_proto [08:48:56]query_string will be loaded in cgi processing [08:48:56]execute_cgi json_proto POST (null) [08:48:56]execute_cgi path=json_proto method=POST [08:48:56]POST find Content-Length [08:48:56]Host: 172.17.63.3:8080 [08:48:56]Content-Length: 676 [08:48:56]Content-Type: application/json [08:48:56] [08:48:56]POST finish read [08:48:56]Found Content-Length = 676 [08:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:56]execute_script... [08:48: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)98963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:56]POST & json_proto [08:48:56]process_json_proto [08:48:56]json parsed OK: [08:48:56]protocol is kg_v1.0 [08:48:56]action value=close_receipt [08:48:56]process_action close_receipt [08:48:56]cmd_close_receipt [08:48:56]MH_GetDate [08:48:56]Write to MH i2c: F0 00 00 7D 15 81 [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: F0 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: F0 09 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: F0 09 00 7D 15 00 FB AC 1C 67 50 D1 6C 64 A5 [08:48:56]GetLastDocTimeStamp 1729932434 [08:48:56]current date 1729932539 [08:48:56]FM_GetShiftState [08:48:56]SAM_PROTO_GetShiftState [08:48:56]wFMCommunicate request_size=4 [08:48:56]MH_SAM_APDU [08:48:56]CAPDU: 80 13 01 00 [08:48:56]Write to MH i2c: E2 08 00 7E 15 80 13 01 00 00 00 00 00 10 [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:56]Read from MH i2c: E2 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 0E 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 0E 00 7E 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 45 [08:48:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:48:56]wFMCommunicate OK [08:48:56]SAM_PROTO_GetShiftState done [08:48:56]FM_GetShiftState done [08:48:56]opened in 1729902702 [08:48:56]opened+sec_in_day 1729989102 [08:48:56]quantity*price = 60009 [08:48:56]sum+1 = 60010 [08:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 50 26.10.2024 08:49 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156149 ФПД: 1136223653533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084900&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156149&fm=1136223653533&tin=02508201610067®Number=0000000000091693&sum=60000 [08:48:57]StoreToDocumentArchive [08:48:57]shift 536 fd 156149 [08:48:57]save to /storage/0536/doc_00156149 [08:48:57]save last doc name /storage/0536/doc_00156149 to /storage/kkm_last_doc_name [08:48:57]save OK [08:48:57]Clear old archive folders... [08:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:57]tlvbuf is 00D72220 [08:48:57]SAM_PROTO_ClearQueue [08:48:57]wFMCommunicate request_size=4 [08:48:57]MH_SAM_APDU [08:48:57]CAPDU: 80 09 00 00 [08:48:57]Write to MH i2c: E2 08 00 8B 15 80 09 00 00 00 00 00 00 12 [08:48:57]Write i2c OK [08:48:57]MH_I2C_Read... [08:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:57]Read from MH i2c: E2 [08:48:57]MH_I2C_Read... [08:48:57]Read from MH i2c: E2 03 00 [08:48:57]MH_I2C_Read... [08:48:57]Read from MH i2c: E2 03 00 8B 15 00 90 00 14 [08:48:57]RAPDU: 90 00 [08:48:57]wFMCommunicate OK [08:48:57]SAM_PROTO_ClearQueue done [08:48:57]KKMCreateOFDPacket [08:48:57]OFDProtocolAddRootSTLVToBuf [08:48:57]FM_MakeSignedData [08:48:57]FM_MakeSignedData [08:48:57]SAM_PROTO_SignData [08:48:57]wFMCommunicate request_size=4 [08:48:57]MH_SAM_APDU [08:48:57]CAPDU: 80 0D 01 02 [08:48:57]Write to MH i2c: E2 08 00 8C 15 80 0D 01 02 00 00 00 00 1A [08:48:57]Write i2c OK [08:48:57]MH_I2C_Read... [08:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:57]Read from MH i2c: E2 [08:48:57]MH_I2C_Read... [08:48:57]Read from MH i2c: E2 03 00 [08:48:57]MH_I2C_Read... [08:48:57]Read from MH i2c: E2 03 00 8C 15 00 90 00 15 [08:48:57]RAPDU: 90 00 [08:48:57]wFMCommunicate OK [08:48:57]wFMCommunicate request_size=255 [08:48:57]MH_SAM_APDU [08:48:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 FC AC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 61 02 00 35 04 06 00 01 [08:48:57]Write to MH i2c: E2 02 01 8D 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 FC AC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 61 02 00 35 04 06 00 01 00 00 5B [08:48:57]Write i2c OK [08:48:57]MH_I2C_Read... [08:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:58]Read from MH i2c: E2 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 03 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 03 00 8D 15 00 90 00 16 [08:48:58]RAPDU: 90 00 [08:48:58]wFMCommunicate OK [08:48:58]wFMCommunicate request_size=10 [08:48:58]MH_SAM_APDU [08:48:58]CAPDU: 80 0D 02 02 05 08 8C 35 0E 9D [08:48:58]Write to MH i2c: E2 0D 00 8E 15 80 0D 02 02 05 00 08 8C 35 0E 9D 00 00 9B [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:58]Read from MH i2c: E2 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 03 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 03 00 8E 15 00 90 00 17 [08:48:58]RAPDU: 90 00 [08:48:58]wFMCommunicate OK [08:48:58]wFMCommunicate request_size=4 [08:48:58]MH_SAM_APDU [08:48:58]CAPDU: 80 0D 03 02 [08:48:58]Write to MH i2c: E2 08 00 8F 15 80 0D 03 02 00 00 00 00 1F [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:58]Read from MH i2c: E2 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 0B 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 0B 00 8F 15 00 E9 46 5F 28 03 F8 55 4E 90 00 74 [08:48:58]RAPDU: E9 46 5F 28 03 F8 55 4E 90 00 [08:48:58]wFMCommunicate OK [08:48:58]SAM_PROTO_SignData done [08:48:58]FM_MakeSignedData done [08:48:58]CreateOFDProtocolMessage [08:48:58]wFMCommunicate request_size=4 [08:48:58]MH_SAM_APDU [08:48:58]CAPDU: 80 11 00 00 [08:48:58]Write to MH i2c: E2 08 00 90 15 80 11 00 00 00 00 00 00 1F [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:58]Read from MH i2c: E2 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 17 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 17 00 90 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 74 [08:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:48:58]wFMCommunicate OK [08:48:58]CreateOFDProtocolMessage done [08:48:58]OFDSenderStorePacket 156149 [08:48:58]StoreOFDPacket docnum=156149 [08:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 44 9E 07 01 F4 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 FC AC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 61 02 00 35 04 06 00 01 08 8C 35 0E 9D E9 46 5F 28 03 F8 55 4E [08:48:58]CheckFolder [08:48:58]dirname=/storage/ofd_packets [08:48:58]CheckFolder done [08:48:58]ProducePacketName [08:48:58]name=ofd_packets/00156149 [08:48:58]NVStorageSaveData ofd_packets/00156149 [08:48:58]File name is /storage/ofd_packets/00156149 [08:48:58]Write 301 bytes [08:48:58]NVStorageSaveData done [08:48:58]OFDSenderStorePacket done [08:48:58]KKMCreateOFDPacket done [08:48:58]NVStorageSaveData kkm_last_timestamp [08:48:58]File name is /storage/kkm_last_timestamp [08:48:58]Write 4 bytes [08:48:58]NVStorageSaveData done [08:48:58]ExternCall_PrintAddStr [08:48:58]wPrintStart [08:48:58]Write to MH i2c: 01 00 00 91 15 A6 [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 07 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 07 00 91 15 00 00 00 00 00 FF 0F BB [08:48:58]RasterBufferAndPrint [08:48:58]line Счет N : (1)98963 [08:48:58]line ИНН: 02508201610067 [08:48:58]line Контрольно-Кассовый Чек [08:48:58]line ПРОДАЖА [08:48:58]line ТРК (МРК, ГНК) : 31 [08:48:58]line Товар: 2710124130 [08:48:58]line Аи-92-К-5 [08:48:58]line 8.970 * 66.90 [08:48:58]line = 600.09 [08:48:58]line НДС 12% НСП 1% [08:48:58]line > о реализуемом товаре [08:48:58]line ОКРУГЛЕНИЕ: -0.09 [08:48:58]line ИТОГО: 600.00 [08:48:58]line Внесено: 600.00 [08:48:58]line СДАЧА: 0.00 [08:48:58]line НСП 1% : 5.31 [08:48:58]line НДС 12% : 63.73 [08:48:58]line Наличными: 600.00 [08:48:58]line Безнал.: 0.00 [08:48:58]line Место: АЗС № 143 "Партнер Нефть" [08:48:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:48:58]line СНО: Общий режим [08:48:58]line Чек 50 26.10.2024 08:49 [08:48:58]line Смена: 536 ФФД: 1.0 [08:48:58]line ЗНМ: 0300000096 [08:48:58]line РНМ: 0000000000091693 [08:48:58]line Версия ККМ: 001 [08:48:58]line ФМ: 0000000000871792 [08:48:58]line ФД: 156149 [08:48:58]line ФПД: 1136223653533 [08:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084900&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156149&fm=1136223653533&tin=02508201610067®Number=0000000000091693&sum=60000 [08:48:58]OFD Sender: Processing packet 156149 [packets to send 31, broken 30] [08:48:58]ProducePacketName [08:48:58]name=ofd_packets/00156149 [08:48:58]OFD Sender: To server: pG, [08:48:58]CommunicateWithHost lk.salyk.kg:30040 [08:48:58]ConnectInit lk.salyk.kg [08:48:58]written 0, free lines is 4095 [08:48:58]Connected sock=10 [08:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 44 9E 07 01 F4 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 FC AC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 61 02 00 35 04 06 00 01 08 8C 35 0E 9D E9 46 5F 28 03 F8 55 4E [08:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 31 E1 47 00 F1 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 61 02 00 F4 03 04 00 6F 52 1C 67 B6 04 01 00 00 8D 52 98 C1 73 C2 B8 B4 [08:48:58]CommunicateWithHost err = 0 [08:48:58]CheckOFDResponse [08:48:58]1017 (14) - 77093643461234 [08:48:58]1041 (16) - 0000000000871792 [08:48:58]1040 (4) - 156149 [08:48:58]1012 (4) - 26.10.2024 02:22 [08:48:58]1206 (1) - 0 [08:48:58]OFD Sender: Remove packet 156149 [08:48:58]ProducePacketName [08:48:58]name=ofd_packets/00156149 [08:48:58]NVStorageDeleteData [08:48:59]Write to MH i2c: 01 00 00 BC 15 D1 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 BC 15 00 00 00 00 00 E4 0C C8 [08:48:59]RasterBufferAndPrint [08:48:59]line [08:48:59]line [08:48:59]line [08:48:59]line [08:48:59]line [08:48:59]written 0, free lines is 3306 [08:48:59]process_action close_receipt done [08:48:59]requested_data is exist [08:48:59]produce_requested_data [08:48:59]requested_item fm.sn is exist - process it [08:48:59]wFMCommunicate request_size=4 [08:48:59]MH_SAM_APDU [08:48:59]CAPDU: 80 11 00 00 [08:48:59]Write to MH i2c: E2 08 00 C3 15 80 11 00 00 00 00 00 00 52 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:59]Read from MH i2c: E2 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: E2 17 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: E2 17 00 C3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [08:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:48:59]wFMCommunicate OK [08:48:59]requested_item fd.num is exist - process it [08:48:59]SAM_PROTO_GetFieldsCounters [08:48:59]wFMCommunicate request_size=4 [08:48:59]MH_SAM_APDU [08:48:59]CAPDU: 80 13 00 00 [08:48:59]Write to MH i2c: E2 08 00 C4 15 80 13 00 00 00 00 00 00 55 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:59]Read from MH i2c: E2 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: E2 62 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: E2 62 00 C4 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 61 02 00 0E 04 04 00 18 02 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 83 [08:48: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 61 02 00 0E 04 04 00 18 02 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 [08:48:59]wFMCommunicate OK [08:48:59]SAM_PROTO_GetFieldsCounters done [08:48:59]requested_item shift.num is exist - process it [08:48:59]requested_item shift.opened is exist - process it [08:48:59]req_shift_opened [08:48:59]FM_GetShiftState [08:48:59]SAM_PROTO_GetShiftState [08:48:59]wFMCommunicate request_size=4 [08:48:59]MH_SAM_APDU [08:48:59]CAPDU: 80 13 01 00 [08:48:59]Write to MH i2c: E2 08 00 C5 15 80 13 01 00 00 00 00 00 57 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:59]Read from MH i2c: E2 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: E2 0E 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: E2 0E 00 C5 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8C [08:48:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:48:59]wFMCommunicate OK [08:48:59]SAM_PROTO_GetShiftState done [08:48:59]FM_GetShiftState done [08:48:59]req_shift_opened done [08:48:59]requested_item shift.open_date is exist - process it [08:48:59]req_shift_open_date [08:48:59]req_shift_open_date done [08:48:59]produce_requested_data done [08:48:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156149,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:48:59]process_action_free close_receipt [08:48:59]json_value_free [08:48:59]json_value_free done [08:48:59]process_json_proto returns [08:48:59]Send response to host [08:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156149,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:48:59]free response buf [08:48:59]execute_script done [08:48:59]execute_script returns [08:48:59]free content buf [08:48:59]Sock 7.Close socket [08:48:59]Sock 7.Thread stoped [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52: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:06]accept exits with 9 [08:55:06]New connection [08:55:06]New thread 3066613092 created [08:55:06]Thread 3066469732 joined [08:55:06]Waiting for new connection... [08:55:06] Sock 9.Parse request [08:55:06]Sock 9.Check first char [08:55:06]Sock 9.First char is OK [08:55:06]request: POST /json_proto HTTP/1.0 [08:55:06]Method: POST [08:55:06]URL: /json_proto [08:55:06]Method is POST - this is cgi request [08:55:06]url: /json_proto [08:55:06]query_string will be loaded in cgi processing [08:55:06]execute_cgi json_proto POST (null) [08:55:06]execute_cgi path=json_proto method=POST [08:55:06]POST find Content-Length [08:55:06]Host: 172.17.63.3:8080 [08:55:06]Content-Length: 681 [08:55:06]Content-Type: application/json [08:55:06] [08:55:06]POST finish read [08:55:06]Found Content-Length = 681 [08:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:06]execute_script... [08:55:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:06]POST & json_proto [08:55:06]process_json_proto [08:55:06]json parsed OK: [08:55:06]protocol is kg_v1.0 [08:55:06]action value=close_receipt [08:55:06]process_action close_receipt [08:55:06]cmd_close_receipt [08:55:06]MH_GetDate [08:55:06]Write to MH i2c: F0 00 00 C6 15 CA [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: F0 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: F0 09 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: F0 09 00 C6 15 00 6E AE 1C 67 50 D1 6C 64 63 [08:55:06]GetLastDocTimeStamp 1729932540 [08:55:06]current date 1729932910 [08:55:06]FM_GetShiftState [08:55:06]SAM_PROTO_GetShiftState [08:55:06]wFMCommunicate request_size=4 [08:55:06]MH_SAM_APDU [08:55:06]CAPDU: 80 13 01 00 [08:55:06]Write to MH i2c: E2 08 00 C7 15 80 13 01 00 00 00 00 00 59 [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:06]Read from MH i2c: E2 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: E2 0E 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: E2 0E 00 C7 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8E [08:55:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:55:06]wFMCommunicate OK [08:55:06]SAM_PROTO_GetShiftState done [08:55:06]FM_GetShiftState done [08:55:06]opened in 1729902702 [08:55:06]opened+sec_in_day 1729989102 [08:55:06]quantity*price = 100015 [08:55:06]sum+1 = 100017 [08:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 51 26.10.2024 08:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156150 ФПД: 114605577527344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156150&fm=114605577527344&tin=02508201610067®Number=0000000000091693&sum=100000 [08:55:07]StoreToDocumentArchive [08:55:07]shift 536 fd 156150 [08:55:07]save to /storage/0536/doc_00156150 [08:55:07]save last doc name /storage/0536/doc_00156150 to /storage/kkm_last_doc_name [08:55:07]save OK [08:55:07]Clear old archive folders... [08:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:07]tlvbuf is 00D1E9E0 [08:55:07]SAM_PROTO_ClearQueue [08:55:07]wFMCommunicate request_size=4 [08:55:07]MH_SAM_APDU [08:55:07]CAPDU: 80 09 00 00 [08:55:07]Write to MH i2c: E2 08 00 D4 15 80 09 00 00 00 00 00 00 5B [08:55:07]Write i2c OK [08:55:07]MH_I2C_Read... [08:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:07]Read from MH i2c: E2 [08:55:07]MH_I2C_Read... [08:55:07]Read from MH i2c: E2 03 00 [08:55:07]MH_I2C_Read... [08:55:07]Read from MH i2c: E2 03 00 D4 15 00 90 00 5D [08:55:07]RAPDU: 90 00 [08:55:07]wFMCommunicate OK [08:55:07]SAM_PROTO_ClearQueue done [08:55:07]KKMCreateOFDPacket [08:55:07]OFDProtocolAddRootSTLVToBuf [08:55:07]FM_MakeSignedData [08:55:07]FM_MakeSignedData [08:55:07]SAM_PROTO_SignData [08:55:07]wFMCommunicate request_size=4 [08:55:07]MH_SAM_APDU [08:55:07]CAPDU: 80 0D 01 02 [08:55:07]Write to MH i2c: E2 08 00 D5 15 80 0D 01 02 00 00 00 00 63 [08:55:07]Write i2c OK [08:55:07]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 D5 15 00 90 00 5E [08:55:08]RAPDU: 90 00 [08:55:08]wFMCommunicate OK [08:55:08]wFMCommunicate request_size=255 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6E AE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 61 02 00 35 04 06 00 68 [08:55:08]Write to MH i2c: E2 02 01 D6 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6E AE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 61 02 00 35 04 06 00 68 00 00 9E [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 D6 15 00 90 00 5F [08:55:08]RAPDU: 90 00 [08:55:08]wFMCommunicate OK [08:55:08]wFMCommunicate request_size=10 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 0D 02 02 05 3B B0 BC E0 30 [08:55:08]Write to MH i2c: E2 0D 00 D7 15 80 0D 02 02 05 00 3B B0 BC E0 30 00 00 27 [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 D7 15 00 90 00 60 [08:55:08]RAPDU: 90 00 [08:55:08]wFMCommunicate OK [08:55:08]wFMCommunicate request_size=4 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 0D 03 02 [08:55:08]Write to MH i2c: E2 08 00 D8 15 80 0D 03 02 00 00 00 00 68 [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 0B 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 0B 00 D8 15 00 93 9C FC FF 3A 3E 80 E5 90 00 70 [08:55:08]RAPDU: 93 9C FC FF 3A 3E 80 E5 90 00 [08:55:08]wFMCommunicate OK [08:55:08]SAM_PROTO_SignData done [08:55:08]FM_MakeSignedData done [08:55:08]CreateOFDProtocolMessage [08:55:08]wFMCommunicate request_size=4 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 11 00 00 [08:55:08]Write to MH i2c: E2 08 00 D9 15 80 11 00 00 00 00 00 00 68 [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 17 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 17 00 D9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BD [08:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:55:08]wFMCommunicate OK [08:55:08]CreateOFDProtocolMessage done [08:55:08]OFDSenderStorePacket 156150 [08:55:08]StoreOFDPacket docnum=156150 [08:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E 09 07 01 35 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6E AE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 61 02 00 35 04 06 00 68 3B B0 BC E0 30 93 9C FC FF 3A 3E 80 E5 [08:55:08]CheckFolder [08:55:08]dirname=/storage/ofd_packets [08:55:08]CheckFolder done [08:55:08]ProducePacketName [08:55:08]name=ofd_packets/00156150 [08:55:08]NVStorageSaveData ofd_packets/00156150 [08:55:08]File name is /storage/ofd_packets/00156150 [08:55:08]Write 301 bytes [08:55:08]NVStorageSaveData done [08:55:08]OFDSenderStorePacket done [08:55:08]KKMCreateOFDPacket done [08:55:08]NVStorageSaveData kkm_last_timestamp [08:55:08]File name is /storage/kkm_last_timestamp [08:55:08]Write 4 bytes [08:55:08]NVStorageSaveData done [08:55:08]ExternCall_PrintAddStr [08:55:08]wPrintStart [08:55:08]Write to MH i2c: 01 00 00 DA 15 EF [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 07 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 FF 0F 04 [08:55:08]RasterBufferAndPrint [08:55:08]line Счет N : (1)98964 [08:55:08]line ИНН: 02508201610067 [08:55:08]line Контрольно-Кассовый Чек [08:55:08]line ПРОДАЖА [08:55:08]line ТРК (МРК, ГНК) : 21 [08:55:08]line Товар: 2710124130 [08:55:08]line Аи-92-К-5 [08:55:08]line 14.950 * 66.90 [08:55:08]line = 1000.16 [08:55:08]line НДС 12% НСП 1% [08:55:08]line > о реализуемом товаре [08:55:08]line ОКРУГЛЕНИЕ: -0.16 [08:55:08]line ИТОГО: 1000.00 [08:55:08]line Внесено: 1000.00 [08:55:08]line СДАЧА: 0.00 [08:55:08]line НСП 1% : 8.85 [08:55:08]line НДС 12% : 106.21 [08:55:08]line Наличными: 1000.00 [08:55:08]line Безнал.: 0.00 [08:55:08]line Место: АЗС № 143 "Партнер Нефть" [08:55:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:55:08]line СНО: Общий режим [08:55:08]line Чек 51 26.10.2024 08:55 [08:55:08]line Смена: 536 ФФД: 1.0 [08:55:08]line ЗНМ: 0300000096 [08:55:08]line РНМ: 0000000000091693 [08:55:08]line Версия ККМ: 001 [08:55:08]line ФМ: 0000000000871792 [08:55:08]line ФД: 156150 [08:55:08]line ФПД: 114605577527344 [08:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156150&fm=114605577527344&tin=02508201610067®Number=0000000000091693&sum=100000 [08:55:08]OFD Sender: Processing packet 156150 [packets to send 31, broken 30] [08:55:08]ProducePacketName [08:55:08]name=ofd_packets/00156150 [08:55:08]OFD Sender: To server: pG, [08:55:08]CommunicateWithHost lk.salyk.kg:30040 [08:55:08]ConnectInit lk.salyk.kg [08:55:08]written 0, free lines is 4095 [08:55:08]Connected sock=11 [08:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E 09 07 01 35 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6E AE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 61 02 00 35 04 06 00 68 3B B0 BC E0 30 93 9C FC FF 3A 3E 80 E5 [08:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B4 23 47 00 00 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 61 02 00 F4 03 04 00 E1 53 1C 67 B6 04 01 00 00 4A 5F 03 2D 70 10 27 3E [08:55:09]CommunicateWithHost err = 0 [08:55:09]CheckOFDResponse [08:55:09]1017 (14) - 77093643461234 [08:55:09]1041 (16) - 0000000000871792 [08:55:09]1040 (4) - 156150 [08:55:09]1012 (4) - 26.10.2024 02:28 [08:55:09]1206 (1) - 0 [08:55:09]OFD Sender: Remove packet 156150 [08:55:09]ProducePacketName [08:55:09]name=ofd_packets/00156150 [08:55:09]NVStorageDeleteData [08:55:09]Write to MH i2c: 01 00 00 05 16 1B [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: 01 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: 01 07 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: 01 07 00 05 16 00 00 00 00 00 D8 0C 06 [08:55:09]RasterBufferAndPrint [08:55:09]line [08:55:09]line [08:55:09]line [08:55:09]line [08:55:09]line [08:55:09]written 0, free lines is 3296 [08:55:09]process_action close_receipt done [08:55:09]requested_data is exist [08:55:09]produce_requested_data [08:55:09]requested_item fm.sn is exist - process it [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 11 00 00 [08:55:09]Write to MH i2c: E2 08 00 0C 16 80 11 00 00 00 00 00 00 9C [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 17 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 17 00 0C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F1 [08:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:55:09]wFMCommunicate OK [08:55:09]requested_item fd.num is exist - process it [08:55:09]SAM_PROTO_GetFieldsCounters [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 13 00 00 [08:55:09]Write to MH i2c: E2 08 00 0D 16 80 13 00 00 00 00 00 00 9F [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 62 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 62 00 0D 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 61 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [08:55: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 61 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_GetFieldsCounters done [08:55:09]requested_item shift.num is exist - process it [08:55:09]requested_item shift.opened is exist - process it [08:55:09]req_shift_opened [08:55:09]FM_GetShiftState [08:55:09]SAM_PROTO_GetShiftState [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 13 01 00 [08:55:09]Write to MH i2c: E2 08 00 0E 16 80 13 01 00 00 00 00 00 A1 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 0E 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D6 [08:55:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_GetShiftState done [08:55:09]FM_GetShiftState done [08:55:09]req_shift_opened done [08:55:09]requested_item shift.open_date is exist - process it [08:55:09]req_shift_open_date [08:55:09]req_shift_open_date done [08:55:09]produce_requested_data done [08:55:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156150,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:55:09]process_action_free close_receipt [08:55:09]json_value_free [08:55:09]json_value_free done [08:55:09]process_json_proto returns [08:55:09]Send response to host [08:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156150,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:55:09]free response buf [08:55:09]execute_script done [08:55:09]execute_script returns [08:55:09]free content buf [08:55:09]Sock 9.Close socket [08:55:09]Sock 9.Thread stoped [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:57]accept exits with 7 [08:56:57]New connection [08:56:57]New thread 3066469732 created [08:56:57]Thread 3066613092 joined [08:56:57]Waiting for new connection... [08:56:57] Sock 7.Parse request [08:56:57]Sock 7.Check first char [08:56:57]Sock 7.First char is OK [08:56:57]request: POST /json_proto HTTP/1.0 [08:56:57]Method: POST [08:56:57]URL: /json_proto [08:56:57]Method is POST - this is cgi request [08:56:57]url: /json_proto [08:56:57]query_string will be loaded in cgi processing [08:56:57]execute_cgi json_proto POST (null) [08:56:57]execute_cgi path=json_proto method=POST [08:56:57]POST find Content-Length [08:56:57]Host: 172.17.63.3:8080 [08:56:57]Content-Length: 677 [08:56:57]Content-Type: application/json [08:56:57] [08:56:57]POST finish read [08:56:57]Found Content-Length = 677 [08:56:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:57]execute_script... [08:56:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:57]POST & json_proto [08:56:57]process_json_proto [08:56:57]json parsed OK: [08:56:57]protocol is kg_v1.0 [08:56:57]action value=close_receipt [08:56:57]process_action close_receipt [08:56:57]cmd_close_receipt [08:56:57]MH_GetDate [08:56:57]Write to MH i2c: F0 00 00 0F 16 14 [08:56:57]Write i2c OK [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: F0 [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: F0 09 00 [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: F0 09 00 0F 16 00 DD AE 1C 67 50 D1 6C 64 1C [08:56:57]GetLastDocTimeStamp 1729932910 [08:56:57]current date 1729933021 [08:56:57]FM_GetShiftState [08:56:57]SAM_PROTO_GetShiftState [08:56:57]wFMCommunicate request_size=4 [08:56:57]MH_SAM_APDU [08:56:57]CAPDU: 80 13 01 00 [08:56:57]Write to MH i2c: E2 08 00 10 16 80 13 01 00 00 00 00 00 A3 [08:56:57]Write i2c OK [08:56:57]MH_I2C_Read... [08:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:57]Read from MH i2c: E2 [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: E2 0E 00 [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: E2 0E 00 10 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D8 [08:56:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:56:57]wFMCommunicate OK [08:56:57]SAM_PROTO_GetShiftState done [08:56:57]FM_GetShiftState done [08:56:57]opened in 1729902702 [08:56:57]opened+sec_in_day 1729989102 [08:56:57]quantity*price = 70044 [08:56:57]sum+1 = 70045 [08:56:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 52 26.10.2024 08:57 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156151 ФПД: 183782565347465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085701&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156151&fm=183782565347465&tin=02508201610067®Number=0000000000091693&sum=70000 [08:56:58]StoreToDocumentArchive [08:56:58]shift 536 fd 156151 [08:56:58]save to /storage/0536/doc_00156151 [08:56:58]save last doc name /storage/0536/doc_00156151 to /storage/kkm_last_doc_name [08:56:58]save OK [08:56:58]Clear old archive folders... [08:56:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:58]tlvbuf is 00D17F90 [08:56:58]SAM_PROTO_ClearQueue [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 09 00 00 [08:56:58]Write to MH i2c: E2 08 00 1D 16 80 09 00 00 00 00 00 00 A5 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 1D 16 00 90 00 A7 [08:56:58]RAPDU: 90 00 [08:56:58]wFMCommunicate OK [08:56:58]SAM_PROTO_ClearQueue done [08:56:58]KKMCreateOFDPacket [08:56:58]OFDProtocolAddRootSTLVToBuf [08:56:58]FM_MakeSignedData [08:56:58]FM_MakeSignedData [08:56:58]SAM_PROTO_SignData [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 0D 01 02 [08:56:58]Write to MH i2c: E2 08 00 1E 16 80 0D 01 02 00 00 00 00 AD [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 1E 16 00 90 00 A8 [08:56:58]RAPDU: 90 00 [08:56:58]wFMCommunicate OK [08:56:58]wFMCommunicate request_size=255 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DD AE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 61 02 00 35 04 06 00 A7 [08:56:58]Write to MH i2c: E2 02 01 1F 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DD AE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 61 02 00 35 04 06 00 A7 00 00 AE [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:59]Read from MH i2c: E2 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 1F 16 00 90 00 A9 [08:56:59]RAPDU: 90 00 [08:56:59]wFMCommunicate OK [08:56:59]wFMCommunicate request_size=10 [08:56:59]MH_SAM_APDU [08:56:59]CAPDU: 80 0D 02 02 05 26 36 86 00 89 [08:56:59]Write to MH i2c: E2 0D 00 20 16 80 0D 02 02 05 00 26 36 86 00 89 00 00 25 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:59]Read from MH i2c: E2 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 20 16 00 90 00 AA [08:56:59]RAPDU: 90 00 [08:56:59]wFMCommunicate OK [08:56:59]wFMCommunicate request_size=4 [08:56:59]MH_SAM_APDU [08:56:59]CAPDU: 80 0D 03 02 [08:56:59]Write to MH i2c: E2 08 00 21 16 80 0D 03 02 00 00 00 00 B2 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:59]Read from MH i2c: E2 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 0B 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 0B 00 21 16 00 86 AE B2 AE 23 96 A5 E8 90 00 8D [08:56:59]RAPDU: 86 AE B2 AE 23 96 A5 E8 90 00 [08:56:59]wFMCommunicate OK [08:56:59]SAM_PROTO_SignData done [08:56:59]FM_MakeSignedData done [08:56:59]CreateOFDProtocolMessage [08:56:59]wFMCommunicate request_size=4 [08:56:59]MH_SAM_APDU [08:56:59]CAPDU: 80 11 00 00 [08:56:59]Write to MH i2c: E2 08 00 22 16 80 11 00 00 00 00 00 00 B2 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:59]Read from MH i2c: E2 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 17 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 17 00 22 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 07 [08:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:56:59]wFMCommunicate OK [08:56:59]CreateOFDProtocolMessage done [08:56:59]OFDSenderStorePacket 156151 [08:56:59]StoreOFDPacket docnum=156151 [08:56:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C9 D3 07 01 88 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DD AE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 61 02 00 35 04 06 00 A7 26 36 86 00 89 86 AE B2 AE 23 96 A5 E8 [08:56:59]CheckFolder [08:56:59]dirname=/storage/ofd_packets [08:56:59]CheckFolder done [08:56:59]ProducePacketName [08:56:59]name=ofd_packets/00156151 [08:56:59]NVStorageSaveData ofd_packets/00156151 [08:56:59]File name is /storage/ofd_packets/00156151 [08:56:59]Write 301 bytes [08:56:59]NVStorageSaveData done [08:56:59]OFDSenderStorePacket done [08:56:59]KKMCreateOFDPacket done [08:56:59]NVStorageSaveData kkm_last_timestamp [08:56:59]File name is /storage/kkm_last_timestamp [08:56:59]Write 4 bytes [08:56:59]NVStorageSaveData done [08:56:59]ExternCall_PrintAddStr [08:56:59]wPrintStart [08:56:59]Write to MH i2c: 01 00 00 23 16 39 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: 01 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: 01 07 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: 01 07 00 23 16 00 00 00 00 00 FF 0F 4E [08:56:59]RasterBufferAndPrint [08:56:59]line Счет N : (1)98965 [08:56:59]line ИНН: 02508201610067 [08:56:59]line Контрольно-Кассовый Чек [08:56:59]line ПРОДАЖА [08:56:59]line ТРК (МРК, ГНК) : 21 [08:56:59]line Товар: 2710124130 [08:56:59]line Аи-92-К-5 [08:56:59]line 10.470 * 66.90 [08:56:59]line = 700.44 [08:56:59]line НДС 12% НСП 1% [08:56:59]line > о реализуемом товаре [08:56:59]line ОКРУГЛЕНИЕ: -0.44 [08:56:59]line ИТОГО: 700.00 [08:56:59]line Внесено: 700.00 [08:56:59]line СДАЧА: 0.00 [08:56:59]line НСП 1% : 6.20 [08:56:59]line НДС 12% : 74.38 [08:56:59]line Наличными: 700.00 [08:56:59]line Безнал.: 0.00 [08:56:59]line Место: АЗС № 143 "Партнер Нефть" [08:56:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:56:59]line СНО: Общий режим [08:56:59]line Чек 52 26.10.2024 08:57 [08:56:59]line Смена: 536 ФФД: 1.0 [08:56:59]line ЗНМ: 0300000096 [08:56:59]line РНМ: 0000000000091693 [08:56:59]line Версия ККМ: 001 [08:56:59]line ФМ: 0000000000871792 [08:56:59]line ФД: 156151 [08:56:59]line ФПД: 183782565347465 [08:56:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085701&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156151&fm=183782565347465&tin=02508201610067®Number=0000000000091693&sum=70000 [08:56:59]OFD Sender: Processing packet 156151 [packets to send 31, broken 30] [08:56:59]ProducePacketName [08:56:59]name=ofd_packets/00156151 [08:56:59]OFD Sender: To server: pG, [08:56:59]CommunicateWithHost lk.salyk.kg:30040 [08:56:59]ConnectInit lk.salyk.kg [08:56:59]written 0, free lines is 4095 [08:56:59]Connected sock=10 [08:56:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C9 D3 07 01 88 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DD AE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 61 02 00 35 04 06 00 A7 26 36 86 00 89 86 AE B2 AE 23 96 A5 E8 [08:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 71 D0 47 00 DA 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 61 02 00 F4 03 04 00 50 54 1C 67 B6 04 01 00 00 21 5A 68 72 9F EE 3E F7 [08:56:59]CommunicateWithHost err = 0 [08:56:59]CheckOFDResponse [08:56:59]1017 (14) - 77093643461234 [08:56:59]1041 (16) - 0000000000871792 [08:56:59]1040 (4) - 156151 [08:56:59]1012 (4) - 26.10.2024 02:30 [08:56:59]1206 (1) - 0 [08:56:59]OFD Sender: Remove packet 156151 [08:56:59]ProducePacketName [08:56:59]name=ofd_packets/00156151 [08:56:59]NVStorageDeleteData [08:57:00]Write to MH i2c: 01 00 00 4E 16 64 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 07 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 07 00 4E 16 00 00 00 00 00 DC 0C 53 [08:57:00]RasterBufferAndPrint [08:57:00]line [08:57:00]line [08:57:00]line [08:57:00]line [08:57:00]line [08:57:00]written 0, free lines is 3298 [08:57:00]process_action close_receipt done [08:57:00]requested_data is exist [08:57:00]produce_requested_data [08:57:00]requested_item fm.sn is exist - process it [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 11 00 00 [08:57:00]Write to MH i2c: E2 08 00 55 16 80 11 00 00 00 00 00 00 E5 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 17 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 17 00 55 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [08:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:57:00]wFMCommunicate OK [08:57:00]requested_item fd.num is exist - process it [08:57:00]SAM_PROTO_GetFieldsCounters [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 13 00 00 [08:57:00]Write to MH i2c: E2 08 00 56 16 80 13 00 00 00 00 00 00 E8 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 62 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 62 00 56 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 61 02 00 0E 04 04 00 18 02 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 1E [08:57: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 61 02 00 0E 04 04 00 18 02 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 [08:57:00]wFMCommunicate OK [08:57:00]SAM_PROTO_GetFieldsCounters done [08:57:00]requested_item shift.num is exist - process it [08:57:00]requested_item shift.opened is exist - process it [08:57:00]req_shift_opened [08:57:00]FM_GetShiftState [08:57:00]SAM_PROTO_GetShiftState [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 13 01 00 [08:57:00]Write to MH i2c: E2 08 00 57 16 80 13 01 00 00 00 00 00 EA [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 0E 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 0E 00 57 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 1F [08:57:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:57:00]wFMCommunicate OK [08:57:00]SAM_PROTO_GetShiftState done [08:57:00]FM_GetShiftState done [08:57:00]req_shift_opened done [08:57:00]requested_item shift.open_date is exist - process it [08:57:00]req_shift_open_date [08:57:00]req_shift_open_date done [08:57:00]produce_requested_data done [08:57:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156151,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:57:00]process_action_free close_receipt [08:57:00]json_value_free [08:57:00]json_value_free done [08:57:00]process_json_proto returns [08:57:00]Send response to host [08:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156151,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:57:00]free response buf [08:57:00]execute_script done [08:57:00]execute_script returns [08:57:00]free content buf [08:57:00]Sock 7.Close socket [08:57:00]Sock 7.Thread stoped [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:12]accept exits with 9 [08:58:12]New connection [08:58:12]New thread 3066613092 created [08:58:12]Thread 3066469732 joined [08:58:12]Waiting for new connection... [08:58:12] Sock 9.Parse request [08:58:12]Sock 9.Check first char [08:58:12]Sock 9.First char is OK [08:58:12]request: POST /json_proto HTTP/1.0 [08:58:12]Method: POST [08:58:12]URL: /json_proto [08:58:12]Method is POST - this is cgi request [08:58:12]url: /json_proto [08:58:12]query_string will be loaded in cgi processing [08:58:12]execute_cgi json_proto POST (null) [08:58:12]execute_cgi path=json_proto method=POST [08:58:12]POST find Content-Length [08:58:12]Host: 172.17.63.3:8080 [08:58:12]Content-Length: 678 [08:58:12]Content-Type: application/json [08:58:12] [08:58:12]POST finish read [08:58:12]Found Content-Length = 678 [08:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:12]execute_script... [08:58:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:12]POST & json_proto [08:58:12]process_json_proto [08:58:12]json parsed OK: [08:58:12]protocol is kg_v1.0 [08:58:12]action value=close_receipt [08:58:12]process_action close_receipt [08:58:12]cmd_close_receipt [08:58:12]MH_GetDate [08:58:12]Write to MH i2c: F0 00 00 58 16 5D [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: F0 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: F0 09 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: F0 09 00 58 16 00 27 AF 1C 67 50 D1 6C 64 B0 [08:58:12]GetLastDocTimeStamp 1729933021 [08:58:12]current date 1729933095 [08:58:12]FM_GetShiftState [08:58:12]SAM_PROTO_GetShiftState [08:58:12]wFMCommunicate request_size=4 [08:58:12]MH_SAM_APDU [08:58:12]CAPDU: 80 13 01 00 [08:58:12]Write to MH i2c: E2 08 00 59 16 80 13 01 00 00 00 00 00 EC [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:12]Read from MH i2c: E2 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 0E 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 0E 00 59 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 21 [08:58:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:58:12]wFMCommunicate OK [08:58:12]SAM_PROTO_GetShiftState done [08:58:12]FM_GetShiftState done [08:58:12]opened in 1729902702 [08:58:12]opened+sec_in_day 1729989102 [08:58:12]quantity*price = 120015 [08:58:12]sum+1 = 120016 [08:58:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 53 26.10.2024 08:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156152 ФПД: 265768273447395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085815&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156152&fm=265768273447395&tin=02508201610067®Number=0000000000091693&sum=120000 [08:58:13]StoreToDocumentArchive [08:58:13]shift 536 fd 156152 [08:58:13]save to /storage/0536/doc_00156152 [08:58:13]save last doc name /storage/0536/doc_00156152 to /storage/kkm_last_doc_name [08:58:13]save OK [08:58:13]Clear old archive folders... [08:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:58:13]tlvbuf is 00DA4450 [08:58:13]SAM_PROTO_ClearQueue [08:58:13]wFMCommunicate request_size=4 [08:58:13]MH_SAM_APDU [08:58:13]CAPDU: 80 09 00 00 [08:58:13]Write to MH i2c: E2 08 00 66 16 80 09 00 00 00 00 00 00 EE [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:13]Read from MH i2c: E2 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 03 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [08:58:13]RAPDU: 90 00 [08:58:13]wFMCommunicate OK [08:58:13]SAM_PROTO_ClearQueue done [08:58:13]KKMCreateOFDPacket [08:58:13]OFDProtocolAddRootSTLVToBuf [08:58:13]FM_MakeSignedData [08:58:13]FM_MakeSignedData [08:58:13]SAM_PROTO_SignData [08:58:13]wFMCommunicate request_size=4 [08:58:13]MH_SAM_APDU [08:58:13]CAPDU: 80 0D 01 02 [08:58:13]Write to MH i2c: E2 08 00 67 16 80 0D 01 02 00 00 00 00 F6 [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:13]Read from MH i2c: E2 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 03 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 03 00 67 16 00 90 00 F1 [08:58:13]RAPDU: 90 00 [08:58:13]wFMCommunicate OK [08:58:13]wFMCommunicate request_size=255 [08:58:13]MH_SAM_APDU [08:58:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 35 00 00 00 F4 03 04 00 27 AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 61 02 00 35 04 06 00 F1 B6 FF 88 [08:58:13]Write to MH i2c: E2 02 01 68 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 35 00 00 00 F4 03 04 00 27 AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 61 02 00 35 04 06 00 F1 B6 FF 88 00 00 1F [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:13]Read from MH i2c: E2 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 03 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 03 00 68 16 00 90 00 F2 [08:58:13]RAPDU: 90 00 [08:58:13]wFMCommunicate OK [08:58:13]wFMCommunicate request_size=7 [08:58:13]MH_SAM_APDU [08:58:13]CAPDU: 80 0D 02 02 02 09 E3 [08:58:13]Write to MH i2c: E2 0A 00 69 16 80 0D 02 02 02 00 09 E3 00 00 E9 [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:13]Read from MH i2c: E2 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 03 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 03 00 69 16 00 90 00 F3 [08:58:13]RAPDU: 90 00 [08:58:13]wFMCommunicate OK [08:58:13]wFMCommunicate request_size=4 [08:58:13]MH_SAM_APDU [08:58:13]CAPDU: 80 0D 03 02 [08:58:13]Write to MH i2c: E2 08 00 6A 16 80 0D 03 02 00 00 00 00 FB [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:13]Read from MH i2c: E2 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 0B 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 0B 00 6A 16 00 19 35 C2 62 2D C4 4A F7 90 00 A0 [08:58:13]RAPDU: 19 35 C2 62 2D C4 4A F7 90 00 [08:58:13]wFMCommunicate OK [08:58:13]SAM_PROTO_SignData done [08:58:13]FM_MakeSignedData done [08:58:13]CreateOFDProtocolMessage [08:58:13]wFMCommunicate request_size=4 [08:58:13]MH_SAM_APDU [08:58:13]CAPDU: 80 11 00 00 [08:58:13]Write to MH i2c: E2 08 00 6B 16 80 11 00 00 00 00 00 00 FB [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:13]Read from MH i2c: E2 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 17 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: E2 17 00 6B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 50 [08:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:58:13]wFMCommunicate OK [08:58:13]CreateOFDProtocolMessage done [08:58:13]OFDSenderStorePacket 156152 [08:58:13]StoreOFDPacket docnum=156152 [08:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 81 FE 04 01 A8 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 35 00 00 00 F4 03 04 00 27 AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 61 02 00 35 04 06 00 F1 B6 FF 88 09 E3 19 35 C2 62 2D C4 4A F7 [08:58:13]CheckFolder [08:58:13]dirname=/storage/ofd_packets [08:58:13]CheckFolder done [08:58:13]ProducePacketName [08:58:13]name=ofd_packets/00156152 [08:58:13]NVStorageSaveData ofd_packets/00156152 [08:58:13]File name is /storage/ofd_packets/00156152 [08:58:13]Write 298 bytes [08:58:13]NVStorageSaveData done [08:58:13]OFDSenderStorePacket done [08:58:13]KKMCreateOFDPacket done [08:58:13]NVStorageSaveData kkm_last_timestamp [08:58:13]File name is /storage/kkm_last_timestamp [08:58:13]Write 4 bytes [08:58:13]NVStorageSaveData done [08:58:13]ExternCall_PrintAddStr [08:58:13]wPrintStart [08:58:13]Write to MH i2c: 01 00 00 6C 16 82 [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: 01 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: 01 07 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: 01 07 00 6C 16 00 00 00 00 00 FF 0F 97 [08:58:13]RasterBufferAndPrint [08:58:13]line Счет N : (1)98966 [08:58:13]line ИНН: 02508201610067 [08:58:13]line Контрольно-Кассовый Чек [08:58:13]line ПРОДАЖА [08:58:13]line ТРК (МРК, ГНК) : 32 [08:58:13]line Товар: 2710194210 [08:58:13]line ДТ-К-5 [08:58:13]line 15.750 * 76.20 [08:58:13]line = 1200.15 [08:58:13]line НДС 12% НСП 1% [08:58:13]line > о реализуемом товаре [08:58:13]line ОКРУГЛЕНИЕ: -0.15 [08:58:13]line ИТОГО: 1200.00 [08:58:13]line Внесено: 1200.00 [08:58:13]line СДАЧА: 0.00 [08:58:13]line НСП 1% : 10.62 [08:58:13]line НДС 12% : 127.45 [08:58:13]line Наличными: 1200.00 [08:58:13]line Безнал.: 0.00 [08:58:13]line Место: АЗС № 143 "Партнер Нефть" [08:58:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:58:13]line СНО: Общий режим [08:58:13]line Чек 53 26.10.2024 08:58 [08:58:13]line Смена: 536 ФФД: 1.0 [08:58:13]line ЗНМ: 0300000096 [08:58:13]line РНМ: 0000000000091693 [08:58:13]line Версия ККМ: 001 [08:58:13]line ФМ: 0000000000871792 [08:58:13]line ФД: 156152 [08:58:13]line ФПД: 265768273447395 [08:58:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085815&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156152&fm=265768273447395&tin=02508201610067®Number=0000000000091693&sum=120000 [08:58:14]OFD Sender: Processing packet 156152 [packets to send 31, broken 30] [08:58:14]ProducePacketName [08:58:14]name=ofd_packets/00156152 [08:58:14]OFD Sender: To server: pG, [08:58:14]CommunicateWithHost lk.salyk.kg:30040 [08:58:14]ConnectInit lk.salyk.kg [08:58:14]written 0, free lines is 4095 [08:58:14]Connected sock=10 [08:58:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 81 FE 04 01 A8 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 35 00 00 00 F4 03 04 00 27 AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 61 02 00 35 04 06 00 F1 B6 FF 88 09 E3 19 35 C2 62 2D C4 4A F7 [08:58:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7C 88 47 00 C8 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 61 02 00 F4 03 04 00 9A 54 1C 67 B6 04 01 00 00 CD 88 E3 53 FF F3 15 C9 [08:58:14]CommunicateWithHost err = 0 [08:58:14]CheckOFDResponse [08:58:14]1017 (14) - 77093643461234 [08:58:14]1041 (16) - 0000000000871792 [08:58:14]1040 (4) - 156152 [08:58:14]1012 (4) - 26.10.2024 02:31 [08:58:14]1206 (1) - 0 [08:58:14]OFD Sender: Remove packet 156152 [08:58:14]ProducePacketName [08:58:14]name=ofd_packets/00156152 [08:58:14]NVStorageDeleteData [08:58:14]Write to MH i2c: 01 00 00 97 16 AD [08:58:14]Write i2c OK [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: 01 [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: 01 07 00 [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: 01 07 00 97 16 00 00 00 00 00 DA 0C 9A [08:58:14]RasterBufferAndPrint [08:58:14]line [08:58:14]line [08:58:14]line [08:58:14]line [08:58:14]line [08:58:14]written 0, free lines is 3298 [08:58:14]process_action close_receipt done [08:58:14]requested_data is exist [08:58:14]produce_requested_data [08:58:14]requested_item fm.sn is exist - process it [08:58:14]wFMCommunicate request_size=4 [08:58:14]MH_SAM_APDU [08:58:14]CAPDU: 80 11 00 00 [08:58:14]Write to MH i2c: E2 08 00 9E 16 80 11 00 00 00 00 00 00 2E [08:58:14]Write i2c OK [08:58:14]MH_I2C_Read... [08:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:14]Read from MH i2c: E2 [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: E2 17 00 [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: E2 17 00 9E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [08:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:58:14]wFMCommunicate OK [08:58:14]requested_item fd.num is exist - process it [08:58:14]SAM_PROTO_GetFieldsCounters [08:58:14]wFMCommunicate request_size=4 [08:58:14]MH_SAM_APDU [08:58:14]CAPDU: 80 13 00 00 [08:58:14]Write to MH i2c: E2 08 00 9F 16 80 13 00 00 00 00 00 00 31 [08:58:14]Write i2c OK [08:58:14]MH_I2C_Read... [08:58:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:14]Read from MH i2c: E2 [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: E2 62 00 [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: E2 62 00 9F 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 61 02 00 0E 04 04 00 18 02 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 6B [08:58:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 61 02 00 0E 04 04 00 18 02 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 [08:58:14]wFMCommunicate OK [08:58:14]SAM_PROTO_GetFieldsCounters done [08:58:14]requested_item shift.num is exist - process it [08:58:14]requested_item shift.opened is exist - process it [08:58:14]req_shift_opened [08:58:14]FM_GetShiftState [08:58:14]SAM_PROTO_GetShiftState [08:58:14]wFMCommunicate request_size=4 [08:58:14]MH_SAM_APDU [08:58:14]CAPDU: 80 13 01 00 [08:58:14]Write to MH i2c: E2 08 00 A0 16 80 13 01 00 00 00 00 00 33 [08:58:14]Write i2c OK [08:58:14]MH_I2C_Read... [08:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:14]Read from MH i2c: E2 [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: E2 0E 00 [08:58:14]MH_I2C_Read... [08:58:14]Read from MH i2c: E2 0E 00 A0 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 68 [08:58:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:58:14]wFMCommunicate OK [08:58:14]SAM_PROTO_GetShiftState done [08:58:14]FM_GetShiftState done [08:58:14]req_shift_opened done [08:58:14]requested_item shift.open_date is exist - process it [08:58:14]req_shift_open_date [08:58:14]req_shift_open_date done [08:58:14]produce_requested_data done [08:58:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156152,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:58:14]process_action_free close_receipt [08:58:14]json_value_free [08:58:14]json_value_free done [08:58:14]process_json_proto returns [08:58:14]Send response to host [08:58:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156152,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:58:14]free response buf [08:58:14]execute_script done [08:58:14]execute_script returns [08:58:14]free content buf [08:58:14]Sock 9.Close socket [08:58:14]Sock 9.Thread stoped [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:37]accept exits with 7 [08:59:37]New connection [08:59:37]New thread 3066469732 created [08:59:37]Thread 3066613092 joined [08:59:37]Waiting for new connection... [08:59:37] Sock 7.Parse request [08:59:37]Sock 7.Check first char [08:59:37]Sock 7.First char is OK [08:59:37]request: POST /json_proto HTTP/1.0 [08:59:37]Method: POST [08:59:37]URL: /json_proto [08:59:37]Method is POST - this is cgi request [08:59:37]url: /json_proto [08:59:37]query_string will be loaded in cgi processing [08:59:37]execute_cgi json_proto POST (null) [08:59:37]execute_cgi path=json_proto method=POST [08:59:37]POST find Content-Length [08:59:37]Host: 172.17.63.3:8080 [08:59:37]Content-Length: 791 [08:59:37]Content-Type: application/json [08:59:37] [08:59:37]POST finish read [08:59:37]Found Content-Length = 791 [08:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:37]execute_script... [08:59:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:37]POST & json_proto [08:59:37]process_json_proto [08:59:37]json parsed OK: [08:59:37]protocol is kg_v1.0 [08:59:37]action value=close_receipt [08:59:37]process_action close_receipt [08:59:37]cmd_close_receipt [08:59:37]MH_GetDate [08:59:37]Write to MH i2c: F0 00 00 A1 16 A6 [08:59:37]Write i2c OK [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: F0 [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: F0 09 00 [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: F0 09 00 A1 16 00 7C AF 1C 67 50 D1 6C 64 4E [08:59:37]GetLastDocTimeStamp 1729933095 [08:59:37]current date 1729933180 [08:59:37]FM_GetShiftState [08:59:37]SAM_PROTO_GetShiftState [08:59:37]wFMCommunicate request_size=4 [08:59:37]MH_SAM_APDU [08:59:37]CAPDU: 80 13 01 00 [08:59:37]Write to MH i2c: E2 08 00 A2 16 80 13 01 00 00 00 00 00 35 [08:59:37]Write i2c OK [08:59:37]MH_I2C_Read... [08:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:37]Read from MH i2c: E2 [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: E2 0E 00 [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: E2 0E 00 A2 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6A [08:59:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:59:37]wFMCommunicate OK [08:59:37]SAM_PROTO_GetShiftState done [08:59:37]FM_GetShiftState done [08:59:37]opened in 1729902702 [08:59:37]opened+sec_in_day 1729989102 [08:59:37]quantity*price = 0 [08:59:37]sum+1 = 1 [08:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 54 26.10.2024 08:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 53523 ФМ: 0000000000871792 ФД: 156153 ФПД: 205846346162165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085940&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156153&fm=205846346162165&tin=02508201610067®Number=0000000000091693&sum=0 [08:59:38]StoreToDocumentArchive [08:59:38]shift 536 fd 156153 [08:59:38]save to /storage/0536/doc_00156153 [08:59:38]save last doc name /storage/0536/doc_00156153 to /storage/kkm_last_doc_name [08:59:38]save OK [08:59:38]Clear old archive folders... [08:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:38]tlvbuf is 00D9E240 [08:59:38]SAM_PROTO_ClearQueue [08:59:38]wFMCommunicate request_size=4 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 09 00 00 [08:59:38]Write to MH i2c: E2 08 00 AF 16 80 09 00 00 00 00 00 00 37 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [08:59:38]RAPDU: 90 00 [08:59:38]wFMCommunicate OK [08:59:38]SAM_PROTO_ClearQueue done [08:59:38]KKMCreateOFDPacket [08:59:38]OFDProtocolAddRootSTLVToBuf [08:59:38]FM_MakeSignedData [08:59:38]FM_MakeSignedData [08:59:38]SAM_PROTO_SignData [08:59:38]wFMCommunicate request_size=4 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 0D 01 02 [08:59:38]Write to MH i2c: E2 08 00 B0 16 80 0D 01 02 00 00 00 00 3F [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 B0 16 00 90 00 3A [08:59:38]RAPDU: 90 00 [08:59:38]wFMCommunicate OK [08:59:38]wFMCommunicate request_size=255 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7C AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 61 02 00 35 04 06 00 BB [08:59:38]Write to MH i2c: E2 02 01 B1 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7C AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 61 02 00 35 04 06 00 BB 00 00 9A [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 B1 16 00 90 00 3B [08:59:38]RAPDU: 90 00 [08:59:38]wFMCommunicate OK [08:59:38]wFMCommunicate request_size=10 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 0D 02 02 05 37 56 57 5F F5 [08:59:38]Write to MH i2c: E2 0D 00 B2 16 80 0D 02 02 05 00 37 56 57 5F F5 00 00 84 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 B2 16 00 90 00 3C [08:59:38]RAPDU: 90 00 [08:59:38]wFMCommunicate OK [08:59:38]wFMCommunicate request_size=4 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 0D 03 02 [08:59:38]Write to MH i2c: E2 08 00 B3 16 80 0D 03 02 00 00 00 00 44 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 0B 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 0B 00 B3 16 00 FF 23 4F E6 27 B4 B9 17 90 00 47 [08:59:38]RAPDU: FF 23 4F E6 27 B4 B9 17 90 00 [08:59:38]wFMCommunicate OK [08:59:38]SAM_PROTO_SignData done [08:59:38]FM_MakeSignedData done [08:59:38]CreateOFDProtocolMessage [08:59:38]wFMCommunicate request_size=4 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 11 00 00 [08:59:38]Write to MH i2c: E2 08 00 B4 16 80 11 00 00 00 00 00 00 44 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 17 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 17 00 B4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 99 [08:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:59:38]wFMCommunicate OK [08:59:38]CreateOFDProtocolMessage done [08:59:38]OFDSenderStorePacket 156153 [08:59:38]StoreOFDPacket docnum=156153 [08:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB 59 07 01 70 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7C AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 61 02 00 35 04 06 00 BB 37 56 57 5F F5 FF 23 4F E6 27 B4 B9 17 [08:59:38]CheckFolder [08:59:38]dirname=/storage/ofd_packets [08:59:38]CheckFolder done [08:59:38]ProducePacketName [08:59:38]name=ofd_packets/00156153 [08:59:38]NVStorageSaveData ofd_packets/00156153 [08:59:38]File name is /storage/ofd_packets/00156153 [08:59:38]Write 301 bytes [08:59:38]NVStorageSaveData done [08:59:38]OFDSenderStorePacket done [08:59:38]KKMCreateOFDPacket done [08:59:38]NVStorageSaveData kkm_last_timestamp [08:59:38]File name is /storage/kkm_last_timestamp [08:59:38]Write 4 bytes [08:59:38]NVStorageSaveData done [08:59:38]ExternCall_PrintAddStr [08:59:38]wPrintStart [08:59:38]Write to MH i2c: 01 00 00 B5 16 CB [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 07 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 07 00 B5 16 00 00 00 00 00 FF 0F E0 [08:59:38]RasterBufferAndPrint [08:59:38]line Счет N : (1)98967 [08:59:38]line ИНН: 02508201610067 [08:59:38]line Контрольно-Кассовый Чек [08:59:38]line ПРОДАЖА [08:59:38]line ТРК (МРК, ГНК) : 11 [08:59:38]line Товар: 2710124130 [08:59:38]line Аи-92-К-5 [08:59:38]line 10.000 * 0.00 [08:59:38]line = 0.00 [08:59:38]line НДС 12% НСП 1% [08:59:38]line > о реализуемом товаре [08:59:38]line ИТОГО: 0.00 [08:59:38]line НСП 1% : 0.00 [08:59:38]line НДС 12% : 0.00 [08:59:38]line Наличными: 0.00 [08:59:38]line Безнал.: 0.00 [08:59:38]line Место: АЗС № 143 "Партнер Нефть" [08:59:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:59:38]line СНО: Общий режим [08:59:38]line Чек 54 26.10.2024 08:59 [08:59:38]line Смена: 536 ФФД: 1.0 [08:59:38]line ЗНМ: 0300000096 [08:59:38]line РНМ: 0000000000091693 [08:59:38]line Версия ККМ: 001 [08:59:38]line Талоны: Топливная Карта [08:59:38]line 53523 [08:59:38]line ФМ: 0000000000871792 [08:59:38]line ФД: 156153 [08:59:38]line ФПД: 205846346162165 [08:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085940&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156153&fm=205846346162165&tin=02508201610067®Number=0000000000091693&sum=0 [08:59:39]written 0, free lines is 4095 [08:59:39]OFD Sender: Processing packet 156153 [packets to send 31, broken 30] [08:59:39]ProducePacketName [08:59:39]name=ofd_packets/00156153 [08:59:39]OFD Sender: To server: pG, [08:59:39]CommunicateWithHost lk.salyk.kg:30040 [08:59:39]ConnectInit lk.salyk.kg [08:59:39]Connected sock=11 [08:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB 59 07 01 70 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7C AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 61 02 00 35 04 06 00 BB 37 56 57 5F F5 FF 23 4F E6 27 B4 B9 17 [08:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 81 A1 47 00 50 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 61 02 00 F4 03 04 00 EF 54 1C 67 B6 04 01 00 00 12 AB FD 0D C1 E7 8C 81 [08:59:39]CommunicateWithHost err = 0 [08:59:39]CheckOFDResponse [08:59:39]1017 (14) - 77093643461234 [08:59:39]1041 (16) - 0000000000871792 [08:59:39]1040 (4) - 156153 [08:59:39]1012 (4) - 26.10.2024 02:33 [08:59:39]1206 (1) - 0 [08:59:39]OFD Sender: Remove packet 156153 [08:59:39]ProducePacketName [08:59:39]name=ofd_packets/00156153 [08:59:39]NVStorageDeleteData [08:59:39]Write to MH i2c: 01 00 00 DF 16 F5 [08:59:39]Write i2c OK [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: 01 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: 01 07 00 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 ED 0C F5 [08:59:39]RasterBufferAndPrint [08:59:39]line [08:59:39]line [08:59:39]line [08:59:39]line [08:59:39]line [08:59:39]written 0, free lines is 3316 [08:59:39]process_action close_receipt done [08:59:39]requested_data is exist [08:59:39]produce_requested_data [08:59:39]requested_item fm.sn is exist - process it [08:59:39]wFMCommunicate request_size=4 [08:59:39]MH_SAM_APDU [08:59:39]CAPDU: 80 11 00 00 [08:59:39]Write to MH i2c: E2 08 00 E6 16 80 11 00 00 00 00 00 00 76 [08:59:39]Write i2c OK [08:59:39]MH_I2C_Read... [08:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:39]Read from MH i2c: E2 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 17 00 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 17 00 E6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [08:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:59:39]wFMCommunicate OK [08:59:39]requested_item fd.num is exist - process it [08:59:39]SAM_PROTO_GetFieldsCounters [08:59:39]wFMCommunicate request_size=4 [08:59:39]MH_SAM_APDU [08:59:39]CAPDU: 80 13 00 00 [08:59:39]Write to MH i2c: E2 08 00 E7 16 80 13 00 00 00 00 00 00 79 [08:59:39]Write i2c OK [08:59:39]MH_I2C_Read... [08:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:39]Read from MH i2c: E2 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 62 00 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 62 00 E7 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 61 02 00 0E 04 04 00 18 02 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 B7 [08:59: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 61 02 00 0E 04 04 00 18 02 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 [08:59:39]wFMCommunicate OK [08:59:39]SAM_PROTO_GetFieldsCounters done [08:59:39]requested_item shift.num is exist - process it [08:59:39]requested_item shift.opened is exist - process it [08:59:39]req_shift_opened [08:59:39]FM_GetShiftState [08:59:39]SAM_PROTO_GetShiftState [08:59:39]wFMCommunicate request_size=4 [08:59:39]MH_SAM_APDU [08:59:39]CAPDU: 80 13 01 00 [08:59:39]Write to MH i2c: E2 08 00 E8 16 80 13 01 00 00 00 00 00 7B [08:59:39]Write i2c OK [08:59:39]MH_I2C_Read... [08:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:39]Read from MH i2c: E2 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 0E 00 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 0E 00 E8 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B0 [08:59:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [08:59:39]wFMCommunicate OK [08:59:39]SAM_PROTO_GetShiftState done [08:59:39]FM_GetShiftState done [08:59:39]req_shift_opened done [08:59:39]requested_item shift.open_date is exist - process it [08:59:39]req_shift_open_date [08:59:39]req_shift_open_date done [08:59:39]produce_requested_data done [08:59:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156153,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [08:59:39]process_action_free close_receipt [08:59:39]json_value_free [08:59:39]json_value_free done [08:59:39]process_json_proto returns [08:59:39]Send response to host [08:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156153,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [08:59:39]free response buf [08:59:39]execute_script done [08:59:39]execute_script returns [08:59:39]free content buf [08:59:39]Sock 7.Close socket [08:59:39]Sock 7.Thread stoped [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:45]int [08:59:45]Write to MH i2c: 01 00 00 E9 16 FF [08:59:45]*** FLAG_PRN_KEY set [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 07 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 07 00 E9 16 00 08 00 00 00 FF 0F 1C [08:59:45]state=0 [08:59:45]Key pressed [08:59:45]Feed [08:59:45]Write to MH i2c: D8 00 00 EA 16 D7 [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: D8 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: D8 01 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: D8 01 00 EA 16 00 D8 [08:59:45]int [08:59:45]Write to MH i2c: 01 00 00 EB 16 01 [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 07 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 07 00 EB 16 00 48 00 00 00 3C 00 8C [08:59:45]state=2 [08:59:45]Key pressed [08:59:45]int [08:59:45]Write to MH i2c: 01 00 00 EC 16 02 [08:59:45]*** FLAG_PRN_KEY reset [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 07 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 07 00 EC 16 00 00 00 00 00 F6 0F 0E [08:59:45]state=2 [08:59:45]Stop feed [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:43]accept exits with 9 [09:01:43]New connection [09:01:43]New thread 3066613092 created [09:01:43]Thread 3066469732 joined [09:01:43]Waiting for new connection... [09:01:43] Sock 9.Parse request [09:01:43]Sock 9.Check first char [09:01:43]Sock 9.First char is OK [09:01:43]request: POST /json_proto HTTP/1.0 [09:01:43]Method: POST [09:01:43]URL: /json_proto [09:01:43]Method is POST - this is cgi request [09:01:43]url: /json_proto [09:01:43]query_string will be loaded in cgi processing [09:01:43]execute_cgi json_proto POST (null) [09:01:43]execute_cgi path=json_proto method=POST [09:01:43]POST find Content-Length [09:01:43]Host: 172.17.63.3:8080 [09:01:43]Content-Length: 788 [09:01:43]Content-Type: application/json [09:01:43] [09:01:43]POST finish read [09:01:43]Found Content-Length = 788 [09:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53524", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:43]execute_script... [09:01:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53524", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:43]POST & json_proto [09:01:43]process_json_proto [09:01:43]json parsed OK: [09:01:43]protocol is kg_v1.0 [09:01:43]action value=close_receipt [09:01:43]process_action close_receipt [09:01:43]cmd_close_receipt [09:01:43]MH_GetDate [09:01:43]Write to MH i2c: F0 00 00 ED 16 F2 [09:01:43]Write i2c OK [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: F0 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: F0 09 00 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: F0 09 00 ED 16 00 FA AF 1C 67 50 D1 6C 64 18 [09:01:43]GetLastDocTimeStamp 1729933180 [09:01:43]current date 1729933306 [09:01:43]FM_GetShiftState [09:01:43]SAM_PROTO_GetShiftState [09:01:43]wFMCommunicate request_size=4 [09:01:43]MH_SAM_APDU [09:01:43]CAPDU: 80 13 01 00 [09:01:43]Write to MH i2c: E2 08 00 EE 16 80 13 01 00 00 00 00 00 81 [09:01:43]Write i2c OK [09:01:43]MH_I2C_Read... [09:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:43]Read from MH i2c: E2 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 0E 00 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 0E 00 EE 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B6 [09:01:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:01:43]wFMCommunicate OK [09:01:43]SAM_PROTO_GetShiftState done [09:01:43]FM_GetShiftState done [09:01:43]opened in 1729902702 [09:01:43]opened+sec_in_day 1729989102 [09:01:43]quantity*price = 0 [09:01:43]sum+1 = 1 [09:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 55 26.10.2024 09:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 53524 ФМ: 0000000000871792 ФД: 156154 ФПД: 72111912633365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090146&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156154&fm=72111912633365&tin=02508201610067®Number=0000000000091693&sum=0 [09:01:44]StoreToDocumentArchive [09:01:44]shift 536 fd 156154 [09:01:44]save to /storage/0536/doc_00156154 [09:01:44]save last doc name /storage/0536/doc_00156154 to /storage/kkm_last_doc_name [09:01:44]save OK [09:01:44]Clear old archive folders... [09:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:01:44]tlvbuf is 00D4C3C0 [09:01:44]SAM_PROTO_ClearQueue [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 09 00 00 [09:01:44]Write to MH i2c: E2 08 00 FB 16 80 09 00 00 00 00 00 00 83 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [09:01:44]RAPDU: 90 00 [09:01:44]wFMCommunicate OK [09:01:44]SAM_PROTO_ClearQueue done [09:01:44]KKMCreateOFDPacket [09:01:44]OFDProtocolAddRootSTLVToBuf [09:01:44]FM_MakeSignedData [09:01:44]FM_MakeSignedData [09:01:44]SAM_PROTO_SignData [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 0D 01 02 [09:01:44]Write to MH i2c: E2 08 00 FC 16 80 0D 01 02 00 00 00 00 8B [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [09:01:44]RAPDU: 90 00 [09:01:44]wFMCommunicate OK [09:01:44]wFMCommunicate request_size=255 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FA AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 61 02 00 35 04 06 00 41 95 DC EF [09:01:44]Write to MH i2c: E2 02 01 FD 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FA AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 61 02 00 35 04 06 00 41 95 DC EF 00 00 0D [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [09:01:44]RAPDU: 90 00 [09:01:44]wFMCommunicate OK [09:01:44]wFMCommunicate request_size=7 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 0D 02 02 02 C4 15 [09:01:44]Write to MH i2c: E2 0A 00 FE 16 80 0D 02 02 02 00 C4 15 00 00 6B [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [09:01:44]RAPDU: 90 00 [09:01:44]wFMCommunicate OK [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 0D 03 02 [09:01:44]Write to MH i2c: E2 08 00 FF 16 80 0D 03 02 00 00 00 00 90 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 0B 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 0B 00 FF 16 00 E8 80 18 5F 89 CC 0D BC 90 00 8E [09:01:44]RAPDU: E8 80 18 5F 89 CC 0D BC 90 00 [09:01:44]wFMCommunicate OK [09:01:44]SAM_PROTO_SignData done [09:01:44]FM_MakeSignedData done [09:01:44]CreateOFDProtocolMessage [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 11 00 00 [09:01:44]Write to MH i2c: E2 08 00 00 17 80 11 00 00 00 00 00 00 91 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 17 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 17 00 00 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E6 [09:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:01:44]wFMCommunicate OK [09:01:44]CreateOFDProtocolMessage done [09:01:44]OFDSenderStorePacket 156154 [09:01:44]StoreOFDPacket docnum=156154 [09:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8B D6 04 01 EF 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FA AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 61 02 00 35 04 06 00 41 95 DC EF C4 15 E8 80 18 5F 89 CC 0D BC [09:01:44]CheckFolder [09:01:44]dirname=/storage/ofd_packets [09:01:44]CheckFolder done [09:01:44]ProducePacketName [09:01:44]name=ofd_packets/00156154 [09:01:44]NVStorageSaveData ofd_packets/00156154 [09:01:44]File name is /storage/ofd_packets/00156154 [09:01:44]Write 298 bytes [09:01:44]NVStorageSaveData done [09:01:44]OFDSenderStorePacket done [09:01:44]KKMCreateOFDPacket done [09:01:44]NVStorageSaveData kkm_last_timestamp [09:01:44]File name is /storage/kkm_last_timestamp [09:01:44]Write 4 bytes [09:01:44]NVStorageSaveData done [09:01:44]ExternCall_PrintAddStr [09:01:44]wPrintStart [09:01:44]Write to MH i2c: 01 00 00 01 17 18 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: 01 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: 01 07 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: 01 07 00 01 17 00 00 00 00 00 FF 0F 2D [09:01:44]RasterBufferAndPrint [09:01:44]line Счет N : (1)98968 [09:01:44]line ИНН: 02508201610067 [09:01:44]line Контрольно-Кассовый Чек [09:01:44]line ПРОДАЖА [09:01:44]line ТРК (МРК, ГНК) : 32 [09:01:44]line Товар: 2710194210 [09:01:44]line ДТ-К-5 [09:01:44]line 30.000 * 0.00 [09:01:44]line = 0.00 [09:01:44]line НДС 12% НСП 1% [09:01:44]line > о реализуемом товаре [09:01:44]line ИТОГО: 0.00 [09:01:44]line НСП 1% : 0.00 [09:01:44]line НДС 12% : 0.00 [09:01:44]line Наличными: 0.00 [09:01:44]line Безнал.: 0.00 [09:01:44]line Место: АЗС № 143 "Партнер Нефть" [09:01:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:01:44]line СНО: Общий режим [09:01:44]line Чек 55 26.10.2024 09:01 [09:01:44]line Смена: 536 ФФД: 1.0 [09:01:44]line ЗНМ: 0300000096 [09:01:44]line РНМ: 0000000000091693 [09:01:44]line Версия ККМ: 001 [09:01:44]line Талоны: Топливная Карта [09:01:44]line 53524 [09:01:44]line ФМ: 0000000000871792 [09:01:44]line ФД: 156154 [09:01:44]line ФПД: 72111912633365 [09:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090146&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156154&fm=72111912633365&tin=02508201610067®Number=0000000000091693&sum=0 [09:01:45]OFD Sender: Processing packet 156154 [packets to send 31, broken 30] [09:01:45]ProducePacketName [09:01:45]name=ofd_packets/00156154 [09:01:45]OFD Sender: To server: pG, [09:01:45]CommunicateWithHost lk.salyk.kg:30040 [09:01:45]ConnectInit lk.salyk.kg [09:01:45]written 0, free lines is 4095 [09:01:45]Connected sock=10 [09:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8B D6 04 01 EF 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FA AF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 61 02 00 35 04 06 00 41 95 DC EF C4 15 E8 80 18 5F 89 CC 0D BC [09:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E3 99 47 00 12 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 31 37 39 32 10 04 04 00 FA 61 02 00 F4 03 04 00 6D 55 1C 67 B6 04 01 00 00 32 E4 0B 77 50 B2 82 7A [09:01:45]CommunicateWithHost err = 0 [09:01:45]CheckOFDResponse [09:01:45]1017 (14) - 77093643461234 [09:01:45]1041 (16) - 0000000000871792 [09:01:45]1040 (4) - 156154 [09:01:45]1012 (4) - 26.10.2024 02:35 [09:01:45]1206 (1) - 0 [09:01:45]OFD Sender: Remove packet 156154 [09:01:45]ProducePacketName [09:01:45]name=ofd_packets/00156154 [09:01:45]NVStorageDeleteData [09:01:45]Write to MH i2c: 01 00 00 2B 17 42 [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: 01 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: 01 07 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 F0 0C 45 [09:01:45]RasterBufferAndPrint [09:01:45]line [09:01:45]line [09:01:45]line [09:01:45]line [09:01:45]line [09:01:45]written 0, free lines is 3321 [09:01:45]process_action close_receipt done [09:01:45]requested_data is exist [09:01:45]produce_requested_data [09:01:45]requested_item fm.sn is exist - process it [09:01:45]wFMCommunicate request_size=4 [09:01:45]MH_SAM_APDU [09:01:45]CAPDU: 80 11 00 00 [09:01:45]Write to MH i2c: E2 08 00 32 17 80 11 00 00 00 00 00 00 C3 [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:45]Read from MH i2c: E2 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 17 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 17 00 32 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [09:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:01:45]wFMCommunicate OK [09:01:45]requested_item fd.num is exist - process it [09:01:45]SAM_PROTO_GetFieldsCounters [09:01:45]wFMCommunicate request_size=4 [09:01:45]MH_SAM_APDU [09:01:45]CAPDU: 80 13 00 00 [09:01:45]Write to MH i2c: E2 08 00 33 17 80 13 00 00 00 00 00 00 C6 [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:45]Read from MH i2c: E2 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 62 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 62 00 33 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 61 02 00 0E 04 04 00 18 02 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 08 [09:01: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 61 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:45]wFMCommunicate OK [09:01:45]SAM_PROTO_GetFieldsCounters done [09:01:45]requested_item shift.num is exist - process it [09:01:45]requested_item shift.opened is exist - process it [09:01:45]req_shift_opened [09:01:45]FM_GetShiftState [09:01:45]SAM_PROTO_GetShiftState [09:01:45]wFMCommunicate request_size=4 [09:01:45]MH_SAM_APDU [09:01:45]CAPDU: 80 13 01 00 [09:01:45]Write to MH i2c: E2 08 00 34 17 80 13 01 00 00 00 00 00 C8 [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:45]Read from MH i2c: E2 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 0E 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 0E 00 34 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FD [09:01:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:01:45]wFMCommunicate OK [09:01:45]SAM_PROTO_GetShiftState done [09:01:45]FM_GetShiftState done [09:01:45]req_shift_opened done [09:01:45]requested_item shift.open_date is exist - process it [09:01:45]req_shift_open_date [09:01:45]req_shift_open_date done [09:01:45]produce_requested_data done [09:01:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156154,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:01:45]process_action_free close_receipt [09:01:45]json_value_free [09:01:45]json_value_free done [09:01:45]process_json_proto returns [09:01:45]Send response to host [09:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156154,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:01:45]free response buf [09:01:45]execute_script done [09:01:45]execute_script returns [09:01:45]free content buf [09:01:45]Sock 9.Close socket [09:01:45]Sock 9.Thread stoped [09:01:46]OFD Sender: No OFD packet to send [09:01:46]int [09:01:46]Write to MH i2c: 01 00 00 35 17 4C [09:01:46]*** FLAG_PRN_KEY set [09:01:46]Write i2c OK [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: 01 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: 01 07 00 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: 01 07 00 35 17 00 08 00 00 00 FF 0F 69 [09:01:46]state=0 [09:01:46]Key pressed [09:01:46]Feed [09:01:46]Write to MH i2c: D8 00 00 36 17 24 [09:01:46]Write i2c OK [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: D8 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: D8 01 00 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: D8 01 00 36 17 00 25 [09:01:46]int [09:01:46]Write to MH i2c: 01 00 00 37 17 4E [09:01:46]Write i2c OK [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: 01 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: 01 07 00 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: 01 07 00 37 17 00 48 00 00 00 3C 00 D9 [09:01:46]state=2 [09:01:46]Key pressed [09:01:47]int [09:01:47]Write to MH i2c: 01 00 00 38 17 4F [09:01:47]*** FLAG_PRN_KEY reset [09:01:47]Write i2c OK [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: 01 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: 01 07 00 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: 01 07 00 38 17 00 00 00 00 00 F7 0F 5C [09:01:47]state=2 [09:01:47]Stop feed [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:11]accept exits with 7 [09:05:11]New connection [09:05:11]New thread 3066469732 created [09:05:11]Thread 3066613092 joined [09:05:11]Waiting for new connection... [09:05:11] Sock 7.Parse request [09:05:11]Sock 7.Check first char [09:05:11]Sock 7.First char is OK [09:05:11]request: POST /json_proto HTTP/1.0 [09:05:11]Method: POST [09:05:11]URL: /json_proto [09:05:11]Method is POST - this is cgi request [09:05:11]url: /json_proto [09:05:11]query_string will be loaded in cgi processing [09:05:11]execute_cgi json_proto POST (null) [09:05:11]execute_cgi path=json_proto method=POST [09:05:11]POST find Content-Length [09:05:11]Host: 172.17.63.3:8080 [09:05:11]Content-Length: 765 [09:05:11]Content-Type: application/json [09:05:11] [09:05:11]POST finish read [09:05:11]Found Content-Length = 765 [09:05:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:11]execute_script... [09:05:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:11]POST & json_proto [09:05:11]process_json_proto [09:05:11]json parsed OK: [09:05:11]protocol is kg_v1.0 [09:05:11]action value=close_receipt [09:05:11]process_action close_receipt [09:05:11]cmd_close_receipt [09:05:11]MH_GetDate [09:05:11]Write to MH i2c: F0 00 00 39 17 3F [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: F0 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: F0 09 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: F0 09 00 39 17 00 CB B0 1C 67 50 D1 6C 64 37 [09:05:11]GetLastDocTimeStamp 1729933306 [09:05:11]current date 1729933515 [09:05:11]FM_GetShiftState [09:05:11]SAM_PROTO_GetShiftState [09:05:11]wFMCommunicate request_size=4 [09:05:11]MH_SAM_APDU [09:05:11]CAPDU: 80 13 01 00 [09:05:11]Write to MH i2c: E2 08 00 3A 17 80 13 01 00 00 00 00 00 CE [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 0E 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 0E 00 3A 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 03 [09:05:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:05:11]wFMCommunicate OK [09:05:11]SAM_PROTO_GetShiftState done [09:05:11]FM_GetShiftState done [09:05:11]opened in 1729902702 [09:05:11]opened+sec_in_day 1729989102 [09:05:11]quantity*price = 20003 [09:05:11]sum+1 = 20004 [09:05:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 56 26.10.2024 09:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156155 ФПД: 91707766613542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090515&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156155&fm=91707766613542&tin=02508201610067®Number=0000000000091693&sum=20003 [09:05:12]StoreToDocumentArchive [09:05:12]shift 536 fd 156155 [09:05:12]save to /storage/0536/doc_00156155 [09:05:12]save last doc name /storage/0536/doc_00156155 to /storage/kkm_last_doc_name [09:05:12]save OK [09:05:12]Clear old archive folders... [09:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:12]tlvbuf is B6E6E500 [09:05:12]SAM_PROTO_ClearQueue [09:05:12]wFMCommunicate request_size=4 [09:05:12]MH_SAM_APDU [09:05:12]CAPDU: 80 09 00 00 [09:05:12]Write to MH i2c: E2 08 00 47 17 80 09 00 00 00 00 00 00 D0 [09:05:12]Write i2c OK [09:05:12]MH_I2C_Read... [09:05:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:12]Read from MH i2c: E2 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 03 00 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [09:05:12]RAPDU: 90 00 [09:05:12]wFMCommunicate OK [09:05:12]SAM_PROTO_ClearQueue done [09:05:12]KKMCreateOFDPacket [09:05:12]OFDProtocolAddRootSTLVToBuf [09:05:12]FM_MakeSignedData [09:05:12]FM_MakeSignedData [09:05:12]SAM_PROTO_SignData [09:05:12]wFMCommunicate request_size=4 [09:05:12]MH_SAM_APDU [09:05:12]CAPDU: 80 0D 01 02 [09:05:12]Write to MH i2c: E2 08 00 48 17 80 0D 01 02 00 00 00 00 D8 [09:05:12]Write i2c OK [09:05:12]MH_I2C_Read... [09:05:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:12]Read from MH i2c: E2 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 03 00 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [09:05:12]RAPDU: 90 00 [09:05:12]wFMCommunicate OK [09:05:12]wFMCommunicate request_size=255 [09:05:12]MH_SAM_APDU [09:05:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 CB B0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 61 02 00 35 04 06 00 53 [09:05:12]Write to MH i2c: E2 02 01 49 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 CB B0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 61 02 00 35 04 06 00 53 00 00 35 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 03 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [09:05:13]RAPDU: 90 00 [09:05:13]wFMCommunicate OK [09:05:13]wFMCommunicate request_size=10 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 0D 02 02 05 68 60 DA 26 26 [09:05:13]Write to MH i2c: E2 0D 00 4A 17 80 0D 02 02 05 00 68 60 DA 26 26 00 00 D3 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 03 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [09:05:13]RAPDU: 90 00 [09:05:13]wFMCommunicate OK [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 0D 03 02 [09:05:13]Write to MH i2c: E2 08 00 4B 17 80 0D 03 02 00 00 00 00 DD [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 0B 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 0B 00 4B 17 00 B7 77 AD 8B D5 77 12 78 90 00 1A [09:05:13]RAPDU: B7 77 AD 8B D5 77 12 78 90 00 [09:05:13]wFMCommunicate OK [09:05:13]SAM_PROTO_SignData done [09:05:13]FM_MakeSignedData done [09:05:13]CreateOFDProtocolMessage [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 11 00 00 [09:05:13]Write to MH i2c: E2 08 00 4C 17 80 11 00 00 00 00 00 00 DD [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 17 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 17 00 4C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 32 [09:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:05:13]wFMCommunicate OK [09:05:13]CreateOFDProtocolMessage done [09:05:13]OFDSenderStorePacket 156155 [09:05:13]StoreOFDPacket docnum=156155 [09:05:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D3 96 07 01 7A 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 CB B0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 61 02 00 35 04 06 00 53 68 60 DA 26 26 B7 77 AD 8B D5 77 12 78 [09:05:13]CheckFolder [09:05:13]dirname=/storage/ofd_packets [09:05:13]CheckFolder done [09:05:13]ProducePacketName [09:05:13]name=ofd_packets/00156155 [09:05:13]NVStorageSaveData ofd_packets/00156155 [09:05:13]File name is /storage/ofd_packets/00156155 [09:05:13]Write 301 bytes [09:05:13]NVStorageSaveData done [09:05:13]OFDSenderStorePacket done [09:05:13]KKMCreateOFDPacket done [09:05:13]NVStorageSaveData kkm_last_timestamp [09:05:13]File name is /storage/kkm_last_timestamp [09:05:13]Write 4 bytes [09:05:13]NVStorageSaveData done [09:05:13]ExternCall_PrintAddStr [09:05:13]wPrintStart [09:05:13]Write to MH i2c: 01 00 00 4D 17 64 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 07 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 07 00 4D 17 00 00 00 00 00 FF 0F 79 [09:05:13]RasterBufferAndPrint [09:05:13]line Счет N : (1)98970 [09:05:13]line ИНН: 02508201610067 [09:05:13]line Контрольно-Кассовый Чек [09:05:13]line ПРОДАЖА [09:05:13]line ТРК (МРК, ГНК) : 21 [09:05:13]line Товар: 2710124130 [09:05:13]line Аи-92-К-5 [09:05:13]line 2.990 * 66.90 [09:05:13]line = 200.03 [09:05:13]line НДС 12% НСП 1% [09:05:13]line > о реализуемом товаре [09:05:13]line ИТОГО: 200.03 [09:05:13]line НСП 1% : 1.77 [09:05:13]line НДС 12% : 21.24 [09:05:13]line Наличными: 0.00 [09:05:13]line Безнал.: 200.03 [09:05:13]line Место: АЗС № 143 "Партнер Нефть" [09:05:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:05:13]line СНО: Общий режим [09:05:13]line Чек 56 26.10.2024 09:05 [09:05:13]line Смена: 536 ФФД: 1.0 [09:05:13]line ЗНМ: 0300000096 [09:05:13]line РНМ: 0000000000091693 [09:05:13]line Версия ККМ: 001 [09:05:13]line Платежная система: Mbank [09:05:13]line ФМ: 0000000000871792 [09:05:13]line ФД: 156155 [09:05:13]line ФПД: 91707766613542 [09:05:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090515&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156155&fm=91707766613542&tin=02508201610067®Number=0000000000091693&sum=20003 [09:05:13]written 0, free lines is 4095 [09:05:13]OFD Sender: Processing packet 156155 [packets to send 31, broken 30] [09:05:13]ProducePacketName [09:05:13]name=ofd_packets/00156155 [09:05:13]OFD Sender: To server: pG, [09:05:13]CommunicateWithHost lk.salyk.kg:30040 [09:05:13]ConnectInit lk.salyk.kg [09:05:13]Connected sock=11 [09:05:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D3 96 07 01 7A 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 CB B0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 61 02 00 35 04 06 00 53 68 60 DA 26 26 B7 77 AD 8B D5 77 12 78 [09:05:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 66 5B 47 00 86 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 31 37 39 32 10 04 04 00 FB 61 02 00 F4 03 04 00 3E 56 1C 67 B6 04 01 00 00 14 D6 01 85 B5 58 6C 0B [09:05:13]CommunicateWithHost err = 0 [09:05:13]CheckOFDResponse [09:05:13]1017 (14) - 77093643461234 [09:05:13]1041 (16) - 0000000000871792 [09:05:13]1040 (4) - 156155 [09:05:13]1012 (4) - 26.10.2024 02:38 [09:05:13]1206 (1) - 0 [09:05:13]OFD Sender: Remove packet 156155 [09:05:13]ProducePacketName [09:05:13]name=ofd_packets/00156155 [09:05:13]NVStorageDeleteData [09:05:13]Write to MH i2c: 01 00 00 76 17 8D [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 07 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 07 00 76 17 00 00 00 00 00 05 0D A6 [09:05:13]RasterBufferAndPrint [09:05:13]line [09:05:13]line [09:05:13]line [09:05:13]line [09:05:13]line [09:05:13]written 0, free lines is 3340 [09:05:13]process_action close_receipt done [09:05:13]requested_data is exist [09:05:13]produce_requested_data [09:05:13]requested_item fm.sn is exist - process it [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 11 00 00 [09:05:13]Write to MH i2c: E2 08 00 7D 17 80 11 00 00 00 00 00 00 0E [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 17 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 17 00 7D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 63 [09:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:05:13]wFMCommunicate OK [09:05:13]requested_item fd.num is exist - process it [09:05:13]SAM_PROTO_GetFieldsCounters [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 13 00 00 [09:05:13]Write to MH i2c: E2 08 00 7E 17 80 13 00 00 00 00 00 00 11 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 62 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 62 00 7E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 61 02 00 0E 04 04 00 18 02 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 57 [09:05:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 61 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:14]wFMCommunicate OK [09:05:14]SAM_PROTO_GetFieldsCounters done [09:05:14]requested_item shift.num is exist - process it [09:05:14]requested_item shift.opened is exist - process it [09:05:14]req_shift_opened [09:05:14]FM_GetShiftState [09:05:14]SAM_PROTO_GetShiftState [09:05:14]wFMCommunicate request_size=4 [09:05:14]MH_SAM_APDU [09:05:14]CAPDU: 80 13 01 00 [09:05:14]Write to MH i2c: E2 08 00 7F 17 80 13 01 00 00 00 00 00 13 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 0E 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 0E 00 7F 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 48 [09:05:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:05:14]wFMCommunicate OK [09:05:14]SAM_PROTO_GetShiftState done [09:05:14]FM_GetShiftState done [09:05:14]req_shift_opened done [09:05:14]requested_item shift.open_date is exist - process it [09:05:14]req_shift_open_date [09:05:14]req_shift_open_date done [09:05:14]produce_requested_data done [09:05:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156155,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:05:14]process_action_free close_receipt [09:05:14]json_value_free [09:05:14]json_value_free done [09:05:14]process_json_proto returns [09:05:14]Send response to host [09:05:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156155,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:05:14]free response buf [09:05:14]execute_script done [09:05:14]execute_script returns [09:05:14]free content buf [09:05:14]Sock 7.Close socket [09:05:14]Sock 7.Thread stoped [09:05:14]OFD Sender: No OFD packet to send [09:05:15]accept exits with 9 [09:05:15]New connection [09:05:15]New thread 3066613092 created [09:05:15]Thread 3066469732 joined [09:05:15]Waiting for new connection... [09:05:15] Sock 9.Parse request [09:05:15]Sock 9.Check first char [09:05:15]Sock 9.First char is OK [09:05:15]request: POST /json_proto HTTP/1.0 [09:05:15]Method: POST [09:05:15]URL: /json_proto [09:05:15]Method is POST - this is cgi request [09:05:15]url: /json_proto [09:05:15]query_string will be loaded in cgi processing [09:05:15]execute_cgi json_proto POST (null) [09:05:15]execute_cgi path=json_proto method=POST [09:05:15]POST find Content-Length [09:05:15]Host: 172.17.63.3:8080 [09:05:15]Content-Length: 676 [09:05:15]Content-Type: application/json [09:05:15] [09:05:15]POST finish read [09:05:15]Found Content-Length = 676 [09:05:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:15]execute_script... [09:05:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:15]POST & json_proto [09:05:15]process_json_proto [09:05:15]json parsed OK: [09:05:15]protocol is kg_v1.0 [09:05:15]action value=close_receipt [09:05:15]process_action close_receipt [09:05:15]cmd_close_receipt [09:05:15]MH_GetDate [09:05:15]Write to MH i2c: F0 00 00 80 17 86 [09:05:15]Write i2c OK [09:05:15]MH_I2C_Read... [09:05:15]Read from MH i2c: F0 [09:05:15]MH_I2C_Read... [09:05:15]Read from MH i2c: F0 09 00 [09:05:15]MH_I2C_Read... [09:05:15]Read from MH i2c: F0 09 00 80 17 00 CE B0 1C 67 50 D1 6C 64 81 [09:05:15]GetLastDocTimeStamp 1729933515 [09:05:15]current date 1729933518 [09:05:15]FM_GetShiftState [09:05:15]SAM_PROTO_GetShiftState [09:05:15]wFMCommunicate request_size=4 [09:05:15]MH_SAM_APDU [09:05:15]CAPDU: 80 13 01 00 [09:05:15]Write to MH i2c: E2 08 00 81 17 80 13 01 00 00 00 00 00 15 [09:05:15]Write i2c OK [09:05:15]MH_I2C_Read... [09:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:15]Read from MH i2c: E2 [09:05:15]MH_I2C_Read... [09:05:15]Read from MH i2c: E2 0E 00 [09:05:15]MH_I2C_Read... [09:05:15]Read from MH i2c: E2 0E 00 81 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4A [09:05:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:05:15]wFMCommunicate OK [09:05:15]SAM_PROTO_GetShiftState done [09:05:15]FM_GetShiftState done [09:05:15]opened in 1729902702 [09:05:15]opened+sec_in_day 1729989102 [09:05:15]quantity*price = 50041 [09:05:15]sum+1 = 50042 [09:05:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 57 26.10.2024 09:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156156 ФПД: 42767920799985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090518&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156156&fm=42767920799985&tin=02508201610067®Number=0000000000091693&sum=50000 [09:05:16]StoreToDocumentArchive [09:05:16]shift 536 fd 156156 [09:05:16]save to /storage/0536/doc_00156156 [09:05:16]save last doc name /storage/0536/doc_00156156 to /storage/kkm_last_doc_name [09:05:16]save OK [09:05:16]Clear old archive folders... [09:05:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:16]tlvbuf is 00DAB5A0 [09:05:16]SAM_PROTO_ClearQueue [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 09 00 00 [09:05:16]Write to MH i2c: E2 08 00 8E 17 80 09 00 00 00 00 00 00 17 [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 8E 17 00 90 00 19 [09:05:16]RAPDU: 90 00 [09:05:16]wFMCommunicate OK [09:05:16]SAM_PROTO_ClearQueue done [09:05:16]KKMCreateOFDPacket [09:05:16]OFDProtocolAddRootSTLVToBuf [09:05:16]FM_MakeSignedData [09:05:16]FM_MakeSignedData [09:05:16]SAM_PROTO_SignData [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 0D 01 02 [09:05:16]Write to MH i2c: E2 08 00 8F 17 80 0D 01 02 00 00 00 00 1F [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 8F 17 00 90 00 1A [09:05:16]RAPDU: 90 00 [09:05:16]wFMCommunicate OK [09:05:16]wFMCommunicate request_size=255 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CE B0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 61 02 00 35 04 06 00 26 [09:05:16]Write to MH i2c: E2 02 01 90 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CE B0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 61 02 00 35 04 06 00 26 00 00 8C [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [09:05:16]RAPDU: 90 00 [09:05:16]wFMCommunicate OK [09:05:16]wFMCommunicate request_size=10 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 0D 02 02 05 E5 AE BA 20 F1 [09:05:16]Write to MH i2c: E2 0D 00 91 17 80 0D 02 02 05 00 E5 AE BA 20 F1 00 00 8A [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [09:05:16]RAPDU: 90 00 [09:05:16]wFMCommunicate OK [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 0D 03 02 [09:05:16]Write to MH i2c: E2 08 00 92 17 80 0D 03 02 00 00 00 00 24 [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 0B 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 0B 00 92 17 00 87 F9 E2 4F 9C B7 E0 9C 90 00 A5 [09:05:17]RAPDU: 87 F9 E2 4F 9C B7 E0 9C 90 00 [09:05:17]wFMCommunicate OK [09:05:17]SAM_PROTO_SignData done [09:05:17]FM_MakeSignedData done [09:05:17]CreateOFDProtocolMessage [09:05:17]wFMCommunicate request_size=4 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 11 00 00 [09:05:17]Write to MH i2c: E2 08 00 93 17 80 11 00 00 00 00 00 00 24 [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 17 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 17 00 93 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 79 [09:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:05:17]wFMCommunicate OK [09:05:17]CreateOFDProtocolMessage done [09:05:17]OFDSenderStorePacket 156156 [09:05:17]StoreOFDPacket docnum=156156 [09:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 8B 07 01 8F CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CE B0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 61 02 00 35 04 06 00 26 E5 AE BA 20 F1 87 F9 E2 4F 9C B7 E0 9C [09:05:17]CheckFolder [09:05:17]dirname=/storage/ofd_packets [09:05:17]CheckFolder done [09:05:17]ProducePacketName [09:05:17]name=ofd_packets/00156156 [09:05:17]NVStorageSaveData ofd_packets/00156156 [09:05:17]File name is /storage/ofd_packets/00156156 [09:05:17]Write 301 bytes [09:05:17]NVStorageSaveData done [09:05:17]OFDSenderStorePacket done [09:05:17]KKMCreateOFDPacket done [09:05:17]NVStorageSaveData kkm_last_timestamp [09:05:17]File name is /storage/kkm_last_timestamp [09:05:17]Write 4 bytes [09:05:17]NVStorageSaveData done [09:05:17]ExternCall_PrintAddStr [09:05:17]wPrintStart [09:05:17]Write to MH i2c: 01 00 00 94 17 AB [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 07 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 07 00 94 17 00 00 00 00 00 FF 0F C0 [09:05:17]RasterBufferAndPrint [09:05:17]line Счет N : (1)98969 [09:05:17]line ИНН: 02508201610067 [09:05:17]line Контрольно-Кассовый Чек [09:05:17]line ПРОДАЖА [09:05:17]line ТРК (МРК, ГНК) : 31 [09:05:17]line Товар: 2710124130 [09:05:17]line Аи-92-К-5 [09:05:17]line 7.480 * 66.90 [09:05:17]line = 500.41 [09:05:17]line НДС 12% НСП 1% [09:05:17]line > о реализуемом товаре [09:05:17]line ОКРУГЛЕНИЕ: -0.41 [09:05:17]line ИТОГО: 500.00 [09:05:17]line Внесено: 500.00 [09:05:17]line СДАЧА: 0.00 [09:05:17]line НСП 1% : 4.43 [09:05:17]line НДС 12% : 53.14 [09:05:17]line Наличными: 500.00 [09:05:17]line Безнал.: 0.00 [09:05:17]line Место: АЗС № 143 "Партнер Нефть" [09:05:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:05:17]line СНО: Общий режим [09:05:17]line Чек 57 26.10.2024 09:05 [09:05:17]line Смена: 536 ФФД: 1.0 [09:05:17]line ЗНМ: 0300000096 [09:05:17]line РНМ: 0000000000091693 [09:05:17]line Версия ККМ: 001 [09:05:17]line ФМ: 0000000000871792 [09:05:17]line ФД: 156156 [09:05:17]line ФПД: 42767920799985 [09:05:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090518&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156156&fm=42767920799985&tin=02508201610067®Number=0000000000091693&sum=50000 [09:05:17]written 0, free lines is 4095 [09:05:17]OFD Sender: Processing packet 156156 [packets to send 31, broken 30] [09:05:17]ProducePacketName [09:05:17]name=ofd_packets/00156156 [09:05:17]OFD Sender: To server: pG, [09:05:17]CommunicateWithHost lk.salyk.kg:30040 [09:05:17]ConnectInit lk.salyk.kg [09:05:17]Connected sock=10 [09:05:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 8B 07 01 8F CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CE B0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 61 02 00 35 04 06 00 26 E5 AE BA 20 F1 87 F9 E2 4F 9C B7 E0 9C [09:05:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E3 82 47 00 F3 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 61 02 00 F4 03 04 00 41 56 1C 67 B6 04 01 00 00 9E 36 CF F6 D2 D9 7C 14 [09:05:17]CommunicateWithHost err = 0 [09:05:17]CheckOFDResponse [09:05:17]1017 (14) - 77093643461234 [09:05:17]1041 (16) - 0000000000871792 [09:05:17]1040 (4) - 156156 [09:05:17]1012 (4) - 26.10.2024 02:38 [09:05:17]1206 (1) - 0 [09:05:17]OFD Sender: Remove packet 156156 [09:05:17]ProducePacketName [09:05:17]name=ofd_packets/00156156 [09:05:17]NVStorageDeleteData [09:05:17]Write to MH i2c: 01 00 00 BF 17 D6 [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 07 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 07 00 BF 17 00 00 00 00 00 FD 0C E6 [09:05:17]RasterBufferAndPrint [09:05:17]line [09:05:17]line [09:05:17]line [09:05:17]line [09:05:17]line [09:05:17]written 0, free lines is 3340 [09:05:17]process_action close_receipt done [09:05:17]requested_data is exist [09:05:17]produce_requested_data [09:05:17]requested_item fm.sn is exist - process it [09:05:17]wFMCommunicate request_size=4 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 11 00 00 [09:05:17]Write to MH i2c: E2 08 00 C6 17 80 11 00 00 00 00 00 00 57 [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 17 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 17 00 C6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AC [09:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:05:17]wFMCommunicate OK [09:05:17]requested_item fd.num is exist - process it [09:05:17]SAM_PROTO_GetFieldsCounters [09:05:17]wFMCommunicate request_size=4 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 13 00 00 [09:05:17]Write to MH i2c: E2 08 00 C7 17 80 13 00 00 00 00 00 00 5A [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 62 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 62 00 C7 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FC 61 02 00 0E 04 04 00 18 02 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 A4 [09:05: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FC 61 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:17]wFMCommunicate OK [09:05:17]SAM_PROTO_GetFieldsCounters done [09:05:17]requested_item shift.num is exist - process it [09:05:17]requested_item shift.opened is exist - process it [09:05:17]req_shift_opened [09:05:17]FM_GetShiftState [09:05:17]SAM_PROTO_GetShiftState [09:05:17]wFMCommunicate request_size=4 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 13 01 00 [09:05:17]Write to MH i2c: E2 08 00 C8 17 80 13 01 00 00 00 00 00 5C [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 0E 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 0E 00 C8 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 91 [09:05:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:05:17]wFMCommunicate OK [09:05:17]SAM_PROTO_GetShiftState done [09:05:17]FM_GetShiftState done [09:05:17]req_shift_opened done [09:05:17]requested_item shift.open_date is exist - process it [09:05:17]req_shift_open_date [09:05:17]req_shift_open_date done [09:05:17]produce_requested_data done [09:05:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156156,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:05:17]process_action_free close_receipt [09:05:17]json_value_free [09:05:17]json_value_free done [09:05:17]process_json_proto returns [09:05:17]Send response to host [09:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156156,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:05:17]free response buf [09:05:17]execute_script done [09:05:17]execute_script returns [09:05:17]free content buf [09:05:17]Sock 9.Close socket [09:05:17]Sock 9.Thread stoped [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:10]accept exits with 7 [09:07:10]New connection [09:07:10]New thread 3066469732 created [09:07:10]Thread 3066613092 joined [09:07:10]Waiting for new connection... [09:07:10] Sock 7.Parse request [09:07:10]Sock 7.Check first char [09:07:10]Sock 7.First char is OK [09:07:10]request: POST /json_proto HTTP/1.0 [09:07:10]Method: POST [09:07:10]URL: /json_proto [09:07:10]Method is POST - this is cgi request [09:07:10]url: /json_proto [09:07:10]query_string will be loaded in cgi processing [09:07:10]execute_cgi json_proto POST (null) [09:07:10]execute_cgi path=json_proto method=POST [09:07:10]POST find Content-Length [09:07:10]Host: 172.17.63.3:8080 [09:07:10]Content-Length: 766 [09:07:10]Content-Type: application/json [09:07:10] [09:07:10]POST finish read [09:07:10]Found Content-Length = 766 [09:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:10]execute_script... [09:07:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:10]POST & json_proto [09:07:10]process_json_proto [09:07:10]json parsed OK: [09:07:10]protocol is kg_v1.0 [09:07:10]action value=close_receipt [09:07:10]process_action close_receipt [09:07:10]cmd_close_receipt [09:07:10]MH_GetDate [09:07:10]Write to MH i2c: F0 00 00 C9 17 CF [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: F0 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: F0 09 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: F0 09 00 C9 17 00 41 B1 1C 67 50 D1 6C 64 3E [09:07:10]GetLastDocTimeStamp 1729933518 [09:07:10]current date 1729933633 [09:07:10]FM_GetShiftState [09:07:10]SAM_PROTO_GetShiftState [09:07:10]wFMCommunicate request_size=4 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 13 01 00 [09:07:10]Write to MH i2c: E2 08 00 CA 17 80 13 01 00 00 00 00 00 5E [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 0E 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 0E 00 CA 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 93 [09:07:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:07:10]wFMCommunicate OK [09:07:10]SAM_PROTO_GetShiftState done [09:07:10]FM_GetShiftState done [09:07:10]opened in 1729902702 [09:07:10]opened+sec_in_day 1729989102 [09:07:10]quantity*price = 80012 [09:07:10]sum+1 = 80013 [09:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 58 26.10.2024 09:07 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156157 ФПД: 230307437706681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090713&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156157&fm=230307437706681&tin=02508201610067®Number=0000000000091693&sum=80012 [09:07:11]StoreToDocumentArchive [09:07:11]shift 536 fd 156157 [09:07:11]save to /storage/0536/doc_00156157 [09:07:11]save last doc name /storage/0536/doc_00156157 to /storage/kkm_last_doc_name [09:07:11]save OK [09:07:11]Clear old archive folders... [09:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:11]tlvbuf is 00D4A370 [09:07:11]SAM_PROTO_ClearQueue [09:07:11]wFMCommunicate request_size=4 [09:07:11]MH_SAM_APDU [09:07:11]CAPDU: 80 09 00 00 [09:07:11]Write to MH i2c: E2 08 00 D7 17 80 09 00 00 00 00 00 00 60 [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:11]Read from MH i2c: E2 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 03 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 03 00 D7 17 00 90 00 62 [09:07:11]RAPDU: 90 00 [09:07:11]wFMCommunicate OK [09:07:11]SAM_PROTO_ClearQueue done [09:07:11]KKMCreateOFDPacket [09:07:11]OFDProtocolAddRootSTLVToBuf [09:07:11]FM_MakeSignedData [09:07:11]FM_MakeSignedData [09:07:11]SAM_PROTO_SignData [09:07:11]wFMCommunicate request_size=4 [09:07:11]MH_SAM_APDU [09:07:11]CAPDU: 80 0D 01 02 [09:07:11]Write to MH i2c: E2 08 00 D8 17 80 0D 01 02 00 00 00 00 68 [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:11]Read from MH i2c: E2 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 03 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 03 00 D8 17 00 90 00 63 [09:07:11]RAPDU: 90 00 [09:07:11]wFMCommunicate OK [09:07:11]wFMCommunicate request_size=255 [09:07:11]MH_SAM_APDU [09:07:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 41 B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 61 02 00 35 04 06 00 D1 [09:07:11]Write to MH i2c: E2 02 01 D9 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 41 B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 61 02 00 35 04 06 00 D1 00 00 FA [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:11]Read from MH i2c: E2 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 03 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 03 00 D9 17 00 90 00 64 [09:07:11]RAPDU: 90 00 [09:07:11]wFMCommunicate OK [09:07:11]wFMCommunicate request_size=10 [09:07:11]MH_SAM_APDU [09:07:11]CAPDU: 80 0D 02 02 05 76 A1 03 7D B9 [09:07:11]Write to MH i2c: E2 0D 00 DA 17 80 0D 02 02 05 00 76 A1 03 7D B9 00 00 C5 [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:11]Read from MH i2c: E2 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 03 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [09:07:11]RAPDU: 90 00 [09:07:11]wFMCommunicate OK [09:07:11]wFMCommunicate request_size=4 [09:07:11]MH_SAM_APDU [09:07:11]CAPDU: 80 0D 03 02 [09:07:11]Write to MH i2c: E2 08 00 DB 17 80 0D 03 02 00 00 00 00 6D [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:11]Read from MH i2c: E2 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 0B 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 0B 00 DB 17 00 58 DE 90 77 C1 0D C0 F9 90 00 32 [09:07:11]RAPDU: 58 DE 90 77 C1 0D C0 F9 90 00 [09:07:11]wFMCommunicate OK [09:07:11]SAM_PROTO_SignData done [09:07:11]FM_MakeSignedData done [09:07:11]CreateOFDProtocolMessage [09:07:11]wFMCommunicate request_size=4 [09:07:11]MH_SAM_APDU [09:07:11]CAPDU: 80 11 00 00 [09:07:11]Write to MH i2c: E2 08 00 DC 17 80 11 00 00 00 00 00 00 6D [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:11]Read from MH i2c: E2 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 17 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: E2 17 00 DC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C2 [09:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:07:11]wFMCommunicate OK [09:07:11]CreateOFDProtocolMessage done [09:07:11]OFDSenderStorePacket 156157 [09:07:11]StoreOFDPacket docnum=156157 [09:07:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FF 4F 07 01 6D 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 41 B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 61 02 00 35 04 06 00 D1 76 A1 03 7D B9 58 DE 90 77 C1 0D C0 F9 [09:07:11]CheckFolder [09:07:11]dirname=/storage/ofd_packets [09:07:11]CheckFolder done [09:07:11]ProducePacketName [09:07:11]name=ofd_packets/00156157 [09:07:11]NVStorageSaveData ofd_packets/00156157 [09:07:11]File name is /storage/ofd_packets/00156157 [09:07:11]Write 301 bytes [09:07:11]NVStorageSaveData done [09:07:11]OFDSenderStorePacket done [09:07:11]KKMCreateOFDPacket done [09:07:11]NVStorageSaveData kkm_last_timestamp [09:07:11]File name is /storage/kkm_last_timestamp [09:07:11]Write 4 bytes [09:07:11]OFD Sender: Processing packet 156157 [packets to send 31, broken 30] [09:07:11]ProducePacketName [09:07:11]name=ofd_packets/00156157 [09:07:11]OFD Sender: To server: pG, [09:07:11]CommunicateWithHost lk.salyk.kg:30040 [09:07:11]ConnectInit lk.salyk.kg [09:07:11]NVStorageSaveData done [09:07:11]ExternCall_PrintAddStr [09:07:11]wPrintStart [09:07:11]Write to MH i2c: 01 00 00 DD 17 F4 [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: 01 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: 01 07 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: 01 07 00 DD 17 00 00 00 00 00 FF 0F 09 [09:07:11]RasterBufferAndPrint [09:07:11]line Счет N : (1)98971 [09:07:11]line ИНН: 02508201610067 [09:07:11]line Контрольно-Кассовый Чек [09:07:11]line ПРОДАЖА [09:07:11]line ТРК (МРК, ГНК) : 21 [09:07:11]line Товар: 2710124130 [09:07:11]line Аи-92-К-5 [09:07:11]line 11.960 * 66.90 [09:07:11]line = 800.12 [09:07:11]line НДС 12% НСП 1% [09:07:11]line > о реализуемом товаре [09:07:11]line ИТОГО: 800.12 [09:07:11]line НСП 1% : 7.08 [09:07:11]line НДС 12% : 84.97 [09:07:11]line Наличными: 0.00 [09:07:11]line Безнал.: 800.12 [09:07:11]line Место: АЗС № 143 "Партнер Нефть" [09:07:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:07:11]line СНО: Общий режим [09:07:11]line Чек 58 26.10.2024 09:07 [09:07:11]line Смена: 536 ФФД: 1.0 [09:07:11]line ЗНМ: 0300000096 [09:07:11]line РНМ: 0000000000091693 [09:07:11]line Версия ККМ: 001 [09:07:11]line Платежная система: Mbank [09:07:11]line ФМ: 0000000000871792 [09:07:11]line ФД: 156157 [09:07:11]line ФПД: 230307437706681 [09:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090713&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156157&fm=230307437706681&tin=02508201610067®Number=0000000000091693&sum=80012 [09:07:12]Connected sock=11 [09:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FF 4F 07 01 6D 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 41 B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 61 02 00 35 04 06 00 D1 76 A1 03 7D B9 58 DE 90 77 C1 0D C0 F9 [09:07:12]written 0, free lines is 4095 [09:07:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9F 76 47 00 98 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 61 02 00 F4 03 04 00 B4 56 1C 67 B6 04 01 00 00 FA B9 F3 C8 F0 0C E0 CB [09:07:12]CommunicateWithHost err = 0 [09:07:12]CheckOFDResponse [09:07:12]1017 (14) - 77093643461234 [09:07:12]1041 (16) - 0000000000871792 [09:07:12]1040 (4) - 156157 [09:07:12]1012 (4) - 26.10.2024 02:40 [09:07:12]1206 (1) - 0 [09:07:12]OFD Sender: Remove packet 156157 [09:07:12]ProducePacketName [09:07:12]name=ofd_packets/00156157 [09:07:12]NVStorageDeleteData [09:07:12]Write to MH i2c: 01 00 00 06 18 1E [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 07 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 10 0D 42 [09:07:12]RasterBufferAndPrint [09:07:12]line [09:07:12]line [09:07:12]line [09:07:12]line [09:07:12]line [09:07:12]written 0, free lines is 3350 [09:07:12]process_action close_receipt done [09:07:12]requested_data is exist [09:07:12]produce_requested_data [09:07:12]requested_item fm.sn is exist - process it [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 11 00 00 [09:07:12]Write to MH i2c: E2 08 00 0D 18 80 11 00 00 00 00 00 00 9F [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 17 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 17 00 0D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [09:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:07:12]wFMCommunicate OK [09:07:12]requested_item fd.num is exist - process it [09:07:12]SAM_PROTO_GetFieldsCounters [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 13 00 00 [09:07:12]Write to MH i2c: E2 08 00 0E 18 80 13 00 00 00 00 00 00 A2 [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 62 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 62 00 0E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FD 61 02 00 0E 04 04 00 18 02 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 F0 [09:07: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FD 61 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:12]wFMCommunicate OK [09:07:12]SAM_PROTO_GetFieldsCounters done [09:07:12]requested_item shift.num is exist - process it [09:07:12]requested_item shift.opened is exist - process it [09:07:12]req_shift_opened [09:07:12]FM_GetShiftState [09:07:12]SAM_PROTO_GetShiftState [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 13 01 00 [09:07:12]Write to MH i2c: E2 08 00 0F 18 80 13 01 00 00 00 00 00 A4 [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]OFD Sender: No OFD packet to send [09:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 0E 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 0E 00 0F 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D9 [09:07:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:07:12]wFMCommunicate OK [09:07:12]SAM_PROTO_GetShiftState done [09:07:12]FM_GetShiftState done [09:07:12]req_shift_opened done [09:07:12]requested_item shift.open_date is exist - process it [09:07:12]req_shift_open_date [09:07:12]req_shift_open_date done [09:07:12]produce_requested_data done [09:07:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156157,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:07:12]process_action_free close_receipt [09:07:12]json_value_free [09:07:12]json_value_free done [09:07:12]process_json_proto returns [09:07:12]Send response to host [09:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156157,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:07:12]free response buf [09:07:12]execute_script done [09:07:12]execute_script returns [09:07:12]free content buf [09:07:12]Sock 7.Close socket [09:07:12]Sock 7.Thread stoped [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]accept exits with 9 [09:08:12]New connection [09:08:12]New thread 3066613092 created [09:08:12]Thread 3066469732 joined [09:08:12]Waiting for new connection... [09:08:12] Sock 9.Parse request [09:08:12]Sock 9.Check first char [09:08:12]Sock 9.First char is OK [09:08:12]request: POST /json_proto HTTP/1.0 [09:08:12]Method: POST [09:08:12]URL: /json_proto [09:08:12]Method is POST - this is cgi request [09:08:12]url: /json_proto [09:08:12]query_string will be loaded in cgi processing [09:08:12]execute_cgi json_proto POST (null) [09:08:12]execute_cgi path=json_proto method=POST [09:08:12]POST find Content-Length [09:08:12]Host: 172.17.63.3:8080 [09:08:12]Content-Length: 681 [09:08:12]Content-Type: application/json [09:08:12] [09:08:12]POST finish read [09:08:12]Found Content-Length = 681 [09:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:12]execute_script... [09:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:12]POST & json_proto [09:08:12]process_json_proto [09:08:12]json parsed OK: [09:08:12]protocol is kg_v1.0 [09:08:12]action value=close_receipt [09:08:12]process_action close_receipt [09:08:12]cmd_close_receipt [09:08:12]MH_GetDate [09:08:12]Write to MH i2c: F0 00 00 10 18 17 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: F0 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: F0 09 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: F0 09 00 10 18 00 7F B1 1C 67 50 D1 6C 64 C4 [09:08:12]GetLastDocTimeStamp 1729933633 [09:08:12]current date 1729933695 [09:08:12]FM_GetShiftState [09:08:12]SAM_PROTO_GetShiftState [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 13 01 00 [09:08:12]Write to MH i2c: E2 08 00 11 18 80 13 01 00 00 00 00 00 A6 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 0E 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 0E 00 11 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DB [09:08:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:08:12]wFMCommunicate OK [09:08:12]SAM_PROTO_GetShiftState done [09:08:12]FM_GetShiftState done [09:08:12]opened in 1729902702 [09:08:12]opened+sec_in_day 1729989102 [09:08:12]quantity*price = 100015 [09:08:12]sum+1 = 100017 [09:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 59 26.10.2024 09:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156158 ФПД: 10708555597793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090815&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156158&fm=10708555597793&tin=02508201610067®Number=0000000000091693&sum=100000 [09:08:13]StoreToDocumentArchive [09:08:13]shift 536 fd 156158 [09:08:13]save to /storage/0536/doc_00156158 [09:08:13]save last doc name /storage/0536/doc_00156158 to /storage/kkm_last_doc_name [09:08:13]save OK [09:08:13]Clear old archive folders... [09:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:13]tlvbuf is 00D9E5F0 [09:08:13]SAM_PROTO_ClearQueue [09:08:13]wFMCommunicate request_size=4 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 09 00 00 [09:08:13]Write to MH i2c: E2 08 00 1E 18 80 09 00 00 00 00 00 00 A8 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 03 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 03 00 1E 18 00 90 00 AA [09:08:13]RAPDU: 90 00 [09:08:13]wFMCommunicate OK [09:08:13]SAM_PROTO_ClearQueue done [09:08:13]KKMCreateOFDPacket [09:08:13]OFDProtocolAddRootSTLVToBuf [09:08:13]FM_MakeSignedData [09:08:13]FM_MakeSignedData [09:08:13]SAM_PROTO_SignData [09:08:13]wFMCommunicate request_size=4 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 0D 01 02 [09:08:13]Write to MH i2c: E2 08 00 1F 18 80 0D 01 02 00 00 00 00 B0 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 03 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 03 00 1F 18 00 90 00 AB [09:08:13]RAPDU: 90 00 [09:08:13]wFMCommunicate OK [09:08:13]wFMCommunicate request_size=255 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7F B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 61 02 00 35 04 06 00 09 [09:08:13]Write to MH i2c: E2 02 01 20 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7F B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 61 02 00 35 04 06 00 09 00 00 B0 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 03 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 03 00 20 18 00 90 00 AC [09:08:13]RAPDU: 90 00 [09:08:13]wFMCommunicate OK [09:08:13]wFMCommunicate request_size=10 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 0D 02 02 05 BD 47 A7 07 E1 [09:08:13]Write to MH i2c: E2 0D 00 21 18 80 0D 02 02 05 00 BD 47 A7 07 E1 00 00 50 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 03 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 03 00 21 18 00 90 00 AD [09:08:13]RAPDU: 90 00 [09:08:13]wFMCommunicate OK [09:08:13]wFMCommunicate request_size=4 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 0D 03 02 [09:08:13]Write to MH i2c: E2 08 00 22 18 80 0D 03 02 00 00 00 00 B5 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 0B 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 0B 00 22 18 00 CE 2B 87 85 22 13 94 87 90 00 0B [09:08:13]RAPDU: CE 2B 87 85 22 13 94 87 90 00 [09:08:13]wFMCommunicate OK [09:08:13]SAM_PROTO_SignData done [09:08:13]FM_MakeSignedData done [09:08:13]CreateOFDProtocolMessage [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 23 18 80 11 00 00 00 00 00 00 B5 [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 23 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0A [09:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:08:13]wFMCommunicate OK [09:08:13]CreateOFDProtocolMessage done [09:08:13]OFDSenderStorePacket 156158 [09:08:13]StoreOFDPacket docnum=156158 [09:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E DF 07 01 11 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7F B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 61 02 00 35 04 06 00 09 BD 47 A7 07 E1 CE 2B 87 85 22 13 94 87 [09:08:13]CheckFolder [09:08:13]dirname=/storage/ofd_packets [09:08:13]CheckFolder done [09:08:13]ProducePacketName [09:08:13]name=ofd_packets/00156158 [09:08:13]NVStorageSaveData ofd_packets/00156158 [09:08:13]File name is /storage/ofd_packets/00156158 [09:08:13]Write 301 bytes [09:08:13]NVStorageSaveData done [09:08:13]OFDSenderStorePacket done [09:08:13]KKMCreateOFDPacket done [09:08:13]NVStorageSaveData kkm_last_timestamp [09:08:13]File name is /storage/kkm_last_timestamp [09:08:13]Write 4 bytes [09:08:13]NVStorageSaveData done [09:08:13]ExternCall_PrintAddStr [09:08:13]wPrintStart [09:08:13]Write to MH i2c: 01 00 00 24 18 3C [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: 01 [09:08:13]MH_I2C_Read... [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 24 18 00 00 00 00 00 FF 0F 51 [09:08:13]RasterBufferAndPrint [09:08:13]line Счет N : (1)98972 [09:08:13]line ИНН: 02508201610067 [09:08:13]line Контрольно-Кассовый Чек [09:08:13]line ПРОДАЖА [09:08:13]line ТРК (МРК, ГНК) : 31 [09:08:13]line Товар: 2710124130 [09:08:13]line Аи-92-К-5 [09:08:13]line 14.950 * 66.90 [09:08:13]line = 1000.16 [09:08:13]line НДС 12% НСП 1% [09:08:13]line > о реализуемом товаре [09:08:13]line ОКРУГЛЕНИЕ: -0.16 [09:08:13]line ИТОГО: 1000.00 [09:08:13]line Внесено: 1000.00 [09:08:13]line СДАЧА: 0.00 [09:08:13]line НСП 1% : 8.85 [09:08:13]line НДС 12% : 106.21 [09:08:13]line Наличными: 1000.00 [09:08:13]line Безнал.: 0.00 [09:08:13]line Место: АЗС № 143 "Партнер Нефть" [09:08:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:08:13]line СНО: Общий режим [09:08:13]line Чек 59 26.10.2024 09:08 [09:08:13]line Смена: 536 ФФД: 1.0 [09:08:13]line ЗНМ: 0300000096 [09:08:13]line РНМ: 0000000000091693 [09:08:13]line Версия ККМ: 001 [09:08:13]line ФМ: 0000000000871792 [09:08:13]line ФД: 156158 [09:08:13]line ФПД: 10708555597793 [09:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090815&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156158&fm=10708555597793&tin=02508201610067®Number=0000000000091693&sum=100000 [09:08:14]OFD Sender: Processing packet 156158 [packets to send 31, broken 30] [09:08:14]ProducePacketName [09:08:14]name=ofd_packets/00156158 [09:08:14]OFD Sender: To server: pG, [09:08:14]CommunicateWithHost lk.salyk.kg:30040 [09:08:14]ConnectInit lk.salyk.kg [09:08:14]written 0, free lines is 4095 [09:08:14]Connected sock=10 [09:08:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E DF 07 01 11 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7F B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 61 02 00 35 04 06 00 09 BD 47 A7 07 E1 CE 2B 87 85 22 13 94 87 [09:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 00 F2 47 00 3F 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 61 02 00 F4 03 04 00 F2 56 1C 67 B6 04 01 00 00 D4 C8 6E AA B6 E0 F9 0B [09:08:14]CommunicateWithHost err = 0 [09:08:14]CheckOFDResponse [09:08:14]1017 (14) - 77093643461234 [09:08:14]1041 (16) - 0000000000871792 [09:08:14]1040 (4) - 156158 [09:08:14]1012 (4) - 26.10.2024 02:41 [09:08:14]1206 (1) - 0 [09:08:14]OFD Sender: Remove packet 156158 [09:08:14]ProducePacketName [09:08:14]name=ofd_packets/00156158 [09:08:14]NVStorageDeleteData [09:08:14]Write to MH i2c: 01 00 00 4F 18 67 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: 01 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: 01 07 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: 01 07 00 4F 18 00 00 00 00 00 F3 0C 6D [09:08:14]RasterBufferAndPrint [09:08:14]line [09:08:14]line [09:08:14]line [09:08:14]line [09:08:14]line [09:08:14]written 0, free lines is 3321 [09:08:14]process_action close_receipt done [09:08:14]requested_data is exist [09:08:14]produce_requested_data [09:08:14]requested_item fm.sn is exist - process it [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 11 00 00 [09:08:14]Write to MH i2c: E2 08 00 56 18 80 11 00 00 00 00 00 00 E8 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 17 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 17 00 56 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [09:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:08:14]wFMCommunicate OK [09:08:14]requested_item fd.num is exist - process it [09:08:14]SAM_PROTO_GetFieldsCounters [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 13 00 00 [09:08:14]Write to MH i2c: E2 08 00 57 18 80 13 00 00 00 00 00 00 EB [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 62 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 62 00 57 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FE 61 02 00 0E 04 04 00 18 02 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 3D [09:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FE 61 02 00 0E 04 04 00 18 02 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 [09:08:14]wFMCommunicate OK [09:08:14]SAM_PROTO_GetFieldsCounters done [09:08:14]requested_item shift.num is exist - process it [09:08:14]requested_item shift.opened is exist - process it [09:08:14]req_shift_opened [09:08:14]FM_GetShiftState [09:08:14]SAM_PROTO_GetShiftState [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 13 01 00 [09:08:14]Write to MH i2c: E2 08 00 58 18 80 13 01 00 00 00 00 00 ED [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 0E 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 0E 00 58 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 22 [09:08:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:08:14]wFMCommunicate OK [09:08:14]SAM_PROTO_GetShiftState done [09:08:14]FM_GetShiftState done [09:08:14]req_shift_opened done [09:08:14]requested_item shift.open_date is exist - process it [09:08:14]req_shift_open_date [09:08:14]req_shift_open_date done [09:08:14]produce_requested_data done [09:08:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156158,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:08:14]process_action_free close_receipt [09:08:14]json_value_free [09:08:14]json_value_free done [09:08:14]process_json_proto returns [09:08:14]Send response to host [09:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156158,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:08:14]free response buf [09:08:14]execute_script done [09:08:14]execute_script returns [09:08:14]free content buf [09:08:14]Sock 9.Close socket [09:08:14]Sock 9.Thread stoped [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:56]accept exits with 7 [09:08:56]New connection [09:08:56]New thread 3066469732 created [09:08:56]Thread 3066613092 joined [09:08:56]Waiting for new connection... [09:08:56] Sock 7.Parse request [09:08:56]Sock 7.Check first char [09:08:56]Sock 7.First char is OK [09:08:56]request: POST /json_proto HTTP/1.0 [09:08:56]Method: POST [09:08:56]URL: /json_proto [09:08:56]Method is POST - this is cgi request [09:08:56]url: /json_proto [09:08:56]query_string will be loaded in cgi processing [09:08:56]execute_cgi json_proto POST (null) [09:08:56]execute_cgi path=json_proto method=POST [09:08:56]POST find Content-Length [09:08:56]Host: 172.17.63.3:8080 [09:08:56]Content-Length: 676 [09:08:56]Content-Type: application/json [09:08:56] [09:08:56]POST finish read [09:08:56]Found Content-Length = 676 [09:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:56]execute_script... [09:08: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)98973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:56]POST & json_proto [09:08:56]process_json_proto [09:08:56]json parsed OK: [09:08:56]protocol is kg_v1.0 [09:08:56]action value=close_receipt [09:08:56]process_action close_receipt [09:08:56]cmd_close_receipt [09:08:56]MH_GetDate [09:08:56]Write to MH i2c: F0 00 00 59 18 60 [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: F0 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: F0 09 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: F0 09 00 59 18 00 AB B1 1C 67 50 D1 6C 64 39 [09:08:56]GetLastDocTimeStamp 1729933695 [09:08:56]current date 1729933739 [09:08:56]FM_GetShiftState [09:08:56]SAM_PROTO_GetShiftState [09:08:56]wFMCommunicate request_size=4 [09:08:56]MH_SAM_APDU [09:08:56]CAPDU: 80 13 01 00 [09:08:56]Write to MH i2c: E2 08 00 5A 18 80 13 01 00 00 00 00 00 EF [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:56]Read from MH i2c: E2 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 0E 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 0E 00 5A 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 24 [09:08:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:08:56]wFMCommunicate OK [09:08:56]SAM_PROTO_GetShiftState done [09:08:56]FM_GetShiftState done [09:08:56]opened in 1729902702 [09:08:56]opened+sec_in_day 1729989102 [09:08:56]quantity*price = 60009 [09:08:56]sum+1 = 60010 [09:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 60 26.10.2024 09:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156159 ФПД: 121727709666692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090859&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156159&fm=121727709666692&tin=02508201610067®Number=0000000000091693&sum=60000 [09:08:57]StoreToDocumentArchive [09:08:57]shift 536 fd 156159 [09:08:57]save to /storage/0536/doc_00156159 [09:08:57]save last doc name /storage/0536/doc_00156159 to /storage/kkm_last_doc_name [09:08:57]save OK [09:08:57]Clear old archive folders... [09:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:57]tlvbuf is 00D6B370 [09:08:57]SAM_PROTO_ClearQueue [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 09 00 00 [09:08:57]Write to MH i2c: E2 08 00 67 18 80 09 00 00 00 00 00 00 F1 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 03 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [09:08:57]RAPDU: 90 00 [09:08:57]wFMCommunicate OK [09:08:57]SAM_PROTO_ClearQueue done [09:08:57]KKMCreateOFDPacket [09:08:57]OFDProtocolAddRootSTLVToBuf [09:08:57]FM_MakeSignedData [09:08:57]FM_MakeSignedData [09:08:57]SAM_PROTO_SignData [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 0D 01 02 [09:08:57]Write to MH i2c: E2 08 00 68 18 80 0D 01 02 00 00 00 00 F9 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 03 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [09:08:57]RAPDU: 90 00 [09:08:57]wFMCommunicate OK [09:08:57]wFMCommunicate request_size=255 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AB B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 61 02 00 35 04 06 00 6E [09:08:57]Write to MH i2c: E2 02 01 69 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AB B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 61 02 00 35 04 06 00 6E 00 00 6F [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 03 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [09:08:57]RAPDU: 90 00 [09:08:57]wFMCommunicate OK [09:08:57]wFMCommunicate request_size=10 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 0D 02 02 05 B5 F0 E4 DD 84 [09:08:57]Write to MH i2c: E2 0D 00 6A 18 80 0D 02 02 05 00 B5 F0 E4 DD 84 00 00 F0 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 03 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 03 00 6A 18 00 90 00 F6 [09:08:57]RAPDU: 90 00 [09:08:57]wFMCommunicate OK [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 0D 03 02 [09:08:57]Write to MH i2c: E2 08 00 6B 18 80 0D 03 02 00 00 00 00 FE [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 0B 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 0B 00 6B 18 00 C0 85 CE A0 04 EF 9B 88 90 00 C8 [09:08:57]RAPDU: C0 85 CE A0 04 EF 9B 88 90 00 [09:08:57]wFMCommunicate OK [09:08:57]SAM_PROTO_SignData done [09:08:57]FM_MakeSignedData done [09:08:57]CreateOFDProtocolMessage [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 11 00 00 [09:08:57]Write to MH i2c: E2 08 00 6C 18 80 11 00 00 00 00 00 00 FE [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 17 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 17 00 6C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [09:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:08:57]wFMCommunicate OK [09:08:57]CreateOFDProtocolMessage done [09:08:57]OFDSenderStorePacket 156159 [09:08:57]StoreOFDPacket docnum=156159 [09:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 11 3E 07 01 E5 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AB B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 61 02 00 35 04 06 00 6E B5 F0 E4 DD 84 C0 85 CE A0 04 EF 9B 88 [09:08:57]CheckFolder [09:08:57]dirname=/storage/ofd_packets [09:08:57]CheckFolder done [09:08:57]ProducePacketName [09:08:57]name=ofd_packets/00156159 [09:08:57]NVStorageSaveData ofd_packets/00156159 [09:08:57]File name is /storage/ofd_packets/00156159 [09:08:57]Write 301 bytes [09:08:57]NVStorageSaveData done [09:08:57]OFDSenderStorePacket done [09:08:57]KKMCreateOFDPacket done [09:08:57]NVStorageSaveData kkm_last_timestamp [09:08:57]File name is /storage/kkm_last_timestamp [09:08:57]Write 4 bytes [09:08:57]NVStorageSaveData done [09:08:57]ExternCall_PrintAddStr [09:08:57]wPrintStart [09:08:57]Write to MH i2c: 01 00 00 6D 18 85 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: 01 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: 01 07 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: 01 07 00 6D 18 00 00 00 00 00 FF 0F 9A [09:08:57]RasterBufferAndPrint [09:08:57]line Счет N : (1)98973 [09:08:57]line ИНН: 02508201610067 [09:08:57]line Контрольно-Кассовый Чек [09:08:57]line ПРОДАЖА [09:08:57]line ТРК (МРК, ГНК) : 21 [09:08:57]line Товар: 2710124130 [09:08:57]line Аи-92-К-5 [09:08:57]line 8.970 * 66.90 [09:08:57]line = 600.09 [09:08:57]line НДС 12% НСП 1% [09:08:57]line > о реализуемом товаре [09:08:57]line ОКРУГЛЕНИЕ: -0.09 [09:08:57]line ИТОГО: 600.00 [09:08:57]line Внесено: 600.00 [09:08:57]line СДАЧА: 0.00 [09:08:57]line НСП 1% : 5.31 [09:08:57]line НДС 12% : 63.73 [09:08:57]line Наличными: 600.00 [09:08:57]line Безнал.: 0.00 [09:08:57]line Место: АЗС № 143 "Партнер Нефть" [09:08:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:08:57]line СНО: Общий режим [09:08:57]line Чек 60 26.10.2024 09:08 [09:08:57]line Смена: 536 ФФД: 1.0 [09:08:57]line ЗНМ: 0300000096 [09:08:57]line РНМ: 0000000000091693 [09:08:57]line Версия ККМ: 001 [09:08:57]line ФМ: 0000000000871792 [09:08:57]line ФД: 156159 [09:08:57]line ФПД: 121727709666692 [09:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090859&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156159&fm=121727709666692&tin=02508201610067®Number=0000000000091693&sum=60000 [09:08:58]OFD Sender: Processing packet 156159 [packets to send 31, broken 30] [09:08:58]ProducePacketName [09:08:58]name=ofd_packets/00156159 [09:08:58]OFD Sender: To server: pG, [09:08:58]CommunicateWithHost lk.salyk.kg:30040 [09:08:58]ConnectInit lk.salyk.kg [09:08:58]written 0, free lines is 4095 [09:08:58]Connected sock=10 [09:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 11 3E 07 01 E5 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AB B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 61 02 00 35 04 06 00 6E B5 F0 E4 DD 84 C0 85 CE A0 04 EF 9B 88 [09:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D2 DA 47 00 4B D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 61 02 00 F4 03 04 00 1E 57 1C 67 B6 04 01 00 00 B1 D6 68 8D E5 8B B1 D8 [09:08:58]CommunicateWithHost err = 0 [09:08:58]CheckOFDResponse [09:08:58]1017 (14) - 77093643461234 [09:08:58]1041 (16) - 0000000000871792 [09:08:58]1040 (4) - 156159 [09:08:58]1012 (4) - 26.10.2024 02:42 [09:08:58]1206 (1) - 0 [09:08:58]OFD Sender: Remove packet 156159 [09:08:58]ProducePacketName [09:08:58]name=ofd_packets/00156159 [09:08:58]NVStorageDeleteData [09:08:58]Write to MH i2c: 01 00 00 98 18 B0 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: 01 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: 01 07 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 FB 0C BE [09:08:58]RasterBufferAndPrint [09:08:58]line [09:08:58]line [09:08:58]line [09:08:58]line [09:08:58]line [09:08:58]written 0, free lines is 3329 [09:08:58]process_action close_receipt done [09:08:58]requested_data is exist [09:08:58]produce_requested_data [09:08:58]requested_item fm.sn is exist - process it [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 11 00 00 [09:08:58]Write to MH i2c: E2 08 00 9F 18 80 11 00 00 00 00 00 00 31 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 17 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 17 00 9F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [09:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:08:58]wFMCommunicate OK [09:08:58]requested_item fd.num is exist - process it [09:08:58]SAM_PROTO_GetFieldsCounters [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 13 00 00 [09:08:58]Write to MH i2c: E2 08 00 A0 18 80 13 00 00 00 00 00 00 34 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 62 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 62 00 A0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FF 61 02 00 0E 04 04 00 18 02 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 8A [09:08: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FF 61 02 00 0E 04 04 00 18 02 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 [09:08:58]wFMCommunicate OK [09:08:58]SAM_PROTO_GetFieldsCounters done [09:08:58]requested_item shift.num is exist - process it [09:08:58]requested_item shift.opened is exist - process it [09:08:58]req_shift_opened [09:08:58]FM_GetShiftState [09:08:58]SAM_PROTO_GetShiftState [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 13 01 00 [09:08:58]Write to MH i2c: E2 08 00 A1 18 80 13 01 00 00 00 00 00 36 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:59]Read from MH i2c: E2 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 0E 00 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 0E 00 A1 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6B [09:08:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:08:59]wFMCommunicate OK [09:08:59]SAM_PROTO_GetShiftState done [09:08:59]FM_GetShiftState done [09:08:59]req_shift_opened done [09:08:59]requested_item shift.open_date is exist - process it [09:08:59]req_shift_open_date [09:08:59]req_shift_open_date done [09:08:59]produce_requested_data done [09:08:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156159,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:08:59]process_action_free close_receipt [09:08:59]json_value_free [09:08:59]json_value_free done [09:08:59]process_json_proto returns [09:08:59]Send response to host [09:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156159,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:08:59]free response buf [09:08:59]execute_script done [09:08:59]execute_script returns [09:08:59]free content buf [09:08:59]Sock 7.Close socket [09:08:59]Sock 7.Thread stoped [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:56]accept exits with 9 [09:09:56]New connection [09:09:56]New thread 3066613092 created [09:09:56]Thread 3066469732 joined [09:09:56]Waiting for new connection... [09:09:56] Sock 9.Parse request [09:09:56]Sock 9.Check first char [09:09:56]Sock 9.First char is OK [09:09:56]request: POST /json_proto HTTP/1.0 [09:09:56]Method: POST [09:09:56]URL: /json_proto [09:09:56]Method is POST - this is cgi request [09:09:56]url: /json_proto [09:09:56]query_string will be loaded in cgi processing [09:09:56]execute_cgi json_proto POST (null) [09:09:56]execute_cgi path=json_proto method=POST [09:09:56]POST find Content-Length [09:09:56]Host: 172.17.63.3:8080 [09:09:56]Content-Length: 676 [09:09:56]Content-Type: application/json [09:09:56] [09:09:56]POST finish read [09:09:56]Found Content-Length = 676 [09:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:56]execute_script... [09:09: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)98974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:56]POST & json_proto [09:09:56]process_json_proto [09:09:56]json parsed OK: [09:09:56]protocol is kg_v1.0 [09:09:56]action value=close_receipt [09:09:56]process_action close_receipt [09:09:56]cmd_close_receipt [09:09:56]MH_GetDate [09:09:56]Write to MH i2c: F0 00 00 A2 18 A9 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: F0 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: F0 09 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: F0 09 00 A2 18 00 E7 B1 1C 67 50 D1 6C 64 BE [09:09:56]GetLastDocTimeStamp 1729933739 [09:09:56]current date 1729933799 [09:09:56]FM_GetShiftState [09:09:56]SAM_PROTO_GetShiftState [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 13 01 00 [09:09:56]Write to MH i2c: E2 08 00 A3 18 80 13 01 00 00 00 00 00 38 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 0E 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 0E 00 A3 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6D [09:09:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:09:56]wFMCommunicate OK [09:09:56]SAM_PROTO_GetShiftState done [09:09:56]FM_GetShiftState done [09:09:56]opened in 1729902702 [09:09:56]opened+sec_in_day 1729989102 [09:09:56]quantity*price = 50041 [09:09:56]sum+1 = 50042 [09:09:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 61 26.10.2024 09:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156160 ФПД: 149223221908914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091000&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156160&fm=149223221908914&tin=02508201610067®Number=0000000000091693&sum=50000 [09:09:57]StoreToDocumentArchive [09:09:57]shift 536 fd 156160 [09:09:57]save to /storage/0536/doc_00156160 [09:09:57]save last doc name /storage/0536/doc_00156160 to /storage/kkm_last_doc_name [09:09:57]save OK [09:09:57]Clear old archive folders... [09:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:57]tlvbuf is B6F054F0 [09:09:57]SAM_PROTO_ClearQueue [09:09:57]wFMCommunicate request_size=4 [09:09:57]MH_SAM_APDU [09:09:57]CAPDU: 80 09 00 00 [09:09:57]Write to MH i2c: E2 08 00 B0 18 80 09 00 00 00 00 00 00 3A [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:57]Read from MH i2c: E2 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 03 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 03 00 B0 18 00 90 00 3C [09:09:57]RAPDU: 90 00 [09:09:57]wFMCommunicate OK [09:09:57]SAM_PROTO_ClearQueue done [09:09:57]KKMCreateOFDPacket [09:09:57]OFDProtocolAddRootSTLVToBuf [09:09:57]FM_MakeSignedData [09:09:57]FM_MakeSignedData [09:09:57]SAM_PROTO_SignData [09:09:57]wFMCommunicate request_size=4 [09:09:57]MH_SAM_APDU [09:09:57]CAPDU: 80 0D 01 02 [09:09:57]Write to MH i2c: E2 08 00 B1 18 80 0D 01 02 00 00 00 00 42 [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:57]Read from MH i2c: E2 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 03 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 03 00 B1 18 00 90 00 3D [09:09:57]RAPDU: 90 00 [09:09:57]wFMCommunicate OK [09:09:57]wFMCommunicate request_size=255 [09:09:57]MH_SAM_APDU [09:09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E8 B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 62 02 00 35 04 06 00 87 [09:09:57]Write to MH i2c: E2 02 01 B2 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E8 B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 62 02 00 35 04 06 00 87 00 00 34 [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:57]Read from MH i2c: E2 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 03 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 03 00 B2 18 00 90 00 3E [09:09:57]RAPDU: 90 00 [09:09:57]wFMCommunicate OK [09:09:57]wFMCommunicate request_size=10 [09:09:57]MH_SAM_APDU [09:09:57]CAPDU: 80 0D 02 02 05 B7 BD 22 55 B2 [09:09:57]Write to MH i2c: E2 0D 00 B3 18 80 0D 02 02 05 00 B7 BD 22 55 B2 00 00 EC [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 B3 18 00 90 00 3F [09:09:58]RAPDU: 90 00 [09:09:58]wFMCommunicate OK [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 0D 03 02 [09:09:58]Write to MH i2c: E2 08 00 B4 18 80 0D 03 02 00 00 00 00 47 [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 0B 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 0B 00 B4 18 00 2A A2 72 2F 78 FF 6B 77 90 00 0E [09:09:58]RAPDU: 2A A2 72 2F 78 FF 6B 77 90 00 [09:09:58]wFMCommunicate OK [09:09:58]SAM_PROTO_SignData done [09:09:58]FM_MakeSignedData done [09:09:58]CreateOFDProtocolMessage [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 11 00 00 [09:09:58]Write to MH i2c: E2 08 00 B5 18 80 11 00 00 00 00 00 00 47 [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 17 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 17 00 B5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [09:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:09:58]wFMCommunicate OK [09:09:58]CreateOFDProtocolMessage done [09:09:58]OFDSenderStorePacket 156160 [09:09:58]StoreOFDPacket docnum=156160 [09:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 E6 07 01 6A CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E8 B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 62 02 00 35 04 06 00 87 B7 BD 22 55 B2 2A A2 72 2F 78 FF 6B 77 [09:09:58]CheckFolder [09:09:58]dirname=/storage/ofd_packets [09:09:58]CheckFolder done [09:09:58]ProducePacketName [09:09:58]name=ofd_packets/00156160 [09:09:58]NVStorageSaveData ofd_packets/00156160 [09:09:58]File name is /storage/ofd_packets/00156160 [09:09:58]Write 301 bytes [09:09:58]NVStorageSaveData done [09:09:58]OFDSenderStorePacket done [09:09:58]KKMCreateOFDPacket done [09:09:58]NVStorageSaveData kkm_last_timestamp [09:09:58]File name is /storage/kkm_last_timestamp [09:09:58]Write 4 bytes [09:09:58]NVStorageSaveData done [09:09:58]ExternCall_PrintAddStr [09:09:58]wPrintStart [09:09:58]Write to MH i2c: 01 00 00 B6 18 CE [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 07 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 07 00 B6 18 00 00 00 00 00 FF 0F E3 [09:09:58]RasterBufferAndPrint [09:09:58]line Счет N : (1)98974 [09:09:58]line ИНН: 02508201610067 [09:09:58]line Контрольно-Кассовый Чек [09:09:58]line ПРОДАЖА [09:09:58]line ТРК (МРК, ГНК) : 11 [09:09:58]line Товар: 2710124130 [09:09:58]line Аи-92-К-5 [09:09:58]line 7.480 * 66.90 [09:09:58]line = 500.41 [09:09:58]line НДС 12% НСП 1% [09:09:58]line > о реализуемом товаре [09:09:58]line ОКРУГЛЕНИЕ: -0.41 [09:09:58]line ИТОГО: 500.00 [09:09:58]line Внесено: 500.00 [09:09:58]line СДАЧА: 0.00 [09:09:58]line НСП 1% : 4.43 [09:09:58]line НДС 12% : 53.14 [09:09:58]line Наличными: 500.00 [09:09:58]line Безнал.: 0.00 [09:09:58]line Место: АЗС № 143 "Партнер Нефть" [09:09:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:09:58]line СНО: Общий режим [09:09:58]line Чек 61 26.10.2024 09:10 [09:09:58]line Смена: 536 ФФД: 1.0 [09:09:58]line ЗНМ: 0300000096 [09:09:58]line РНМ: 0000000000091693 [09:09:58]line Версия ККМ: 001 [09:09:58]line ФМ: 0000000000871792 [09:09:58]line ФД: 156160 [09:09:58]line ФПД: 149223221908914 [09:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091000&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156160&fm=149223221908914&tin=02508201610067®Number=0000000000091693&sum=50000 [09:09:58]OFD Sender: Processing packet 156160 [packets to send 31, broken 30] [09:09:58]ProducePacketName [09:09:58]name=ofd_packets/00156160 [09:09:58]OFD Sender: To server: pG, [09:09:58]CommunicateWithHost lk.salyk.kg:30040 [09:09:58]ConnectInit lk.salyk.kg [09:09:58]written 0, free lines is 4095 [09:09:58]Connected sock=10 [09:09:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 E6 07 01 6A CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E8 B1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 62 02 00 35 04 06 00 87 B7 BD 22 55 B2 2A A2 72 2F 78 FF 6B 77 [09:09:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F7 39 47 00 21 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 31 37 39 32 10 04 04 00 00 62 02 00 F4 03 04 00 5B 57 1C 67 B6 04 01 00 00 BF 2F 41 46 20 72 98 12 [09:09:58]CommunicateWithHost err = 0 [09:09:58]CheckOFDResponse [09:09:58]1017 (14) - 77093643461234 [09:09:58]1041 (16) - 0000000000871792 [09:09:58]1040 (4) - 156160 [09:09:58]1012 (4) - 26.10.2024 02:43 [09:09:58]1206 (1) - 0 [09:09:58]OFD Sender: Remove packet 156160 [09:09:58]ProducePacketName [09:09:58]name=ofd_packets/00156160 [09:09:58]NVStorageDeleteData [09:09:58]Write to MH i2c: 01 00 00 E1 18 F9 [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 07 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 07 00 E1 18 00 00 00 00 00 E5 0C F1 [09:09:58]RasterBufferAndPrint [09:09:58]line [09:09:58]line [09:09:58]line [09:09:58]line [09:09:58]line [09:09:58]written 0, free lines is 3310 [09:09:58]process_action close_receipt done [09:09:58]requested_data is exist [09:09:58]produce_requested_data [09:09:58]requested_item fm.sn is exist - process it [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 11 00 00 [09:09:58]Write to MH i2c: E2 08 00 E8 18 80 11 00 00 00 00 00 00 7A [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:59]Read from MH i2c: E2 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: E2 17 00 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: E2 17 00 E8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CF [09:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:09:59]wFMCommunicate OK [09:09:59]requested_item fd.num is exist - process it [09:09:59]SAM_PROTO_GetFieldsCounters [09:09:59]wFMCommunicate request_size=4 [09:09:59]MH_SAM_APDU [09:09:59]CAPDU: 80 13 00 00 [09:09:59]Write to MH i2c: E2 08 00 E9 18 80 13 00 00 00 00 00 00 7D [09:09:59]Write i2c OK [09:09:59]MH_I2C_Read... [09:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:59]Read from MH i2c: E2 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: E2 62 00 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: E2 62 00 E9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 00 62 02 00 0E 04 04 00 18 02 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 D8 [09:09: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 00 62 02 00 0E 04 04 00 18 02 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 [09:09:59]wFMCommunicate OK [09:09:59]SAM_PROTO_GetFieldsCounters done [09:09:59]requested_item shift.num is exist - process it [09:09:59]requested_item shift.opened is exist - process it [09:09:59]req_shift_opened [09:09:59]FM_GetShiftState [09:09:59]SAM_PROTO_GetShiftState [09:09:59]wFMCommunicate request_size=4 [09:09:59]MH_SAM_APDU [09:09:59]CAPDU: 80 13 01 00 [09:09:59]Write to MH i2c: E2 08 00 EA 18 80 13 01 00 00 00 00 00 7F [09:09:59]Write i2c OK [09:09:59]MH_I2C_Read... [09:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:59]Read from MH i2c: E2 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: E2 0E 00 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: E2 0E 00 EA 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B4 [09:09:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:09:59]wFMCommunicate OK [09:09:59]SAM_PROTO_GetShiftState done [09:09:59]FM_GetShiftState done [09:09:59]req_shift_opened done [09:09:59]requested_item shift.open_date is exist - process it [09:09:59]req_shift_open_date [09:09:59]req_shift_open_date done [09:09:59]produce_requested_data done [09:09:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156160,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:09:59]process_action_free close_receipt [09:09:59]json_value_free [09:09:59]json_value_free done [09:09:59]process_json_proto returns [09:09:59]Send response to host [09:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156160,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:09:59]free response buf [09:09:59]execute_script done [09:09:59]execute_script returns [09:09:59]free content buf [09:09:59]Sock 9.Close socket [09:09:59]Sock 9.Thread stoped [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:20]accept exits with 7 [09:12:20]New connection [09:12:20]New thread 3066469732 created [09:12:20]Thread 3066613092 joined [09:12:20]Waiting for new connection... [09:12:20] Sock 7.Parse request [09:12:20]Sock 7.Check first char [09:12:20]Sock 7.First char is OK [09:12:20]request: POST /json_proto HTTP/1.0 [09:12:20]Method: POST [09:12:20]URL: /json_proto [09:12:20]Method is POST - this is cgi request [09:12:20]url: /json_proto [09:12:20]query_string will be loaded in cgi processing [09:12:20]execute_cgi json_proto POST (null) [09:12:20]execute_cgi path=json_proto method=POST [09:12:20]POST find Content-Length [09:12:20]Host: 172.17.63.3:8080 [09:12:20]Content-Length: 677 [09:12:20]Content-Type: application/json [09:12:20] [09:12:20]POST finish read [09:12:20]Found Content-Length = 677 [09:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:20]execute_script... [09:12:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:20]POST & json_proto [09:12:20]process_json_proto [09:12:20]json parsed OK: [09:12:20]protocol is kg_v1.0 [09:12:20]action value=close_receipt [09:12:20]process_action close_receipt [09:12:20]cmd_close_receipt [09:12:20]MH_GetDate [09:12:20]Write to MH i2c: F0 00 00 EB 18 F2 [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: F0 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: F0 09 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: F0 09 00 EB 18 00 78 B2 1C 67 50 D1 6C 64 99 [09:12:20]GetLastDocTimeStamp 1729933800 [09:12:20]current date 1729933944 [09:12:20]FM_GetShiftState [09:12:20]SAM_PROTO_GetShiftState [09:12:20]wFMCommunicate request_size=4 [09:12:20]MH_SAM_APDU [09:12:20]CAPDU: 80 13 01 00 [09:12:20]Write to MH i2c: E2 08 00 EC 18 80 13 01 00 00 00 00 00 81 [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:20]Read from MH i2c: E2 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 0E 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 0E 00 EC 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B6 [09:12:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:12:20]wFMCommunicate OK [09:12:20]SAM_PROTO_GetShiftState done [09:12:20]FM_GetShiftState done [09:12:20]opened in 1729902702 [09:12:20]opened+sec_in_day 1729989102 [09:12:20]quantity*price = 90047 [09:12:20]sum+1 = 90048 [09:12:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 62 26.10.2024 09:12 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156161 ФПД: 164406216600989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156161&fm=164406216600989&tin=02508201610067®Number=0000000000091693&sum=90000 [09:12:21]StoreToDocumentArchive [09:12:21]shift 536 fd 156161 [09:12:21]save to /storage/0536/doc_00156161 [09:12:21]save last doc name /storage/0536/doc_00156161 to /storage/kkm_last_doc_name [09:12:21]save OK [09:12:21]Clear old archive folders... [09:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:21]tlvbuf is B6F053B0 [09:12:21]SAM_PROTO_ClearQueue [09:12:21]wFMCommunicate request_size=4 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 09 00 00 [09:12:21]Write to MH i2c: E2 08 00 F9 18 80 09 00 00 00 00 00 00 83 [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:21]Read from MH i2c: E2 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 F9 18 00 90 00 85 [09:12:21]RAPDU: 90 00 [09:12:21]wFMCommunicate OK [09:12:21]SAM_PROTO_ClearQueue done [09:12:21]KKMCreateOFDPacket [09:12:21]OFDProtocolAddRootSTLVToBuf [09:12:21]FM_MakeSignedData [09:12:21]FM_MakeSignedData [09:12:21]SAM_PROTO_SignData [09:12:21]wFMCommunicate request_size=4 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 0D 01 02 [09:12:21]Write to MH i2c: E2 08 00 FA 18 80 0D 01 02 00 00 00 00 8B [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:21]Read from MH i2c: E2 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 FA 18 00 90 00 86 [09:12:21]RAPDU: 90 00 [09:12:21]wFMCommunicate OK [09:12:21]wFMCommunicate request_size=255 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 78 B2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 62 02 00 35 04 06 00 95 [09:12:21]Write to MH i2c: E2 02 01 FB 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 78 B2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 62 02 00 35 04 06 00 95 00 00 3B [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:22]Read from MH i2c: E2 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 03 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 03 00 FB 18 00 90 00 87 [09:12:22]RAPDU: 90 00 [09:12:22]wFMCommunicate OK [09:12:22]wFMCommunicate request_size=10 [09:12:22]MH_SAM_APDU [09:12:22]CAPDU: 80 0D 02 02 05 86 CE 23 AD 9D [09:12:22]Write to MH i2c: E2 0D 00 FC 18 80 0D 02 02 05 00 86 CE 23 AD 9D 00 00 59 [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:22]Read from MH i2c: E2 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 03 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [09:12:22]RAPDU: 90 00 [09:12:22]wFMCommunicate OK [09:12:22]wFMCommunicate request_size=4 [09:12:22]MH_SAM_APDU [09:12:22]CAPDU: 80 0D 03 02 [09:12:22]Write to MH i2c: E2 08 00 FD 18 80 0D 03 02 00 00 00 00 90 [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:22]Read from MH i2c: E2 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 0B 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 0B 00 FD 18 00 51 41 B0 06 E3 C4 05 0C 90 00 91 [09:12:22]RAPDU: 51 41 B0 06 E3 C4 05 0C 90 00 [09:12:22]wFMCommunicate OK [09:12:22]SAM_PROTO_SignData done [09:12:22]FM_MakeSignedData done [09:12:22]CreateOFDProtocolMessage [09:12:22]wFMCommunicate request_size=4 [09:12:22]MH_SAM_APDU [09:12:22]CAPDU: 80 11 00 00 [09:12:22]Write to MH i2c: E2 08 00 FE 18 80 11 00 00 00 00 00 00 90 [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:22]Read from MH i2c: E2 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 17 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 17 00 FE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E5 [09:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:12:22]wFMCommunicate OK [09:12:22]CreateOFDProtocolMessage done [09:12:22]OFDSenderStorePacket 156161 [09:12:22]StoreOFDPacket docnum=156161 [09:12:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 51 1B 07 01 36 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 78 B2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 62 02 00 35 04 06 00 95 86 CE 23 AD 9D 51 41 B0 06 E3 C4 05 0C [09:12:22]CheckFolder [09:12:22]dirname=/storage/ofd_packets [09:12:22]CheckFolder done [09:12:22]ProducePacketName [09:12:22]name=ofd_packets/00156161 [09:12:22]NVStorageSaveData ofd_packets/00156161 [09:12:22]File name is /storage/ofd_packets/00156161 [09:12:22]Write 301 bytes [09:12:22]NVStorageSaveData done [09:12:22]OFDSenderStorePacket done [09:12:22]KKMCreateOFDPacket done [09:12:22]NVStorageSaveData kkm_last_timestamp [09:12:22]File name is /storage/kkm_last_timestamp [09:12:22]Write 4 bytes [09:12:22]NVStorageSaveData done [09:12:22]ExternCall_PrintAddStr [09:12:22]wPrintStart [09:12:22]Write to MH i2c: 01 00 00 FF 18 17 [09:12:22]OFD Sender: Processing packet 156161 [packets to send 31, broken 30] [09:12:22]ProducePacketName [09:12:22]name=ofd_packets/00156161 [09:12:22]OFD Sender: To server: pG, [09:12:22]CommunicateWithHost lk.salyk.kg:30040 [09:12:22]ConnectInit lk.salyk.kg [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 07 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 07 00 FF 18 00 00 00 00 00 FF 0F 2C [09:12:22]RasterBufferAndPrint [09:12:22]line Счет N : (1)98976 [09:12:22]line ИНН: 02508201610067 [09:12:22]line Контрольно-Кассовый Чек [09:12:22]line ПРОДАЖА [09:12:22]line ТРК (МРК, ГНК) : 31 [09:12:22]line Товар: 2710124130 [09:12:22]line Аи-92-К-5 [09:12:22]line 13.460 * 66.90 [09:12:22]line = 900.47 [09:12:22]line НДС 12% НСП 1% [09:12:22]line > о реализуемом товаре [09:12:22]line ОКРУГЛЕНИЕ: -0.47 [09:12:22]line ИТОГО: 900.00 [09:12:22]line Внесено: 900.00 [09:12:22]line СДАЧА: 0.00 [09:12:22]line НСП 1% : 7.97 [09:12:22]line НДС 12% : 95.62 [09:12:22]line Наличными: 900.00 [09:12:22]line Безнал.: 0.00 [09:12:22]line Место: АЗС № 143 "Партнер Нефть" [09:12:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:12:22]line СНО: Общий режим [09:12:22]line Чек 62 26.10.2024 09:12 [09:12:22]line Смена: 536 ФФД: 1.0 [09:12:22]line ЗНМ: 0300000096 [09:12:22]line РНМ: 0000000000091693 [09:12:22]line Версия ККМ: 001 [09:12:22]line ФМ: 0000000000871792 [09:12:22]line ФД: 156161 [09:12:22]line ФПД: 164406216600989 [09:12:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156161&fm=164406216600989&tin=02508201610067®Number=0000000000091693&sum=90000 [09:12:22]Connected sock=10 [09:12:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 51 1B 07 01 36 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 78 B2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 62 02 00 35 04 06 00 95 86 CE 23 AD 9D 51 41 B0 06 E3 C4 05 0C [09:12:22]written 0, free lines is 4095 [09:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6A E3 47 00 2C 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 62 02 00 F4 03 04 00 EB 57 1C 67 B6 04 01 00 00 68 13 94 44 C9 12 03 6D [09:12:22]CommunicateWithHost err = 0 [09:12:22]CheckOFDResponse [09:12:22]1017 (14) - 77093643461234 [09:12:22]1041 (16) - 0000000000871792 [09:12:22]1040 (4) - 156161 [09:12:22]1012 (4) - 26.10.2024 02:46 [09:12:22]1206 (1) - 0 [09:12:22]OFD Sender: Remove packet 156161 [09:12:22]ProducePacketName [09:12:22]name=ofd_packets/00156161 [09:12:22]NVStorageDeleteData [09:12:23]Write to MH i2c: 01 00 00 2A 19 43 [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: 01 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: 01 07 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 EB 0C 41 [09:12:23]RasterBufferAndPrint [09:12:23]line [09:12:23]line [09:12:23]line [09:12:23]line [09:12:23]line [09:12:23]written 0, free lines is 3313 [09:12:23]process_action close_receipt done [09:12:23]requested_data is exist [09:12:23]produce_requested_data [09:12:23]requested_item fm.sn is exist - process it [09:12:23]wFMCommunicate request_size=4 [09:12:23]MH_SAM_APDU [09:12:23]CAPDU: 80 11 00 00 [09:12:23]Write to MH i2c: E2 08 00 31 19 80 11 00 00 00 00 00 00 C4 [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:23]Read from MH i2c: E2 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 17 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 17 00 31 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 19 [09:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:12:23]wFMCommunicate OK [09:12:23]requested_item fd.num is exist - process it [09:12:23]SAM_PROTO_GetFieldsCounters [09:12:23]wFMCommunicate request_size=4 [09:12:23]MH_SAM_APDU [09:12:23]CAPDU: 80 13 00 00 [09:12:23]Write to MH i2c: E2 08 00 32 19 80 13 00 00 00 00 00 00 C7 [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:23]Read from MH i2c: E2 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 62 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 62 00 32 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 01 62 02 00 0E 04 04 00 18 02 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 26 [09:12:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 01 62 02 00 0E 04 04 00 18 02 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 [09:12:23]wFMCommunicate OK [09:12:23]SAM_PROTO_GetFieldsCounters done [09:12:23]requested_item shift.num is exist - process it [09:12:23]requested_item shift.opened is exist - process it [09:12:23]req_shift_opened [09:12:23]FM_GetShiftState [09:12:23]SAM_PROTO_GetShiftState [09:12:23]wFMCommunicate request_size=4 [09:12:23]MH_SAM_APDU [09:12:23]CAPDU: 80 13 01 00 [09:12:23]Write to MH i2c: E2 08 00 33 19 80 13 01 00 00 00 00 00 C9 [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:23]OFD Sender: No OFD packet to send [09:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:23]Read from MH i2c: E2 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 0E 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 0E 00 33 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FE [09:12:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:12:23]wFMCommunicate OK [09:12:23]SAM_PROTO_GetShiftState done [09:12:23]FM_GetShiftState done [09:12:23]req_shift_opened done [09:12:23]requested_item shift.open_date is exist - process it [09:12:23]req_shift_open_date [09:12:23]req_shift_open_date done [09:12:23]produce_requested_data done [09:12:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156161,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:12:23]process_action_free close_receipt [09:12:23]json_value_free [09:12:23]json_value_free done [09:12:23]process_json_proto returns [09:12:23]Send response to host [09:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156161,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:12:23]free response buf [09:12:23]execute_script done [09:12:23]execute_script returns [09:12:23]free content buf [09:12:23]Sock 7.Close socket [09:12:23]Sock 7.Thread stoped [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:07]accept exits with 9 [09:15:07]New connection [09:15:07]New thread 3066613092 created [09:15:07]Thread 3066469732 joined [09:15:07]Waiting for new connection... [09:15:07] Sock 9.Parse request [09:15:07]Sock 9.Check first char [09:15:07]Sock 9.First char is OK [09:15:07]request: POST /json_proto HTTP/1.0 [09:15:07]Method: POST [09:15:07]URL: /json_proto [09:15:07]Method is POST - this is cgi request [09:15:07]url: /json_proto [09:15:07]query_string will be loaded in cgi processing [09:15:07]execute_cgi json_proto POST (null) [09:15:07]execute_cgi path=json_proto method=POST [09:15:07]POST find Content-Length [09:15:07]Host: 172.17.63.3:8080 [09:15:07]Content-Length: 799 [09:15:07]Content-Type: application/json [09:15:07] [09:15:07]POST finish read [09:15:07]Found Content-Length = 799 [09:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582884", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:07]execute_script... [09:15:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582884", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:07]POST & json_proto [09:15:07]process_json_proto [09:15:07]json parsed OK: [09:15:07]protocol is kg_v1.0 [09:15:07]action value=close_receipt [09:15:07]process_action close_receipt [09:15:07]cmd_close_receipt [09:15:07]MH_GetDate [09:15:07]Write to MH i2c: F0 00 00 34 19 3C [09:15:07]Write i2c OK [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: F0 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: F0 09 00 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: F0 09 00 34 19 00 1E B3 1C 67 50 D1 6C 64 8A [09:15:07]GetLastDocTimeStamp 1729933944 [09:15:07]current date 1729934110 [09:15:07]FM_GetShiftState [09:15:07]SAM_PROTO_GetShiftState [09:15:07]wFMCommunicate request_size=4 [09:15:07]MH_SAM_APDU [09:15:07]CAPDU: 80 13 01 00 [09:15:07]Write to MH i2c: E2 08 00 35 19 80 13 01 00 00 00 00 00 CB [09:15:07]Write i2c OK [09:15:07]MH_I2C_Read... [09:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:07]Read from MH i2c: E2 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: E2 0E 00 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: E2 0E 00 35 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 00 [09:15:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:15:07]wFMCommunicate OK [09:15:07]SAM_PROTO_GetShiftState done [09:15:07]FM_GetShiftState done [09:15:07]opened in 1729902702 [09:15:07]opened+sec_in_day 1729989102 [09:15:07]quantity*price = 0 [09:15:07]sum+1 = 1 [09:15:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 63 26.10.2024 09:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4582884 ФМ: 0000000000871792 ФД: 156162 ФПД: 116603492076556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156162&fm=116603492076556&tin=02508201610067®Number=0000000000091693&sum=0 [09:15:08]StoreToDocumentArchive [09:15:08]shift 536 fd 156162 [09:15:08]save to /storage/0536/doc_00156162 [09:15:08]save last doc name /storage/0536/doc_00156162 to /storage/kkm_last_doc_name [09:15:08]save OK [09:15:08]Clear old archive folders... [09:15:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:08]tlvbuf is B6D55AA0 [09:15:08]SAM_PROTO_ClearQueue [09:15:08]wFMCommunicate request_size=4 [09:15:08]MH_SAM_APDU [09:15:08]CAPDU: 80 09 00 00 [09:15:08]Write to MH i2c: E2 08 00 42 19 80 09 00 00 00 00 00 00 CD [09:15:08]Write i2c OK [09:15:08]MH_I2C_Read... [09:15:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:08]Read from MH i2c: E2 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 03 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 03 00 42 19 00 90 00 CF [09:15:08]RAPDU: 90 00 [09:15:08]wFMCommunicate OK [09:15:08]SAM_PROTO_ClearQueue done [09:15:08]KKMCreateOFDPacket [09:15:08]OFDProtocolAddRootSTLVToBuf [09:15:08]FM_MakeSignedData [09:15:08]FM_MakeSignedData [09:15:08]SAM_PROTO_SignData [09:15:08]wFMCommunicate request_size=4 [09:15:08]MH_SAM_APDU [09:15:08]CAPDU: 80 0D 01 02 [09:15:08]Write to MH i2c: E2 08 00 43 19 80 0D 01 02 00 00 00 00 D5 [09:15:08]Write i2c OK [09:15:08]MH_I2C_Read... [09:15:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:08]Read from MH i2c: E2 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 03 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [09:15:08]RAPDU: 90 00 [09:15:08]wFMCommunicate OK [09:15:08]wFMCommunicate request_size=255 [09:15:08]MH_SAM_APDU [09:15:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1E B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 62 02 00 35 04 06 00 6A [09:15:08]Write to MH i2c: E2 02 01 44 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1E B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 62 02 00 35 04 06 00 6A 00 00 98 [09:15:08]Write i2c OK [09:15:08]MH_I2C_Read... [09:15:08]OFD Sender: No OFD packet to send [09:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:08]Read from MH i2c: E2 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 03 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [09:15:08]RAPDU: 90 00 [09:15:08]wFMCommunicate OK [09:15:08]wFMCommunicate request_size=10 [09:15:08]MH_SAM_APDU [09:15:08]CAPDU: 80 0D 02 02 05 0C DD B9 8C 0C [09:15:08]Write to MH i2c: E2 0D 00 45 19 80 0D 02 02 05 00 0C DD B9 8C 0C 00 00 1C [09:15:08]Write i2c OK [09:15:08]MH_I2C_Read... [09:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:08]Read from MH i2c: E2 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 03 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 03 00 45 19 00 90 00 D2 [09:15:08]RAPDU: 90 00 [09:15:08]wFMCommunicate OK [09:15:08]wFMCommunicate request_size=4 [09:15:08]MH_SAM_APDU [09:15:08]CAPDU: 80 0D 03 02 [09:15:08]Write to MH i2c: E2 08 00 46 19 80 0D 03 02 00 00 00 00 DA [09:15:08]Write i2c OK [09:15:08]MH_I2C_Read... [09:15:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:08]Read from MH i2c: E2 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 0B 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 0B 00 46 19 00 8F A8 08 55 41 24 FD 3D 90 00 0E [09:15:08]RAPDU: 8F A8 08 55 41 24 FD 3D 90 00 [09:15:08]wFMCommunicate OK [09:15:08]SAM_PROTO_SignData done [09:15:08]FM_MakeSignedData done [09:15:08]CreateOFDProtocolMessage [09:15:08]wFMCommunicate request_size=4 [09:15:08]MH_SAM_APDU [09:15:08]CAPDU: 80 11 00 00 [09:15:08]Write to MH i2c: E2 08 00 47 19 80 11 00 00 00 00 00 00 DA [09:15:08]Write i2c OK [09:15:08]MH_I2C_Read... [09:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:08]Read from MH i2c: E2 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 17 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 17 00 47 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2F [09:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:15:08]wFMCommunicate OK [09:15:08]CreateOFDProtocolMessage done [09:15:08]OFDSenderStorePacket 156162 [09:15:08]StoreOFDPacket docnum=156162 [09:15:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 1A 07 01 F0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1E B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 62 02 00 35 04 06 00 6A 0C DD B9 8C 0C 8F A8 08 55 41 24 FD 3D [09:15:08]CheckFolder [09:15:08]dirname=/storage/ofd_packets [09:15:08]CheckFolder done [09:15:08]ProducePacketName [09:15:08]name=ofd_packets/00156162 [09:15:08]NVStorageSaveData ofd_packets/00156162 [09:15:08]File name is /storage/ofd_packets/00156162 [09:15:08]Write 301 bytes [09:15:08]NVStorageSaveData done [09:15:08]OFDSenderStorePacket done [09:15:08]KKMCreateOFDPacket done [09:15:08]NVStorageSaveData kkm_last_timestamp [09:15:08]File name is /storage/kkm_last_timestamp [09:15:08]Write 4 bytes [09:15:08]NVStorageSaveData done [09:15:08]ExternCall_PrintAddStr [09:15:08]wPrintStart [09:15:08]Write to MH i2c: 01 00 00 48 19 61 [09:15:08]Write i2c OK [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: 01 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: 01 07 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: 01 07 00 48 19 00 00 00 00 00 FF 0F 76 [09:15:08]RasterBufferAndPrint [09:15:08]line Счет N : (1)98977 [09:15:08]line ИНН: 02508201610067 [09:15:08]line Контрольно-Кассовый Чек [09:15:08]line ПРОДАЖА [09:15:08]line ТРК (МРК, ГНК) : 21 [09:15:08]line Товар: 2710124130 [09:15:08]line Аи-92-К-5 [09:15:08]line 10.000 * 0.00 [09:15:08]line = 0.00 [09:15:08]line НДС 12% НСП 1% [09:15:08]line > о реализуемом товаре [09:15:08]line ИТОГО: 0.00 [09:15:08]line НСП 1% : 0.00 [09:15:08]line НДС 12% : 0.00 [09:15:08]line Наличными: 0.00 [09:15:08]line Безнал.: 0.00 [09:15:08]line Место: АЗС № 143 "Партнер Нефть" [09:15:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:15:08]line СНО: Общий режим [09:15:08]line Чек 63 26.10.2024 09:15 [09:15:08]line Смена: 536 ФФД: 1.0 [09:15:08]line ЗНМ: 0300000096 [09:15:08]line РНМ: 0000000000091693 [09:15:08]line Версия ККМ: 001 [09:15:08]line Талоны: Топливные Талоны [09:15:08]line 4582884 [09:15:08]line ФМ: 0000000000871792 [09:15:08]line ФД: 156162 [09:15:08]line ФПД: 116603492076556 [09:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156162&fm=116603492076556&tin=02508201610067®Number=0000000000091693&sum=0 [09:15:09]OFD Sender: Processing packet 156162 [packets to send 31, broken 30] [09:15:09]ProducePacketName [09:15:09]name=ofd_packets/00156162 [09:15:09]OFD Sender: To server: pG, [09:15:09]CommunicateWithHost lk.salyk.kg:30040 [09:15:09]ConnectInit lk.salyk.kg [09:15:09]written 0, free lines is 4095 [09:15:09]Connected sock=7 [09:15:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 1A 07 01 F0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1E B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 62 02 00 35 04 06 00 6A 0C DD B9 8C 0C 8F A8 08 55 41 24 FD 3D [09:15:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 17 61 47 00 30 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 31 37 39 32 10 04 04 00 02 62 02 00 F4 03 04 00 91 58 1C 67 B6 04 01 00 00 71 4A AD C4 05 BF 0A B2 [09:15:09]CommunicateWithHost err = 0 [09:15:09]CheckOFDResponse [09:15:09]1017 (14) - 77093643461234 [09:15:09]1041 (16) - 0000000000871792 [09:15:09]1040 (4) - 156162 [09:15:09]1012 (4) - 26.10.2024 02:48 [09:15:09]1206 (1) - 0 [09:15:09]OFD Sender: Remove packet 156162 [09:15:09]ProducePacketName [09:15:09]name=ofd_packets/00156162 [09:15:09]NVStorageDeleteData [09:15:09]Write to MH i2c: 01 00 00 72 19 8B [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: 01 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: 01 07 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: 01 07 00 72 19 00 00 00 00 00 08 0D A7 [09:15:09]RasterBufferAndPrint [09:15:09]line [09:15:09]line [09:15:09]line [09:15:09]line [09:15:09]line [09:15:09]written 0, free lines is 3343 [09:15:09]process_action close_receipt done [09:15:09]requested_data is exist [09:15:09]produce_requested_data [09:15:09]requested_item fm.sn is exist - process it [09:15:09]wFMCommunicate request_size=4 [09:15:09]MH_SAM_APDU [09:15:09]CAPDU: 80 11 00 00 [09:15:09]Write to MH i2c: E2 08 00 79 19 80 11 00 00 00 00 00 00 0C [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:09]Read from MH i2c: E2 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 17 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 17 00 79 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 61 [09:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:15:09]wFMCommunicate OK [09:15:09]requested_item fd.num is exist - process it [09:15:09]SAM_PROTO_GetFieldsCounters [09:15:09]wFMCommunicate request_size=4 [09:15:09]MH_SAM_APDU [09:15:09]CAPDU: 80 13 00 00 [09:15:09]Write to MH i2c: E2 08 00 7A 19 80 13 00 00 00 00 00 00 0F [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:09]Read from MH i2c: E2 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 62 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 62 00 7A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 02 62 02 00 0E 04 04 00 18 02 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 72 [09:15: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 02 62 02 00 0E 04 04 00 18 02 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 [09:15:09]wFMCommunicate OK [09:15:09]SAM_PROTO_GetFieldsCounters done [09:15:09]requested_item shift.num is exist - process it [09:15:09]requested_item shift.opened is exist - process it [09:15:09]req_shift_opened [09:15:09]FM_GetShiftState [09:15:09]SAM_PROTO_GetShiftState [09:15:09]wFMCommunicate request_size=4 [09:15:09]MH_SAM_APDU [09:15:09]CAPDU: 80 13 01 00 [09:15:09]Write to MH i2c: E2 08 00 7B 19 80 13 01 00 00 00 00 00 11 [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:09]Read from MH i2c: E2 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 0E 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 0E 00 7B 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 46 [09:15:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:15:09]wFMCommunicate OK [09:15:09]SAM_PROTO_GetShiftState done [09:15:09]FM_GetShiftState done [09:15:09]req_shift_opened done [09:15:09]requested_item shift.open_date is exist - process it [09:15:09]req_shift_open_date [09:15:09]req_shift_open_date done [09:15:09]produce_requested_data done [09:15:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156162,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:15:09]process_action_free close_receipt [09:15:09]json_value_free [09:15:09]json_value_free done [09:15:09]process_json_proto returns [09:15:09]Send response to host [09:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156162,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:15:09]free response buf [09:15:09]execute_script done [09:15:09]execute_script returns [09:15:09]free content buf [09:15:09]Sock 9.Close socket [09:15:09]Sock 9.Thread stoped [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:27]int [09:15:27]Write to MH i2c: 01 00 00 7C 19 95 [09:15:27]*** FLAG_PRN_KEY set [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 7C 19 00 08 00 00 00 FF 0F B2 [09:15:27]state=0 [09:15:27]Key pressed [09:15:27]Feed [09:15:27]Write to MH i2c: D8 00 00 7D 19 6D [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: D8 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: D8 01 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: D8 01 00 7D 19 00 6E [09:15:27]int [09:15:27]Write to MH i2c: 01 00 00 7E 19 97 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 7E 19 00 48 00 00 00 3D 00 23 [09:15:27]state=2 [09:15:27]Key pressed [09:15:27]int [09:15:27]Write to MH i2c: 01 00 00 7F 19 98 [09:15:27]*** FLAG_PRN_KEY reset [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 7F 19 00 00 00 00 00 F7 0F A5 [09:15:27]state=2 [09:15:27]Stop feed [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:15]accept exits with 10 [09:16:15]New connection [09:16:15]New thread 3066469732 created [09:16:15]Thread 3066613092 joined [09:16:15]Waiting for new connection... [09:16:15] Sock 10.Parse request [09:16:15]Sock 10.Check first char [09:16:15]Sock 10.First char is OK [09:16:15]request: POST /json_proto HTTP/1.0 [09:16:15]Method: POST [09:16:15]URL: /json_proto [09:16:15]Method is POST - this is cgi request [09:16:15]url: /json_proto [09:16:15]query_string will be loaded in cgi processing [09:16:15]execute_cgi json_proto POST (null) [09:16:15]execute_cgi path=json_proto method=POST [09:16:15]POST find Content-Length [09:16:15]Host: 172.17.63.3:8080 [09:16:15]Content-Length: 681 [09:16:15]Content-Type: application/json [09:16:15] [09:16:15]POST finish read [09:16:15]Found Content-Length = 681 [09:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:15]execute_script... [09:16:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:15]POST & json_proto [09:16:15]process_json_proto [09:16:15]json parsed OK: [09:16:15]protocol is kg_v1.0 [09:16:15]action value=close_receipt [09:16:15]process_action close_receipt [09:16:15]cmd_close_receipt [09:16:15]MH_GetDate [09:16:15]Write to MH i2c: F0 00 00 80 19 88 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: F0 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: F0 09 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: F0 09 00 80 19 00 62 B3 1C 67 50 D1 6C 64 1A [09:16:15]GetLastDocTimeStamp 1729934110 [09:16:15]current date 1729934178 [09:16:15]FM_GetShiftState [09:16:15]SAM_PROTO_GetShiftState [09:16:15]wFMCommunicate request_size=4 [09:16:15]MH_SAM_APDU [09:16:15]CAPDU: 80 13 01 00 [09:16:15]Write to MH i2c: E2 08 00 81 19 80 13 01 00 00 00 00 00 17 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 0E 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 0E 00 81 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4C [09:16:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:16:15]wFMCommunicate OK [09:16:15]SAM_PROTO_GetShiftState done [09:16:15]FM_GetShiftState done [09:16:15]opened in 1729902702 [09:16:15]opened+sec_in_day 1729989102 [09:16:15]quantity*price = 100015 [09:16:15]sum+1 = 100017 [09:16:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 64 26.10.2024 09:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156163 ФПД: 115083556630523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091618&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156163&fm=115083556630523&tin=02508201610067®Number=0000000000091693&sum=100000 [09:16:16]StoreToDocumentArchive [09:16:16]shift 536 fd 156163 [09:16:16]save to /storage/0536/doc_00156163 [09:16:16]save last doc name /storage/0536/doc_00156163 to /storage/kkm_last_doc_name [09:16:16]save OK [09:16:16]Clear old archive folders... [09:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:16]tlvbuf is 00D2BC10 [09:16:16]SAM_PROTO_ClearQueue [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 09 00 00 [09:16:16]Write to MH i2c: E2 08 00 8E 19 80 09 00 00 00 00 00 00 19 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [09:16:16]RAPDU: 90 00 [09:16:16]wFMCommunicate OK [09:16:16]SAM_PROTO_ClearQueue done [09:16:16]KKMCreateOFDPacket [09:16:16]OFDProtocolAddRootSTLVToBuf [09:16:16]FM_MakeSignedData [09:16:16]FM_MakeSignedData [09:16:16]SAM_PROTO_SignData [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 0D 01 02 [09:16:16]Write to MH i2c: E2 08 00 8F 19 80 0D 01 02 00 00 00 00 21 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 8F 19 00 90 00 1C [09:16:16]RAPDU: 90 00 [09:16:16]wFMCommunicate OK [09:16:16]wFMCommunicate request_size=255 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 62 02 00 35 04 06 00 68 [09:16:16]Write to MH i2c: E2 02 01 90 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 62 02 00 35 04 06 00 68 00 00 70 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 90 19 00 90 00 1D [09:16:16]RAPDU: 90 00 [09:16:16]wFMCommunicate OK [09:16:16]wFMCommunicate request_size=10 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 0D 02 02 05 AA FA 83 2F FB [09:16:16]Write to MH i2c: E2 0D 00 91 19 80 0D 02 02 05 00 AA FA 83 2F FB 00 00 7F [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 91 19 00 90 00 1E [09:16:16]RAPDU: 90 00 [09:16:16]wFMCommunicate OK [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 0D 03 02 [09:16:16]Write to MH i2c: E2 08 00 92 19 80 0D 03 02 00 00 00 00 26 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 0B 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 0B 00 92 19 00 EC 57 BD 82 1C 53 7C D0 90 00 64 [09:16:16]RAPDU: EC 57 BD 82 1C 53 7C D0 90 00 [09:16:16]wFMCommunicate OK [09:16:16]SAM_PROTO_SignData done [09:16:16]FM_MakeSignedData done [09:16:16]CreateOFDProtocolMessage [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 11 00 00 [09:16:16]Write to MH i2c: E2 08 00 93 19 80 11 00 00 00 00 00 00 26 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 17 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 17 00 93 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [09:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:16:16]wFMCommunicate OK [09:16:16]CreateOFDProtocolMessage done [09:16:16]OFDSenderStorePacket 156163 [09:16:16]StoreOFDPacket docnum=156163 [09:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 45 07 01 B6 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 62 02 00 35 04 06 00 68 AA FA 83 2F FB EC 57 BD 82 1C 53 7C D0 [09:16:16]CheckFolder [09:16:16]dirname=/storage/ofd_packets [09:16:16]CheckFolder done [09:16:16]ProducePacketName [09:16:16]name=ofd_packets/00156163 [09:16:16]NVStorageSaveData ofd_packets/00156163 [09:16:16]File name is /storage/ofd_packets/00156163 [09:16:16]Write 301 bytes [09:16:16]NVStorageSaveData done [09:16:16]OFDSenderStorePacket done [09:16:16]KKMCreateOFDPacket done [09:16:16]NVStorageSaveData kkm_last_timestamp [09:16:16]File name is /storage/kkm_last_timestamp [09:16:16]Write 4 bytes [09:16:16]NVStorageSaveData done [09:16:16]ExternCall_PrintAddStr [09:16:16]wPrintStart [09:16:16]Write to MH i2c: 01 00 00 94 19 AD [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 07 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 FF 0F C2 [09:16:16]RasterBufferAndPrint [09:16:16]line Счет N : (1)98979 [09:16:16]line ИНН: 02508201610067 [09:16:16]line Контрольно-Кассовый Чек [09:16:16]line ПРОДАЖА [09:16:16]line ТРК (МРК, ГНК) : 31 [09:16:16]line Товар: 2710124130 [09:16:16]line Аи-92-К-5 [09:16:16]line 14.950 * 66.90 [09:16:16]line = 1000.16 [09:16:16]line НДС 12% НСП 1% [09:16:16]line > о реализуемом товаре [09:16:16]line ОКРУГЛЕНИЕ: -0.16 [09:16:16]line ИТОГО: 1000.00 [09:16:16]line Внесено: 1000.00 [09:16:16]line СДАЧА: 0.00 [09:16:16]line НСП 1% : 8.85 [09:16:16]line НДС 12% : 106.21 [09:16:16]line Наличными: 1000.00 [09:16:16]line Безнал.: 0.00 [09:16:16]line Место: АЗС № 143 "Партнер Нефть" [09:16:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:16:16]line СНО: Общий режим [09:16:16]line Чек 64 26.10.2024 09:16 [09:16:16]line Смена: 536 ФФД: 1.0 [09:16:16]line ЗНМ: 0300000096 [09:16:16]line РНМ: 0000000000091693 [09:16:16]line Версия ККМ: 001 [09:16:16]line ФМ: 0000000000871792 [09:16:16]line ФД: 156163 [09:16:16]line ФПД: 115083556630523 [09:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091618&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156163&fm=115083556630523&tin=02508201610067®Number=0000000000091693&sum=100000 [09:16:17]OFD Sender: Processing packet 156163 [packets to send 31, broken 30] [09:16:17]ProducePacketName [09:16:17]name=ofd_packets/00156163 [09:16:17]OFD Sender: To server: pG, [09:16:17]CommunicateWithHost lk.salyk.kg:30040 [09:16:17]ConnectInit lk.salyk.kg [09:16:17]written 0, free lines is 4095 [09:16:17]Connected sock=9 [09:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 45 07 01 B6 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 62 02 00 35 04 06 00 68 AA FA 83 2F FB EC 57 BD 82 1C 53 7C D0 [09:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 08 05 47 00 46 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 31 37 39 32 10 04 04 00 03 62 02 00 F4 03 04 00 D5 58 1C 67 B6 04 01 00 00 A5 27 5B 00 BD BA A7 E2 [09:16:17]CommunicateWithHost err = 0 [09:16:17]CheckOFDResponse [09:16:17]1017 (14) - 77093643461234 [09:16:17]1041 (16) - 0000000000871792 [09:16:17]1040 (4) - 156163 [09:16:17]1012 (4) - 26.10.2024 02:49 [09:16:17]1206 (1) - 0 [09:16:17]OFD Sender: Remove packet 156163 [09:16:17]ProducePacketName [09:16:17]name=ofd_packets/00156163 [09:16:17]NVStorageDeleteData [09:16:17]Write to MH i2c: 01 00 00 BF 19 D8 [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: 01 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: 01 07 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: 01 07 00 BF 19 00 00 00 00 00 F7 0C E2 [09:16:17]RasterBufferAndPrint [09:16:17]line [09:16:17]line [09:16:17]line [09:16:17]line [09:16:17]line [09:16:17]written 0, free lines is 3327 [09:16:17]process_action close_receipt done [09:16:17]requested_data is exist [09:16:17]produce_requested_data [09:16:17]requested_item fm.sn is exist - process it [09:16:17]wFMCommunicate request_size=4 [09:16:17]MH_SAM_APDU [09:16:17]CAPDU: 80 11 00 00 [09:16:17]Write to MH i2c: E2 08 00 C6 19 80 11 00 00 00 00 00 00 59 [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:17]Read from MH i2c: E2 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 17 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 17 00 C6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [09:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:16:17]wFMCommunicate OK [09:16:17]requested_item fd.num is exist - process it [09:16:17]SAM_PROTO_GetFieldsCounters [09:16:17]wFMCommunicate request_size=4 [09:16:17]MH_SAM_APDU [09:16:17]CAPDU: 80 13 00 00 [09:16:17]Write to MH i2c: E2 08 00 C7 19 80 13 00 00 00 00 00 00 5C [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:17]Read from MH i2c: E2 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 62 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 62 00 C7 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 03 62 02 00 0E 04 04 00 18 02 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 C3 [09:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 03 62 02 00 0E 04 04 00 18 02 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 [09:16:17]wFMCommunicate OK [09:16:17]SAM_PROTO_GetFieldsCounters done [09:16:17]requested_item shift.num is exist - process it [09:16:17]requested_item shift.opened is exist - process it [09:16:17]req_shift_opened [09:16:17]FM_GetShiftState [09:16:17]SAM_PROTO_GetShiftState [09:16:17]wFMCommunicate request_size=4 [09:16:17]MH_SAM_APDU [09:16:17]CAPDU: 80 13 01 00 [09:16:17]Write to MH i2c: E2 08 00 C8 19 80 13 01 00 00 00 00 00 5E [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:18]Read from MH i2c: E2 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: E2 0E 00 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: E2 0E 00 C8 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 93 [09:16:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:16:18]wFMCommunicate OK [09:16:18]SAM_PROTO_GetShiftState done [09:16:18]FM_GetShiftState done [09:16:18]req_shift_opened done [09:16:18]requested_item shift.open_date is exist - process it [09:16:18]req_shift_open_date [09:16:18]req_shift_open_date done [09:16:18]produce_requested_data done [09:16:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156163,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:16:18]process_action_free close_receipt [09:16:18]json_value_free [09:16:18]json_value_free done [09:16:18]process_json_proto returns [09:16:18]Send response to host [09:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156163,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:16:18]free response buf [09:16:18]execute_script done [09:16:18]execute_script returns [09:16:18]free content buf [09:16:18]Sock 10.Close socket [09:16:18]Sock 10.Thread stoped [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:50]accept exits with 7 [09:16:50]New connection [09:16:50]New thread 3066613092 created [09:16:50]Thread 3066469732 joined [09:16:50]Waiting for new connection... [09:16:50] Sock 7.Parse request [09:16:50]Sock 7.Check first char [09:16:50]Sock 7.First char is OK [09:16:50]request: POST /json_proto HTTP/1.0 [09:16:50]Method: POST [09:16:50]URL: /json_proto [09:16:50]Method is POST - this is cgi request [09:16:50]url: /json_proto [09:16:50]query_string will be loaded in cgi processing [09:16:50]execute_cgi json_proto POST (null) [09:16:50]execute_cgi path=json_proto method=POST [09:16:50]POST find Content-Length [09:16:50]Host: 172.17.63.3:8080 [09:16:50]Content-Length: 681 [09:16:50]Content-Type: application/json [09:16:50] [09:16:50]POST finish read [09:16:50]Found Content-Length = 681 [09:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.390, "sum" : 2501.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2501.00, "payments": [ { "type": 0, "sum" : 2501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:50]execute_script... [09:16:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.390, "sum" : 2501.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2501.00, "payments": [ { "type": 0, "sum" : 2501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:50]POST & json_proto [09:16:50]process_json_proto [09:16:50]json parsed OK: [09:16:50]protocol is kg_v1.0 [09:16:50]action value=close_receipt [09:16:50]process_action close_receipt [09:16:50]cmd_close_receipt [09:16:50]MH_GetDate [09:16:50]Write to MH i2c: F0 00 00 C9 19 D1 [09:16:50]Write i2c OK [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: F0 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: F0 09 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: F0 09 00 C9 19 00 85 B3 1C 67 50 D1 6C 64 86 [09:16:50]GetLastDocTimeStamp 1729934178 [09:16:50]current date 1729934213 [09:16:50]FM_GetShiftState [09:16:50]SAM_PROTO_GetShiftState [09:16:50]wFMCommunicate request_size=4 [09:16:50]MH_SAM_APDU [09:16:50]CAPDU: 80 13 01 00 [09:16:50]Write to MH i2c: E2 08 00 CA 19 80 13 01 00 00 00 00 00 60 [09:16:50]Write i2c OK [09:16:50]MH_I2C_Read... [09:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:50]Read from MH i2c: E2 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 0E 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 0E 00 CA 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 95 [09:16:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:16:50]wFMCommunicate OK [09:16:50]SAM_PROTO_GetShiftState done [09:16:50]FM_GetShiftState done [09:16:50]opened in 1729902702 [09:16:50]opened+sec_in_day 1729989102 [09:16:50]quantity*price = 250139 [09:16:50]sum+1 = 250140 [09:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 2501.00 Внесено: 4000.00 СДАЧА: 1499.00 НСП 1% : 22.14 НДС 12% : 265.63 Наличными: 2501.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 65 26.10.2024 09:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156164 ФПД: 113975076467846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091653&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156164&fm=113975076467846&tin=02508201610067®Number=0000000000091693&sum=250100 [09:16:51]StoreToDocumentArchive [09:16:51]shift 536 fd 156164 [09:16:51]save to /storage/0536/doc_00156164 [09:16:51]save last doc name /storage/0536/doc_00156164 to /storage/kkm_last_doc_name [09:16:51]save OK [09:16:51]Clear old archive folders... [09:16:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:51]tlvbuf is 00DA4380 [09:16:51]SAM_PROTO_ClearQueue [09:16:51]wFMCommunicate request_size=4 [09:16:51]MH_SAM_APDU [09:16:51]CAPDU: 80 09 00 00 [09:16:51]Write to MH i2c: E2 08 00 D7 19 80 09 00 00 00 00 00 00 62 [09:16:51]Write i2c OK [09:16:51]MH_I2C_Read... [09:16:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:51]Read from MH i2c: E2 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 03 00 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [09:16:51]RAPDU: 90 00 [09:16:51]wFMCommunicate OK [09:16:51]SAM_PROTO_ClearQueue done [09:16:51]KKMCreateOFDPacket [09:16:51]OFDProtocolAddRootSTLVToBuf [09:16:51]FM_MakeSignedData [09:16:51]FM_MakeSignedData [09:16:51]SAM_PROTO_SignData [09:16:51]wFMCommunicate request_size=4 [09:16:51]MH_SAM_APDU [09:16:51]CAPDU: 80 0D 01 02 [09:16:51]Write to MH i2c: E2 08 00 D8 19 80 0D 01 02 00 00 00 00 6A [09:16:51]Write i2c OK [09:16:51]MH_I2C_Read... [09:16:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:51]Read from MH i2c: E2 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 03 00 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [09:16:51]RAPDU: 90 00 [09:16:51]wFMCommunicate OK [09:16:51]wFMCommunicate request_size=255 [09:16:51]MH_SAM_APDU [09:16:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 92 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1B D1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 67 00 00 00 00 07 04 06 00 F4 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 85 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 62 02 00 35 04 06 00 67 [09:16:51]Write to MH i2c: E2 02 01 D9 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 92 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1B D1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 67 00 00 00 00 07 04 06 00 F4 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 85 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 62 02 00 35 04 06 00 67 00 00 8F [09:16:51]Write i2c OK [09:16:51]MH_I2C_Read... [09:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:51]Read from MH i2c: E2 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 03 00 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [09:16:51]RAPDU: 90 00 [09:16:51]wFMCommunicate OK [09:16:51]wFMCommunicate request_size=10 [09:16:51]MH_SAM_APDU [09:16:51]CAPDU: 80 0D 02 02 05 A8 E3 F2 34 86 [09:16:51]Write to MH i2c: E2 0D 00 DA 19 80 0D 02 02 05 00 A8 E3 F2 34 86 00 00 AE [09:16:51]Write i2c OK [09:16:51]MH_I2C_Read... [09:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:51]Read from MH i2c: E2 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 03 00 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [09:16:51]RAPDU: 90 00 [09:16:51]wFMCommunicate OK [09:16:51]wFMCommunicate request_size=4 [09:16:51]MH_SAM_APDU [09:16:51]CAPDU: 80 0D 03 02 [09:16:51]Write to MH i2c: E2 08 00 DB 19 80 0D 03 02 00 00 00 00 6F [09:16:51]Write i2c OK [09:16:51]MH_I2C_Read... [09:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:51]Read from MH i2c: E2 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 0B 00 [09:16:51]MH_I2C_Read... [09:16:51]Read from MH i2c: E2 0B 00 DB 19 00 A7 15 D4 29 46 C8 7A 61 90 00 12 [09:16:51]RAPDU: A7 15 D4 29 46 C8 7A 61 90 00 [09:16:51]wFMCommunicate OK [09:16:51]SAM_PROTO_SignData done [09:16:51]FM_MakeSignedData done [09:16:51]CreateOFDProtocolMessage [09:16:51]wFMCommunicate request_size=4 [09:16:51]MH_SAM_APDU [09:16:51]CAPDU: 80 11 00 00 [09:16:51]Write to MH i2c: E2 08 00 DC 19 80 11 00 00 00 00 00 00 6F [09:16:51]Write i2c OK [09:16:51]MH_I2C_Read... [09:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:52]Read from MH i2c: E2 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: E2 17 00 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: E2 17 00 DC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [09:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:16:52]wFMCommunicate OK [09:16:52]CreateOFDProtocolMessage done [09:16:52]OFDSenderStorePacket 156164 [09:16:52]StoreOFDPacket docnum=156164 [09:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 28 07 01 A2 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 92 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1B D1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 67 00 00 00 00 07 04 06 00 F4 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 85 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 62 02 00 35 04 06 00 67 A8 E3 F2 34 86 A7 15 D4 29 46 C8 7A 61 [09:16:52]CheckFolder [09:16:52]dirname=/storage/ofd_packets [09:16:52]CheckFolder done [09:16:52]ProducePacketName [09:16:52]name=ofd_packets/00156164 [09:16:52]NVStorageSaveData ofd_packets/00156164 [09:16:52]File name is /storage/ofd_packets/00156164 [09:16:52]Write 301 bytes [09:16:52]NVStorageSaveData done [09:16:52]OFDSenderStorePacket done [09:16:52]KKMCreateOFDPacket done [09:16:52]NVStorageSaveData kkm_last_timestamp [09:16:52]File name is /storage/kkm_last_timestamp [09:16:52]Write 4 bytes [09:16:52]NVStorageSaveData done [09:16:52]ExternCall_PrintAddStr [09:16:52]wPrintStart [09:16:52]Write to MH i2c: 01 00 00 DD 19 F6 [09:16:52]Write i2c OK [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: 01 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: 01 07 00 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 FF 0F 0B [09:16:52]RasterBufferAndPrint [09:16:52]line Счет N : (1)98978 [09:16:52]line ИНН: 02508201610067 [09:16:52]line Контрольно-Кассовый Чек [09:16:52]line ПРОДАЖА [09:16:52]line ТРК (МРК, ГНК) : 11 [09:16:52]line Товар: 2710124130 [09:16:52]line Аи-92-К-5 [09:16:52]line 37.390 * 66.90 [09:16:52]line = 2501.39 [09:16:52]line НДС 12% НСП 1% [09:16:52]line > о реализуемом товаре [09:16:52]line ОКРУГЛЕНИЕ: -0.39 [09:16:52]line ИТОГО: 2501.00 [09:16:52]line Внесено: 4000.00 [09:16:52]line СДАЧА: 1499.00 [09:16:52]line НСП 1% : 22.14 [09:16:52]line НДС 12% : 265.63 [09:16:52]line Наличными: 2501.00 [09:16:52]line Безнал.: 0.00 [09:16:52]line Место: АЗС № 143 "Партнер Нефть" [09:16:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:16:52]line СНО: Общий режим [09:16:52]line Чек 65 26.10.2024 09:16 [09:16:52]line Смена: 536 ФФД: 1.0 [09:16:52]line ЗНМ: 0300000096 [09:16:52]line РНМ: 0000000000091693 [09:16:52]line Версия ККМ: 001 [09:16:52]line ФМ: 0000000000871792 [09:16:52]line ФД: 156164 [09:16:52]line ФПД: 113975076467846 [09:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091653&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156164&fm=113975076467846&tin=02508201610067®Number=0000000000091693&sum=250100 [09:16:52]OFD Sender: Processing packet 156164 [packets to send 31, broken 30] [09:16:52]ProducePacketName [09:16:52]name=ofd_packets/00156164 [09:16:52]OFD Sender: To server: pG, [09:16:52]CommunicateWithHost lk.salyk.kg:30040 [09:16:52]ConnectInit lk.salyk.kg [09:16:52]written 0, free lines is 4095 [09:16:52]Connected sock=10 [09:16:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 28 07 01 A2 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 92 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1B D1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 67 00 00 00 00 07 04 06 00 F4 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 85 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 62 02 00 35 04 06 00 67 A8 E3 F2 34 86 A7 15 D4 29 46 C8 7A 61 [09:16:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AF 6B 47 00 CF 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 62 02 00 F4 03 04 00 F9 58 1C 67 B6 04 01 00 00 7D 91 EC CA 32 D5 49 35 [09:16:52]CommunicateWithHost err = 0 [09:16:52]CheckOFDResponse [09:16:52]1017 (14) - 77093643461234 [09:16:52]1041 (16) - 0000000000871792 [09:16:52]1040 (4) - 156164 [09:16:52]1012 (4) - 26.10.2024 02:50 [09:16:52]1206 (1) - 0 [09:16:52]OFD Sender: Remove packet 156164 [09:16:52]ProducePacketName [09:16:52]name=ofd_packets/00156164 [09:16:52]NVStorageDeleteData [09:16:52]Write to MH i2c: 01 00 00 08 1A 22 [09:16:52]Write i2c OK [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: 01 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: 01 07 00 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: 01 07 00 08 1A 00 00 00 00 00 01 0D 37 [09:16:52]RasterBufferAndPrint [09:16:52]line [09:16:52]line [09:16:52]line [09:16:52]line [09:16:52]line [09:16:52]written 0, free lines is 3335 [09:16:52]process_action close_receipt done [09:16:52]requested_data is exist [09:16:52]produce_requested_data [09:16:52]requested_item fm.sn is exist - process it [09:16:52]wFMCommunicate request_size=4 [09:16:52]MH_SAM_APDU [09:16:52]CAPDU: 80 11 00 00 [09:16:52]Write to MH i2c: E2 08 00 0F 1A 80 11 00 00 00 00 00 00 A3 [09:16:52]Write i2c OK [09:16:52]MH_I2C_Read... [09:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:52]Read from MH i2c: E2 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: E2 17 00 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: E2 17 00 0F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [09:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:16:52]wFMCommunicate OK [09:16:52]requested_item fd.num is exist - process it [09:16:52]SAM_PROTO_GetFieldsCounters [09:16:52]wFMCommunicate request_size=4 [09:16:52]MH_SAM_APDU [09:16:52]CAPDU: 80 13 00 00 [09:16:52]Write to MH i2c: E2 08 00 10 1A 80 13 00 00 00 00 00 00 A6 [09:16:52]Write i2c OK [09:16:52]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 62 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 62 00 10 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 04 62 02 00 0E 04 04 00 18 02 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 11 [09:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 04 62 02 00 0E 04 04 00 18 02 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 [09:16:53]wFMCommunicate OK [09:16:53]SAM_PROTO_GetFieldsCounters done [09:16:53]requested_item shift.num is exist - process it [09:16:53]requested_item shift.opened is exist - process it [09:16:53]req_shift_opened [09:16:53]FM_GetShiftState [09:16:53]SAM_PROTO_GetShiftState [09:16:53]wFMCommunicate request_size=4 [09:16:53]MH_SAM_APDU [09:16:53]CAPDU: 80 13 01 00 [09:16:53]Write to MH i2c: E2 08 00 11 1A 80 13 01 00 00 00 00 00 A8 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:53]Read from MH i2c: E2 0E 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 11 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DD [09:16:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:16:53]wFMCommunicate OK [09:16:53]SAM_PROTO_GetShiftState done [09:16:53]FM_GetShiftState done [09:16:53]req_shift_opened done [09:16:53]requested_item shift.open_date is exist - process it [09:16:53]req_shift_open_date [09:16:53]req_shift_open_date done [09:16:53]produce_requested_data done [09:16:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156164,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:16:53]process_action_free close_receipt [09:16:53]json_value_free [09:16:53]json_value_free done [09:16:53]process_json_proto returns [09:16:53]Send response to host [09:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156164,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:16:53]free response buf [09:16:53]execute_script done [09:16:53]execute_script returns [09:16:53]free content buf [09:16:53]Sock 7.Close socket [09:16:53]Sock 7.Thread stoped [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:18]accept exits with 9 [09:17:18]New connection [09:17:18]New thread 3066469732 created [09:17:18]Thread 3066613092 joined [09:17:18]Waiting for new connection... [09:17:18] Sock 9.Parse request [09:17:18]Sock 9.Check first char [09:17:18]Sock 9.First char is OK [09:17:18]request: POST /json_proto HTTP/1.0 [09:17:18]Method: POST [09:17:18]URL: /json_proto [09:17:18]Method is POST - this is cgi request [09:17:18]url: /json_proto [09:17:18]query_string will be loaded in cgi processing [09:17:18]execute_cgi json_proto POST (null) [09:17:18]execute_cgi path=json_proto method=POST [09:17:18]POST find Content-Length [09:17:18]Host: 172.17.63.3:8080 [09:17:18]Content-Length: 681 [09:17:18]Content-Type: application/json [09:17:18] [09:17:18]POST finish read [09:17:18]Found Content-Length = 681 [09:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:18]execute_script... [09:17: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)98980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:18]POST & json_proto [09:17:18]process_json_proto [09:17:18]json parsed OK: [09:17:18]protocol is kg_v1.0 [09:17:18]action value=close_receipt [09:17:18]process_action close_receipt [09:17:18]cmd_close_receipt [09:17:18]MH_GetDate [09:17:18]Write to MH i2c: F0 00 00 12 1A 1B [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: F0 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: F0 09 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: F0 09 00 12 1A 00 A1 B3 1C 67 50 D1 6C 64 EC [09:17:18]GetLastDocTimeStamp 1729934213 [09:17:18]current date 1729934241 [09:17:18]FM_GetShiftState [09:17:18]SAM_PROTO_GetShiftState [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 13 01 00 [09:17:18]Write to MH i2c: E2 08 00 13 1A 80 13 01 00 00 00 00 00 AA [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 0E 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 0E 00 13 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DF [09:17:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:17:18]wFMCommunicate OK [09:17:18]SAM_PROTO_GetShiftState done [09:17:18]FM_GetShiftState done [09:17:18]opened in 1729902702 [09:17:18]opened+sec_in_day 1729989102 [09:17:18]quantity*price = 100015 [09:17:18]sum+1 = 100017 [09:17:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 66 26.10.2024 09:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156165 ФПД: 12881726267480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091721&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156165&fm=12881726267480&tin=02508201610067®Number=0000000000091693&sum=100000 [09:17:19]StoreToDocumentArchive [09:17:19]shift 536 fd 156165 [09:17:19]save to /storage/0536/doc_00156165 [09:17:19]save last doc name /storage/0536/doc_00156165 to /storage/kkm_last_doc_name [09:17:19]save OK [09:17:19]Clear old archive folders... [09:17:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:19]tlvbuf is B6F02830 [09:17:19]SAM_PROTO_ClearQueue [09:17:19]wFMCommunicate request_size=4 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 09 00 00 [09:17:19]Write to MH i2c: E2 08 00 20 1A 80 09 00 00 00 00 00 00 AC [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 03 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 03 00 20 1A 00 90 00 AE [09:17:19]RAPDU: 90 00 [09:17:19]wFMCommunicate OK [09:17:19]SAM_PROTO_ClearQueue done [09:17:19]KKMCreateOFDPacket [09:17:19]OFDProtocolAddRootSTLVToBuf [09:17:19]FM_MakeSignedData [09:17:19]FM_MakeSignedData [09:17:19]SAM_PROTO_SignData [09:17:19]wFMCommunicate request_size=4 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 0D 01 02 [09:17:19]Write to MH i2c: E2 08 00 21 1A 80 0D 01 02 00 00 00 00 B4 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 03 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 03 00 21 1A 00 90 00 AF [09:17:19]RAPDU: 90 00 [09:17:19]wFMCommunicate OK [09:17:19]wFMCommunicate request_size=255 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A1 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 62 02 00 35 04 06 00 0B [09:17:19]Write to MH i2c: E2 02 01 22 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A1 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 62 02 00 35 04 06 00 0B 00 00 E9 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 03 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [09:17:19]RAPDU: 90 00 [09:17:19]wFMCommunicate OK [09:17:19]wFMCommunicate request_size=10 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 0D 02 02 05 B7 42 B7 E0 58 [09:17:19]Write to MH i2c: E2 0D 00 23 1A 80 0D 02 02 05 00 B7 42 B7 E0 58 00 00 A9 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 03 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [09:17:19]RAPDU: 90 00 [09:17:19]wFMCommunicate OK [09:17:19]wFMCommunicate request_size=4 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 0D 03 02 [09:17:19]Write to MH i2c: E2 08 00 24 1A 80 0D 03 02 00 00 00 00 B9 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 0B 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 0B 00 24 1A 00 DC C1 25 7C C6 15 EC EB 90 00 AA [09:17:19]RAPDU: DC C1 25 7C C6 15 EC EB 90 00 [09:17:19]wFMCommunicate OK [09:17:19]SAM_PROTO_SignData done [09:17:19]FM_MakeSignedData done [09:17:19]CreateOFDProtocolMessage [09:17:19]wFMCommunicate request_size=4 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 11 00 00 [09:17:19]Write to MH i2c: E2 08 00 25 1A 80 11 00 00 00 00 00 00 B9 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 17 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 17 00 25 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [09:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:17:19]wFMCommunicate OK [09:17:19]CreateOFDProtocolMessage done [09:17:19]OFDSenderStorePacket 156165 [09:17:19]StoreOFDPacket docnum=156165 [09:17:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 ED 07 01 17 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A1 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 62 02 00 35 04 06 00 0B B7 42 B7 E0 58 DC C1 25 7C C6 15 EC EB [09:17:19]CheckFolder [09:17:19]dirname=/storage/ofd_packets [09:17:19]CheckFolder done [09:17:19]ProducePacketName [09:17:19]name=ofd_packets/00156165 [09:17:19]NVStorageSaveData ofd_packets/00156165 [09:17:19]File name is /storage/ofd_packets/00156165 [09:17:19]Write 301 bytes [09:17:19]NVStorageSaveData done [09:17:19]OFDSenderStorePacket done [09:17:19]KKMCreateOFDPacket done [09:17:19]NVStorageSaveData kkm_last_timestamp [09:17:19]File name is /storage/kkm_last_timestamp [09:17:19]Write 4 bytes [09:17:19]NVStorageSaveData done [09:17:19]ExternCall_PrintAddStr [09:17:19]wPrintStart [09:17:19]Write to MH i2c: 01 00 00 26 1A 40 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: 01 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: 01 07 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: 01 07 00 26 1A 00 00 00 00 00 FF 0F 55 [09:17:19]RasterBufferAndPrint [09:17:19]line Счет N : (1)98980 [09:17:19]line ИНН: 02508201610067 [09:17:19]line Контрольно-Кассовый Чек [09:17:19]line ПРОДАЖА [09:17:19]line ТРК (МРК, ГНК) : 21 [09:17:19]line Товар: 2710124130 [09:17:19]line Аи-92-К-5 [09:17:19]line 14.950 * 66.90 [09:17:19]line = 1000.16 [09:17:19]line НДС 12% НСП 1% [09:17:19]line > о реализуемом товаре [09:17:19]line ОКРУГЛЕНИЕ: -0.16 [09:17:19]line ИТОГО: 1000.00 [09:17:19]line Внесено: 1000.00 [09:17:19]line СДАЧА: 0.00 [09:17:19]line НСП 1% : 8.85 [09:17:19]line НДС 12% : 106.21 [09:17:19]line Наличными: 1000.00 [09:17:19]line Безнал.: 0.00 [09:17:19]line Место: АЗС № 143 "Партнер Нефть" [09:17:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:17:19]line СНО: Общий режим [09:17:19]line Чек 66 26.10.2024 09:17 [09:17:19]line Смена: 536 ФФД: 1.0 [09:17:19]line ЗНМ: 0300000096 [09:17:19]line РНМ: 0000000000091693 [09:17:19]line Версия ККМ: 001 [09:17:19]line ФМ: 0000000000871792 [09:17:19]line ФД: 156165 [09:17:19]line ФПД: 12881726267480 [09:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091721&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156165&fm=12881726267480&tin=02508201610067®Number=0000000000091693&sum=100000 [09:17:20]OFD Sender: Processing packet 156165 [packets to send 31, broken 30] [09:17:20]ProducePacketName [09:17:20]name=ofd_packets/00156165 [09:17:20]OFD Sender: To server: pG, [09:17:20]CommunicateWithHost lk.salyk.kg:30040 [09:17:20]ConnectInit lk.salyk.kg [09:17:20]written 0, free lines is 4095 [09:17:20]Connected sock=10 [09:17:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 ED 07 01 17 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A1 B3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 62 02 00 35 04 06 00 0B B7 42 B7 E0 58 DC C1 25 7C C6 15 EC EB [09:17:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 57 DE 47 00 87 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 62 02 00 F4 03 04 00 14 59 1C 67 B6 04 01 00 00 35 5C 6D 14 74 5E 87 77 [09:17:20]CommunicateWithHost err = 0 [09:17:20]CheckOFDResponse [09:17:20]1017 (14) - 77093643461234 [09:17:20]1041 (16) - 0000000000871792 [09:17:20]1040 (4) - 156165 [09:17:20]1012 (4) - 26.10.2024 02:51 [09:17:20]1206 (1) - 0 [09:17:20]OFD Sender: Remove packet 156165 [09:17:20]ProducePacketName [09:17:20]name=ofd_packets/00156165 [09:17:20]NVStorageDeleteData [09:17:20]Write to MH i2c: 01 00 00 51 1A 6B [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: 01 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: 01 07 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: 01 07 00 51 1A 00 00 00 00 00 F9 0C 77 [09:17:20]RasterBufferAndPrint [09:17:20]line [09:17:20]line [09:17:20]line [09:17:20]line [09:17:20]line [09:17:20]written 0, free lines is 3327 [09:17:20]process_action close_receipt done [09:17:20]requested_data is exist [09:17:20]produce_requested_data [09:17:20]requested_item fm.sn is exist - process it [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 11 00 00 [09:17:20]Write to MH i2c: E2 08 00 58 1A 80 11 00 00 00 00 00 00 EC [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 17 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 17 00 58 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [09:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:17:20]wFMCommunicate OK [09:17:20]requested_item fd.num is exist - process it [09:17:20]SAM_PROTO_GetFieldsCounters [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 13 00 00 [09:17:20]Write to MH i2c: E2 08 00 59 1A 80 13 00 00 00 00 00 00 EF [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 62 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 62 00 59 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 05 62 02 00 0E 04 04 00 18 02 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 5E [09:17: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 05 62 02 00 0E 04 04 00 18 02 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 [09:17:20]wFMCommunicate OK [09:17:20]SAM_PROTO_GetFieldsCounters done [09:17:20]requested_item shift.num is exist - process it [09:17:20]requested_item shift.opened is exist - process it [09:17:20]req_shift_opened [09:17:20]FM_GetShiftState [09:17:20]SAM_PROTO_GetShiftState [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 13 01 00 [09:17:20]Write to MH i2c: E2 08 00 5A 1A 80 13 01 00 00 00 00 00 F1 [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:21]Read from MH i2c: E2 [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: E2 0E 00 [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: E2 0E 00 5A 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 26 [09:17:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:17:21]wFMCommunicate OK [09:17:21]SAM_PROTO_GetShiftState done [09:17:21]FM_GetShiftState done [09:17:21]req_shift_opened done [09:17:21]requested_item shift.open_date is exist - process it [09:17:21]req_shift_open_date [09:17:21]req_shift_open_date done [09:17:21]produce_requested_data done [09:17:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156165,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:17:21]process_action_free close_receipt [09:17:21]json_value_free [09:17:21]json_value_free done [09:17:21]process_json_proto returns [09:17:21]Send response to host [09:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156165,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:17:21]free response buf [09:17:21]execute_script done [09:17:21]execute_script returns [09:17:21]free content buf [09:17:21]Sock 9.Close socket [09:17:21]Sock 9.Thread stoped [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:30]accept exits with 7 [09:19:30]New connection [09:19:30]New thread 3066613092 created [09:19:30]Thread 3066469732 joined [09:19:30]Waiting for new connection... [09:19:30] Sock 7.Parse request [09:19:30]Sock 7.Check first char [09:19:30]Sock 7.First char is OK [09:19:30]request: POST /json_proto HTTP/1.0 [09:19:30]Method: POST [09:19:30]URL: /json_proto [09:19:30]Method is POST - this is cgi request [09:19:30]url: /json_proto [09:19:30]query_string will be loaded in cgi processing [09:19:30]execute_cgi json_proto POST (null) [09:19:30]execute_cgi path=json_proto method=POST [09:19:30]POST find Content-Length [09:19:30]Host: 172.17.63.3:8080 [09:19:30]Content-Length: 681 [09:19:30]Content-Type: application/json [09:19:30] [09:19:30]POST finish read [09:19:30]Found Content-Length = 681 [09:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:30]execute_script... [09:19:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:30]POST & json_proto [09:19:30]process_json_proto [09:19:30]json parsed OK: [09:19:30]protocol is kg_v1.0 [09:19:30]action value=close_receipt [09:19:30]process_action close_receipt [09:19:30]cmd_close_receipt [09:19:30]MH_GetDate [09:19:30]Write to MH i2c: F0 00 00 5B 1A 64 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: F0 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: F0 09 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: F0 09 00 5B 1A 00 26 B4 1C 67 50 D1 6C 64 BB [09:19:30]GetLastDocTimeStamp 1729934241 [09:19:30]current date 1729934374 [09:19:30]FM_GetShiftState [09:19:30]SAM_PROTO_GetShiftState [09:19:30]wFMCommunicate request_size=4 [09:19:30]MH_SAM_APDU [09:19:30]CAPDU: 80 13 01 00 [09:19:30]Write to MH i2c: E2 08 00 5C 1A 80 13 01 00 00 00 00 00 F3 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:30]Read from MH i2c: E2 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 0E 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 0E 00 5C 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 28 [09:19:30]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:19:30]wFMCommunicate OK [09:19:30]SAM_PROTO_GetShiftState done [09:19:30]FM_GetShiftState done [09:19:30]opened in 1729902702 [09:19:30]opened+sec_in_day 1729989102 [09:19:30]quantity*price = 150056 [09:19:30]sum+1 = 150058 [09:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 67 26.10.2024 09:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156166 ФПД: 187938232527280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091934&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156166&fm=187938232527280&tin=02508201610067®Number=0000000000091693&sum=150000 [09:19:31]StoreToDocumentArchive [09:19:31]shift 536 fd 156166 [09:19:31]save to /storage/0536/doc_00156166 [09:19:31]save last doc name /storage/0536/doc_00156166 to /storage/kkm_last_doc_name [09:19:31]save OK [09:19:31]Clear old archive folders... [09:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:31]tlvbuf is 00D6A8C0 [09:19:31]SAM_PROTO_ClearQueue [09:19:31]wFMCommunicate request_size=4 [09:19:31]MH_SAM_APDU [09:19:31]CAPDU: 80 09 00 00 [09:19:31]Write to MH i2c: E2 08 00 69 1A 80 09 00 00 00 00 00 00 F5 [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:31]Read from MH i2c: E2 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 03 00 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 03 00 69 1A 00 90 00 F7 [09:19:31]RAPDU: 90 00 [09:19:31]wFMCommunicate OK [09:19:31]SAM_PROTO_ClearQueue done [09:19:31]KKMCreateOFDPacket [09:19:31]OFDProtocolAddRootSTLVToBuf [09:19:31]FM_MakeSignedData [09:19:31]FM_MakeSignedData [09:19:31]SAM_PROTO_SignData [09:19:31]wFMCommunicate request_size=4 [09:19:31]MH_SAM_APDU [09:19:31]CAPDU: 80 0D 01 02 [09:19:31]Write to MH i2c: E2 08 00 6A 1A 80 0D 01 02 00 00 00 00 FD [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 6A 1A 00 90 00 F8 [09:19:32]RAPDU: 90 00 [09:19:32]wFMCommunicate OK [09:19:32]wFMCommunicate request_size=255 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 26 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 62 02 00 35 04 06 00 AA [09:19:32]Write to MH i2c: E2 02 01 6B 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 26 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 62 02 00 35 04 06 00 AA 00 00 A8 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 6B 1A 00 90 00 F9 [09:19:32]RAPDU: 90 00 [09:19:32]wFMCommunicate OK [09:19:32]wFMCommunicate request_size=10 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 0D 02 02 05 ED C7 96 E9 B0 [09:19:32]Write to MH i2c: E2 0D 00 6C 1A 80 0D 02 02 05 00 ED C7 96 E9 B0 00 00 ED [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 6C 1A 00 90 00 FA [09:19:32]RAPDU: 90 00 [09:19:32]wFMCommunicate OK [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 0D 03 02 [09:19:32]Write to MH i2c: E2 08 00 6D 1A 80 0D 03 02 00 00 00 00 02 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 0B 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 0B 00 6D 1A 00 62 14 00 C1 8F 4F CA F6 90 00 D8 [09:19:32]RAPDU: 62 14 00 C1 8F 4F CA F6 90 00 [09:19:32]wFMCommunicate OK [09:19:32]SAM_PROTO_SignData done [09:19:32]FM_MakeSignedData done [09:19:32]CreateOFDProtocolMessage [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 11 00 00 [09:19:32]Write to MH i2c: E2 08 00 6E 1A 80 11 00 00 00 00 00 00 02 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 17 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 17 00 6E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [09:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:19:32]wFMCommunicate OK [09:19:32]CreateOFDProtocolMessage done [09:19:32]OFDSenderStorePacket 156166 [09:19:32]StoreOFDPacket docnum=156166 [09:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 95 70 07 01 FD B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 26 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 62 02 00 35 04 06 00 AA ED C7 96 E9 B0 62 14 00 C1 8F 4F CA F6 [09:19:32]CheckFolder [09:19:32]dirname=/storage/ofd_packets [09:19:32]CheckFolder done [09:19:32]ProducePacketName [09:19:32]name=ofd_packets/00156166 [09:19:32]NVStorageSaveData ofd_packets/00156166 [09:19:32]File name is /storage/ofd_packets/00156166 [09:19:32]Write 301 bytes [09:19:32]NVStorageSaveData done [09:19:32]OFDSenderStorePacket done [09:19:32]KKMCreateOFDPacket done [09:19:32]NVStorageSaveData kkm_last_timestamp [09:19:32]File name is /storage/kkm_last_timestamp [09:19:32]Write 4 bytes [09:19:32]NVStorageSaveData done [09:19:32]ExternCall_PrintAddStr [09:19:32]wPrintStart [09:19:32]Write to MH i2c: 01 00 00 6F 1A 89 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 07 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 07 00 6F 1A 00 00 00 00 00 FF 0F 9E [09:19:32]RasterBufferAndPrint [09:19:32]line Счет N : (1)98982 [09:19:32]line ИНН: 02508201610067 [09:19:32]line Контрольно-Кассовый Чек [09:19:32]line ПРОДАЖА [09:19:32]line ТРК (МРК, ГНК) : 21 [09:19:32]line Товар: 2710124130 [09:19:32]line Аи-92-К-5 [09:19:32]line 22.430 * 66.90 [09:19:32]line = 1500.57 [09:19:32]line НДС 12% НСП 1% [09:19:32]line > о реализуемом товаре [09:19:32]line ОКРУГЛЕНИЕ: -0.57 [09:19:32]line ИТОГО: 1500.00 [09:19:32]line Внесено: 1500.00 [09:19:32]line СДАЧА: 0.00 [09:19:32]line НСП 1% : 13.28 [09:19:32]line НДС 12% : 159.35 [09:19:32]line Наличными: 1500.00 [09:19:32]line Безнал.: 0.00 [09:19:32]line Место: АЗС № 143 "Партнер Нефть" [09:19:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:19:32]line СНО: Общий режим [09:19:32]OFD Sender: Processing packet 156166 [packets to send 31, broken 30] [09:19:32]ProducePacketName [09:19:32]name=ofd_packets/00156166 [09:19:32]OFD Sender: To server: pG, [09:19:32]CommunicateWithHost lk.salyk.kg:30040 [09:19:32]ConnectInit lk.salyk.kg [09:19:32]line Чек 67 26.10.2024 09:19 [09:19:32]line Смена: 536 ФФД: 1.0 [09:19:32]line ЗНМ: 0300000096 [09:19:32]line РНМ: 0000000000091693 [09:19:32]line Версия ККМ: 001 [09:19:32]line ФМ: 0000000000871792 [09:19:32]line ФД: 156166 [09:19:32]line ФПД: 187938232527280 [09:19:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091934&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156166&fm=187938232527280&tin=02508201610067®Number=0000000000091693&sum=150000 [09:19:32]written 0, free lines is 4095 [09:19:32]Connected sock=11 [09:19:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 95 70 07 01 FD B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 26 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 62 02 00 35 04 06 00 AA ED C7 96 E9 B0 62 14 00 C1 8F 4F CA F6 [09:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0B 90 47 00 FA 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 31 37 39 32 10 04 04 00 06 62 02 00 F4 03 04 00 99 59 1C 67 B6 04 01 00 00 C0 80 33 88 73 E6 CB FE [09:19:32]CommunicateWithHost err = 0 [09:19:32]CheckOFDResponse [09:19:32]1017 (14) - 77093643461234 [09:19:32]1041 (16) - 0000000000871792 [09:19:32]1040 (4) - 156166 [09:19:32]1012 (4) - 26.10.2024 02:53 [09:19:32]1206 (1) - 0 [09:19:32]OFD Sender: Remove packet 156166 [09:19:32]ProducePacketName [09:19:32]name=ofd_packets/00156166 [09:19:32]NVStorageDeleteData [09:19:32]Write to MH i2c: 01 00 00 9A 1A B4 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 07 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 07 00 9A 1A 00 00 00 00 00 FA 0C C1 [09:19:32]RasterBufferAndPrint [09:19:32]line [09:19:32]line [09:19:32]line [09:19:32]line [09:19:32]line [09:19:32]written 0, free lines is 3329 [09:19:32]process_action close_receipt done [09:19:32]requested_data is exist [09:19:32]produce_requested_data [09:19:32]requested_item fm.sn is exist - process it [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 11 00 00 [09:19:32]Write to MH i2c: E2 08 00 A1 1A 80 11 00 00 00 00 00 00 35 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:33]Read from MH i2c: E2 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 17 00 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 17 00 A1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [09:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:19:33]wFMCommunicate OK [09:19:33]requested_item fd.num is exist - process it [09:19:33]SAM_PROTO_GetFieldsCounters [09:19:33]wFMCommunicate request_size=4 [09:19:33]MH_SAM_APDU [09:19:33]CAPDU: 80 13 00 00 [09:19:33]Write to MH i2c: E2 08 00 A2 1A 80 13 00 00 00 00 00 00 38 [09:19:33]Write i2c OK [09:19:33]MH_I2C_Read... [09:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:33]Read from MH i2c: E2 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 62 00 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 62 00 A2 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 06 62 02 00 0E 04 04 00 18 02 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 AB [09:19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 06 62 02 00 0E 04 04 00 18 02 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 [09:19:33]wFMCommunicate OK [09:19:33]SAM_PROTO_GetFieldsCounters done [09:19:33]requested_item shift.num is exist - process it [09:19:33]requested_item shift.opened is exist - process it [09:19:33]req_shift_opened [09:19:33]FM_GetShiftState [09:19:33]SAM_PROTO_GetShiftState [09:19:33]wFMCommunicate request_size=4 [09:19:33]MH_SAM_APDU [09:19:33]CAPDU: 80 13 01 00 [09:19:33]Write to MH i2c: E2 08 00 A3 1A 80 13 01 00 00 00 00 00 3A [09:19:33]Write i2c OK [09:19:33]MH_I2C_Read... [09:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:33]Read from MH i2c: E2 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 0E 00 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 0E 00 A3 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6F [09:19:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:19:33]wFMCommunicate OK [09:19:33]SAM_PROTO_GetShiftState done [09:19:33]FM_GetShiftState done [09:19:33]req_shift_opened done [09:19:33]requested_item shift.open_date is exist - process it [09:19:33]req_shift_open_date [09:19:33]req_shift_open_date done [09:19:33]produce_requested_data done [09:19:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156166,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:19:33]process_action_free close_receipt [09:19:33]json_value_free [09:19:33]json_value_free done [09:19:33]process_json_proto returns [09:19:33]Send response to host [09:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156166,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:19:33]free response buf [09:19:33]execute_script done [09:19:33]execute_script returns [09:19:33]free content buf [09:19:33]Sock 7.Close socket [09:19:33]Sock 7.Thread stoped [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:43]accept exits with 9 [09:19:43]New connection [09:19:43]New thread 3066469732 created [09:19:43]Thread 3066613092 joined [09:19:43]Waiting for new connection... [09:19:43] Sock 9.Parse request [09:19:43]Sock 9.Check first char [09:19:43]Sock 9.First char is OK [09:19:43]request: POST /json_proto HTTP/1.0 [09:19:43]Method: POST [09:19:43]URL: /json_proto [09:19:43]Method is POST - this is cgi request [09:19:43]url: /json_proto [09:19:43]query_string will be loaded in cgi processing [09:19:43]execute_cgi json_proto POST (null) [09:19:43]execute_cgi path=json_proto method=POST [09:19:43]POST find Content-Length [09:19:43]Host: 172.17.63.3:8080 [09:19:43]Content-Length: 681 [09:19:43]Content-Type: application/json [09:19:43] [09:19:43]POST finish read [09:19:43]Found Content-Length = 681 [09:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:43]execute_script... [09:19:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:43]POST & json_proto [09:19:43]process_json_proto [09:19:43]json parsed OK: [09:19:43]protocol is kg_v1.0 [09:19:43]action value=close_receipt [09:19:43]process_action close_receipt [09:19:43]cmd_close_receipt [09:19:43]MH_GetDate [09:19:43]Write to MH i2c: F0 00 00 A4 1A AD [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: F0 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: F0 09 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: F0 09 00 A4 1A 00 33 B4 1C 67 50 D1 6C 64 11 [09:19:43]GetLastDocTimeStamp 1729934374 [09:19:43]current date 1729934387 [09:19:43]FM_GetShiftState [09:19:43]SAM_PROTO_GetShiftState [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 13 01 00 [09:19:43]Write to MH i2c: E2 08 00 A5 1A 80 13 01 00 00 00 00 00 3C [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 0E 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 0E 00 A5 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 71 [09:19:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:19:43]wFMCommunicate OK [09:19:43]SAM_PROTO_GetShiftState done [09:19:43]FM_GetShiftState done [09:19:43]opened in 1729902702 [09:19:43]opened+sec_in_day 1729989102 [09:19:43]quantity*price = 120018 [09:19:43]sum+1 = 120020 [09:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 68 26.10.2024 09:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156167 ФПД: 112302563825048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091947&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156167&fm=112302563825048&tin=02508201610067®Number=0000000000091693&sum=120000 [09:19:44]StoreToDocumentArchive [09:19:44]shift 536 fd 156167 [09:19:44]save to /storage/0536/doc_00156167 [09:19:44]save last doc name /storage/0536/doc_00156167 to /storage/kkm_last_doc_name [09:19:44]save OK [09:19:44]Clear old archive folders... [09:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:44]tlvbuf is 00D4CD80 [09:19:44]SAM_PROTO_ClearQueue [09:19:44]wFMCommunicate request_size=4 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 09 00 00 [09:19:44]Write to MH i2c: E2 08 00 B2 1A 80 09 00 00 00 00 00 00 3E [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 B2 1A 00 90 00 40 [09:19:44]RAPDU: 90 00 [09:19:44]wFMCommunicate OK [09:19:44]SAM_PROTO_ClearQueue done [09:19:44]KKMCreateOFDPacket [09:19:44]OFDProtocolAddRootSTLVToBuf [09:19:44]FM_MakeSignedData [09:19:44]FM_MakeSignedData [09:19:44]SAM_PROTO_SignData [09:19:44]wFMCommunicate request_size=4 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 0D 01 02 [09:19:44]Write to MH i2c: E2 08 00 B3 1A 80 0D 01 02 00 00 00 00 46 [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:45]Read from MH i2c: E2 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 03 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 03 00 B3 1A 00 90 00 41 [09:19:45]RAPDU: 90 00 [09:19:45]wFMCommunicate OK [09:19:45]wFMCommunicate request_size=255 [09:19:45]MH_SAM_APDU [09:19:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 33 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 62 02 00 35 04 06 00 66 [09:19:45]Write to MH i2c: E2 02 01 B4 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 33 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 62 02 00 35 04 06 00 66 00 00 7A [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:45]Read from MH i2c: E2 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 03 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 03 00 B4 1A 00 90 00 42 [09:19:45]RAPDU: 90 00 [09:19:45]wFMCommunicate OK [09:19:45]wFMCommunicate request_size=10 [09:19:45]MH_SAM_APDU [09:19:45]CAPDU: 80 0D 02 02 05 23 7A 6C 95 98 [09:19:45]Write to MH i2c: E2 0D 00 B5 1A 80 0D 02 02 05 00 23 7A 6C 95 98 00 00 89 [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:45]Read from MH i2c: E2 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 03 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 03 00 B5 1A 00 90 00 43 [09:19:45]RAPDU: 90 00 [09:19:45]wFMCommunicate OK [09:19:45]wFMCommunicate request_size=4 [09:19:45]MH_SAM_APDU [09:19:45]CAPDU: 80 0D 03 02 [09:19:45]Write to MH i2c: E2 08 00 B6 1A 80 0D 03 02 00 00 00 00 4B [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:45]Read from MH i2c: E2 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 0B 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 0B 00 B6 1A 00 67 89 DE 16 C5 DE 43 DB 90 00 F1 [09:19:45]RAPDU: 67 89 DE 16 C5 DE 43 DB 90 00 [09:19:45]wFMCommunicate OK [09:19:45]SAM_PROTO_SignData done [09:19:45]FM_MakeSignedData done [09:19:45]CreateOFDProtocolMessage [09:19:45]wFMCommunicate request_size=4 [09:19:45]MH_SAM_APDU [09:19:45]CAPDU: 80 11 00 00 [09:19:45]Write to MH i2c: E2 08 00 B7 1A 80 11 00 00 00 00 00 00 4B [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:45]Read from MH i2c: E2 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 17 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 17 00 B7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [09:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:19:45]wFMCommunicate OK [09:19:45]CreateOFDProtocolMessage done [09:19:45]OFDSenderStorePacket 156167 [09:19:45]StoreOFDPacket docnum=156167 [09:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 03 E5 07 01 15 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 33 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 62 02 00 35 04 06 00 66 23 7A 6C 95 98 67 89 DE 16 C5 DE 43 DB [09:19:45]CheckFolder [09:19:45]dirname=/storage/ofd_packets [09:19:45]CheckFolder done [09:19:45]ProducePacketName [09:19:45]name=ofd_packets/00156167 [09:19:45]NVStorageSaveData ofd_packets/00156167 [09:19:45]File name is /storage/ofd_packets/00156167 [09:19:45]Write 301 bytes [09:19:45]NVStorageSaveData done [09:19:45]OFDSenderStorePacket done [09:19:45]KKMCreateOFDPacket done [09:19:45]NVStorageSaveData kkm_last_timestamp [09:19:45]File name is /storage/kkm_last_timestamp [09:19:45]Write 4 bytes [09:19:45]NVStorageSaveData done [09:19:45]ExternCall_PrintAddStr [09:19:45]wPrintStart [09:19:45]Write to MH i2c: 01 00 00 B8 1A D2 [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: 01 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: 01 07 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: 01 07 00 B8 1A 00 00 00 00 00 FF 0F E7 [09:19:45]RasterBufferAndPrint [09:19:45]line Счет N : (1)98981 [09:19:45]line ИНН: 02508201610067 [09:19:45]line Контрольно-Кассовый Чек [09:19:45]line ПРОДАЖА [09:19:45]line ТРК (МРК, ГНК) : 31 [09:19:45]line Товар: 2710124130 [09:19:45]line Аи-92-К-5 [09:19:45]line 17.940 * 66.90 [09:19:45]line = 1200.19 [09:19:45]line НДС 12% НСП 1% [09:19:45]line > о реализуемом товаре [09:19:45]line ОКРУГЛЕНИЕ: -0.19 [09:19:45]line ИТОГО: 1200.00 [09:19:45]line Внесено: 1200.00 [09:19:45]line СДАЧА: 0.00 [09:19:45]line НСП 1% : 10.62 [09:19:45]line НДС 12% : 127.45 [09:19:45]line Наличными: 1200.00 [09:19:45]line Безнал.: 0.00 [09:19:45]line Место: АЗС № 143 "Партнер Нефть" [09:19:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:19:45]line СНО: Общий режим [09:19:45]line Чек 68 26.10.2024 09:19 [09:19:45]line Смена: 536 ФФД: 1.0 [09:19:45]line ЗНМ: 0300000096 [09:19:45]line РНМ: 0000000000091693 [09:19:45]line Версия ККМ: 001 [09:19:45]line ФМ: 0000000000871792 [09:19:45]line ФД: 156167 [09:19:45]line ФПД: 112302563825048 [09:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091947&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156167&fm=112302563825048&tin=02508201610067®Number=0000000000091693&sum=120000 [09:19:45]OFD Sender: Processing packet 156167 [packets to send 31, broken 30] [09:19:45]ProducePacketName [09:19:45]name=ofd_packets/00156167 [09:19:45]OFD Sender: To server: pG, [09:19:45]CommunicateWithHost lk.salyk.kg:30040 [09:19:45]ConnectInit lk.salyk.kg [09:19:45]written 0, free lines is 4095 [09:19:45]Connected sock=10 [09:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 03 E5 07 01 15 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 33 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 62 02 00 35 04 06 00 66 23 7A 6C 95 98 67 89 DE 16 C5 DE 43 DB [09:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BE BA 47 00 BF 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 31 37 39 32 10 04 04 00 07 62 02 00 F4 03 04 00 A6 59 1C 67 B6 04 01 00 00 62 45 63 AC 55 C4 A8 86 [09:19:46]CommunicateWithHost err = 0 [09:19:46]CheckOFDResponse [09:19:46]1017 (14) - 77093643461234 [09:19:46]1041 (16) - 0000000000871792 [09:19:46]1040 (4) - 156167 [09:19:46]1012 (4) - 26.10.2024 02:53 [09:19:46]1206 (1) - 0 [09:19:46]OFD Sender: Remove packet 156167 [09:19:46]ProducePacketName [09:19:46]name=ofd_packets/00156167 [09:19:46]NVStorageDeleteData [09:19:46]Write to MH i2c: 01 00 00 E3 1A FD [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: 01 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: 01 07 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: 01 07 00 E3 1A 00 00 00 00 00 EB 0C FB [09:19:46]RasterBufferAndPrint [09:19:46]line [09:19:46]line [09:19:46]line [09:19:46]line [09:19:46]line [09:19:46]written 0, free lines is 3313 [09:19:46]process_action close_receipt done [09:19:46]requested_data is exist [09:19:46]produce_requested_data [09:19:46]requested_item fm.sn is exist - process it [09:19:46]wFMCommunicate request_size=4 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 11 00 00 [09:19:46]Write to MH i2c: E2 08 00 EA 1A 80 11 00 00 00 00 00 00 7E [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:46]Read from MH i2c: E2 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 17 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 17 00 EA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [09:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:19:46]wFMCommunicate OK [09:19:46]requested_item fd.num is exist - process it [09:19:46]SAM_PROTO_GetFieldsCounters [09:19:46]wFMCommunicate request_size=4 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 13 00 00 [09:19:46]Write to MH i2c: E2 08 00 EB 1A 80 13 00 00 00 00 00 00 81 [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:46]Read from MH i2c: E2 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 62 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 62 00 EB 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 07 62 02 00 0E 04 04 00 18 02 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 F8 [09:19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 07 62 02 00 0E 04 04 00 18 02 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 [09:19:46]wFMCommunicate OK [09:19:46]SAM_PROTO_GetFieldsCounters done [09:19:46]requested_item shift.num is exist - process it [09:19:46]requested_item shift.opened is exist - process it [09:19:46]req_shift_opened [09:19:46]FM_GetShiftState [09:19:46]SAM_PROTO_GetShiftState [09:19:46]wFMCommunicate request_size=4 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 13 01 00 [09:19:46]Write to MH i2c: E2 08 00 EC 1A 80 13 01 00 00 00 00 00 83 [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:46]Read from MH i2c: E2 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 0E 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 0E 00 EC 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B8 [09:19:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:19:46]wFMCommunicate OK [09:19:46]SAM_PROTO_GetShiftState done [09:19:46]FM_GetShiftState done [09:19:46]req_shift_opened done [09:19:46]requested_item shift.open_date is exist - process it [09:19:46]req_shift_open_date [09:19:46]req_shift_open_date done [09:19:46]produce_requested_data done [09:19:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156167,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:19:46]process_action_free close_receipt [09:19:46]json_value_free [09:19:46]json_value_free done [09:19:46]process_json_proto returns [09:19:46]Send response to host [09:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156167,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:19:46]free response buf [09:19:46]execute_script done [09:19:46]execute_script returns [09:19:46]free content buf [09:19:46]Sock 9.Close socket [09:19:46]Sock 9.Thread stoped [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]accept exits with 7 [09:21:36]New connection [09:21:36]New thread 3066613092 created [09:21:36]Thread 3066469732 joined [09:21:36]Waiting for new connection... [09:21:36] Sock 7.Parse request [09:21:36]Sock 7.Check first char [09:21:36]Sock 7.First char is OK [09:21:36]request: POST /json_proto HTTP/1.0 [09:21:36]Method: POST [09:21:36]URL: /json_proto [09:21:36]Method is POST - this is cgi request [09:21:36]url: /json_proto [09:21:36]query_string will be loaded in cgi processing [09:21:36]execute_cgi json_proto POST (null) [09:21:36]execute_cgi path=json_proto method=POST [09:21:36]POST find Content-Length [09:21:36]Host: 172.17.63.3:8080 [09:21:36]Content-Length: 673 [09:21:36]Content-Type: application/json [09:21:36] [09:21:36]POST finish read [09:21:36]Found Content-Length = 673 [09:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:36]execute_script... [09:21:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:36]POST & json_proto [09:21:36]process_json_proto [09:21:36]json parsed OK: [09:21:36]protocol is kg_v1.0 [09:21:36]action value=close_receipt [09:21:36]process_action close_receipt [09:21:36]cmd_close_receipt [09:21:36]MH_GetDate [09:21:36]Write to MH i2c: F0 00 00 ED 1A F6 [09:21:36]Write i2c OK [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: F0 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: F0 09 00 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: F0 09 00 ED 1A 00 A3 B4 1C 67 50 D1 6C 64 CA [09:21:36]GetLastDocTimeStamp 1729934387 [09:21:36]current date 1729934499 [09:21:36]FM_GetShiftState [09:21:36]SAM_PROTO_GetShiftState [09:21:36]wFMCommunicate request_size=4 [09:21:36]MH_SAM_APDU [09:21:36]CAPDU: 80 13 01 00 [09:21:36]Write to MH i2c: E2 08 00 EE 1A 80 13 01 00 00 00 00 00 85 [09:21:36]Write i2c OK [09:21:36]MH_I2C_Read... [09:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:36]Read from MH i2c: E2 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 0E 00 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 0E 00 EE 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BA [09:21:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:21:36]wFMCommunicate OK [09:21:36]SAM_PROTO_GetShiftState done [09:21:36]FM_GetShiftState done [09:21:36]opened in 1729902702 [09:21:36]opened+sec_in_day 1729989102 [09:21:36]quantity*price = 65074 [09:21:36]sum+1 = 65076 [09:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.11 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 69 26.10.2024 09:21 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156168 ФПД: 110583013755964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092139&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156168&fm=110583013755964&tin=02508201610067®Number=0000000000091693&sum=65000 [09:21:37]StoreToDocumentArchive [09:21:37]shift 536 fd 156168 [09:21:37]save to /storage/0536/doc_00156168 [09:21:37]save last doc name /storage/0536/doc_00156168 to /storage/kkm_last_doc_name [09:21:37]save OK [09:21:37]Clear old archive folders... [09:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:21:37]tlvbuf is 00D4C7D0 [09:21:37]SAM_PROTO_ClearQueue [09:21:37]wFMCommunicate request_size=4 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 09 00 00 [09:21:37]Write to MH i2c: E2 08 00 FB 1A 80 09 00 00 00 00 00 00 87 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 03 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 03 00 FB 1A 00 90 00 89 [09:21:37]RAPDU: 90 00 [09:21:37]wFMCommunicate OK [09:21:37]SAM_PROTO_ClearQueue done [09:21:37]KKMCreateOFDPacket [09:21:37]OFDProtocolAddRootSTLVToBuf [09:21:37]FM_MakeSignedData [09:21:37]FM_MakeSignedData [09:21:37]SAM_PROTO_SignData [09:21:37]wFMCommunicate request_size=4 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 0D 01 02 [09:21:37]Write to MH i2c: E2 08 00 FC 1A 80 0D 01 02 00 00 00 00 8F [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 03 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 03 00 FC 1A 00 90 00 8A [09:21:37]RAPDU: 90 00 [09:21:37]wFMCommunicate OK [09:21:37]wFMCommunicate request_size=255 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 62 02 00 35 04 06 00 64 93 1D 40 [09:21:37]Write to MH i2c: E2 02 01 FD 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 62 02 00 35 04 06 00 64 93 1D 40 00 00 9E [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 03 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 03 00 FD 1A 00 90 00 8B [09:21:37]RAPDU: 90 00 [09:21:37]wFMCommunicate OK [09:21:37]wFMCommunicate request_size=7 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 0D 02 02 02 CC 3C [09:21:37]Write to MH i2c: E2 0A 00 FE 1A 80 0D 02 02 02 00 CC 3C 00 00 9E [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 03 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 03 00 FE 1A 00 90 00 8C [09:21:37]RAPDU: 90 00 [09:21:37]wFMCommunicate OK [09:21:37]wFMCommunicate request_size=4 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 0D 03 02 [09:21:37]Write to MH i2c: E2 08 00 FF 1A 80 0D 03 02 00 00 00 00 94 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 0B 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 0B 00 FF 1A 00 C8 23 C6 41 57 D7 B9 5B 90 00 C9 [09:21:37]RAPDU: C8 23 C6 41 57 D7 B9 5B 90 00 [09:21:37]wFMCommunicate OK [09:21:37]SAM_PROTO_SignData done [09:21:37]FM_MakeSignedData done [09:21:37]CreateOFDProtocolMessage [09:21:37]wFMCommunicate request_size=4 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 11 00 00 [09:21:37]Write to MH i2c: E2 08 00 00 1B 80 11 00 00 00 00 00 00 95 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 17 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 17 00 00 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [09:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:21:37]wFMCommunicate OK [09:21:37]CreateOFDProtocolMessage done [09:21:37]OFDSenderStorePacket 156168 [09:21:37]StoreOFDPacket docnum=156168 [09:21:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 EB B5 04 01 E8 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 62 02 00 35 04 06 00 64 93 1D 40 CC 3C C8 23 C6 41 57 D7 B9 5B [09:21:37]CheckFolder [09:21:37]dirname=/storage/ofd_packets [09:21:37]CheckFolder done [09:21:37]ProducePacketName [09:21:37]name=ofd_packets/00156168 [09:21:37]NVStorageSaveData ofd_packets/00156168 [09:21:37]File name is /storage/ofd_packets/00156168 [09:21:37]Write 298 bytes [09:21:37]NVStorageSaveData done [09:21:37]OFDSenderStorePacket done [09:21:37]KKMCreateOFDPacket done [09:21:37]NVStorageSaveData kkm_last_timestamp [09:21:37]File name is /storage/kkm_last_timestamp [09:21:37]Write 4 bytes [09:21:37]NVStorageSaveData done [09:21:37]ExternCall_PrintAddStr [09:21:37]wPrintStart [09:21:37]Write to MH i2c: 01 00 00 01 1B 1C [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 01 1B 00 00 00 00 00 FF 0F 31 [09:21:37]RasterBufferAndPrint [09:21:37]line Счет N : (1)98983 [09:21:37]line ИНН: 02508201610067 [09:21:37]line Контрольно-Кассовый Чек [09:21:37]line ПРОДАЖА [09:21:37]line ТРК (МРК, ГНК) : 32 [09:21:37]line Товар: 2710194210 [09:21:37]line ДТ-К-5 [09:21:37]line 8.540 * 76.20 [09:21:37]line = 650.75 [09:21:37]line НДС 12% НСП 1% [09:21:37]line > о реализуемом товаре [09:21:37]line ОКРУГЛЕНИЕ: -0.75 [09:21:37]line ИТОГО: 650.00 [09:21:37]line Внесено: 650.00 [09:21:37]line СДАЧА: 0.00 [09:21:37]line НСП 1% : 5.76 [09:21:37]line НДС 12% : 69.11 [09:21:37]line Наличными: 650.00 [09:21:37]line Безнал.: 0.00 [09:21:37]line Место: АЗС № 143 "Партнер Нефть" [09:21:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:21:37]line СНО: Общий режим [09:21:37]line Чек 69 26.10.2024 09:21 [09:21:37]line Смена: 536 ФФД: 1.0 [09:21:37]line ЗНМ: 0300000096 [09:21:37]line РНМ: 0000000000091693 [09:21:37]line Версия ККМ: 001 [09:21:37]line ФМ: 0000000000871792 [09:21:37]line ФД: 156168 [09:21:37]line ФПД: 110583013755964 [09:21:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092139&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156168&fm=110583013755964&tin=02508201610067®Number=0000000000091693&sum=65000 [09:21:38]OFD Sender: Processing packet 156168 [packets to send 31, broken 30] [09:21:38]ProducePacketName [09:21:38]name=ofd_packets/00156168 [09:21:38]OFD Sender: To server: pG, [09:21:38]CommunicateWithHost lk.salyk.kg:30040 [09:21:38]ConnectInit lk.salyk.kg [09:21:38]written 0, free lines is 4095 [09:21:38]Connected sock=10 [09:21:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 EB B5 04 01 E8 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 B4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 62 02 00 35 04 06 00 64 93 1D 40 CC 3C C8 23 C6 41 57 D7 B9 5B [09:21:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 24 70 47 00 FB 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 62 02 00 F4 03 04 00 17 5A 1C 67 B6 04 01 00 00 D4 85 39 0F CF BC D0 4B [09:21:38]CommunicateWithHost err = 0 [09:21:38]CheckOFDResponse [09:21:38]1017 (14) - 77093643461234 [09:21:38]1041 (16) - 0000000000871792 [09:21:38]1040 (4) - 156168 [09:21:38]1012 (4) - 26.10.2024 02:55 [09:21:38]1206 (1) - 0 [09:21:38]OFD Sender: Remove packet 156168 [09:21:38]ProducePacketName [09:21:38]name=ofd_packets/00156168 [09:21:38]NVStorageDeleteData [09:21:38]Write to MH i2c: 01 00 00 2C 1B 47 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 07 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 07 00 2C 1B 00 00 00 00 00 EA 0C 44 [09:21:38]RasterBufferAndPrint [09:21:38]line [09:21:38]line [09:21:38]line [09:21:38]line [09:21:38]line [09:21:38]written 0, free lines is 3312 [09:21:38]process_action close_receipt done [09:21:38]requested_data is exist [09:21:38]produce_requested_data [09:21:38]requested_item fm.sn is exist - process it [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 11 00 00 [09:21:38]Write to MH i2c: E2 08 00 33 1B 80 11 00 00 00 00 00 00 C8 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 17 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 17 00 33 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [09:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:21:38]wFMCommunicate OK [09:21:38]requested_item fd.num is exist - process it [09:21:38]SAM_PROTO_GetFieldsCounters [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 13 00 00 [09:21:38]Write to MH i2c: E2 08 00 34 1B 80 13 00 00 00 00 00 00 CB [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 62 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 62 00 34 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 08 62 02 00 0E 04 04 00 18 02 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 46 [09:21: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 08 62 02 00 0E 04 04 00 18 02 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 [09:21:39]wFMCommunicate OK [09:21:39]SAM_PROTO_GetFieldsCounters done [09:21:39]requested_item shift.num is exist - process it [09:21:39]requested_item shift.opened is exist - process it [09:21:39]req_shift_opened [09:21:39]FM_GetShiftState [09:21:39]SAM_PROTO_GetShiftState [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 13 01 00 [09:21:39]Write to MH i2c: E2 08 00 35 1B 80 13 01 00 00 00 00 00 CD [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 0E 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 0E 00 35 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 02 [09:21:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:21:39]wFMCommunicate OK [09:21:39]SAM_PROTO_GetShiftState done [09:21:39]FM_GetShiftState done [09:21:39]req_shift_opened done [09:21:39]requested_item shift.open_date is exist - process it [09:21:39]req_shift_open_date [09:21:39]req_shift_open_date done [09:21:39]produce_requested_data done [09:21:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156168,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:21:39]process_action_free close_receipt [09:21:39]json_value_free [09:21:39]json_value_free done [09:21:39]process_json_proto returns [09:21:39]Send response to host [09:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156168,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:21:39]free response buf [09:21:39]execute_script done [09:21:39]execute_script returns [09:21:39]free content buf [09:21:39]Sock 7.Close socket [09:21:39]Sock 7.Thread stoped [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:44]accept exits with 9 [09:23:44]New connection [09:23:44]New thread 3066469732 created [09:23:44]Thread 3066613092 joined [09:23:44]Waiting for new connection... [09:23:44] Sock 9.Parse request [09:23:44]Sock 9.Check first char [09:23:44]Sock 9.First char is OK [09:23:44]request: POST /json_proto HTTP/1.0 [09:23:44]Method: POST [09:23:44]URL: /json_proto [09:23:44]Method is POST - this is cgi request [09:23:44]url: /json_proto [09:23:44]query_string will be loaded in cgi processing [09:23:44]execute_cgi json_proto POST (null) [09:23:44]execute_cgi path=json_proto method=POST [09:23:44]POST find Content-Length [09:23:44]Host: 172.17.63.3:8080 [09:23:44]Content-Length: 681 [09:23:44]Content-Type: application/json [09:23:44] [09:23:44]POST finish read [09:23:44]Found Content-Length = 681 [09:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:44]execute_script... [09:23: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)98984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:44]POST & json_proto [09:23:44]process_json_proto [09:23:44]json parsed OK: [09:23:44]protocol is kg_v1.0 [09:23:44]action value=close_receipt [09:23:44]process_action close_receipt [09:23:44]cmd_close_receipt [09:23:44]MH_GetDate [09:23:44]Write to MH i2c: F0 00 00 36 1B 40 [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: F0 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: F0 09 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: F0 09 00 36 1B 00 23 B5 1C 67 50 D1 6C 64 95 [09:23:44]GetLastDocTimeStamp 1729934499 [09:23:44]current date 1729934627 [09:23:44]FM_GetShiftState [09:23:44]SAM_PROTO_GetShiftState [09:23:44]wFMCommunicate request_size=4 [09:23:44]MH_SAM_APDU [09:23:44]CAPDU: 80 13 01 00 [09:23:44]Write to MH i2c: E2 08 00 37 1B 80 13 01 00 00 00 00 00 CF [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:44]Read from MH i2c: E2 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 0E 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 0E 00 37 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 04 [09:23:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:23:44]wFMCommunicate OK [09:23:44]SAM_PROTO_GetShiftState done [09:23:44]FM_GetShiftState done [09:23:44]opened in 1729902702 [09:23:44]opened+sec_in_day 1729989102 [09:23:44]quantity*price = 100015 [09:23:44]sum+1 = 100017 [09:23:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 70 26.10.2024 09:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156169 ФПД: 80627021580719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092348&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156169&fm=80627021580719&tin=02508201610067®Number=0000000000091693&sum=100000 [09:23:45]StoreToDocumentArchive [09:23:45]shift 536 fd 156169 [09:23:45]save to /storage/0536/doc_00156169 [09:23:45]save last doc name /storage/0536/doc_00156169 to /storage/kkm_last_doc_name [09:23:45]save OK [09:23:45]Clear old archive folders... [09:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:45]tlvbuf is 00D3F250 [09:23:45]SAM_PROTO_ClearQueue [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 09 00 00 [09:23:45]Write to MH i2c: E2 08 00 44 1B 80 09 00 00 00 00 00 00 D1 [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 03 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 03 00 44 1B 00 90 00 D3 [09:23:45]RAPDU: 90 00 [09:23:45]wFMCommunicate OK [09:23:45]SAM_PROTO_ClearQueue done [09:23:45]KKMCreateOFDPacket [09:23:45]OFDProtocolAddRootSTLVToBuf [09:23:45]FM_MakeSignedData [09:23:45]FM_MakeSignedData [09:23:45]SAM_PROTO_SignData [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 0D 01 02 [09:23:45]Write to MH i2c: E2 08 00 45 1B 80 0D 01 02 00 00 00 00 D9 [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 03 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [09:23:45]RAPDU: 90 00 [09:23:45]wFMCommunicate OK [09:23:45]wFMCommunicate request_size=255 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 24 B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 62 02 00 35 04 06 00 49 [09:23:45]Write to MH i2c: E2 02 01 46 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 24 B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 62 02 00 35 04 06 00 49 00 00 D9 [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 03 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 03 00 46 1B 00 90 00 D5 [09:23:45]RAPDU: 90 00 [09:23:45]wFMCommunicate OK [09:23:45]wFMCommunicate request_size=10 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 0D 02 02 05 54 70 FB 09 AF [09:23:45]Write to MH i2c: E2 0D 00 47 1B 80 0D 02 02 05 00 54 70 FB 09 AF 00 00 5D [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 03 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 03 00 47 1B 00 90 00 D6 [09:23:45]RAPDU: 90 00 [09:23:45]wFMCommunicate OK [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 0D 03 02 [09:23:45]Write to MH i2c: E2 08 00 48 1B 80 0D 03 02 00 00 00 00 DE [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 0B 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 0B 00 48 1B 00 CE 7F E1 38 BC 72 73 7A 90 00 60 [09:23:46]RAPDU: CE 7F E1 38 BC 72 73 7A 90 00 [09:23:46]wFMCommunicate OK [09:23:46]SAM_PROTO_SignData done [09:23:46]FM_MakeSignedData done [09:23:46]CreateOFDProtocolMessage [09:23:46]wFMCommunicate request_size=4 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 11 00 00 [09:23:46]Write to MH i2c: E2 08 00 49 1B 80 11 00 00 00 00 00 00 DE [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 17 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 17 00 49 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [09:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:23:46]wFMCommunicate OK [09:23:46]CreateOFDProtocolMessage done [09:23:46]OFDSenderStorePacket 156169 [09:23:46]StoreOFDPacket docnum=156169 [09:23:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 0D 07 01 48 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 24 B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 62 02 00 35 04 06 00 49 54 70 FB 09 AF CE 7F E1 38 BC 72 73 7A [09:23:46]CheckFolder [09:23:46]dirname=/storage/ofd_packets [09:23:46]CheckFolder done [09:23:46]ProducePacketName [09:23:46]name=ofd_packets/00156169 [09:23:46]NVStorageSaveData ofd_packets/00156169 [09:23:46]File name is /storage/ofd_packets/00156169 [09:23:46]Write 301 bytes [09:23:46]NVStorageSaveData done [09:23:46]OFDSenderStorePacket done [09:23:46]KKMCreateOFDPacket done [09:23:46]NVStorageSaveData kkm_last_timestamp [09:23:46]File name is /storage/kkm_last_timestamp [09:23:46]Write 4 bytes [09:23:46]NVStorageSaveData done [09:23:46]ExternCall_PrintAddStr [09:23:46]wPrintStart [09:23:46]Write to MH i2c: 01 00 00 4A 1B 65 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 4A 1B 00 00 00 00 00 FF 0F 7A [09:23:46]RasterBufferAndPrint [09:23:46]line Счет N : (1)98984 [09:23:46]line ИНН: 02508201610067 [09:23:46]line Контрольно-Кассовый Чек [09:23:46]line ПРОДАЖА [09:23:46]line ТРК (МРК, ГНК) : 21 [09:23:46]line Товар: 2710124130 [09:23:46]line Аи-92-К-5 [09:23:46]line 14.950 * 66.90 [09:23:46]line = 1000.16 [09:23:46]line НДС 12% НСП 1% [09:23:46]line > о реализуемом товаре [09:23:46]line ОКРУГЛЕНИЕ: -0.16 [09:23:46]line ИТОГО: 1000.00 [09:23:46]line Внесено: 1000.00 [09:23:46]line СДАЧА: 0.00 [09:23:46]line НСП 1% : 8.85 [09:23:46]line НДС 12% : 106.21 [09:23:46]line Наличными: 1000.00 [09:23:46]line Безнал.: 0.00 [09:23:46]line Место: АЗС № 143 "Партнер Нефть" [09:23:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:23:46]line СНО: Общий режим [09:23:46]line Чек 70 26.10.2024 09:23 [09:23:46]line Смена: 536 ФФД: 1.0 [09:23:46]line ЗНМ: 0300000096 [09:23:46]line РНМ: 0000000000091693 [09:23:46]line Версия ККМ: 001 [09:23:46]line ФМ: 0000000000871792 [09:23:46]line ФД: 156169 [09:23:46]line ФПД: 80627021580719 [09:23:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092348&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156169&fm=80627021580719&tin=02508201610067®Number=0000000000091693&sum=100000 [09:23:46]OFD Sender: Processing packet 156169 [packets to send 31, broken 30] [09:23:46]ProducePacketName [09:23:46]name=ofd_packets/00156169 [09:23:46]OFD Sender: To server: pG, [09:23:46]CommunicateWithHost lk.salyk.kg:30040 [09:23:46]ConnectInit lk.salyk.kg [09:23:46]written 0, free lines is 4095 [09:23:46]Connected sock=10 [09:23:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 0D 07 01 48 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 24 B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 62 02 00 35 04 06 00 49 54 70 FB 09 AF CE 7F E1 38 BC 72 73 7A [09:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4F 50 47 00 97 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 62 02 00 F4 03 04 00 97 5A 1C 67 B6 04 01 00 00 B7 43 FB 13 36 A5 89 E2 [09:23:46]CommunicateWithHost err = 0 [09:23:46]CheckOFDResponse [09:23:46]1017 (14) - 77093643461234 [09:23:46]1041 (16) - 0000000000871792 [09:23:46]1040 (4) - 156169 [09:23:46]1012 (4) - 26.10.2024 02:57 [09:23:46]1206 (1) - 0 [09:23:46]OFD Sender: Remove packet 156169 [09:23:46]ProducePacketName [09:23:46]name=ofd_packets/00156169 [09:23:46]NVStorageDeleteData [09:23:46]Write to MH i2c: 01 00 00 75 1B 90 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 F9 0C 9C [09:23:46]RasterBufferAndPrint [09:23:46]line [09:23:46]line [09:23:46]line [09:23:46]line [09:23:46]line [09:23:46]written 0, free lines is 3328 [09:23:46]process_action close_receipt done [09:23:46]requested_data is exist [09:23:46]produce_requested_data [09:23:46]requested_item fm.sn is exist - process it [09:23:46]wFMCommunicate request_size=4 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 11 00 00 [09:23:46]Write to MH i2c: E2 08 00 7C 1B 80 11 00 00 00 00 00 00 11 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 17 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 17 00 7C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [09:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:23:46]wFMCommunicate OK [09:23:46]requested_item fd.num is exist - process it [09:23:46]SAM_PROTO_GetFieldsCounters [09:23:46]wFMCommunicate request_size=4 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 13 00 00 [09:23:46]Write to MH i2c: E2 08 00 7D 1B 80 13 00 00 00 00 00 00 14 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 62 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 62 00 7D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 09 62 02 00 0E 04 04 00 18 02 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 93 [09:23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 09 62 02 00 0E 04 04 00 18 02 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 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_GetFieldsCounters done [09:23:47]requested_item shift.num is exist - process it [09:23:47]requested_item shift.opened is exist - process it [09:23:47]req_shift_opened [09:23:47]FM_GetShiftState [09:23:47]SAM_PROTO_GetShiftState [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 13 01 00 [09:23:47]Write to MH i2c: E2 08 00 7E 1B 80 13 01 00 00 00 00 00 16 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0E 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0E 00 7E 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4B [09:23:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_GetShiftState done [09:23:47]FM_GetShiftState done [09:23:47]req_shift_opened done [09:23:47]requested_item shift.open_date is exist - process it [09:23:47]req_shift_open_date [09:23:47]req_shift_open_date done [09:23:47]produce_requested_data done [09:23:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156169,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:23:47]process_action_free close_receipt [09:23:47]json_value_free [09:23:47]json_value_free done [09:23:47]process_json_proto returns [09:23:47]Send response to host [09:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156169,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:23:47]free response buf [09:23:47]execute_script done [09:23:47]execute_script returns [09:23:47]free content buf [09:23:47]Sock 9.Close socket [09:23:47]Sock 9.Thread stoped [09:23:47]OFD Sender: No OFD packet to send [09:23:52]accept exits with 7 [09:23:52]New connection [09:23:52]New thread 3066613092 created [09:23:52]Thread 3066469732 joined [09:23:52]Waiting for new connection... [09:23:52] Sock 7.Parse request [09:23:52]Sock 7.Check first char [09:23:52]Sock 7.First char is OK [09:23:52]request: POST /json_proto HTTP/1.0 [09:23:52]Method: POST [09:23:52]URL: /json_proto [09:23:52]Method is POST - this is cgi request [09:23:52]url: /json_proto [09:23:52]query_string will be loaded in cgi processing [09:23:52]execute_cgi json_proto POST (null) [09:23:52]execute_cgi path=json_proto method=POST [09:23:52]POST find Content-Length [09:23:52]Host: 172.17.63.3:8080 [09:23:52]Content-Length: 677 [09:23:52]Content-Type: application/json [09:23:52] [09:23:52]POST finish read [09:23:52]Found Content-Length = 677 [09:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:52]execute_script... [09:23:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:52]POST & json_proto [09:23:52]process_json_proto [09:23:52]json parsed OK: [09:23:52]protocol is kg_v1.0 [09:23:52]action value=close_receipt [09:23:52]process_action close_receipt [09:23:52]cmd_close_receipt [09:23:52]MH_GetDate [09:23:52]Write to MH i2c: F0 00 00 7F 1B 89 [09:23:52]Write i2c OK [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: F0 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: F0 09 00 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: F0 09 00 7F 1B 00 2B B5 1C 67 50 D1 6C 64 E6 [09:23:52]GetLastDocTimeStamp 1729934628 [09:23:52]current date 1729934635 [09:23:52]FM_GetShiftState [09:23:52]SAM_PROTO_GetShiftState [09:23:52]wFMCommunicate request_size=4 [09:23:52]MH_SAM_APDU [09:23:52]CAPDU: 80 13 01 00 [09:23:52]Write to MH i2c: E2 08 00 80 1B 80 13 01 00 00 00 00 00 18 [09:23:52]Write i2c OK [09:23:52]MH_I2C_Read... [09:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:52]Read from MH i2c: E2 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: E2 0E 00 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: E2 0E 00 80 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4D [09:23:52]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:23:52]wFMCommunicate OK [09:23:52]SAM_PROTO_GetShiftState done [09:23:52]FM_GetShiftState done [09:23:52]opened in 1729902702 [09:23:52]opened+sec_in_day 1729989102 [09:23:52]quantity*price = 70044 [09:23:52]sum+1 = 70045 [09:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 71 26.10.2024 09:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156170 ФПД: 175804097897506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092355&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156170&fm=175804097897506&tin=02508201610067®Number=0000000000091693&sum=70000 [09:23:53]StoreToDocumentArchive [09:23:53]shift 536 fd 156170 [09:23:53]save to /storage/0536/doc_00156170 [09:23:53]save last doc name /storage/0536/doc_00156170 to /storage/kkm_last_doc_name [09:23:53]save OK [09:23:53]Clear old archive folders... [09:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:53]tlvbuf is 00D18290 [09:23:53]SAM_PROTO_ClearQueue [09:23:53]wFMCommunicate request_size=4 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 09 00 00 [09:23:53]Write to MH i2c: E2 08 00 8D 1B 80 09 00 00 00 00 00 00 1A [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:53]Read from MH i2c: E2 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 03 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [09:23:53]RAPDU: 90 00 [09:23:53]wFMCommunicate OK [09:23:53]SAM_PROTO_ClearQueue done [09:23:53]KKMCreateOFDPacket [09:23:53]OFDProtocolAddRootSTLVToBuf [09:23:53]FM_MakeSignedData [09:23:53]FM_MakeSignedData [09:23:53]SAM_PROTO_SignData [09:23:53]wFMCommunicate request_size=4 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 0D 01 02 [09:23:53]Write to MH i2c: E2 08 00 8E 1B 80 0D 01 02 00 00 00 00 22 [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:53]Read from MH i2c: E2 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 03 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [09:23:53]RAPDU: 90 00 [09:23:53]wFMCommunicate OK [09:23:53]wFMCommunicate request_size=255 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2B B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 62 02 00 35 04 06 00 9F [09:23:53]Write to MH i2c: E2 02 01 8F 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2B B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 62 02 00 35 04 06 00 9F 00 00 97 [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:53]Read from MH i2c: E2 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 03 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [09:23:53]RAPDU: 90 00 [09:23:53]wFMCommunicate OK [09:23:53]wFMCommunicate request_size=10 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 0D 02 02 05 E4 94 CE 24 22 [09:23:53]Write to MH i2c: E2 0D 00 90 1B 80 0D 02 02 05 00 E4 94 CE 24 22 00 00 BB [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:53]Read from MH i2c: E2 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 03 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [09:23:53]RAPDU: 90 00 [09:23:53]wFMCommunicate OK [09:23:53]wFMCommunicate request_size=4 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 0D 03 02 [09:23:53]Write to MH i2c: E2 08 00 91 1B 80 0D 03 02 00 00 00 00 27 [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:53]Read from MH i2c: E2 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 0B 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 0B 00 91 1B 00 CE D6 60 18 50 E1 82 B3 90 00 AA [09:23:53]RAPDU: CE D6 60 18 50 E1 82 B3 90 00 [09:23:53]wFMCommunicate OK [09:23:53]SAM_PROTO_SignData done [09:23:53]FM_MakeSignedData done [09:23:53]CreateOFDProtocolMessage [09:23:53]wFMCommunicate request_size=4 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 11 00 00 [09:23:53]Write to MH i2c: E2 08 00 92 1B 80 11 00 00 00 00 00 00 27 [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:53]Read from MH i2c: E2 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 17 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 17 00 92 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [09:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:23:53]wFMCommunicate OK [09:23:53]CreateOFDProtocolMessage done [09:23:53]OFDSenderStorePacket 156170 [09:23:53]StoreOFDPacket docnum=156170 [09:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B1 CD 07 01 C7 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2B B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 62 02 00 35 04 06 00 9F E4 94 CE 24 22 CE D6 60 18 50 E1 82 B3 [09:23:53]CheckFolder [09:23:53]dirname=/storage/ofd_packets [09:23:53]CheckFolder done [09:23:53]ProducePacketName [09:23:53]name=ofd_packets/00156170 [09:23:53]NVStorageSaveData ofd_packets/00156170 [09:23:53]File name is /storage/ofd_packets/00156170 [09:23:53]Write 301 bytes [09:23:53]NVStorageSaveData done [09:23:53]OFDSenderStorePacket done [09:23:53]KKMCreateOFDPacket done [09:23:53]NVStorageSaveData kkm_last_timestamp [09:23:53]File name is /storage/kkm_last_timestamp [09:23:53]Write 4 bytes [09:23:53]NVStorageSaveData done [09:23:53]ExternCall_PrintAddStr [09:23:53]wPrintStart [09:23:53]Write to MH i2c: 01 00 00 93 1B AE [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: 01 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: 01 07 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: 01 07 00 93 1B 00 00 00 00 00 FF 0F C3 [09:23:53]RasterBufferAndPrint [09:23:53]line Счет N : (1)98985 [09:23:53]line ИНН: 02508201610067 [09:23:53]line Контрольно-Кассовый Чек [09:23:53]line ПРОДАЖА [09:23:53]line ТРК (МРК, ГНК) : 31 [09:23:53]line Товар: 2710124130 [09:23:53]line Аи-92-К-5 [09:23:53]line 10.470 * 66.90 [09:23:53]line = 700.44 [09:23:53]line НДС 12% НСП 1% [09:23:53]line > о реализуемом товаре [09:23:53]line ОКРУГЛЕНИЕ: -0.44 [09:23:53]line ИТОГО: 700.00 [09:23:53]line Внесено: 700.00 [09:23:53]line СДАЧА: 0.00 [09:23:53]line НСП 1% : 6.20 [09:23:53]line НДС 12% : 74.38 [09:23:53]line Наличными: 700.00 [09:23:53]line Безнал.: 0.00 [09:23:53]line Место: АЗС № 143 "Партнер Нефть" [09:23:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:23:53]line СНО: Общий режим [09:23:53]line Чек 71 26.10.2024 09:23 [09:23:53]line Смена: 536 ФФД: 1.0 [09:23:53]line ЗНМ: 0300000096 [09:23:53]line РНМ: 0000000000091693 [09:23:53]line Версия ККМ: 001 [09:23:53]line ФМ: 0000000000871792 [09:23:53]line ФД: 156170 [09:23:53]line ФПД: 175804097897506 [09:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092355&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156170&fm=175804097897506&tin=02508201610067®Number=0000000000091693&sum=70000 [09:23:53]written 0, free lines is 4095 [09:23:53]OFD Sender: Processing packet 156170 [packets to send 31, broken 30] [09:23:53]ProducePacketName [09:23:53]name=ofd_packets/00156170 [09:23:53]OFD Sender: To server: pG, [09:23:53]CommunicateWithHost lk.salyk.kg:30040 [09:23:53]ConnectInit lk.salyk.kg [09:23:54]Connected sock=9 [09:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B1 CD 07 01 C7 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2B B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 62 02 00 35 04 06 00 9F E4 94 CE 24 22 CE D6 60 18 50 E1 82 B3 [09:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 50 AD 47 00 E2 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 62 02 00 F4 03 04 00 9E 5A 1C 67 B6 04 01 00 00 DA E8 33 11 2A 3D 86 2B [09:23:54]CommunicateWithHost err = 0 [09:23:54]CheckOFDResponse [09:23:54]1017 (14) - 77093643461234 [09:23:54]1041 (16) - 0000000000871792 [09:23:54]1040 (4) - 156170 [09:23:54]1012 (4) - 26.10.2024 02:57 [09:23:54]1206 (1) - 0 [09:23:54]OFD Sender: Remove packet 156170 [09:23:54]ProducePacketName [09:23:54]name=ofd_packets/00156170 [09:23:54]NVStorageDeleteData [09:23:54]Write to MH i2c: 01 00 00 BE 1B D9 [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: 01 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: 01 07 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: 01 07 00 BE 1B 00 00 00 00 00 FB 0C E7 [09:23:54]RasterBufferAndPrint [09:23:54]line [09:23:54]line [09:23:54]line [09:23:54]line [09:23:54]line [09:23:54]written 0, free lines is 3332 [09:23:54]process_action close_receipt done [09:23:54]requested_data is exist [09:23:54]produce_requested_data [09:23:54]requested_item fm.sn is exist - process it [09:23:54]wFMCommunicate request_size=4 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 11 00 00 [09:23:54]Write to MH i2c: E2 08 00 C5 1B 80 11 00 00 00 00 00 00 5A [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 17 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 17 00 C5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [09:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:23:54]wFMCommunicate OK [09:23:54]requested_item fd.num is exist - process it [09:23:54]SAM_PROTO_GetFieldsCounters [09:23:54]wFMCommunicate request_size=4 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 13 00 00 [09:23:54]Write to MH i2c: E2 08 00 C6 1B 80 13 00 00 00 00 00 00 5D [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 62 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 62 00 C6 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0A 62 02 00 0E 04 04 00 18 02 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 E0 [09:23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0A 62 02 00 0E 04 04 00 18 02 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 [09:23:54]wFMCommunicate OK [09:23:54]SAM_PROTO_GetFieldsCounters done [09:23:54]requested_item shift.num is exist - process it [09:23:54]requested_item shift.opened is exist - process it [09:23:54]req_shift_opened [09:23:54]FM_GetShiftState [09:23:54]SAM_PROTO_GetShiftState [09:23:54]wFMCommunicate request_size=4 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 13 01 00 [09:23:54]Write to MH i2c: E2 08 00 C7 1B 80 13 01 00 00 00 00 00 5F [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 0E 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 0E 00 C7 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 94 [09:23:54]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:23:54]wFMCommunicate OK [09:23:54]SAM_PROTO_GetShiftState done [09:23:54]FM_GetShiftState done [09:23:54]req_shift_opened done [09:23:54]requested_item shift.open_date is exist - process it [09:23:54]req_shift_open_date [09:23:54]req_shift_open_date done [09:23:54]produce_requested_data done [09:23:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156170,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:23:54]process_action_free close_receipt [09:23:54]json_value_free [09:23:54]json_value_free done [09:23:54]process_json_proto returns [09:23:54]Send response to host [09:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156170,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:23:54]free response buf [09:23:54]execute_script done [09:23:54]execute_script returns [09:23:54]free content buf [09:23:54]Sock 7.Close socket [09:23:54]Sock 7.Thread stoped [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:05]accept exits with 10 [09:25:05]New connection [09:25:05]New thread 3066469732 created [09:25:05]Thread 3066613092 joined [09:25:05]Waiting for new connection... [09:25:05] Sock 10.Parse request [09:25:05]Sock 10.Check first char [09:25:05]Sock 10.First char is OK [09:25:05]request: POST /json_proto HTTP/1.0 [09:25:05]Method: POST [09:25:05]URL: /json_proto [09:25:05]Method is POST - this is cgi request [09:25:05]url: /json_proto [09:25:05]query_string will be loaded in cgi processing [09:25:05]execute_cgi json_proto POST (null) [09:25:05]execute_cgi path=json_proto method=POST [09:25:05]POST find Content-Length [09:25:05]Host: 172.17.63.3:8080 [09:25:05]Content-Length: 681 [09:25:05]Content-Type: application/json [09:25:05] [09:25:05]POST finish read [09:25:05]Found Content-Length = 681 [09:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:05]execute_script... [09:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:05]POST & json_proto [09:25:05]process_json_proto [09:25:05]json parsed OK: [09:25:05]protocol is kg_v1.0 [09:25:05]action value=close_receipt [09:25:05]process_action close_receipt [09:25:05]cmd_close_receipt [09:25:05]MH_GetDate [09:25:05]Write to MH i2c: F0 00 00 C8 1B D2 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 09 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 09 00 C8 1B 00 74 B5 1C 67 50 D1 6C 64 78 [09:25:05]GetLastDocTimeStamp 1729934635 [09:25:05]current date 1729934708 [09:25:05]FM_GetShiftState [09:25:05]SAM_PROTO_GetShiftState [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 13 01 00 [09:25:05]Write to MH i2c: E2 08 00 C9 1B 80 13 01 00 00 00 00 00 61 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0E 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0E 00 C9 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 96 [09:25:05]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:25:05]wFMCommunicate OK [09:25:05]SAM_PROTO_GetShiftState done [09:25:05]FM_GetShiftState done [09:25:05]opened in 1729902702 [09:25:05]opened+sec_in_day 1729989102 [09:25:05]quantity*price = 120018 [09:25:05]sum+1 = 120020 [09:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 72 26.10.2024 09:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156171 ФПД: 158039337387510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092508&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156171&fm=158039337387510&tin=02508201610067®Number=0000000000091693&sum=120000 [09:25:06]StoreToDocumentArchive [09:25:06]shift 536 fd 156171 [09:25:06]save to /storage/0536/doc_00156171 [09:25:06]save last doc name /storage/0536/doc_00156171 to /storage/kkm_last_doc_name [09:25:06]save OK [09:25:06]Clear old archive folders... [09:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:06]tlvbuf is 00D09140 [09:25:06]SAM_PROTO_ClearQueue [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 09 00 00 [09:25:06]Write to MH i2c: E2 08 00 D6 1B 80 09 00 00 00 00 00 00 63 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [09:25:06]RAPDU: 90 00 [09:25:06]wFMCommunicate OK [09:25:06]SAM_PROTO_ClearQueue done [09:25:06]KKMCreateOFDPacket [09:25:06]OFDProtocolAddRootSTLVToBuf [09:25:06]FM_MakeSignedData [09:25:06]FM_MakeSignedData [09:25:06]SAM_PROTO_SignData [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 0D 01 02 [09:25:06]Write to MH i2c: E2 08 00 D7 1B 80 0D 01 02 00 00 00 00 6B [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [09:25:06]RAPDU: 90 00 [09:25:06]wFMCommunicate OK [09:25:06]wFMCommunicate request_size=255 [09:25:06]MH_SAM_APDU [09:25: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 74 B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 62 02 00 35 04 06 00 8F [09:25:06]Write to MH i2c: E2 02 01 D8 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 74 B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 62 02 00 35 04 06 00 8F 00 00 12 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [09:25:06]RAPDU: 90 00 [09:25:06]wFMCommunicate OK [09:25:06]wFMCommunicate request_size=10 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 0D 02 02 05 BC 66 90 C5 F6 [09:25:06]Write to MH i2c: E2 0D 00 D9 1B 80 0D 02 02 05 00 BC 66 90 C5 F6 00 00 E5 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 D9 1B 00 90 00 68 [09:25:06]RAPDU: 90 00 [09:25:06]wFMCommunicate OK [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 0D 03 02 [09:25:06]Write to MH i2c: E2 08 00 DA 1B 80 0D 03 02 00 00 00 00 70 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 0B 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 0B 00 DA 1B 00 EB D5 52 C3 AB 26 E3 72 90 00 6C [09:25:06]RAPDU: EB D5 52 C3 AB 26 E3 72 90 00 [09:25:06]wFMCommunicate OK [09:25:06]SAM_PROTO_SignData done [09:25:06]FM_MakeSignedData done [09:25:06]CreateOFDProtocolMessage [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 11 00 00 [09:25:06]Write to MH i2c: E2 08 00 DB 1B 80 11 00 00 00 00 00 00 70 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 17 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 17 00 DB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [09:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:25:06]wFMCommunicate OK [09:25:06]CreateOFDProtocolMessage done [09:25:06]OFDSenderStorePacket 156171 [09:25:06]StoreOFDPacket docnum=156171 [09:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 9F 07 01 29 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 74 B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 62 02 00 35 04 06 00 8F BC 66 90 C5 F6 EB D5 52 C3 AB 26 E3 72 [09:25:06]CheckFolder [09:25:06]dirname=/storage/ofd_packets [09:25:06]CheckFolder done [09:25:06]ProducePacketName [09:25:06]name=ofd_packets/00156171 [09:25:06]NVStorageSaveData ofd_packets/00156171 [09:25:06]File name is /storage/ofd_packets/00156171 [09:25:06]Write 301 bytes [09:25:06]NVStorageSaveData done [09:25:06]OFDSenderStorePacket done [09:25:06]KKMCreateOFDPacket done [09:25:06]NVStorageSaveData kkm_last_timestamp [09:25:06]File name is /storage/kkm_last_timestamp [09:25:06]Write 4 bytes [09:25:06]NVStorageSaveData done [09:25:06]ExternCall_PrintAddStr [09:25:06]wPrintStart [09:25:06]Write to MH i2c: 01 00 00 DC 1B F7 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 07 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 07 00 DC 1B 00 00 00 00 00 FF 0F 0C [09:25:06]RasterBufferAndPrint [09:25:06]line Счет N : (1)98986 [09:25:06]line ИНН: 02508201610067 [09:25:06]line Контрольно-Кассовый Чек [09:25:06]line ПРОДАЖА [09:25:06]line ТРК (МРК, ГНК) : 21 [09:25:06]line Товар: 2710124130 [09:25:06]line Аи-92-К-5 [09:25:06]line 17.940 * 66.90 [09:25:06]line = 1200.19 [09:25:06]line НДС 12% НСП 1% [09:25:06]line > о реализуемом товаре [09:25:06]line ОКРУГЛЕНИЕ: -0.19 [09:25:06]line ИТОГО: 1200.00 [09:25:06]line Внесено: 1200.00 [09:25:06]line СДАЧА: 0.00 [09:25:06]line НСП 1% : 10.62 [09:25:06]line НДС 12% : 127.45 [09:25:06]line Наличными: 1200.00 [09:25:06]line Безнал.: 0.00 [09:25:06]line Место: АЗС № 143 "Партнер Нефть" [09:25:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:25:06]line СНО: Общий режим [09:25:06]line Чек 72 26.10.2024 09:25 [09:25:06]line Смена: 536 ФФД: 1.0 [09:25:06]line ЗНМ: 0300000096 [09:25:06]line РНМ: 0000000000091693 [09:25:06]line Версия ККМ: 001 [09:25:06]line ФМ: 0000000000871792 [09:25:06]line ФД: 156171 [09:25:06]line ФПД: 158039337387510 [09:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092508&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156171&fm=158039337387510&tin=02508201610067®Number=0000000000091693&sum=120000 [09:25:07]OFD Sender: Processing packet 156171 [packets to send 31, broken 30] [09:25:07]ProducePacketName [09:25:07]name=ofd_packets/00156171 [09:25:07]OFD Sender: To server: pG, [09:25:07]CommunicateWithHost lk.salyk.kg:30040 [09:25:07]ConnectInit lk.salyk.kg [09:25:07]written 0, free lines is 4095 [09:25:07]Connected sock=9 [09:25:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 9F 07 01 29 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 74 B5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 62 02 00 35 04 06 00 8F BC 66 90 C5 F6 EB D5 52 C3 AB 26 E3 72 [09:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 94 44 47 00 E9 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 31 37 39 32 10 04 04 00 0B 62 02 00 F4 03 04 00 E7 5A 1C 67 B6 04 01 00 00 30 2C F3 8C C2 94 00 E1 [09:25:07]CommunicateWithHost err = 0 [09:25:07]CheckOFDResponse [09:25:07]1017 (14) - 77093643461234 [09:25:07]1041 (16) - 0000000000871792 [09:25:07]1040 (4) - 156171 [09:25:07]1012 (4) - 26.10.2024 02:58 [09:25:07]1206 (1) - 0 [09:25:07]OFD Sender: Remove packet 156171 [09:25:07]ProducePacketName [09:25:07]name=ofd_packets/00156171 [09:25:07]NVStorageDeleteData [09:25:07]Write to MH i2c: 01 00 00 07 1C 23 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 07 1C 00 00 00 00 00 EC 0C 22 [09:25:07]RasterBufferAndPrint [09:25:07]line [09:25:07]line [09:25:07]line [09:25:07]line [09:25:07]line [09:25:07]written 0, free lines is 3314 [09:25:07]process_action close_receipt done [09:25:07]requested_data is exist [09:25:07]produce_requested_data [09:25:07]requested_item fm.sn is exist - process it [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 11 00 00 [09:25:07]Write to MH i2c: E2 08 00 0E 1C 80 11 00 00 00 00 00 00 A4 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 17 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 17 00 0E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [09:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:25:07]wFMCommunicate OK [09:25:07]requested_item fd.num is exist - process it [09:25:07]SAM_PROTO_GetFieldsCounters [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 13 00 00 [09:25:07]Write to MH i2c: E2 08 00 0F 1C 80 13 00 00 00 00 00 00 A7 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 62 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 62 00 0F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0B 62 02 00 0E 04 04 00 18 02 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 2E [09:25: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0B 62 02 00 0E 04 04 00 18 02 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 [09:25:07]wFMCommunicate OK [09:25:07]SAM_PROTO_GetFieldsCounters done [09:25:07]requested_item shift.num is exist - process it [09:25:07]requested_item shift.opened is exist - process it [09:25:07]req_shift_opened [09:25:07]FM_GetShiftState [09:25:07]SAM_PROTO_GetShiftState [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 13 01 00 [09:25:07]Write to MH i2c: E2 08 00 10 1C 80 13 01 00 00 00 00 00 A9 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 0E 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 0E 00 10 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DE [09:25:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:25:07]wFMCommunicate OK [09:25:07]SAM_PROTO_GetShiftState done [09:25:07]FM_GetShiftState done [09:25:07]req_shift_opened done [09:25:07]requested_item shift.open_date is exist - process it [09:25:07]req_shift_open_date [09:25:07]req_shift_open_date done [09:25:07]produce_requested_data done [09:25:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156171,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:25:07]process_action_free close_receipt [09:25:07]json_value_free [09:25:07]json_value_free done [09:25:07]process_json_proto returns [09:25:07]Send response to host [09:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156171,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:25:07]free response buf [09:25:07]execute_script done [09:25:07]execute_script returns [09:25:07]free content buf [09:25:07]Sock 10.Close socket [09:25:07]Sock 10.Thread stoped [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]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:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:48]accept exits with 7 [09:32:48]New connection [09:32:48]New thread 3066613092 created [09:32:48]Thread 3066469732 joined [09:32:48]Waiting for new connection... [09:32:48] Sock 7.Parse request [09:32:48]Sock 7.Check first char [09:32:48]Sock 7.First char is OK [09:32:48]request: POST /json_proto HTTP/1.0 [09:32:48]Method: POST [09:32:48]URL: /json_proto [09:32:48]Method is POST - this is cgi request [09:32:48]url: /json_proto [09:32:48]query_string will be loaded in cgi processing [09:32:48]execute_cgi json_proto POST (null) [09:32:48]execute_cgi path=json_proto method=POST [09:32:48]POST find Content-Length [09:32:48]Host: 172.17.63.3:8080 [09:32:48]Content-Length: 677 [09:32:48]Content-Type: application/json [09:32:48] [09:32:48]POST finish read [09:32:48]Found Content-Length = 677 [09:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:48]execute_script... [09: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 : (1)98987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:48]POST & json_proto [09:32:48]process_json_proto [09:32:48]json parsed OK: [09:32:48]protocol is kg_v1.0 [09:32:48]action value=close_receipt [09:32:48]process_action close_receipt [09:32:48]cmd_close_receipt [09:32:48]MH_GetDate [09:32:48]Write to MH i2c: F0 00 00 11 1C 1C [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: F0 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: F0 09 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: F0 09 00 11 1C 00 44 B7 1C 67 50 D1 6C 64 94 [09:32:48]GetLastDocTimeStamp 1729934708 [09:32:48]current date 1729935172 [09:32:48]FM_GetShiftState [09:32:48]SAM_PROTO_GetShiftState [09:32:48]wFMCommunicate request_size=4 [09:32:48]MH_SAM_APDU [09:32:48]CAPDU: 80 13 01 00 [09:32:48]Write to MH i2c: E2 08 00 12 1C 80 13 01 00 00 00 00 00 AB [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:48]Read from MH i2c: E2 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 0E 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 0E 00 12 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E0 [09:32:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:32:48]wFMCommunicate OK [09:32:48]SAM_PROTO_GetShiftState done [09:32:48]FM_GetShiftState done [09:32:48]opened in 1729902702 [09:32:48]opened+sec_in_day 1729989102 [09:32:48]quantity*price = 70044 [09:32:48]sum+1 = 70045 [09:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 73 26.10.2024 09:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156172 ФПД: 6987646590223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093252&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156172&fm=6987646590223&tin=02508201610067®Number=0000000000091693&sum=70000 [09:32:50]StoreToDocumentArchive [09:32:50]shift 536 fd 156172 [09:32:50]save to /storage/0536/doc_00156172 [09:32:50]save last doc name /storage/0536/doc_00156172 to /storage/kkm_last_doc_name [09:32:50]save OK [09:32:50]Clear old archive folders... [09:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:50]tlvbuf is 00D4C440 [09:32:50]SAM_PROTO_ClearQueue [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 09 00 00 [09:32:50]Write to MH i2c: E2 08 00 1F 1C 80 09 00 00 00 00 00 00 AD [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]SAM_PROTO_ClearQueue done [09:32:50]KKMCreateOFDPacket [09:32:50]OFDProtocolAddRootSTLVToBuf [09:32:50]FM_MakeSignedData [09:32:50]FM_MakeSignedData [09:32:50]SAM_PROTO_SignData [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 01 02 [09:32:50]Write to MH i2c: E2 08 00 20 1C 80 0D 01 02 00 00 00 00 B5 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]wFMCommunicate request_size=255 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 44 B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 62 02 00 35 04 06 00 06 [09:32:50]Write to MH i2c: E2 02 01 21 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 44 B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 62 02 00 35 04 06 00 06 00 00 B0 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]wFMCommunicate request_size=10 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 02 02 05 5A F0 31 5D 0F [09:32:50]Write to MH i2c: E2 0D 00 22 1C 80 0D 02 02 05 00 5A F0 31 5D 0F 00 00 A9 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 22 1C 00 90 00 B2 [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 03 02 [09:32:50]Write to MH i2c: E2 08 00 23 1C 80 0D 03 02 00 00 00 00 BA [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 0B 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 0B 00 23 1C 00 69 81 C2 95 F5 97 8E CD 90 00 E3 [09:32:50]RAPDU: 69 81 C2 95 F5 97 8E CD 90 00 [09:32:50]wFMCommunicate OK [09:32:50]SAM_PROTO_SignData done [09:32:50]FM_MakeSignedData done [09:32:50]CreateOFDProtocolMessage [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 11 00 00 [09:32:50]Write to MH i2c: E2 08 00 24 1C 80 11 00 00 00 00 00 00 BA [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 17 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 17 00 24 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [09:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:32:50]wFMCommunicate OK [09:32:50]CreateOFDProtocolMessage done [09:32:50]OFDSenderStorePacket 156172 [09:32:50]StoreOFDPacket docnum=156172 [09:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 28 EF 07 01 35 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 44 B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 62 02 00 35 04 06 00 06 5A F0 31 5D 0F 69 81 C2 95 F5 97 8E CD [09:32:50]CheckFolder [09:32:50]dirname=/storage/ofd_packets [09:32:50]CheckFolder done [09:32:50]ProducePacketName [09:32:50]name=ofd_packets/00156172 [09:32:50]NVStorageSaveData ofd_packets/00156172 [09:32:50]File name is /storage/ofd_packets/00156172 [09:32:50]Write 301 bytes [09:32:50]NVStorageSaveData done [09:32:50]OFDSenderStorePacket done [09:32:50]KKMCreateOFDPacket done [09:32:50]NVStorageSaveData kkm_last_timestamp [09:32:50]File name is /storage/kkm_last_timestamp [09:32:50]Write 4 bytes [09:32:50]NVStorageSaveData done [09:32:50]ExternCall_PrintAddStr [09:32:50]wPrintStart [09:32:50]Write to MH i2c: 01 00 00 25 1C 41 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 07 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 07 00 25 1C 00 00 00 00 00 FF 0F 56 [09:32:50]RasterBufferAndPrint [09:32:50]line Счет N : (1)98987 [09:32:50]line ИНН: 02508201610067 [09:32:50]line Контрольно-Кассовый Чек [09:32:50]line ПРОДАЖА [09:32:50]line ТРК (МРК, ГНК) : 21 [09:32:50]line Товар: 2710124130 [09:32:50]line Аи-92-К-5 [09:32:50]line 10.470 * 66.90 [09:32:50]line = 700.44 [09:32:50]line НДС 12% НСП 1% [09:32:50]line > о реализуемом товаре [09:32:50]line ОКРУГЛЕНИЕ: -0.44 [09:32:50]line ИТОГО: 700.00 [09:32:50]line Внесено: 700.00 [09:32:50]line СДАЧА: 0.00 [09:32:50]line НСП 1% : 6.20 [09:32:50]line НДС 12% : 74.38 [09:32:50]line Наличными: 700.00 [09:32:50]line Безнал.: 0.00 [09:32:50]line Место: АЗС № 143 "Партнер Нефть" [09:32:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:32:50]line СНО: Общий режим [09:32:50]line Чек 73 26.10.2024 09:32 [09:32:50]line Смена: 536 ФФД: 1.0 [09:32:50]line ЗНМ: 0300000096 [09:32:50]line РНМ: 0000000000091693 [09:32:50]line Версия ККМ: 001 [09:32:50]line ФМ: 0000000000871792 [09:32:50]line ФД: 156172 [09:32:50]line ФПД: 6987646590223 [09:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093252&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156172&fm=6987646590223&tin=02508201610067®Number=0000000000091693&sum=70000 [09:32:50]OFD Sender: Processing packet 156172 [packets to send 31, broken 30] [09:32:50]ProducePacketName [09:32:50]name=ofd_packets/00156172 [09:32:50]OFD Sender: To server: pG, [09:32:50]CommunicateWithHost lk.salyk.kg:30040 [09:32:50]ConnectInit lk.salyk.kg [09:32:51]written 0, free lines is 4095 [09:32:51]Connected sock=10 [09:32:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 28 EF 07 01 35 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 44 B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 62 02 00 35 04 06 00 06 5A F0 31 5D 0F 69 81 C2 95 F5 97 8E CD [09:32:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 67 12 47 00 17 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 62 02 00 F4 03 04 00 B7 5C 1C 67 B6 04 01 00 00 51 85 DA E3 4D 7D 4F AB [09:32:51]CommunicateWithHost err = 0 [09:32:51]CheckOFDResponse [09:32:51]1017 (14) - 77093643461234 [09:32:51]1041 (16) - 0000000000871792 [09:32:51]1040 (4) - 156172 [09:32:51]1012 (4) - 26.10.2024 03:06 [09:32:51]1206 (1) - 0 [09:32:51]OFD Sender: Remove packet 156172 [09:32:51]ProducePacketName [09:32:51]name=ofd_packets/00156172 [09:32:51]NVStorageDeleteData [09:32:51]Write to MH i2c: 01 00 00 50 1C 6C [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 50 1C 00 00 00 00 00 FA 0C 79 [09:32:51]RasterBufferAndPrint [09:32:51]line [09:32:51]line [09:32:51]line [09:32:51]line [09:32:51]line [09:32:51]written 0, free lines is 3328 [09:32:51]process_action close_receipt done [09:32:51]requested_data is exist [09:32:51]produce_requested_data [09:32:51]requested_item fm.sn is exist - process it [09:32:51]wFMCommunicate request_size=4 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 11 00 00 [09:32:51]Write to MH i2c: E2 08 00 57 1C 80 11 00 00 00 00 00 00 ED [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 17 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 17 00 57 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [09:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:32:51]wFMCommunicate OK [09:32:51]requested_item fd.num is exist - process it [09:32:51]SAM_PROTO_GetFieldsCounters [09:32:51]wFMCommunicate request_size=4 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 13 00 00 [09:32:51]Write to MH i2c: E2 08 00 58 1C 80 13 00 00 00 00 00 00 F0 [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 62 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 62 00 58 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0C 62 02 00 0E 04 04 00 18 02 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 7B [09:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0C 62 02 00 0E 04 04 00 18 02 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 [09:32:51]wFMCommunicate OK [09:32:51]SAM_PROTO_GetFieldsCounters done [09:32:51]requested_item shift.num is exist - process it [09:32:51]requested_item shift.opened is exist - process it [09:32:51]req_shift_opened [09:32:51]FM_GetShiftState [09:32:51]SAM_PROTO_GetShiftState [09:32:51]wFMCommunicate request_size=4 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 13 01 00 [09:32:51]Write to MH i2c: E2 08 00 59 1C 80 13 01 00 00 00 00 00 F2 [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 0E 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 0E 00 59 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 27 [09:32:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:32:51]wFMCommunicate OK [09:32:51]SAM_PROTO_GetShiftState done [09:32:51]FM_GetShiftState done [09:32:51]req_shift_opened done [09:32:51]requested_item shift.open_date is exist - process it [09:32:51]req_shift_open_date [09:32:51]req_shift_open_date done [09:32:51]produce_requested_data done [09:32:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156172,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:32:51]process_action_free close_receipt [09:32:51]json_value_free [09:32:51]json_value_free done [09:32:51]process_json_proto returns [09:32:51]Send response to host [09:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156172,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:32:51]free response buf [09:32:51]execute_script done [09:32:51]execute_script returns [09:32:51]free content buf [09:32:51]Sock 7.Close socket [09:32:51]Sock 7.Thread stoped [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:25]accept exits with 9 [09:33:25]New connection [09:33:25]New thread 3066469732 created [09:33:25]Thread 3066613092 joined [09:33:25]Waiting for new connection... [09:33:25] Sock 9.Parse request [09:33:25]Sock 9.Check first char [09:33:25]Sock 9.First char is OK [09:33:25]request: POST /json_proto HTTP/1.0 [09:33:25]Method: POST [09:33:25]URL: /json_proto [09:33:25]Method is POST - this is cgi request [09:33:25]url: /json_proto [09:33:25]query_string will be loaded in cgi processing [09:33:25]execute_cgi json_proto POST (null) [09:33:25]execute_cgi path=json_proto method=POST [09:33:25]POST find Content-Length [09:33:25]Host: 172.17.63.3:8080 [09:33:25]Content-Length: 681 [09:33:25]Content-Type: application/json [09:33:25] [09:33:25]POST finish read [09:33:25]Found Content-Length = 681 [09:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:25]execute_script... [09:33:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:25]POST & json_proto [09:33:25]process_json_proto [09:33:25]json parsed OK: [09:33:25]protocol is kg_v1.0 [09:33:25]action value=close_receipt [09:33:25]process_action close_receipt [09:33:25]cmd_close_receipt [09:33:25]MH_GetDate [09:33:25]Write to MH i2c: F0 00 00 5A 1C 65 [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: F0 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: F0 09 00 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: F0 09 00 5A 1C 00 69 B7 1C 67 50 D1 6C 64 02 [09:33:25]GetLastDocTimeStamp 1729935172 [09:33:25]current date 1729935209 [09:33:25]FM_GetShiftState [09:33:25]SAM_PROTO_GetShiftState [09:33:25]wFMCommunicate request_size=4 [09:33:25]MH_SAM_APDU [09:33:25]CAPDU: 80 13 01 00 [09:33:25]Write to MH i2c: E2 08 00 5B 1C 80 13 01 00 00 00 00 00 F4 [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:25]Read from MH i2c: E2 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 0E 00 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 0E 00 5B 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 29 [09:33:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:33:25]wFMCommunicate OK [09:33:25]SAM_PROTO_GetShiftState done [09:33:25]FM_GetShiftState done [09:33:25]opened in 1729902702 [09:33:25]opened+sec_in_day 1729989102 [09:33:25]quantity*price = 100015 [09:33:25]sum+1 = 100017 [09:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 74 26.10.2024 09:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156173 ФПД: 221498130100103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093329&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156173&fm=221498130100103&tin=02508201610067®Number=0000000000091693&sum=100000 [09:33:26]StoreToDocumentArchive [09:33:26]shift 536 fd 156173 [09:33:26]save to /storage/0536/doc_00156173 [09:33:26]save last doc name /storage/0536/doc_00156173 to /storage/kkm_last_doc_name [09:33:26]save OK [09:33:26]Clear old archive folders... [09:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:26]tlvbuf is 00D1BE40 [09:33:26]SAM_PROTO_ClearQueue [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 09 00 00 [09:33:26]Write to MH i2c: E2 08 00 68 1C 80 09 00 00 00 00 00 00 F6 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 03 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 03 00 68 1C 00 90 00 F8 [09:33:26]RAPDU: 90 00 [09:33:26]wFMCommunicate OK [09:33:26]SAM_PROTO_ClearQueue done [09:33:26]KKMCreateOFDPacket [09:33:26]OFDProtocolAddRootSTLVToBuf [09:33:26]FM_MakeSignedData [09:33:26]FM_MakeSignedData [09:33:26]SAM_PROTO_SignData [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 0D 01 02 [09:33:26]Write to MH i2c: E2 08 00 69 1C 80 0D 01 02 00 00 00 00 FE [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 03 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 03 00 69 1C 00 90 00 F9 [09:33:26]RAPDU: 90 00 [09:33:26]wFMCommunicate OK [09:33:26]wFMCommunicate request_size=255 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 69 B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 62 02 00 35 04 06 00 C9 [09:33:26]Write to MH i2c: E2 02 01 6A 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 69 B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 62 02 00 35 04 06 00 C9 00 00 CD [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]OFD Sender: No OFD packet to send [09:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 03 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [09:33:26]RAPDU: 90 00 [09:33:26]wFMCommunicate OK [09:33:26]wFMCommunicate request_size=10 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 0D 02 02 05 73 8D 5C EF 87 [09:33:26]Write to MH i2c: E2 0D 00 6B 1C 80 0D 02 02 05 00 73 8D 5C EF 87 00 00 DD [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [09:33:27]RAPDU: 90 00 [09:33:27]wFMCommunicate OK [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 0D 03 02 [09:33:27]Write to MH i2c: E2 08 00 6C 1C 80 0D 03 02 00 00 00 00 03 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 0B 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 0B 00 6C 1C 00 01 87 61 AA 32 7A D3 33 90 00 49 [09:33:27]RAPDU: 01 87 61 AA 32 7A D3 33 90 00 [09:33:27]wFMCommunicate OK [09:33:27]SAM_PROTO_SignData done [09:33:27]FM_MakeSignedData done [09:33:27]CreateOFDProtocolMessage [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 11 00 00 [09:33:27]Write to MH i2c: E2 08 00 6D 1C 80 11 00 00 00 00 00 00 03 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 17 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 17 00 6D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [09:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:33:27]wFMCommunicate OK [09:33:27]CreateOFDProtocolMessage done [09:33:27]OFDSenderStorePacket 156173 [09:33:27]StoreOFDPacket docnum=156173 [09:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 9C 07 01 4C 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 69 B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 62 02 00 35 04 06 00 C9 73 8D 5C EF 87 01 87 61 AA 32 7A D3 33 [09:33:27]CheckFolder [09:33:27]dirname=/storage/ofd_packets [09:33:27]CheckFolder done [09:33:27]ProducePacketName [09:33:27]name=ofd_packets/00156173 [09:33:27]NVStorageSaveData ofd_packets/00156173 [09:33:27]File name is /storage/ofd_packets/00156173 [09:33:27]Write 301 bytes [09:33:27]NVStorageSaveData done [09:33:27]OFDSenderStorePacket done [09:33:27]KKMCreateOFDPacket done [09:33:27]NVStorageSaveData kkm_last_timestamp [09:33:27]File name is /storage/kkm_last_timestamp [09:33:27]Write 4 bytes [09:33:27]NVStorageSaveData done [09:33:27]ExternCall_PrintAddStr [09:33:27]wPrintStart [09:33:27]Write to MH i2c: 01 00 00 6E 1C 8A [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 07 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 07 00 6E 1C 00 00 00 00 00 FF 0F 9F [09:33:27]RasterBufferAndPrint [09:33:27]line Счет N : (1)98988 [09:33:27]line ИНН: 02508201610067 [09:33:27]line Контрольно-Кассовый Чек [09:33:27]line ПРОДАЖА [09:33:27]line ТРК (МРК, ГНК) : 11 [09:33:27]line Товар: 2710124130 [09:33:27]line Аи-92-К-5 [09:33:27]line 14.950 * 66.90 [09:33:27]line = 1000.16 [09:33:27]line НДС 12% НСП 1% [09:33:27]line > о реализуемом товаре [09:33:27]line ОКРУГЛЕНИЕ: -0.16 [09:33:27]line ИТОГО: 1000.00 [09:33:27]line Внесено: 1000.00 [09:33:27]line СДАЧА: 0.00 [09:33:27]line НСП 1% : 8.85 [09:33:27]line НДС 12% : 106.21 [09:33:27]line Наличными: 1000.00 [09:33:27]line Безнал.: 0.00 [09:33:27]line Место: АЗС № 143 "Партнер Нефть" [09:33:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:33:27]line СНО: Общий режим [09:33:27]line Чек 74 26.10.2024 09:33 [09:33:27]line Смена: 536 ФФД: 1.0 [09:33:27]line ЗНМ: 0300000096 [09:33:27]line РНМ: 0000000000091693 [09:33:27]line Версия ККМ: 001 [09:33:27]line ФМ: 0000000000871792 [09:33:27]line ФД: 156173 [09:33:27]line ФПД: 221498130100103 [09:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093329&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156173&fm=221498130100103&tin=02508201610067®Number=0000000000091693&sum=100000 [09:33:27]OFD Sender: Processing packet 156173 [packets to send 31, broken 30] [09:33:27]ProducePacketName [09:33:27]name=ofd_packets/00156173 [09:33:27]OFD Sender: To server: pG, [09:33:27]CommunicateWithHost lk.salyk.kg:30040 [09:33:27]ConnectInit lk.salyk.kg [09:33:27]written 0, free lines is 4095 [09:33:27]Connected sock=10 [09:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 9C 07 01 4C 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 69 B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 62 02 00 35 04 06 00 C9 73 8D 5C EF 87 01 87 61 AA 32 7A D3 33 [09:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 82 70 47 00 56 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 62 02 00 F4 03 04 00 DC 5C 1C 67 B6 04 01 00 00 02 5E 4C EF E8 E0 40 F0 [09:33:27]CommunicateWithHost err = 0 [09:33:27]CheckOFDResponse [09:33:27]1017 (14) - 77093643461234 [09:33:27]1041 (16) - 0000000000871792 [09:33:27]1040 (4) - 156173 [09:33:27]1012 (4) - 26.10.2024 03:07 [09:33:27]1206 (1) - 0 [09:33:27]OFD Sender: Remove packet 156173 [09:33:27]ProducePacketName [09:33:27]name=ofd_packets/00156173 [09:33:27]NVStorageDeleteData [09:33:27]Write to MH i2c: 01 00 00 99 1C B5 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 07 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 07 00 99 1C 00 00 00 00 00 F7 0C BF [09:33:27]RasterBufferAndPrint [09:33:27]line [09:33:27]line [09:33:27]line [09:33:27]line [09:33:27]line [09:33:27]written 0, free lines is 3326 [09:33:27]process_action close_receipt done [09:33:27]requested_data is exist [09:33:27]produce_requested_data [09:33:27]requested_item fm.sn is exist - process it [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 11 00 00 [09:33:27]Write to MH i2c: E2 08 00 A0 1C 80 11 00 00 00 00 00 00 36 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:28]Read from MH i2c: E2 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 17 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 17 00 A0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [09:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:33:28]wFMCommunicate OK [09:33:28]requested_item fd.num is exist - process it [09:33:28]SAM_PROTO_GetFieldsCounters [09:33:28]wFMCommunicate request_size=4 [09:33:28]MH_SAM_APDU [09:33:28]CAPDU: 80 13 00 00 [09:33:28]Write to MH i2c: E2 08 00 A1 1C 80 13 00 00 00 00 00 00 39 [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:28]Read from MH i2c: E2 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 62 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 62 00 A1 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0D 62 02 00 0E 04 04 00 18 02 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 C8 [09:33: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0D 62 02 00 0E 04 04 00 18 02 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 [09:33:28]wFMCommunicate OK [09:33:28]SAM_PROTO_GetFieldsCounters done [09:33:28]requested_item shift.num is exist - process it [09:33:28]requested_item shift.opened is exist - process it [09:33:28]req_shift_opened [09:33:28]FM_GetShiftState [09:33:28]SAM_PROTO_GetShiftState [09:33:28]wFMCommunicate request_size=4 [09:33:28]MH_SAM_APDU [09:33:28]CAPDU: 80 13 01 00 [09:33:28]Write to MH i2c: E2 08 00 A2 1C 80 13 01 00 00 00 00 00 3B [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:28]Read from MH i2c: E2 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 0E 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 0E 00 A2 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 70 [09:33:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:33:28]wFMCommunicate OK [09:33:28]SAM_PROTO_GetShiftState done [09:33:28]FM_GetShiftState done [09:33:28]req_shift_opened done [09:33:28]requested_item shift.open_date is exist - process it [09:33:28]req_shift_open_date [09:33:28]req_shift_open_date done [09:33:28]produce_requested_data done [09:33:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156173,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:33:28]process_action_free close_receipt [09:33:28]json_value_free [09:33:28]json_value_free done [09:33:28]process_json_proto returns [09:33:28]Send response to host [09:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156173,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:33:28]free response buf [09:33:28]execute_script done [09:33:28]execute_script returns [09:33:28]free content buf [09:33:28]Sock 9.Close socket [09:33:28]Sock 9.Thread stoped [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:24]accept exits with 7 [09:35:24]New connection [09:35:24]New thread 3066613092 created [09:35:24]Thread 3066469732 joined [09:35:24]Waiting for new connection... [09:35:24] Sock 7.Parse request [09:35:24]Sock 7.Check first char [09:35:24]Sock 7.First char is OK [09:35:24]request: POST /json_proto HTTP/1.0 [09:35:24]Method: POST [09:35:24]URL: /json_proto [09:35:24]Method is POST - this is cgi request [09:35:24]url: /json_proto [09:35:24]query_string will be loaded in cgi processing [09:35:24]execute_cgi json_proto POST (null) [09:35:24]execute_cgi path=json_proto method=POST [09:35:24]POST find Content-Length [09:35:24]Host: 172.17.63.3:8080 [09:35:24]Content-Length: 681 [09:35:24]Content-Type: application/json [09:35:24] [09:35:24]POST finish read [09:35:24]Found Content-Length = 681 [09:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.850, "sum" : 1060.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1060.00, "total" : 1060.00, "payments": [ { "type": 0, "sum" : 1060.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:24]execute_script... [09:35:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.850, "sum" : 1060.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1060.00, "total" : 1060.00, "payments": [ { "type": 0, "sum" : 1060.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:24]POST & json_proto [09:35:24]process_json_proto [09:35:24]json parsed OK: [09:35:24]protocol is kg_v1.0 [09:35:24]action value=close_receipt [09:35:24]process_action close_receipt [09:35:24]cmd_close_receipt [09:35:24]MH_GetDate [09:35:24]Write to MH i2c: F0 00 00 A3 1C AE [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: F0 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: F0 09 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: F0 09 00 A3 1C 00 DF B7 1C 67 50 D1 6C 64 C1 [09:35:24]GetLastDocTimeStamp 1729935209 [09:35:24]current date 1729935327 [09:35:24]FM_GetShiftState [09:35:24]SAM_PROTO_GetShiftState [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 13 01 00 [09:35:24]Write to MH i2c: E2 08 00 A4 1C 80 13 01 00 00 00 00 00 3D [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 0E 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 0E 00 A4 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 72 [09:35:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:35:24]wFMCommunicate OK [09:35:24]SAM_PROTO_GetShiftState done [09:35:24]FM_GetShiftState done [09:35:24]opened in 1729902702 [09:35:24]opened+sec_in_day 1729989102 [09:35:24]quantity*price = 106036 [09:35:24]sum+1 = 106038 [09:35:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1060.00 Внесено: 1060.00 СДАЧА: 0.00 НСП 1% : 9.38 НДС 12% : 112.61 Наличными: 1060.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 75 26.10.2024 09:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156174 ФПД: 15295879363289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093527&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156174&fm=15295879363289&tin=02508201610067®Number=0000000000091693&sum=106000 [09:35:25]StoreToDocumentArchive [09:35:25]shift 536 fd 156174 [09:35:25]save to /storage/0536/doc_00156174 [09:35:25]save last doc name /storage/0536/doc_00156174 to /storage/kkm_last_doc_name [09:35:25]save OK [09:35:25]Clear old archive folders... [09:35:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:25]tlvbuf is 00D49BB0 [09:35:25]SAM_PROTO_ClearQueue [09:35:25]wFMCommunicate request_size=4 [09:35:25]MH_SAM_APDU [09:35:25]CAPDU: 80 09 00 00 [09:35:25]Write to MH i2c: E2 08 00 B1 1C 80 09 00 00 00 00 00 00 3F [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:25]Read from MH i2c: E2 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 03 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 03 00 B1 1C 00 90 00 41 [09:35:25]RAPDU: 90 00 [09:35:25]wFMCommunicate OK [09:35:25]SAM_PROTO_ClearQueue done [09:35:25]KKMCreateOFDPacket [09:35:25]OFDProtocolAddRootSTLVToBuf [09:35:25]FM_MakeSignedData [09:35:25]FM_MakeSignedData [09:35:25]SAM_PROTO_SignData [09:35:25]wFMCommunicate request_size=4 [09:35:25]MH_SAM_APDU [09:35:25]CAPDU: 80 0D 01 02 [09:35:25]Write to MH i2c: E2 08 00 B2 1C 80 0D 01 02 00 00 00 00 47 [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:25]Read from MH i2c: E2 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 03 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 03 00 B2 1C 00 90 00 42 [09:35:25]RAPDU: 90 00 [09:35:25]wFMCommunicate OK [09:35:25]wFMCommunicate request_size=255 [09:35:25]MH_SAM_APDU [09:35:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 35 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 62 02 00 35 04 06 00 0D [09:35:25]Write to MH i2c: E2 02 01 B3 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 35 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 62 02 00 35 04 06 00 0D 00 00 BD [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:25]Read from MH i2c: E2 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 03 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 03 00 B3 1C 00 90 00 43 [09:35:25]RAPDU: 90 00 [09:35:25]wFMCommunicate OK [09:35:25]wFMCommunicate request_size=10 [09:35:25]MH_SAM_APDU [09:35:25]CAPDU: 80 0D 02 02 05 E9 59 74 BA D9 [09:35:25]Write to MH i2c: E2 0D 00 B4 1C 80 0D 02 02 05 00 E9 59 74 BA D9 00 00 9D [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:25]Read from MH i2c: E2 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 03 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [09:35:25]RAPDU: 90 00 [09:35:25]wFMCommunicate OK [09:35:25]wFMCommunicate request_size=4 [09:35:25]MH_SAM_APDU [09:35:25]CAPDU: 80 0D 03 02 [09:35:25]Write to MH i2c: E2 08 00 B5 1C 80 0D 03 02 00 00 00 00 4C [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:25]Read from MH i2c: E2 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 0B 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 0B 00 B5 1C 00 36 79 F2 45 C1 59 E1 4E 90 00 7C [09:35:25]RAPDU: 36 79 F2 45 C1 59 E1 4E 90 00 [09:35:25]wFMCommunicate OK [09:35:25]SAM_PROTO_SignData done [09:35:25]FM_MakeSignedData done [09:35:25]CreateOFDProtocolMessage [09:35:25]wFMCommunicate request_size=4 [09:35:25]MH_SAM_APDU [09:35:25]CAPDU: 80 11 00 00 [09:35:25]Write to MH i2c: E2 08 00 B6 1C 80 11 00 00 00 00 00 00 4C [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:25]Read from MH i2c: E2 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 17 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 17 00 B6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [09:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:35:25]wFMCommunicate OK [09:35:25]CreateOFDProtocolMessage done [09:35:25]OFDSenderStorePacket 156174 [09:35:25]StoreOFDPacket docnum=156174 [09:35:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA 32 07 01 C3 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 35 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 62 02 00 35 04 06 00 0D E9 59 74 BA D9 36 79 F2 45 C1 59 E1 4E [09:35:25]CheckFolder [09:35:25]dirname=/storage/ofd_packets [09:35:25]CheckFolder done [09:35:25]ProducePacketName [09:35:25]name=ofd_packets/00156174 [09:35:25]NVStorageSaveData ofd_packets/00156174 [09:35:25]File name is /storage/ofd_packets/00156174 [09:35:25]Write 301 bytes [09:35:25]NVStorageSaveData done [09:35:25]OFDSenderStorePacket done [09:35:25]KKMCreateOFDPacket done [09:35:25]NVStorageSaveData kkm_last_timestamp [09:35:25]File name is /storage/kkm_last_timestamp [09:35:25]OFD Sender: Processing packet 156174 [packets to send 31, broken 30] [09:35:25]ProducePacketName [09:35:25]name=ofd_packets/00156174 [09:35:25]OFD Sender: To server: pG, [09:35:25]CommunicateWithHost lk.salyk.kg:30040 [09:35:25]ConnectInit lk.salyk.kg [09:35:25]Write 4 bytes [09:35:25]NVStorageSaveData done [09:35:25]ExternCall_PrintAddStr [09:35:25]wPrintStart [09:35:25]Write to MH i2c: 01 00 00 B7 1C D3 [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: 01 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: 01 07 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: 01 07 00 B7 1C 00 00 00 00 00 FF 0F E8 [09:35:25]RasterBufferAndPrint [09:35:25]line Счет N : (1)98989 [09:35:25]line ИНН: 02508201610067 [09:35:25]line Контрольно-Кассовый Чек [09:35:25]line ПРОДАЖА [09:35:25]line ТРК (МРК, ГНК) : 21 [09:35:25]line Товар: 2710124130 [09:35:25]line Аи-92-К-5 [09:35:25]line 15.850 * 66.90 [09:35:25]line = 1060.37 [09:35:25]line НДС 12% НСП 1% [09:35:25]line > о реализуемом товаре [09:35:25]line ОКРУГЛЕНИЕ: -0.37 [09:35:25]line ИТОГО: 1060.00 [09:35:25]line Внесено: 1060.00 [09:35:25]line СДАЧА: 0.00 [09:35:25]line НСП 1% : 9.38 [09:35:25]line НДС 12% : 112.61 [09:35:25]line Наличными: 1060.00 [09:35:25]line Безнал.: 0.00 [09:35:25]line Место: АЗС № 143 "Партнер Нефть" [09:35:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:35:25]line СНО: Общий режим [09:35:25]line Чек 75 26.10.2024 09:35 [09:35:25]line Смена: 536 ФФД: 1.0 [09:35:25]line ЗНМ: 0300000096 [09:35:25]line РНМ: 0000000000091693 [09:35:25]line Версия ККМ: 001 [09:35:25]line ФМ: 0000000000871792 [09:35:25]line ФД: 156174 [09:35:25]line ФПД: 15295879363289 [09:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093527&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156174&fm=15295879363289&tin=02508201610067®Number=0000000000091693&sum=106000 [09:35:26]Connected sock=11 [09:35:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA 32 07 01 C3 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 35 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF B7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 62 02 00 35 04 06 00 0D E9 59 74 BA D9 36 79 F2 45 C1 59 E1 4E [09:35:26]written 0, free lines is 4095 [09:35:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 ED BA 47 00 F8 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 31 37 39 32 10 04 04 00 0E 62 02 00 F4 03 04 00 52 5D 1C 67 B6 04 01 00 00 3F 8B 01 44 51 CF D5 83 [09:35:26]CommunicateWithHost err = 0 [09:35:26]CheckOFDResponse [09:35:26]1017 (14) - 77093643461234 [09:35:26]1041 (16) - 0000000000871792 [09:35:26]1040 (4) - 156174 [09:35:26]1012 (4) - 26.10.2024 03:09 [09:35:26]1206 (1) - 0 [09:35:26]OFD Sender: Remove packet 156174 [09:35:26]ProducePacketName [09:35:26]name=ofd_packets/00156174 [09:35:26]NVStorageDeleteData [09:35:26]Write to MH i2c: 01 00 00 E2 1C FE [09:35:26]Write i2c OK [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: 01 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: 01 07 00 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: 01 07 00 E2 1C 00 00 00 00 00 ED 0C FE [09:35:26]RasterBufferAndPrint [09:35:26]line [09:35:26]line [09:35:26]line [09:35:26]line [09:35:26]line [09:35:26]written 0, free lines is 3318 [09:35:26]process_action close_receipt done [09:35:26]requested_data is exist [09:35:26]produce_requested_data [09:35:26]requested_item fm.sn is exist - process it [09:35:26]wFMCommunicate request_size=4 [09:35:26]MH_SAM_APDU [09:35:26]CAPDU: 80 11 00 00 [09:35:26]Write to MH i2c: E2 08 00 E9 1C 80 11 00 00 00 00 00 00 7F [09:35:26]Write i2c OK [09:35:26]MH_I2C_Read... [09:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:26]Read from MH i2c: E2 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 17 00 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 17 00 E9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [09:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:35:26]wFMCommunicate OK [09:35:26]requested_item fd.num is exist - process it [09:35:26]SAM_PROTO_GetFieldsCounters [09:35:26]wFMCommunicate request_size=4 [09:35:26]MH_SAM_APDU [09:35:26]CAPDU: 80 13 00 00 [09:35:26]Write to MH i2c: E2 08 00 EA 1C 80 13 00 00 00 00 00 00 82 [09:35:26]Write i2c OK [09:35:26]MH_I2C_Read... [09:35:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:26]OFD Sender: No OFD packet to send [09:35:26]Read from MH i2c: E2 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 62 00 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 62 00 EA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0E 62 02 00 0E 04 04 00 18 02 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 15 [09:35: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0E 62 02 00 0E 04 04 00 18 02 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 [09:35:26]wFMCommunicate OK [09:35:26]SAM_PROTO_GetFieldsCounters done [09:35:26]requested_item shift.num is exist - process it [09:35:26]requested_item shift.opened is exist - process it [09:35:26]req_shift_opened [09:35:26]FM_GetShiftState [09:35:26]SAM_PROTO_GetShiftState [09:35:26]wFMCommunicate request_size=4 [09:35:26]MH_SAM_APDU [09:35:26]CAPDU: 80 13 01 00 [09:35:26]Write to MH i2c: E2 08 00 EB 1C 80 13 01 00 00 00 00 00 84 [09:35:26]Write i2c OK [09:35:26]MH_I2C_Read... [09:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:26]Read from MH i2c: E2 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 0E 00 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 0E 00 EB 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B9 [09:35:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:35:26]wFMCommunicate OK [09:35:26]SAM_PROTO_GetShiftState done [09:35:26]FM_GetShiftState done [09:35:26]req_shift_opened done [09:35:26]requested_item shift.open_date is exist - process it [09:35:26]req_shift_open_date [09:35:26]req_shift_open_date done [09:35:26]produce_requested_data done [09:35:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156174,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:35:26]process_action_free close_receipt [09:35:26]json_value_free [09:35:26]json_value_free done [09:35:26]process_json_proto returns [09:35:26]Send response to host [09:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156174,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:35:26]free response buf [09:35:26]execute_script done [09:35:26]execute_script returns [09:35:26]free content buf [09:35:26]Sock 7.Close socket [09:35:26]Sock 7.Thread stoped [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]accept exits with 9 [09:36:16]New connection [09:36:16]New thread 3066469732 created [09:36:16]Thread 3066613092 joined [09:36:16]Waiting for new connection... [09:36:16] Sock 9.Parse request [09:36:16]Sock 9.Check first char [09:36:16]Sock 9.First char is OK [09:36:16]request: POST /json_proto HTTP/1.0 [09:36:16]Method: POST [09:36:16]URL: /json_proto [09:36:16]Method is POST - this is cgi request [09:36:16]url: /json_proto [09:36:16]query_string will be loaded in cgi processing [09:36:16]execute_cgi json_proto POST (null) [09:36:16]execute_cgi path=json_proto method=POST [09:36:16]POST find Content-Length [09:36:16]Host: 172.17.63.3:8080 [09:36:16]Content-Length: 673 [09:36:16]Content-Type: application/json [09:36:16] [09:36:16]POST finish read [09:36:16]Found Content-Length = 673 [09:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:16]execute_script... [09:36: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)98990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:16]POST & json_proto [09:36:16]process_json_proto [09:36:16]json parsed OK: [09:36:16]protocol is kg_v1.0 [09:36:16]action value=close_receipt [09:36:16]process_action close_receipt [09:36:16]cmd_close_receipt [09:36:16]MH_GetDate [09:36:16]Write to MH i2c: F0 00 00 EC 1C F7 [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: F0 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: F0 09 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: F0 09 00 EC 1C 00 14 B8 1C 67 50 D1 6C 64 40 [09:36:16]GetLastDocTimeStamp 1729935327 [09:36:16]current date 1729935380 [09:36:16]FM_GetShiftState [09:36:16]SAM_PROTO_GetShiftState [09:36:16]wFMCommunicate request_size=4 [09:36:16]MH_SAM_APDU [09:36:16]CAPDU: 80 13 01 00 [09:36:16]Write to MH i2c: E2 08 00 ED 1C 80 13 01 00 00 00 00 00 86 [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:16]Read from MH i2c: E2 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 0E 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 0E 00 ED 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [09:36:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:36:16]wFMCommunicate OK [09:36:16]SAM_PROTO_GetShiftState done [09:36:16]FM_GetShiftState done [09:36:16]opened in 1729902702 [09:36:16]opened+sec_in_day 1729989102 [09:36:16]quantity*price = 70027 [09:36:16]sum+1 = 70029 [09:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 76 26.10.2024 09:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156175 ФПД: 232729283344405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093620&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156175&fm=232729283344405&tin=02508201610067®Number=0000000000091693&sum=70000 [09:36:17]StoreToDocumentArchive [09:36:17]shift 536 fd 156175 [09:36:17]save to /storage/0536/doc_00156175 [09:36:17]save last doc name /storage/0536/doc_00156175 to /storage/kkm_last_doc_name [09:36:17]save OK [09:36:17]Clear old archive folders... [09:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:36:17]tlvbuf is 00D6AF00 [09:36:17]SAM_PROTO_ClearQueue [09:36:17]wFMCommunicate request_size=4 [09:36:17]MH_SAM_APDU [09:36:17]CAPDU: 80 09 00 00 [09:36:17]Write to MH i2c: E2 08 00 FA 1C 80 09 00 00 00 00 00 00 88 [09:36:17]Write i2c OK [09:36:17]MH_I2C_Read... [09:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:17]Read from MH i2c: E2 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: E2 03 00 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: E2 03 00 FA 1C 00 90 00 8A [09:36:17]RAPDU: 90 00 [09:36:17]wFMCommunicate OK [09:36:17]SAM_PROTO_ClearQueue done [09:36:17]KKMCreateOFDPacket [09:36:17]OFDProtocolAddRootSTLVToBuf [09:36:17]FM_MakeSignedData [09:36:17]FM_MakeSignedData [09:36:17]SAM_PROTO_SignData [09:36:17]wFMCommunicate request_size=4 [09:36:17]MH_SAM_APDU [09:36:17]CAPDU: 80 0D 01 02 [09:36:17]Write to MH i2c: E2 08 00 FB 1C 80 0D 01 02 00 00 00 00 90 [09:36:17]Write i2c OK [09:36:17]MH_I2C_Read... [09:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:17]Read from MH i2c: E2 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: E2 03 00 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: E2 03 00 FB 1C 00 90 00 8B [09:36:17]RAPDU: 90 00 [09:36:17]wFMCommunicate OK [09:36:17]wFMCommunicate request_size=255 [09:36:17]MH_SAM_APDU [09:36:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 4C 00 00 00 F4 03 04 00 14 B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 62 02 00 35 04 06 00 D3 AA 82 43 [09:36:17]Write to MH i2c: E2 02 01 FC 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 4C 00 00 00 F4 03 04 00 14 B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 62 02 00 35 04 06 00 D3 AA 82 43 00 00 80 [09:36:17]Write i2c OK [09:36:17]MH_I2C_Read... [09:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:18]Read from MH i2c: E2 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 03 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 03 00 FC 1C 00 90 00 8C [09:36:18]RAPDU: 90 00 [09:36:18]wFMCommunicate OK [09:36:18]wFMCommunicate request_size=7 [09:36:18]MH_SAM_APDU [09:36:18]CAPDU: 80 0D 02 02 02 38 15 [09:36:18]Write to MH i2c: E2 0A 00 FD 1C 80 0D 02 02 02 00 38 15 00 00 E4 [09:36:18]Write i2c OK [09:36:18]MH_I2C_Read... [09:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:18]Read from MH i2c: E2 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 03 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 03 00 FD 1C 00 90 00 8D [09:36:18]RAPDU: 90 00 [09:36:18]wFMCommunicate OK [09:36:18]wFMCommunicate request_size=4 [09:36:18]MH_SAM_APDU [09:36:18]CAPDU: 80 0D 03 02 [09:36:18]Write to MH i2c: E2 08 00 FE 1C 80 0D 03 02 00 00 00 00 95 [09:36:18]Write i2c OK [09:36:18]MH_I2C_Read... [09:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:18]Read from MH i2c: E2 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 0B 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 0B 00 FE 1C 00 EE D8 63 92 13 C1 26 B2 90 00 FD [09:36:18]RAPDU: EE D8 63 92 13 C1 26 B2 90 00 [09:36:18]wFMCommunicate OK [09:36:18]SAM_PROTO_SignData done [09:36:18]FM_MakeSignedData done [09:36:18]CreateOFDProtocolMessage [09:36:18]wFMCommunicate request_size=4 [09:36:18]MH_SAM_APDU [09:36:18]CAPDU: 80 11 00 00 [09:36:18]Write to MH i2c: E2 08 00 FF 1C 80 11 00 00 00 00 00 00 95 [09:36:18]Write i2c OK [09:36:18]MH_I2C_Read... [09:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:18]Read from MH i2c: E2 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 17 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 17 00 FF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [09:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:36:18]wFMCommunicate OK [09:36:18]CreateOFDProtocolMessage done [09:36:18]OFDSenderStorePacket 156175 [09:36:18]StoreOFDPacket docnum=156175 [09:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 68 78 04 01 C8 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 4C 00 00 00 F4 03 04 00 14 B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 62 02 00 35 04 06 00 D3 AA 82 43 38 15 EE D8 63 92 13 C1 26 B2 [09:36:18]CheckFolder [09:36:18]dirname=/storage/ofd_packets [09:36:18]CheckFolder done [09:36:18]ProducePacketName [09:36:18]name=ofd_packets/00156175 [09:36:18]NVStorageSaveData ofd_packets/00156175 [09:36:18]File name is /storage/ofd_packets/00156175 [09:36:18]Write 298 bytes [09:36:18]NVStorageSaveData done [09:36:18]OFDSenderStorePacket done [09:36:18]KKMCreateOFDPacket done [09:36:18]NVStorageSaveData kkm_last_timestamp [09:36:18]File name is /storage/kkm_last_timestamp [09:36:18]Write 4 bytes [09:36:18]NVStorageSaveData done [09:36:18]ExternCall_PrintAddStr [09:36:18]wPrintStart [09:36:18]Write to MH i2c: 01 00 00 00 1D 1D [09:36:18]Write i2c OK [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: 01 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: 01 07 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: 01 07 00 00 1D 00 00 00 00 00 FF 0F 32 [09:36:18]RasterBufferAndPrint [09:36:18]line Счет N : (1)98990 [09:36:18]line ИНН: 02508201610067 [09:36:18]line Контрольно-Кассовый Чек [09:36:18]line ПРОДАЖА [09:36:18]line ТРК (МРК, ГНК) : 32 [09:36:18]line Товар: 2710194210 [09:36:18]line ДТ-К-5 [09:36:18]line 9.190 * 76.20 [09:36:18]line = 700.28 [09:36:18]line НДС 12% НСП 1% [09:36:18]line > о реализуемом товаре [09:36:18]line ОКРУГЛЕНИЕ: -0.28 [09:36:18]line ИТОГО: 700.00 [09:36:18]line Внесено: 700.00 [09:36:18]line СДАЧА: 0.00 [09:36:18]line НСП 1% : 6.20 [09:36:18]line НДС 12% : 74.37 [09:36:18]line Наличными: 700.00 [09:36:18]line Безнал.: 0.00 [09:36:18]line Место: АЗС № 143 "Партнер Нефть" [09:36:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:36:18]line СНО: Общий режим [09:36:18]line Чек 76 26.10.2024 09:36 [09:36:18]line Смена: 536 ФФД: 1.0 [09:36:18]line ЗНМ: 0300000096 [09:36:18]line РНМ: 0000000000091693 [09:36:18]line Версия ККМ: 001 [09:36:18]line ФМ: 0000000000871792 [09:36:18]line ФД: 156175 [09:36:18]line ФПД: 232729283344405 [09:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093620&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156175&fm=232729283344405&tin=02508201610067®Number=0000000000091693&sum=70000 [09:36:18]OFD Sender: Processing packet 156175 [packets to send 31, broken 30] [09:36:18]ProducePacketName [09:36:18]name=ofd_packets/00156175 [09:36:18]OFD Sender: To server: pG, [09:36:18]CommunicateWithHost lk.salyk.kg:30040 [09:36:18]ConnectInit lk.salyk.kg [09:36:18]written 0, free lines is 4095 [09:36:18]Connected sock=5 [09:36:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 68 78 04 01 C8 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 4C 00 00 00 F4 03 04 00 14 B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 62 02 00 35 04 06 00 D3 AA 82 43 38 15 EE D8 63 92 13 C1 26 B2 [09:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E2 0E 47 00 ED 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 31 37 39 32 10 04 04 00 0F 62 02 00 F4 03 04 00 87 5D 1C 67 B6 04 01 00 00 0E 58 F2 40 F7 A5 17 07 [09:36:18]CommunicateWithHost err = 0 [09:36:18]CheckOFDResponse [09:36:18]1017 (14) - 77093643461234 [09:36:18]1041 (16) - 0000000000871792 [09:36:18]1040 (4) - 156175 [09:36:18]1012 (4) - 26.10.2024 03:09 [09:36:18]1206 (1) - 0 [09:36:18]OFD Sender: Remove packet 156175 [09:36:18]ProducePacketName [09:36:18]name=ofd_packets/00156175 [09:36:18]NVStorageDeleteData [09:36:19]Write to MH i2c: 01 00 00 2B 1D 48 [09:36:19]Write i2c OK [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: 01 [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: 01 07 00 [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: 01 07 00 2B 1D 00 00 00 00 00 EE 0C 49 [09:36:19]RasterBufferAndPrint [09:36:19]line [09:36:19]line [09:36:19]line [09:36:19]line [09:36:19]line [09:36:19]written 0, free lines is 3316 [09:36:19]process_action close_receipt done [09:36:19]requested_data is exist [09:36:19]produce_requested_data [09:36:19]requested_item fm.sn is exist - process it [09:36:19]wFMCommunicate request_size=4 [09:36:19]MH_SAM_APDU [09:36:19]CAPDU: 80 11 00 00 [09:36:19]Write to MH i2c: E2 08 00 32 1D 80 11 00 00 00 00 00 00 C9 [09:36:19]Write i2c OK [09:36:19]MH_I2C_Read... [09:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:19]Read from MH i2c: E2 [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: E2 17 00 [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: E2 17 00 32 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [09:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:36:19]wFMCommunicate OK [09:36:19]requested_item fd.num is exist - process it [09:36:19]SAM_PROTO_GetFieldsCounters [09:36:19]wFMCommunicate request_size=4 [09:36:19]MH_SAM_APDU [09:36:19]CAPDU: 80 13 00 00 [09:36:19]Write to MH i2c: E2 08 00 33 1D 80 13 00 00 00 00 00 00 CC [09:36:19]Write i2c OK [09:36:19]MH_I2C_Read... [09:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:19]Read from MH i2c: E2 [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: E2 62 00 [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: E2 62 00 33 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0F 62 02 00 0E 04 04 00 18 02 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 63 [09:36:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0F 62 02 00 0E 04 04 00 18 02 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 [09:36:19]wFMCommunicate OK [09:36:19]SAM_PROTO_GetFieldsCounters done [09:36:19]requested_item shift.num is exist - process it [09:36:19]requested_item shift.opened is exist - process it [09:36:19]req_shift_opened [09:36:19]FM_GetShiftState [09:36:19]SAM_PROTO_GetShiftState [09:36:19]wFMCommunicate request_size=4 [09:36:19]MH_SAM_APDU [09:36:19]CAPDU: 80 13 01 00 [09:36:19]Write to MH i2c: E2 08 00 34 1D 80 13 01 00 00 00 00 00 CE [09:36:19]Write i2c OK [09:36:19]MH_I2C_Read... [09:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:19]Read from MH i2c: E2 [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: E2 0E 00 [09:36:19]MH_I2C_Read... [09:36:19]Read from MH i2c: E2 0E 00 34 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 03 [09:36:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:36:19]wFMCommunicate OK [09:36:19]SAM_PROTO_GetShiftState done [09:36:19]FM_GetShiftState done [09:36:19]req_shift_opened done [09:36:19]requested_item shift.open_date is exist - process it [09:36:19]req_shift_open_date [09:36:19]req_shift_open_date done [09:36:19]produce_requested_data done [09:36:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156175,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:36:19]process_action_free close_receipt [09:36:19]json_value_free [09:36:19]json_value_free done [09:36:19]process_json_proto returns [09:36:19]Send response to host [09:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156175,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:36:19]free response buf [09:36:19]execute_script done [09:36:19]execute_script returns [09:36:19]free content buf [09:36:19]Sock 9.Close socket [09:36:19]Sock 9.Thread stoped [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37: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:00]accept exits with 7 [09:38:00]New connection [09:38:00]New thread 3066613092 created [09:38:00]Thread 3066469732 joined [09:38:00]Waiting for new connection... [09:38:00] Sock 7.Parse request [09:38:00]Sock 7.Check first char [09:38:00]Sock 7.First char is OK [09:38:00]request: POST /json_proto HTTP/1.0 [09:38:00]Method: POST [09:38:00]URL: /json_proto [09:38:00]Method is POST - this is cgi request [09:38:00]url: /json_proto [09:38:00]query_string will be loaded in cgi processing [09:38:00]execute_cgi json_proto POST (null) [09:38:00]execute_cgi path=json_proto method=POST [09:38:00]POST find Content-Length [09:38:00]Host: 172.17.63.3:8080 [09:38:00]Content-Length: 678 [09:38:00]Content-Type: application/json [09:38:00] [09:38:00]POST finish read [09:38:00]Found Content-Length = 678 [09:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:00]execute_script... [09:38:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:00]POST & json_proto [09:38:00]process_json_proto [09:38:00]json parsed OK: [09:38:00]protocol is kg_v1.0 [09:38:00]action value=close_receipt [09:38:00]process_action close_receipt [09:38:00]cmd_close_receipt [09:38:00]MH_GetDate [09:38:00]Write to MH i2c: F0 00 00 35 1D 41 [09:38:00]Write i2c OK [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: F0 [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: F0 09 00 [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: F0 09 00 35 1D 00 7C B8 1C 67 50 D1 6C 64 F2 [09:38:00]GetLastDocTimeStamp 1729935380 [09:38:00]current date 1729935484 [09:38:00]FM_GetShiftState [09:38:00]SAM_PROTO_GetShiftState [09:38:00]wFMCommunicate request_size=4 [09:38:00]MH_SAM_APDU [09:38:00]CAPDU: 80 13 01 00 [09:38:00]Write to MH i2c: E2 08 00 36 1D 80 13 01 00 00 00 00 00 D0 [09:38:00]Write i2c OK [09:38:00]MH_I2C_Read... [09:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:00]Read from MH i2c: E2 [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: E2 0E 00 [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: E2 0E 00 36 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 05 [09:38:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:38:00]wFMCommunicate OK [09:38:00]SAM_PROTO_GetShiftState done [09:38:00]FM_GetShiftState done [09:38:00]opened in 1729902702 [09:38:00]opened+sec_in_day 1729989102 [09:38:00]quantity*price = 200025 [09:38:00]sum+1 = 200026 [09:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 77 26.10.2024 09:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156176 ФПД: 6399833676249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093804&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156176&fm=6399833676249&tin=02508201610067®Number=0000000000091693&sum=200000 [09:38:01]StoreToDocumentArchive [09:38:01]shift 536 fd 156176 [09:38:01]save to /storage/0536/doc_00156176 [09:38:01]save last doc name /storage/0536/doc_00156176 to /storage/kkm_last_doc_name [09:38:01]save OK [09:38:01]Clear old archive folders... [09:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:38:01]tlvbuf is 00D8AB20 [09:38:01]SAM_PROTO_ClearQueue [09:38:01]wFMCommunicate request_size=4 [09:38:01]MH_SAM_APDU [09:38:01]CAPDU: 80 09 00 00 [09:38:01]Write to MH i2c: E2 08 00 43 1D 80 09 00 00 00 00 00 00 D2 [09:38:01]Write i2c OK [09:38:01]MH_I2C_Read... [09:38:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:01]Read from MH i2c: E2 [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: E2 03 00 [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: E2 03 00 43 1D 00 90 00 D4 [09:38:01]RAPDU: 90 00 [09:38:01]wFMCommunicate OK [09:38:01]SAM_PROTO_ClearQueue done [09:38:01]KKMCreateOFDPacket [09:38:01]OFDProtocolAddRootSTLVToBuf [09:38:01]FM_MakeSignedData [09:38:01]FM_MakeSignedData [09:38:01]SAM_PROTO_SignData [09:38:01]wFMCommunicate request_size=4 [09:38:01]MH_SAM_APDU [09:38:01]CAPDU: 80 0D 01 02 [09:38:01]Write to MH i2c: E2 08 00 44 1D 80 0D 01 02 00 00 00 00 DA [09:38:01]Write i2c OK [09:38:01]MH_I2C_Read... [09:38:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:01]Read from MH i2c: E2 [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: E2 03 00 [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: E2 03 00 44 1D 00 90 00 D5 [09:38:01]RAPDU: 90 00 [09:38:01]wFMCommunicate OK [09:38:01]wFMCommunicate request_size=255 [09:38:01]MH_SAM_APDU [09:38:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7C B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 62 02 00 35 04 06 00 05 D2 13 D0 [09:38:01]Write to MH i2c: E2 02 01 45 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7C B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 62 02 00 35 04 06 00 05 D2 13 D0 00 00 9E [09:38:01]Write i2c OK [09:38:01]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 45 1D 00 90 00 D6 [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]wFMCommunicate request_size=7 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 02 02 02 19 D9 [09:38:02]Write to MH i2c: E2 0A 00 46 1D 80 0D 02 02 02 00 19 D9 00 00 D3 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 46 1D 00 90 00 D7 [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 03 02 [09:38:02]Write to MH i2c: E2 08 00 47 1D 80 0D 03 02 00 00 00 00 DF [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 0B 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 0B 00 47 1D 00 8B 3E 71 BA 5D A9 97 C8 90 00 39 [09:38:02]RAPDU: 8B 3E 71 BA 5D A9 97 C8 90 00 [09:38:02]wFMCommunicate OK [09:38:02]SAM_PROTO_SignData done [09:38:02]FM_MakeSignedData done [09:38:02]CreateOFDProtocolMessage [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 11 00 00 [09:38:02]Write to MH i2c: E2 08 00 48 1D 80 11 00 00 00 00 00 00 DF [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 17 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 17 00 48 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [09:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:38:02]wFMCommunicate OK [09:38:02]CreateOFDProtocolMessage done [09:38:02]OFDSenderStorePacket 156176 [09:38:02]StoreOFDPacket docnum=156176 [09:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 18 CD 04 01 72 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7C B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 62 02 00 35 04 06 00 05 D2 13 D0 19 D9 8B 3E 71 BA 5D A9 97 C8 [09:38:02]CheckFolder [09:38:02]dirname=/storage/ofd_packets [09:38:02]CheckFolder done [09:38:02]ProducePacketName [09:38:02]name=ofd_packets/00156176 [09:38:02]NVStorageSaveData ofd_packets/00156176 [09:38:02]File name is /storage/ofd_packets/00156176 [09:38:02]Write 298 bytes [09:38:02]NVStorageSaveData done [09:38:02]OFDSenderStorePacket done [09:38:02]KKMCreateOFDPacket done [09:38:02]NVStorageSaveData kkm_last_timestamp [09:38:02]File name is /storage/kkm_last_timestamp [09:38:02]Write 4 bytes [09:38:02]NVStorageSaveData done [09:38:02]ExternCall_PrintAddStr [09:38:02]wPrintStart [09:38:02]Write to MH i2c: 01 00 00 49 1D 66 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: 01 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: 01 07 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: 01 07 00 49 1D 00 00 00 00 00 FF 0F 7B [09:38:02]RasterBufferAndPrint [09:38:02]line Счет N : (1)98991 [09:38:02]line ИНН: 02508201610067 [09:38:02]line Контрольно-Кассовый Чек [09:38:02]line ПРОДАЖА [09:38:02]line ТРК (МРК, ГНК) : 32 [09:38:02]line Товар: 2710194210 [09:38:02]line ДТ-К-5 [09:38:02]line 26.250 * 76.20 [09:38:02]line = 2000.25 [09:38:02]line НДС 12% НСП 1% [09:38:02]line > о реализуемом товаре [09:38:02]line ОКРУГЛЕНИЕ: -0.25 [09:38:02]line ИТОГО: 2000.00 [09:38:02]line Внесено: 2000.00 [09:38:02]line СДАЧА: 0.00 [09:38:02]line НСП 1% : 17.70 [09:38:02]line НДС 12% : 212.42 [09:38:02]line Наличными: 2000.00 [09:38:02]line Безнал.: 0.00 [09:38:02]line Место: АЗС № 143 "Партнер Нефть" [09:38:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:38:02]line СНО: Общий режим [09:38:02]line Чек 77 26.10.2024 09:38 [09:38:02]line Смена: 536 ФФД: 1.0 [09:38:02]line ЗНМ: 0300000096 [09:38:02]line РНМ: 0000000000091693 [09:38:02]line Версия ККМ: 001 [09:38:02]line ФМ: 0000000000871792 [09:38:02]line ФД: 156176 [09:38:02]line ФПД: 6399833676249 [09:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093804&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156176&fm=6399833676249&tin=02508201610067®Number=0000000000091693&sum=200000 [09:38:02]OFD Sender: Processing packet 156176 [packets to send 31, broken 30] [09:38:02]ProducePacketName [09:38:02]name=ofd_packets/00156176 [09:38:02]OFD Sender: To server: pG, [09:38:02]CommunicateWithHost lk.salyk.kg:30040 [09:38:02]ConnectInit lk.salyk.kg [09:38:02]written 0, free lines is 4095 [09:38:02]Connected sock=10 [09:38:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 18 CD 04 01 72 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7C B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 62 02 00 35 04 06 00 05 D2 13 D0 19 D9 8B 3E 71 BA 5D A9 97 C8 [09:38:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AE E8 47 00 1D D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 62 02 00 F4 03 04 00 EF 5D 1C 67 B6 04 01 00 00 E6 88 D2 00 81 E9 A4 B2 [09:38:02]CommunicateWithHost err = 0 [09:38:02]CheckOFDResponse [09:38:02]1017 (14) - 77093643461234 [09:38:02]1041 (16) - 0000000000871792 [09:38:02]1040 (4) - 156176 [09:38:02]1012 (4) - 26.10.2024 03:11 [09:38:02]1206 (1) - 0 [09:38:02]OFD Sender: Remove packet 156176 [09:38:02]ProducePacketName [09:38:02]name=ofd_packets/00156176 [09:38:02]NVStorageDeleteData [09:38:03]Write to MH i2c: 01 00 00 74 1D 91 [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 07 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 07 00 74 1D 00 00 00 00 00 F4 0C 98 [09:38:03]RasterBufferAndPrint [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]written 0, free lines is 3322 [09:38:03]process_action close_receipt done [09:38:03]requested_data is exist [09:38:03]produce_requested_data [09:38:03]requested_item fm.sn is exist - process it [09:38:03]wFMCommunicate request_size=4 [09:38:03]MH_SAM_APDU [09:38:03]CAPDU: 80 11 00 00 [09:38:03]Write to MH i2c: E2 08 00 7B 1D 80 11 00 00 00 00 00 00 12 [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:03]Read from MH i2c: E2 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: E2 17 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: E2 17 00 7B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 67 [09:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:38:03]wFMCommunicate OK [09:38:03]requested_item fd.num is exist - process it [09:38:03]SAM_PROTO_GetFieldsCounters [09:38:03]wFMCommunicate request_size=4 [09:38:03]MH_SAM_APDU [09:38:03]CAPDU: 80 13 00 00 [09:38:03]Write to MH i2c: E2 08 00 7C 1D 80 13 00 00 00 00 00 00 15 [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:03]Read from MH i2c: E2 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: E2 62 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: E2 62 00 7C 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 10 62 02 00 0E 04 04 00 18 02 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 B0 [09:38: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 10 62 02 00 0E 04 04 00 18 02 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 [09:38:03]wFMCommunicate OK [09:38:03]SAM_PROTO_GetFieldsCounters done [09:38:03]requested_item shift.num is exist - process it [09:38:03]requested_item shift.opened is exist - process it [09:38:03]req_shift_opened [09:38:03]FM_GetShiftState [09:38:03]SAM_PROTO_GetShiftState [09:38:03]wFMCommunicate request_size=4 [09:38:03]MH_SAM_APDU [09:38:03]CAPDU: 80 13 01 00 [09:38:03]Write to MH i2c: E2 08 00 7D 1D 80 13 01 00 00 00 00 00 17 [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: E2 [09:38:03]MH_I2C_Read... [09:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:03]Read from MH i2c: E2 0E 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: E2 0E 00 7D 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4C [09:38:03]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:38:03]wFMCommunicate OK [09:38:03]SAM_PROTO_GetShiftState done [09:38:03]FM_GetShiftState done [09:38:03]req_shift_opened done [09:38:03]requested_item shift.open_date is exist - process it [09:38:03]req_shift_open_date [09:38:03]req_shift_open_date done [09:38:03]produce_requested_data done [09:38:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156176,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:38:03]process_action_free close_receipt [09:38:03]json_value_free [09:38:03]json_value_free done [09:38:03]process_json_proto returns [09:38:03]Send response to host [09:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156176,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:38:03]free response buf [09:38:03]execute_script done [09:38:03]execute_script returns [09:38:03]free content buf [09:38:03]Sock 7.Close socket [09:38:03]Sock 7.Thread stoped [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:09]accept exits with 9 [09:40:09]New connection [09:40:09]New thread 3066469732 created [09:40:09]Thread 3066613092 joined [09:40:09]Waiting for new connection... [09:40:09] Sock 9.Parse request [09:40:09]Sock 9.Check first char [09:40:09]Sock 9.First char is OK [09:40:09]request: POST /json_proto HTTP/1.0 [09:40:09]Method: POST [09:40:09]URL: /json_proto [09:40:09]Method is POST - this is cgi request [09:40:09]url: /json_proto [09:40:09]query_string will be loaded in cgi processing [09:40:09]execute_cgi json_proto POST (null) [09:40:09]execute_cgi path=json_proto method=POST [09:40:09]POST find Content-Length [09:40:09]Host: 172.17.63.3:8080 [09:40:09]Content-Length: 678 [09:40:09]Content-Type: application/json [09:40:09] [09:40:09]POST finish read [09:40:09]Found Content-Length = 678 [09:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:09]execute_script... [09:40:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:09]POST & json_proto [09:40:09]process_json_proto [09:40:09]json parsed OK: [09:40:09]protocol is kg_v1.0 [09:40:09]action value=close_receipt [09:40:09]process_action close_receipt [09:40:09]cmd_close_receipt [09:40:09]MH_GetDate [09:40:09]Write to MH i2c: F0 00 00 7E 1D 8A [09:40:09]Write i2c OK [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 09 00 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 09 00 7E 1D 00 FC B8 1C 67 50 D1 6C 64 BB [09:40:09]GetLastDocTimeStamp 1729935484 [09:40:09]current date 1729935612 [09:40:09]FM_GetShiftState [09:40:09]SAM_PROTO_GetShiftState [09:40:09]wFMCommunicate request_size=4 [09:40:09]MH_SAM_APDU [09:40:09]CAPDU: 80 13 01 00 [09:40:09]Write to MH i2c: E2 08 00 7F 1D 80 13 01 00 00 00 00 00 19 [09:40:09]Write i2c OK [09:40:09]MH_I2C_Read... [09:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:09]Read from MH i2c: E2 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: E2 0E 00 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: E2 0E 00 7F 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4E [09:40:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:40:09]wFMCommunicate OK [09:40:09]SAM_PROTO_GetShiftState done [09:40:09]FM_GetShiftState done [09:40:09]opened in 1729902702 [09:40:09]opened+sec_in_day 1729989102 [09:40:09]quantity*price = 150037 [09:40:09]sum+1 = 150039 [09:40:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 78 26.10.2024 09:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156177 ФПД: 48416655931838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094012&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156177&fm=48416655931838&tin=02508201610067®Number=0000000000091693&sum=150000 [09:40:10]StoreToDocumentArchive [09:40:10]shift 536 fd 156177 [09:40:10]save to /storage/0536/doc_00156177 [09:40:10]save last doc name /storage/0536/doc_00156177 to /storage/kkm_last_doc_name [09:40:10]save OK [09:40:10]Clear old archive folders... [09:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:10]tlvbuf is 00DC0ED0 [09:40:10]SAM_PROTO_ClearQueue [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 09 00 00 [09:40:10]Write to MH i2c: E2 08 00 8C 1D 80 09 00 00 00 00 00 00 1B [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 8C 1D 00 90 00 1D [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_ClearQueue done [09:40:10]KKMCreateOFDPacket [09:40:10]OFDProtocolAddRootSTLVToBuf [09:40:10]FM_MakeSignedData [09:40:10]FM_MakeSignedData [09:40:10]SAM_PROTO_SignData [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 01 02 [09:40:10]Write to MH i2c: E2 08 00 8D 1D 80 0D 01 02 00 00 00 00 23 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 8D 1D 00 90 00 1E [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=255 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FC B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 62 02 00 35 04 06 00 2C 08 E1 93 [09:40:10]Write to MH i2c: E2 02 01 8E 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FC B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 62 02 00 35 04 06 00 2C 08 E1 93 00 00 E0 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 8E 1D 00 90 00 1F [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=7 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 02 02 02 F9 BE [09:40:10]Write to MH i2c: E2 0A 00 8F 1D 80 0D 02 02 02 00 F9 BE 00 00 E1 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 8F 1D 00 90 00 20 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 03 02 [09:40:10]Write to MH i2c: E2 08 00 90 1D 80 0D 03 02 00 00 00 00 28 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0B 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0B 00 90 1D 00 8F 04 1E CB 31 F8 E2 4B 90 00 FB [09:40:10]RAPDU: 8F 04 1E CB 31 F8 E2 4B 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_SignData done [09:40:10]FM_MakeSignedData done [09:40:10]CreateOFDProtocolMessage [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 11 00 00 [09:40:10]Write to MH i2c: E2 08 00 91 1D 80 11 00 00 00 00 00 00 28 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 91 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7D [09:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:40:10]wFMCommunicate OK [09:40:10]CreateOFDProtocolMessage done [09:40:10]OFDSenderStorePacket 156177 [09:40:10]StoreOFDPacket docnum=156177 [09:40:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2F 39 04 01 6B 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FC B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 62 02 00 35 04 06 00 2C 08 E1 93 F9 BE 8F 04 1E CB 31 F8 E2 4B [09:40:10]CheckFolder [09:40:10]dirname=/storage/ofd_packets [09:40:10]CheckFolder done [09:40:10]ProducePacketName [09:40:10]name=ofd_packets/00156177 [09:40:10]NVStorageSaveData ofd_packets/00156177 [09:40:10]File name is /storage/ofd_packets/00156177 [09:40:10]Write 298 bytes [09:40:10]NVStorageSaveData done [09:40:10]OFDSenderStorePacket done [09:40:10]KKMCreateOFDPacket done [09:40:10]NVStorageSaveData kkm_last_timestamp [09:40:10]File name is /storage/kkm_last_timestamp [09:40:10]Write 4 bytes [09:40:10]NVStorageSaveData done [09:40:10]ExternCall_PrintAddStr [09:40:10]wPrintStart [09:40:10]Write to MH i2c: 01 00 00 92 1D AF [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 07 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 07 00 92 1D 00 00 00 00 00 FF 0F C4 [09:40:10]RasterBufferAndPrint [09:40:10]line Счет N : (1)98992 [09:40:10]line ИНН: 02508201610067 [09:40:10]line Контрольно-Кассовый Чек [09:40:10]line ПРОДАЖА [09:40:10]line ТРК (МРК, ГНК) : 32 [09:40:10]line Товар: 2710194210 [09:40:10]line ДТ-К-5 [09:40:10]line 19.690 * 76.20 [09:40:10]line = 1500.38 [09:40:10]line НДС 12% НСП 1% [09:40:10]line > о реализуемом товаре [09:40:10]line ОКРУГЛЕНИЕ: -0.38 [09:40:10]line ИТОГО: 1500.00 [09:40:10]line Внесено: 1500.00 [09:40:10]line СДАЧА: 0.00 [09:40:10]line НСП 1% : 13.28 [09:40:10]line НДС 12% : 159.33 [09:40:10]line Наличными: 1500.00 [09:40:10]line Безнал.: 0.00 [09:40:10]line Место: АЗС № 143 "Партнер Нефть" [09:40:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:40:10]line СНО: Общий режим [09:40:10]line Чек 78 26.10.2024 09:40 [09:40:10]line Смена: 536 ФФД: 1.0 [09:40:10]line ЗНМ: 0300000096 [09:40:10]line РНМ: 0000000000091693 [09:40:10]line Версия ККМ: 001 [09:40:10]line ФМ: 0000000000871792 [09:40:10]line ФД: 156177 [09:40:10]line ФПД: 48416655931838 [09:40:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094012&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156177&fm=48416655931838&tin=02508201610067®Number=0000000000091693&sum=150000 [09:40:10]written 0, free lines is 4095 [09:40:10]OFD Sender: Processing packet 156177 [packets to send 31, broken 30] [09:40:10]ProducePacketName [09:40:10]name=ofd_packets/00156177 [09:40:10]OFD Sender: To server: pG, [09:40:10]CommunicateWithHost lk.salyk.kg:30040 [09:40:10]ConnectInit lk.salyk.kg [09:40:10]Connected sock=10 [09:40:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2F 39 04 01 6B 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FC B8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 62 02 00 35 04 06 00 2C 08 E1 93 F9 BE 8F 04 1E CB 31 F8 E2 4B [09:40:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 85 7B 47 00 DD 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 31 37 39 32 10 04 04 00 11 62 02 00 F4 03 04 00 6F 5E 1C 67 B6 04 01 00 00 7B 1A 86 04 FF EB 85 56 [09:40:11]CommunicateWithHost err = 0 [09:40:11]CheckOFDResponse [09:40:11]1017 (14) - 77093643461234 [09:40:11]1041 (16) - 0000000000871792 [09:40:11]1040 (4) - 156177 [09:40:11]1012 (4) - 26.10.2024 03:13 [09:40:11]1206 (1) - 0 [09:40:11]OFD Sender: Remove packet 156177 [09:40:11]ProducePacketName [09:40:11]name=ofd_packets/00156177 [09:40:11]NVStorageDeleteData [09:40:11]Write to MH i2c: 01 00 00 BD 1D DA [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 07 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 07 00 BD 1D 00 00 00 00 00 ED 0C DA [09:40:11]RasterBufferAndPrint [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]written 0, free lines is 3315 [09:40:11]process_action close_receipt done [09:40:11]requested_data is exist [09:40:11]produce_requested_data [09:40:11]requested_item fm.sn is exist - process it [09:40:11]wFMCommunicate request_size=4 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 11 00 00 [09:40:11]Write to MH i2c: E2 08 00 C4 1D 80 11 00 00 00 00 00 00 5B [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 17 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 17 00 C4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [09:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:40:11]wFMCommunicate OK [09:40:11]requested_item fd.num is exist - process it [09:40:11]SAM_PROTO_GetFieldsCounters [09:40:11]wFMCommunicate request_size=4 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 13 00 00 [09:40:11]Write to MH i2c: E2 08 00 C5 1D 80 13 00 00 00 00 00 00 5E [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 62 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 62 00 C5 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 11 62 02 00 0E 04 04 00 18 02 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 FD [09:40: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 11 62 02 00 0E 04 04 00 18 02 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 [09:40:11]wFMCommunicate OK [09:40:11]SAM_PROTO_GetFieldsCounters done [09:40:11]requested_item shift.num is exist - process it [09:40:11]requested_item shift.opened is exist - process it [09:40:11]req_shift_opened [09:40:11]FM_GetShiftState [09:40:11]SAM_PROTO_GetShiftState [09:40:11]wFMCommunicate request_size=4 [09:40:11]MH_SAM_APDU [09:40:11]CAPDU: 80 13 01 00 [09:40:11]Write to MH i2c: E2 08 00 C6 1D 80 13 01 00 00 00 00 00 60 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:11]Read from MH i2c: E2 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 0E 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: E2 0E 00 C6 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 95 [09:40:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:40:11]wFMCommunicate OK [09:40:11]SAM_PROTO_GetShiftState done [09:40:11]FM_GetShiftState done [09:40:11]req_shift_opened done [09:40:11]requested_item shift.open_date is exist - process it [09:40:11]req_shift_open_date [09:40:11]req_shift_open_date done [09:40:11]produce_requested_data done [09:40:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156177,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:40:11]process_action_free close_receipt [09:40:11]json_value_free [09:40:11]json_value_free done [09:40:11]process_json_proto returns [09:40:11]Send response to host [09:40:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156177,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:40:11]free response buf [09:40:11]execute_script done [09:40:11]execute_script returns [09:40:11]free content buf [09:40:11]Sock 9.Close socket [09:40:11]Sock 9.Thread stoped [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:07]accept exits with 7 [09:41:07]New connection [09:41:07]New thread 3066613092 created [09:41:07]Thread 3066469732 joined [09:41:07]Waiting for new connection... [09:41:07] Sock 7.Parse request [09:41:07]Sock 7.Check first char [09:41:07]Sock 7.First char is OK [09:41:07]request: POST /json_proto HTTP/1.0 [09:41:07]Method: POST [09:41:07]URL: /json_proto [09:41:07]Method is POST - this is cgi request [09:41:07]url: /json_proto [09:41:07]query_string will be loaded in cgi processing [09:41:07]execute_cgi json_proto POST (null) [09:41:07]execute_cgi path=json_proto method=POST [09:41:07]POST find Content-Length [09:41:07]Host: 172.17.63.3:8080 [09:41:07]Content-Length: 673 [09:41:07]Content-Type: application/json [09:41:07] [09:41:07]POST finish read [09:41:07]Found Content-Length = 673 [09:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:07]execute_script... [09:41:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:07]POST & json_proto [09:41:07]process_json_proto [09:41:07]json parsed OK: [09:41:07]protocol is kg_v1.0 [09:41:07]action value=close_receipt [09:41:07]process_action close_receipt [09:41:07]cmd_close_receipt [09:41:07]MH_GetDate [09:41:07]Write to MH i2c: F0 00 00 C7 1D D3 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: F0 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: F0 09 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: F0 09 00 C7 1D 00 37 B9 1C 67 50 D1 6C 64 40 [09:41:07]GetLastDocTimeStamp 1729935612 [09:41:07]current date 1729935671 [09:41:07]FM_GetShiftState [09:41:07]SAM_PROTO_GetShiftState [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 13 01 00 [09:41:07]Write to MH i2c: E2 08 00 C8 1D 80 13 01 00 00 00 00 00 62 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0E 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0E 00 C8 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 97 [09:41:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:41:07]wFMCommunicate OK [09:41:07]SAM_PROTO_GetShiftState done [09:41:07]FM_GetShiftState done [09:41:07]opened in 1729902702 [09:41:07]opened+sec_in_day 1729989102 [09:41:07]quantity*price = 70027 [09:41:07]sum+1 = 70029 [09:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 79 26.10.2024 09:41 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156178 ФПД: 270790660219616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094111&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156178&fm=270790660219616&tin=02508201610067®Number=0000000000091693&sum=70000 [09:41:08]StoreToDocumentArchive [09:41:08]shift 536 fd 156178 [09:41:08]save to /storage/0536/doc_00156178 [09:41:08]save last doc name /storage/0536/doc_00156178 to /storage/kkm_last_doc_name [09:41:08]save OK [09:41:08]Clear old archive folders... [09:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:41:08]tlvbuf is 00D4C7B0 [09:41:08]SAM_PROTO_ClearQueue [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 09 00 00 [09:41:08]Write to MH i2c: E2 08 00 D5 1D 80 09 00 00 00 00 00 00 64 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 03 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 03 00 D5 1D 00 90 00 66 [09:41:09]RAPDU: 90 00 [09:41:09]wFMCommunicate OK [09:41:09]SAM_PROTO_ClearQueue done [09:41:09]KKMCreateOFDPacket [09:41:09]OFDProtocolAddRootSTLVToBuf [09:41:09]FM_MakeSignedData [09:41:09]FM_MakeSignedData [09:41:09]SAM_PROTO_SignData [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 0D 01 02 [09:41:09]Write to MH i2c: E2 08 00 D6 1D 80 0D 01 02 00 00 00 00 6C [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 03 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 03 00 D6 1D 00 90 00 67 [09:41:09]RAPDU: 90 00 [09:41:09]wFMCommunicate OK [09:41:09]wFMCommunicate request_size=255 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 4F 00 00 00 F4 03 04 00 37 B9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 62 02 00 35 04 06 00 F6 48 5D 1C [09:41:09]Write to MH i2c: E2 02 01 D7 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 4F 00 00 00 F4 03 04 00 37 B9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 62 02 00 35 04 06 00 F6 48 5D 1C 00 00 FB [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 03 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 03 00 D7 1D 00 90 00 68 [09:41:09]RAPDU: 90 00 [09:41:09]wFMCommunicate OK [09:41:09]wFMCommunicate request_size=7 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 0D 02 02 02 62 E0 [09:41:09]Write to MH i2c: E2 0A 00 D8 1D 80 0D 02 02 02 00 62 E0 00 00 B5 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 03 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 03 00 D8 1D 00 90 00 69 [09:41:09]RAPDU: 90 00 [09:41:09]wFMCommunicate OK [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 0D 03 02 [09:41:09]Write to MH i2c: E2 08 00 D9 1D 80 0D 03 02 00 00 00 00 71 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 0B 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 0B 00 D9 1D 00 B1 3B 52 2B D4 F5 08 55 90 00 01 [09:41:09]RAPDU: B1 3B 52 2B D4 F5 08 55 90 00 [09:41:09]wFMCommunicate OK [09:41:09]SAM_PROTO_SignData done [09:41:09]FM_MakeSignedData done [09:41:09]CreateOFDProtocolMessage [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 11 00 00 [09:41:09]Write to MH i2c: E2 08 00 DA 1D 80 11 00 00 00 00 00 00 71 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 17 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 17 00 DA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [09:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:41:09]wFMCommunicate OK [09:41:09]CreateOFDProtocolMessage done [09:41:09]OFDSenderStorePacket 156178 [09:41:09]StoreOFDPacket docnum=156178 [09:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 26 36 04 01 84 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 4F 00 00 00 F4 03 04 00 37 B9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 62 02 00 35 04 06 00 F6 48 5D 1C 62 E0 B1 3B 52 2B D4 F5 08 55 [09:41:09]CheckFolder [09:41:09]dirname=/storage/ofd_packets [09:41:09]CheckFolder done [09:41:09]ProducePacketName [09:41:09]name=ofd_packets/00156178 [09:41:09]NVStorageSaveData ofd_packets/00156178 [09:41:09]File name is /storage/ofd_packets/00156178 [09:41:09]Write 298 bytes [09:41:09]NVStorageSaveData done [09:41:09]OFDSenderStorePacket done [09:41:09]KKMCreateOFDPacket done [09:41:09]NVStorageSaveData kkm_last_timestamp [09:41:09]File name is /storage/kkm_last_timestamp [09:41:09]Write 4 bytes [09:41:09]NVStorageSaveData done [09:41:09]ExternCall_PrintAddStr [09:41:09]wPrintStart [09:41:09]Write to MH i2c: 01 00 00 DB 1D F8 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 07 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 07 00 DB 1D 00 00 00 00 00 FF 0F 0D [09:41:09]RasterBufferAndPrint [09:41:09]line Счет N : (1)98993 [09:41:09]line ИНН: 02508201610067 [09:41:09]line Контрольно-Кассовый Чек [09:41:09]line ПРОДАЖА [09:41:09]line ТРК (МРК, ГНК) : 32 [09:41:09]line Товар: 2710194210 [09:41:09]line ДТ-К-5 [09:41:09]line 9.190 * 76.20 [09:41:09]line = 700.28 [09:41:09]line НДС 12% НСП 1% [09:41:09]line > о реализуемом товаре [09:41:09]line ОКРУГЛЕНИЕ: -0.28 [09:41:09]line ИТОГО: 700.00 [09:41:09]line Внесено: 700.00 [09:41:09]line СДАЧА: 0.00 [09:41:09]line НСП 1% : 6.20 [09:41:09]line НДС 12% : 74.37 [09:41:09]line Наличными: 700.00 [09:41:09]line Безнал.: 0.00 [09:41:09]line Место: АЗС № 143 "Партнер Нефть" [09:41:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:41:09]line СНО: Общий режим [09:41:09]line Чек 79 26.10.2024 09:41 [09:41:09]line Смена: 536 ФФД: 1.0 [09:41:09]line ЗНМ: 0300000096 [09:41:09]line РНМ: 0000000000091693 [09:41:09]line Версия ККМ: 001 [09:41:09]line ФМ: 0000000000871792 [09:41:09]line ФД: 156178 [09:41:09]line ФПД: 270790660219616 [09:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094111&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156178&fm=270790660219616&tin=02508201610067®Number=0000000000091693&sum=70000 [09:41:09]OFD Sender: Processing packet 156178 [packets to send 31, broken 30] [09:41:09]ProducePacketName [09:41:09]name=ofd_packets/00156178 [09:41:09]OFD Sender: To server: pG, [09:41:09]CommunicateWithHost lk.salyk.kg:30040 [09:41:09]ConnectInit lk.salyk.kg [09:41:09]written 0, free lines is 4095 [09:41:09]Connected sock=10 [09:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 26 36 04 01 84 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 4F 00 00 00 F4 03 04 00 37 B9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 62 02 00 35 04 06 00 F6 48 5D 1C 62 E0 B1 3B 52 2B D4 F5 08 55 [09:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3B A9 47 00 EC 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 62 02 00 F4 03 04 00 AA 5E 1C 67 B6 04 01 00 00 D7 A7 A1 79 47 76 F0 92 [09:41:10]CommunicateWithHost err = 0 [09:41:10]CheckOFDResponse [09:41:10]1017 (14) - 77093643461234 [09:41:10]1041 (16) - 0000000000871792 [09:41:10]1040 (4) - 156178 [09:41:10]1012 (4) - 26.10.2024 03:14 [09:41:10]1206 (1) - 0 [09:41:10]OFD Sender: Remove packet 156178 [09:41:10]ProducePacketName [09:41:10]name=ofd_packets/00156178 [09:41:10]NVStorageDeleteData [09:41:10]Write to MH i2c: 01 00 00 06 1E 24 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: 01 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: 01 07 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: 01 07 00 06 1E 00 00 00 00 00 F1 0C 28 [09:41:10]RasterBufferAndPrint [09:41:10]line [09:41:10]line [09:41:10]line [09:41:10]line [09:41:10]line [09:41:10]written 0, free lines is 3319 [09:41:10]process_action close_receipt done [09:41:10]requested_data is exist [09:41:10]produce_requested_data [09:41:10]requested_item fm.sn is exist - process it [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 11 00 00 [09:41:10]Write to MH i2c: E2 08 00 0D 1E 80 11 00 00 00 00 00 00 A5 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 17 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 17 00 0D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [09:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:41:10]wFMCommunicate OK [09:41:10]requested_item fd.num is exist - process it [09:41:10]SAM_PROTO_GetFieldsCounters [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 13 00 00 [09:41:10]Write to MH i2c: E2 08 00 0E 1E 80 13 00 00 00 00 00 00 A8 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 62 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 62 00 0E 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 12 62 02 00 0E 04 04 00 18 02 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 4B [09:41: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 12 62 02 00 0E 04 04 00 18 02 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 [09:41:10]wFMCommunicate OK [09:41:10]SAM_PROTO_GetFieldsCounters done [09:41:10]requested_item shift.num is exist - process it [09:41:10]requested_item shift.opened is exist - process it [09:41:10]req_shift_opened [09:41:10]FM_GetShiftState [09:41:10]SAM_PROTO_GetShiftState [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 13 01 00 [09:41:10]Write to MH i2c: E2 08 00 0F 1E 80 13 01 00 00 00 00 00 AA [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 0E 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 0E 00 0F 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DF [09:41:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:41:10]wFMCommunicate OK [09:41:10]SAM_PROTO_GetShiftState done [09:41:10]FM_GetShiftState done [09:41:10]req_shift_opened done [09:41:10]requested_item shift.open_date is exist - process it [09:41:10]req_shift_open_date [09:41:10]req_shift_open_date done [09:41:10]produce_requested_data done [09:41:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156178,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:41:10]process_action_free close_receipt [09:41:10]json_value_free [09:41:10]json_value_free done [09:41:10]process_json_proto returns [09:41:10]Send response to host [09:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156178,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:41:10]free response buf [09:41:10]execute_script done [09:41:10]execute_script returns [09:41:10]free content buf [09:41:10]Sock 7.Close socket [09:41:10]Sock 7.Thread stoped [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:28]accept exits with 9 [09:42:28]New connection [09:42:28]New thread 3066469732 created [09:42:28]Thread 3066613092 joined [09:42:28]Waiting for new connection... [09:42:28] Sock 9.Parse request [09:42:28]Sock 9.Check first char [09:42:28]Sock 9.First char is OK [09:42:28]request: POST /json_proto HTTP/1.0 [09:42:28]Method: POST [09:42:28]URL: /json_proto [09:42:28]Method is POST - this is cgi request [09:42:28]url: /json_proto [09:42:28]query_string will be loaded in cgi processing [09:42:28]execute_cgi json_proto POST (null) [09:42:28]execute_cgi path=json_proto method=POST [09:42:28]POST find Content-Length [09:42:28]Host: 172.17.63.3:8080 [09:42:28]Content-Length: 676 [09:42:28]Content-Type: application/json [09:42:28] [09:42:28]POST finish read [09:42:28]Found Content-Length = 676 [09:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:28]execute_script... [09:42: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)98994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:28]POST & json_proto [09:42:28]process_json_proto [09:42:28]json parsed OK: [09:42:28]protocol is kg_v1.0 [09:42:28]action value=close_receipt [09:42:28]process_action close_receipt [09:42:28]cmd_close_receipt [09:42:28]MH_GetDate [09:42:28]Write to MH i2c: F0 00 00 10 1E 1D [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: F0 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: F0 09 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: F0 09 00 10 1E 00 87 B9 1C 67 50 D1 6C 64 DA [09:42:28]GetLastDocTimeStamp 1729935671 [09:42:28]current date 1729935751 [09:42:28]FM_GetShiftState [09:42:28]SAM_PROTO_GetShiftState [09:42:28]wFMCommunicate request_size=4 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 13 01 00 [09:42:28]Write to MH i2c: E2 08 00 11 1E 80 13 01 00 00 00 00 00 AC [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 0E 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 0E 00 11 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E1 [09:42:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:42:28]wFMCommunicate OK [09:42:28]SAM_PROTO_GetShiftState done [09:42:28]FM_GetShiftState done [09:42:28]opened in 1729902702 [09:42:28]opened+sec_in_day 1729989102 [09:42:28]quantity*price = 20003 [09:42:28]sum+1 = 20004 [09:42:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 80 26.10.2024 09:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156179 ФПД: 180490838023487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156179&fm=180490838023487&tin=02508201610067®Number=0000000000091693&sum=20000 [09:42:29]StoreToDocumentArchive [09:42:29]shift 536 fd 156179 [09:42:29]save to /storage/0536/doc_00156179 [09:42:29]save last doc name /storage/0536/doc_00156179 to /storage/kkm_last_doc_name [09:42:29]save OK [09:42:29]Clear old archive folders... [09:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:29]tlvbuf is B6E87780 [09:42:29]SAM_PROTO_ClearQueue [09:42:29]wFMCommunicate request_size=4 [09:42:29]MH_SAM_APDU [09:42:29]CAPDU: 80 09 00 00 [09:42:29]Write to MH i2c: E2 08 00 1E 1E 80 09 00 00 00 00 00 00 AE [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:29]Read from MH i2c: E2 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [09:42:29]RAPDU: 90 00 [09:42:29]wFMCommunicate OK [09:42:29]SAM_PROTO_ClearQueue done [09:42:29]KKMCreateOFDPacket [09:42:29]OFDProtocolAddRootSTLVToBuf [09:42:29]FM_MakeSignedData [09:42:29]FM_MakeSignedData [09:42:29]SAM_PROTO_SignData [09:42:29]wFMCommunicate request_size=4 [09:42:29]MH_SAM_APDU [09:42:29]CAPDU: 80 0D 01 02 [09:42:29]Write to MH i2c: E2 08 00 1F 1E 80 0D 01 02 00 00 00 00 B6 [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:29]Read from MH i2c: E2 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [09:42:29]RAPDU: 90 00 [09:42:29]wFMCommunicate OK [09:42:29]wFMCommunicate request_size=255 [09:42:29]MH_SAM_APDU [09:42: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 87 B9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 62 02 00 35 04 06 00 A4 [09:42:29]Write to MH i2c: E2 02 01 20 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 87 B9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 62 02 00 35 04 06 00 A4 00 00 54 [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:29]Read from MH i2c: E2 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 20 1E 00 90 00 B2 [09:42:29]RAPDU: 90 00 [09:42:29]wFMCommunicate OK [09:42:29]wFMCommunicate request_size=10 [09:42:29]MH_SAM_APDU [09:42:29]CAPDU: 80 0D 02 02 05 27 CC 49 1D 3F [09:42:29]Write to MH i2c: E2 0D 00 21 1E 80 0D 02 02 05 00 27 CC 49 1D 3F 00 00 5B [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:29]Read from MH i2c: E2 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 21 1E 00 90 00 B3 [09:42:29]RAPDU: 90 00 [09:42:29]wFMCommunicate OK [09:42:29]wFMCommunicate request_size=4 [09:42:29]MH_SAM_APDU [09:42:29]CAPDU: 80 0D 03 02 [09:42:29]Write to MH i2c: E2 08 00 22 1E 80 0D 03 02 00 00 00 00 BB [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:29]Read from MH i2c: E2 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 0B 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 0B 00 22 1E 00 D3 8E 7C 5B 01 56 C8 14 90 00 27 [09:42:29]RAPDU: D3 8E 7C 5B 01 56 C8 14 90 00 [09:42:29]wFMCommunicate OK [09:42:29]SAM_PROTO_SignData done [09:42:29]FM_MakeSignedData done [09:42:29]CreateOFDProtocolMessage [09:42:29]wFMCommunicate request_size=4 [09:42:29]MH_SAM_APDU [09:42:29]CAPDU: 80 11 00 00 [09:42:29]Write to MH i2c: E2 08 00 23 1E 80 11 00 00 00 00 00 00 BB [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:29]Read from MH i2c: E2 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 17 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 17 00 23 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [09:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:42:29]wFMCommunicate OK [09:42:29]CreateOFDProtocolMessage done [09:42:29]OFDSenderStorePacket 156179 [09:42:29]StoreOFDPacket docnum=156179 [09:42:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CD 99 07 01 BD 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 87 B9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 62 02 00 35 04 06 00 A4 27 CC 49 1D 3F D3 8E 7C 5B 01 56 C8 14 [09:42:29]CheckFolder [09:42:29]dirname=/storage/ofd_packets [09:42:29]CheckFolder done [09:42:29]ProducePacketName [09:42:29]name=ofd_packets/00156179 [09:42:29]NVStorageSaveData ofd_packets/00156179 [09:42:29]File name is /storage/ofd_packets/00156179 [09:42:29]Write 301 bytes [09:42:29]NVStorageSaveData done [09:42:29]OFDSenderStorePacket done [09:42:29]KKMCreateOFDPacket done [09:42:29]NVStorageSaveData kkm_last_timestamp [09:42:29]File name is /storage/kkm_last_timestamp [09:42:29]Write 4 bytes [09:42:29]NVStorageSaveData done [09:42:29]ExternCall_PrintAddStr [09:42:29]wPrintStart [09:42:29]Write to MH i2c: 01 00 00 24 1E 42 [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: 01 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: 01 07 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: 01 07 00 24 1E 00 00 00 00 00 FF 0F 57 [09:42:29]RasterBufferAndPrint [09:42:29]line Счет N : (1)98994 [09:42:29]line ИНН: 02508201610067 [09:42:29]line Контрольно-Кассовый Чек [09:42:29]line ПРОДАЖА [09:42:29]line ТРК (МРК, ГНК) : 21 [09:42:29]line Товар: 2710124130 [09:42:29]line Аи-92-К-5 [09:42:29]line 2.990 * 66.90 [09:42:29]line = 200.03 [09:42:29]line НДС 12% НСП 1% [09:42:29]line > о реализуемом товаре [09:42:29]line ОКРУГЛЕНИЕ: -0.03 [09:42:29]line ИТОГО: 200.00 [09:42:29]line Внесено: 200.00 [09:42:29]line СДАЧА: 0.00 [09:42:29]line НСП 1% : 1.77 [09:42:29]line НДС 12% : 21.24 [09:42:29]line Наличными: 200.00 [09:42:29]line Безнал.: 0.00 [09:42:29]line Место: АЗС № 143 "Партнер Нефть" [09:42:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:42:29]line СНО: Общий режим [09:42:29]line Чек 80 26.10.2024 09:42 [09:42:29]line Смена: 536 ФФД: 1.0 [09:42:29]line ЗНМ: 0300000096 [09:42:29]line РНМ: 0000000000091693 [09:42:29]line Версия ККМ: 001 [09:42:29]line ФМ: 0000000000871792 [09:42:29]line ФД: 156179 [09:42:29]line ФПД: 180490838023487 [09:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156179&fm=180490838023487&tin=02508201610067®Number=0000000000091693&sum=20000 [09:42:30]OFD Sender: Processing packet 156179 [packets to send 31, broken 30] [09:42:30]ProducePacketName [09:42:30]name=ofd_packets/00156179 [09:42:30]OFD Sender: To server: pG, [09:42:30]CommunicateWithHost lk.salyk.kg:30040 [09:42:30]ConnectInit lk.salyk.kg [09:42:30]written 0, free lines is 4095 [09:42:30]Connected sock=10 [09:42:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CD 99 07 01 BD 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 87 B9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 62 02 00 35 04 06 00 A4 27 CC 49 1D 3F D3 8E 7C 5B 01 56 C8 14 [09:42:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 78 7A 47 00 59 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 62 02 00 F4 03 04 00 FA 5E 1C 67 B6 04 01 00 00 33 2A D7 D1 BA 66 64 83 [09:42:30]CommunicateWithHost err = 0 [09:42:30]CheckOFDResponse [09:42:30]1017 (14) - 77093643461234 [09:42:30]1041 (16) - 0000000000871792 [09:42:30]1040 (4) - 156179 [09:42:30]1012 (4) - 26.10.2024 03:16 [09:42:30]1206 (1) - 0 [09:42:30]OFD Sender: Remove packet 156179 [09:42:30]ProducePacketName [09:42:30]name=ofd_packets/00156179 [09:42:30]NVStorageDeleteData [09:42:30]Write to MH i2c: 01 00 00 4F 1E 6D [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: 01 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: 01 07 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: 01 07 00 4F 1E 00 00 00 00 00 ED 0C 6D [09:42:30]RasterBufferAndPrint [09:42:30]line [09:42:30]line [09:42:30]line [09:42:30]line [09:42:30]line [09:42:30]written 0, free lines is 3315 [09:42:30]process_action close_receipt done [09:42:30]requested_data is exist [09:42:30]produce_requested_data [09:42:30]requested_item fm.sn is exist - process it [09:42:30]wFMCommunicate request_size=4 [09:42:30]MH_SAM_APDU [09:42:30]CAPDU: 80 11 00 00 [09:42:30]Write to MH i2c: E2 08 00 56 1E 80 11 00 00 00 00 00 00 EE [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:30]Read from MH i2c: E2 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 17 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 17 00 56 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [09:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:42:30]wFMCommunicate OK [09:42:30]requested_item fd.num is exist - process it [09:42:30]SAM_PROTO_GetFieldsCounters [09:42:30]wFMCommunicate request_size=4 [09:42:30]MH_SAM_APDU [09:42:30]CAPDU: 80 13 00 00 [09:42:30]Write to MH i2c: E2 08 00 57 1E 80 13 00 00 00 00 00 00 F1 [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 [09:42:30]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:30]Read from MH i2c: E2 62 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 62 00 57 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 13 62 02 00 0E 04 04 00 18 02 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 98 [09:42: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 13 62 02 00 0E 04 04 00 18 02 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 [09:42:30]wFMCommunicate OK [09:42:30]SAM_PROTO_GetFieldsCounters done [09:42:30]requested_item shift.num is exist - process it [09:42:30]requested_item shift.opened is exist - process it [09:42:30]req_shift_opened [09:42:30]FM_GetShiftState [09:42:30]SAM_PROTO_GetShiftState [09:42:30]wFMCommunicate request_size=4 [09:42:30]MH_SAM_APDU [09:42:30]CAPDU: 80 13 01 00 [09:42:30]Write to MH i2c: E2 08 00 58 1E 80 13 01 00 00 00 00 00 F3 [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:30]Read from MH i2c: E2 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 0E 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 0E 00 58 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 28 [09:42:30]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:42:30]wFMCommunicate OK [09:42:30]SAM_PROTO_GetShiftState done [09:42:30]FM_GetShiftState done [09:42:30]req_shift_opened done [09:42:30]requested_item shift.open_date is exist - process it [09:42:30]req_shift_open_date [09:42:30]req_shift_open_date done [09:42:30]produce_requested_data done [09:42:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156179,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:42:30]process_action_free close_receipt [09:42:30]json_value_free [09:42:30]json_value_free done [09:42:30]process_json_proto returns [09:42:30]Send response to host [09:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156179,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:42:30]free response buf [09:42:30]execute_script done [09:42:30]execute_script returns [09:42:30]free content buf [09:42:30]Sock 9.Close socket [09:42:30]Sock 9.Thread stoped [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:17]accept exits with 7 [09:45:17]New connection [09:45:17]New thread 3066613092 created [09:45:17]Thread 3066469732 joined [09:45:17]Waiting for new connection... [09:45:17] Sock 7.Parse request [09:45:17]Sock 7.Check first char [09:45:17]Sock 7.First char is OK [09:45:17]request: POST /json_proto HTTP/1.0 [09:45:17]Method: POST [09:45:17]URL: /json_proto [09:45:17]Method is POST - this is cgi request [09:45:17]url: /json_proto [09:45:17]query_string will be loaded in cgi processing [09:45:17]execute_cgi json_proto POST (null) [09:45:17]execute_cgi path=json_proto method=POST [09:45:17]POST find Content-Length [09:45:17]Host: 172.17.63.3:8080 [09:45:17]Content-Length: 681 [09:45:17]Content-Type: application/json [09:45:17] [09:45:17]POST finish read [09:45:17]Found Content-Length = 681 [09:45:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:17]execute_script... [09:45:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:17]POST & json_proto [09:45:17]process_json_proto [09:45:17]json parsed OK: [09:45:17]protocol is kg_v1.0 [09:45:17]action value=close_receipt [09:45:17]process_action close_receipt [09:45:17]cmd_close_receipt [09:45:17]MH_GetDate [09:45:17]Write to MH i2c: F0 00 00 59 1E 66 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: F0 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: F0 09 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: F0 09 00 59 1E 00 31 BA 1C 67 50 D1 6C 64 CE [09:45:17]GetLastDocTimeStamp 1729935751 [09:45:17]current date 1729935921 [09:45:17]FM_GetShiftState [09:45:17]SAM_PROTO_GetShiftState [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 13 01 00 [09:45:17]Write to MH i2c: E2 08 00 5A 1E 80 13 01 00 00 00 00 00 F5 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 0E 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 0E 00 5A 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2A [09:45:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:45:17]wFMCommunicate OK [09:45:17]SAM_PROTO_GetShiftState done [09:45:17]FM_GetShiftState done [09:45:17]opened in 1729902702 [09:45:17]opened+sec_in_day 1729989102 [09:45:17]quantity*price = 100015 [09:45:17]sum+1 = 100017 [09:45:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 81 26.10.2024 09:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156180 ФПД: 151945011586997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094521&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156180&fm=151945011586997&tin=02508201610067®Number=0000000000091693&sum=100000 [09:45:19]StoreToDocumentArchive [09:45:19]shift 536 fd 156180 [09:45:19]save to /storage/0536/doc_00156180 [09:45:19]save last doc name /storage/0536/doc_00156180 to /storage/kkm_last_doc_name [09:45:19]save OK [09:45:19]Clear old archive folders... [09:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:19]tlvbuf is 00D81670 [09:45:19]SAM_PROTO_ClearQueue [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 09 00 00 [09:45:19]Write to MH i2c: E2 08 00 67 1E 80 09 00 00 00 00 00 00 F7 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 03 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [09:45:19]RAPDU: 90 00 [09:45:19]wFMCommunicate OK [09:45:19]SAM_PROTO_ClearQueue done [09:45:19]KKMCreateOFDPacket [09:45:19]OFDProtocolAddRootSTLVToBuf [09:45:19]FM_MakeSignedData [09:45:19]FM_MakeSignedData [09:45:19]SAM_PROTO_SignData [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 0D 01 02 [09:45:19]Write to MH i2c: E2 08 00 68 1E 80 0D 01 02 00 00 00 00 FF [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 03 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [09:45:19]RAPDU: 90 00 [09:45:19]wFMCommunicate OK [09:45:19]wFMCommunicate request_size=255 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 31 BA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 62 02 00 35 04 06 00 8A [09:45:19]Write to MH i2c: E2 02 01 69 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 31 BA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 62 02 00 35 04 06 00 8A 00 00 68 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 03 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [09:45:19]RAPDU: 90 00 [09:45:19]wFMCommunicate OK [09:45:19]wFMCommunicate request_size=10 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 0D 02 02 05 31 74 70 E7 B5 [09:45:19]Write to MH i2c: E2 0D 00 6A 1E 80 0D 02 02 05 00 31 74 70 E7 B5 00 00 BD [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 03 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [09:45:19]RAPDU: 90 00 [09:45:19]wFMCommunicate OK [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 0D 03 02 [09:45:19]Write to MH i2c: E2 08 00 6B 1E 80 0D 03 02 00 00 00 00 04 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 0B 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 0B 00 6B 1E 00 4A 25 BF 97 B4 6B 8B A7 90 00 1B [09:45:19]RAPDU: 4A 25 BF 97 B4 6B 8B A7 90 00 [09:45:19]wFMCommunicate OK [09:45:19]SAM_PROTO_SignData done [09:45:19]FM_MakeSignedData done [09:45:19]CreateOFDProtocolMessage [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 11 00 00 [09:45:19]Write to MH i2c: E2 08 00 6C 1E 80 11 00 00 00 00 00 00 04 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 17 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 17 00 6C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [09:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:45:19]wFMCommunicate OK [09:45:19]CreateOFDProtocolMessage done [09:45:19]OFDSenderStorePacket 156180 [09:45:19]StoreOFDPacket docnum=156180 [09:45:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 13 2E 07 01 7D C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 31 BA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 62 02 00 35 04 06 00 8A 31 74 70 E7 B5 4A 25 BF 97 B4 6B 8B A7 [09:45:19]CheckFolder [09:45:19]dirname=/storage/ofd_packets [09:45:19]CheckFolder done [09:45:19]ProducePacketName [09:45:19]name=ofd_packets/00156180 [09:45:19]NVStorageSaveData ofd_packets/00156180 [09:45:19]File name is /storage/ofd_packets/00156180 [09:45:19]Write 301 bytes [09:45:19]NVStorageSaveData done [09:45:19]OFDSenderStorePacket done [09:45:19]KKMCreateOFDPacket done [09:45:19]NVStorageSaveData kkm_last_timestamp [09:45:19]File name is /storage/kkm_last_timestamp [09:45:19]Write 4 bytes [09:45:19]NVStorageSaveData done [09:45:19]ExternCall_PrintAddStr [09:45:19]wPrintStart [09:45:19]Write to MH i2c: 01 00 00 6D 1E 8B [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: 01 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: 01 07 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 FF 0F A0 [09:45:19]RasterBufferAndPrint [09:45:19]line Счет N : (1)98996 [09:45:19]line ИНН: 02508201610067 [09:45:19]line Контрольно-Кассовый Чек [09:45:19]line ПРОДАЖА [09:45:19]line ТРК (МРК, ГНК) : 21 [09:45:19]line Товар: 2710124130 [09:45:19]line Аи-92-К-5 [09:45:19]line 14.950 * 66.90 [09:45:19]line = 1000.16 [09:45:19]line НДС 12% НСП 1% [09:45:19]line > о реализуемом товаре [09:45:19]line ОКРУГЛЕНИЕ: -0.16 [09:45:19]line ИТОГО: 1000.00 [09:45:19]line Внесено: 1000.00 [09:45:19]line СДАЧА: 0.00 [09:45:19]line НСП 1% : 8.85 [09:45:19]line НДС 12% : 106.21 [09:45:19]line Наличными: 1000.00 [09:45:19]line Безнал.: 0.00 [09:45:19]line Место: АЗС № 143 "Партнер Нефть" [09:45:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:45:19]line СНО: Общий режим [09:45:19]line Чек 81 26.10.2024 09:45 [09:45:19]line Смена: 536 ФФД: 1.0 [09:45:19]line ЗНМ: 0300000096 [09:45:19]line РНМ: 0000000000091693 [09:45:19]line Версия ККМ: 001 [09:45:19]line ФМ: 0000000000871792 [09:45:19]line ФД: 156180 [09:45:19]line ФПД: 151945011586997 [09:45:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094521&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156180&fm=151945011586997&tin=02508201610067®Number=0000000000091693&sum=100000 [09:45:19]written 0, free lines is 4095 [09:45:19]OFD Sender: Processing packet 156180 [packets to send 31, broken 30] [09:45:19]ProducePacketName [09:45:19]name=ofd_packets/00156180 [09:45:19]OFD Sender: To server: pG, [09:45:19]CommunicateWithHost lk.salyk.kg:30040 [09:45:19]ConnectInit lk.salyk.kg [09:45:19]Connected sock=10 [09:45:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 13 2E 07 01 7D C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 31 BA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 62 02 00 35 04 06 00 8A 31 74 70 E7 B5 4A 25 BF 97 B4 6B 8B A7 [09:45:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D7 B0 47 00 AF B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 62 02 00 F4 03 04 00 A4 5F 1C 67 B6 04 01 00 00 C7 30 4B 82 39 DD F6 D1 [09:45:20]CommunicateWithHost err = 0 [09:45:20]CheckOFDResponse [09:45:20]1017 (14) - 77093643461234 [09:45:20]1041 (16) - 0000000000871792 [09:45:20]1040 (4) - 156180 [09:45:20]1012 (4) - 26.10.2024 03:19 [09:45:20]1206 (1) - 0 [09:45:20]OFD Sender: Remove packet 156180 [09:45:20]ProducePacketName [09:45:20]name=ofd_packets/00156180 [09:45:20]NVStorageDeleteData [09:45:20]Write to MH i2c: 01 00 00 98 1E B6 [09:45:20]Write i2c OK [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: 01 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: 01 07 00 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: 01 07 00 98 1E 00 00 00 00 00 EC 0C B5 [09:45:20]RasterBufferAndPrint [09:45:20]line [09:45:20]line [09:45:20]line [09:45:20]line [09:45:20]line [09:45:20]written 0, free lines is 3314 [09:45:20]process_action close_receipt done [09:45:20]requested_data is exist [09:45:20]produce_requested_data [09:45:20]requested_item fm.sn is exist - process it [09:45:20]wFMCommunicate request_size=4 [09:45:20]MH_SAM_APDU [09:45:20]CAPDU: 80 11 00 00 [09:45:20]Write to MH i2c: E2 08 00 9F 1E 80 11 00 00 00 00 00 00 37 [09:45:20]Write i2c OK [09:45:20]MH_I2C_Read... [09:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:20]Read from MH i2c: E2 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 17 00 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 17 00 9F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [09:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:45:20]wFMCommunicate OK [09:45:20]requested_item fd.num is exist - process it [09:45:20]SAM_PROTO_GetFieldsCounters [09:45:20]wFMCommunicate request_size=4 [09:45:20]MH_SAM_APDU [09:45:20]CAPDU: 80 13 00 00 [09:45:20]Write to MH i2c: E2 08 00 A0 1E 80 13 00 00 00 00 00 00 3A [09:45:20]Write i2c OK [09:45:20]MH_I2C_Read... [09:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:20]Read from MH i2c: E2 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 62 00 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 62 00 A0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 14 62 02 00 0E 04 04 00 18 02 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 E5 [09:45: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 14 62 02 00 0E 04 04 00 18 02 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 [09:45:20]wFMCommunicate OK [09:45:20]SAM_PROTO_GetFieldsCounters done [09:45:20]requested_item shift.num is exist - process it [09:45:20]requested_item shift.opened is exist - process it [09:45:20]req_shift_opened [09:45:20]FM_GetShiftState [09:45:20]SAM_PROTO_GetShiftState [09:45:20]wFMCommunicate request_size=4 [09:45:20]MH_SAM_APDU [09:45:20]CAPDU: 80 13 01 00 [09:45:20]Write to MH i2c: E2 08 00 A1 1E 80 13 01 00 00 00 00 00 3C [09:45:20]Write i2c OK [09:45:20]MH_I2C_Read... [09:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:20]Read from MH i2c: E2 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 0E 00 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 0E 00 A1 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 71 [09:45:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:45:20]wFMCommunicate OK [09:45:20]SAM_PROTO_GetShiftState done [09:45:20]FM_GetShiftState done [09:45:20]req_shift_opened done [09:45:20]requested_item shift.open_date is exist - process it [09:45:20]req_shift_open_date [09:45:20]req_shift_open_date done [09:45:20]produce_requested_data done [09:45:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156180,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:45:20]process_action_free close_receipt [09:45:20]json_value_free [09:45:20]json_value_free done [09:45:20]process_json_proto returns [09:45:20]Send response to host [09:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156180,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:45:20]free response buf [09:45:20]execute_script done [09:45:20]execute_script returns [09:45:20]free content buf [09:45:20]Sock 7.Close socket [09:45:20]Sock 7.Thread stoped [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:25]accept exits with 9 [09:45:25]New connection [09:45:25]New thread 3066469732 created [09:45:25]Thread 3066613092 joined [09:45:25]Waiting for new connection... [09:45:25] Sock 9.Parse request [09:45:25]Sock 9.Check first char [09:45:25]Sock 9.First char is OK [09:45:25]request: POST /json_proto HTTP/1.0 [09:45:25]Method: POST [09:45:25]URL: /json_proto [09:45:25]Method is POST - this is cgi request [09:45:25]url: /json_proto [09:45:25]query_string will be loaded in cgi processing [09:45:25]execute_cgi json_proto POST (null) [09:45:25]execute_cgi path=json_proto method=POST [09:45:25]POST find Content-Length [09:45:25]Host: 172.17.63.3:8080 [09:45:25]Content-Length: 765 [09:45:25]Content-Type: application/json [09:45:25] [09:45:25]POST finish read [09:45:25]Found Content-Length = 765 [09:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:25]execute_script... [09:45:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:25]POST & json_proto [09:45:25]process_json_proto [09:45:25]json parsed OK: [09:45:25]protocol is kg_v1.0 [09:45:25]action value=close_receipt [09:45:25]process_action close_receipt [09:45:25]cmd_close_receipt [09:45:25]MH_GetDate [09:45:25]Write to MH i2c: F0 00 00 A2 1E AF [09:45:25]Write i2c OK [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: F0 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: F0 09 00 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: F0 09 00 A2 1E 00 39 BA 1C 67 50 D1 6C 64 1F [09:45:25]GetLastDocTimeStamp 1729935921 [09:45:25]current date 1729935929 [09:45:25]FM_GetShiftState [09:45:25]SAM_PROTO_GetShiftState [09:45:25]wFMCommunicate request_size=4 [09:45:25]MH_SAM_APDU [09:45:25]CAPDU: 80 13 01 00 [09:45:25]Write to MH i2c: E2 08 00 A3 1E 80 13 01 00 00 00 00 00 3E [09:45:25]Write i2c OK [09:45:25]MH_I2C_Read... [09:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:25]Read from MH i2c: E2 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: E2 0E 00 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: E2 0E 00 A3 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 73 [09:45:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:45:25]wFMCommunicate OK [09:45:25]SAM_PROTO_GetShiftState done [09:45:25]FM_GetShiftState done [09:45:25]opened in 1729902702 [09:45:25]opened+sec_in_day 1729989102 [09:45:25]quantity*price = 50041 [09:45:25]sum+1 = 50042 [09:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 82 26.10.2024 09:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156181 ФПД: 201296421141048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094529&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156181&fm=201296421141048&tin=02508201610067®Number=0000000000091693&sum=50041 [09:45:26]StoreToDocumentArchive [09:45:26]shift 536 fd 156181 [09:45:26]save to /storage/0536/doc_00156181 [09:45:26]save last doc name /storage/0536/doc_00156181 to /storage/kkm_last_doc_name [09:45:26]save OK [09:45:26]Clear old archive folders... [09:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:26]tlvbuf is B6E874A0 [09:45:26]SAM_PROTO_ClearQueue [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 09 00 00 [09:45:26]Write to MH i2c: E2 08 00 B0 1E 80 09 00 00 00 00 00 00 40 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 B0 1E 00 90 00 42 [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]SAM_PROTO_ClearQueue done [09:45:26]KKMCreateOFDPacket [09:45:26]OFDProtocolAddRootSTLVToBuf [09:45:26]FM_MakeSignedData [09:45:26]FM_MakeSignedData [09:45:26]SAM_PROTO_SignData [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 0D 01 02 [09:45:26]Write to MH i2c: E2 08 00 B1 1E 80 0D 01 02 00 00 00 00 48 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]wFMCommunicate request_size=255 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 39 BA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 62 02 00 35 04 06 00 B7 [09:45:26]Write to MH i2c: E2 02 01 B2 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 39 BA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 62 02 00 35 04 06 00 B7 00 00 40 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [09:45:27]RAPDU: 90 00 [09:45:27]wFMCommunicate OK [09:45:27]wFMCommunicate request_size=10 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 0D 02 02 05 13 F9 AD 3A 38 [09:45:27]Write to MH i2c: E2 0D 00 B3 1E 80 0D 02 02 05 00 13 F9 AD 3A 38 00 00 80 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [09:45:27]RAPDU: 90 00 [09:45:27]wFMCommunicate OK [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 0D 03 02 [09:45:27]Write to MH i2c: E2 08 00 B4 1E 80 0D 03 02 00 00 00 00 4D [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 0B 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 0B 00 B4 1E 00 4C DF 69 97 3A BC 94 7E 90 00 81 [09:45:27]RAPDU: 4C DF 69 97 3A BC 94 7E 90 00 [09:45:27]wFMCommunicate OK [09:45:27]SAM_PROTO_SignData done [09:45:27]FM_MakeSignedData done [09:45:27]CreateOFDProtocolMessage [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 11 00 00 [09:45:27]Write to MH i2c: E2 08 00 B5 1E 80 11 00 00 00 00 00 00 4D [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 17 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 17 00 B5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [09:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:45:27]wFMCommunicate OK [09:45:27]CreateOFDProtocolMessage done [09:45:27]OFDSenderStorePacket 156181 [09:45:27]StoreOFDPacket docnum=156181 [09:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0C 7F 07 01 70 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 39 BA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 62 02 00 35 04 06 00 B7 13 F9 AD 3A 38 4C DF 69 97 3A BC 94 7E [09:45:27]CheckFolder [09:45:27]dirname=/storage/ofd_packets [09:45:27]CheckFolder done [09:45:27]ProducePacketName [09:45:27]name=ofd_packets/00156181 [09:45:27]NVStorageSaveData ofd_packets/00156181 [09:45:27]File name is /storage/ofd_packets/00156181 [09:45:27]Write 301 bytes [09:45:27]NVStorageSaveData done [09:45:27]OFDSenderStorePacket done [09:45:27]KKMCreateOFDPacket done [09:45:27]NVStorageSaveData kkm_last_timestamp [09:45:27]File name is /storage/kkm_last_timestamp [09:45:27]Write 4 bytes [09:45:27]NVStorageSaveData done [09:45:27]ExternCall_PrintAddStr [09:45:27]wPrintStart [09:45:27]Write to MH i2c: 01 00 00 B6 1E D4 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 B6 1E 00 00 00 00 00 FF 0F E9 [09:45:27]RasterBufferAndPrint [09:45:27]line Счет N : (1)98995 [09:45:27]line ИНН: 02508201610067 [09:45:27]line Контрольно-Кассовый Чек [09:45:27]line ПРОДАЖА [09:45:27]line ТРК (МРК, ГНК) : 31 [09:45:27]line Товар: 2710124130 [09:45:27]line Аи-92-К-5 [09:45:27]line 7.480 * 66.90 [09:45:27]line = 500.41 [09:45:27]line НДС 12% НСП 1% [09:45:27]line > о реализуемом товаре [09:45:27]line ИТОГО: 500.41 [09:45:27]line НСП 1% : 4.43 [09:45:27]line НДС 12% : 53.14 [09:45:27]line Наличными: 0.00 [09:45:27]line Безнал.: 500.41 [09:45:27]line Место: АЗС № 143 "Партнер Нефть" [09:45:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:45:27]line СНО: Общий режим [09:45:27]line Чек 82 26.10.2024 09:45 [09:45:27]line Смена: 536 ФФД: 1.0 [09:45:27]line ЗНМ: 0300000096 [09:45:27]line РНМ: 0000000000091693 [09:45:27]line Версия ККМ: 001 [09:45:27]line Платежная система: Mbank [09:45:27]line ФМ: 0000000000871792 [09:45:27]line ФД: 156181 [09:45:27]line ФПД: 201296421141048 [09:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094529&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156181&fm=201296421141048&tin=02508201610067®Number=0000000000091693&sum=50041 [09:45:27]written 0, free lines is 4095 [09:45:27]OFD Sender: Processing packet 156181 [packets to send 31, broken 30] [09:45:27]ProducePacketName [09:45:27]name=ofd_packets/00156181 [09:45:27]OFD Sender: To server: pG, [09:45:27]CommunicateWithHost lk.salyk.kg:30040 [09:45:27]ConnectInit lk.salyk.kg [09:45:27]Connected sock=10 [09:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0C 7F 07 01 70 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 39 BA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 62 02 00 35 04 06 00 B7 13 F9 AD 3A 38 4C DF 69 97 3A BC 94 7E [09:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C4 6C 47 00 35 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 62 02 00 F4 03 04 00 AC 5F 1C 67 B6 04 01 00 00 66 DA 8F 4A 97 05 A9 4D [09:45:27]CommunicateWithHost err = 0 [09:45:27]CheckOFDResponse [09:45:27]1017 (14) - 77093643461234 [09:45:27]1041 (16) - 0000000000871792 [09:45:27]1040 (4) - 156181 [09:45:27]1012 (4) - 26.10.2024 03:19 [09:45:27]1206 (1) - 0 [09:45:27]OFD Sender: Remove packet 156181 [09:45:27]ProducePacketName [09:45:27]name=ofd_packets/00156181 [09:45:27]NVStorageDeleteData [09:45:27]Write to MH i2c: 01 00 00 DF 1E FD [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 DF 1E 00 00 00 00 00 19 0D 2A [09:45:27]RasterBufferAndPrint [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]written 0, free lines is 3362 [09:45:27]process_action close_receipt done [09:45:27]requested_data is exist [09:45:27]produce_requested_data [09:45:27]requested_item fm.sn is exist - process it [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 11 00 00 [09:45:27]Write to MH i2c: E2 08 00 E6 1E 80 11 00 00 00 00 00 00 7E [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:27]Read from MH i2c: E2 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 17 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: E2 17 00 E6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [09:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:45:27]wFMCommunicate OK [09:45:27]requested_item fd.num is exist - process it [09:45:27]SAM_PROTO_GetFieldsCounters [09:45:27]wFMCommunicate request_size=4 [09:45:27]MH_SAM_APDU [09:45:27]CAPDU: 80 13 00 00 [09:45:27]Write to MH i2c: E2 08 00 E7 1E 80 13 00 00 00 00 00 00 81 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 62 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 62 00 E7 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 15 62 02 00 0E 04 04 00 18 02 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 30 [09:45: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 15 62 02 00 0E 04 04 00 18 02 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 [09:45:28]wFMCommunicate OK [09:45:28]SAM_PROTO_GetFieldsCounters done [09:45:28]requested_item shift.num is exist - process it [09:45:28]requested_item shift.opened is exist - process it [09:45:28]req_shift_opened [09:45:28]FM_GetShiftState [09:45:28]SAM_PROTO_GetShiftState [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 13 01 00 [09:45:28]Write to MH i2c: E2 08 00 E8 1E 80 13 01 00 00 00 00 00 83 [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 0E 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 0E 00 E8 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B8 [09:45:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:45:28]wFMCommunicate OK [09:45:28]SAM_PROTO_GetShiftState done [09:45:28]FM_GetShiftState done [09:45:28]req_shift_opened done [09:45:28]requested_item shift.open_date is exist - process it [09:45:28]req_shift_open_date [09:45:28]req_shift_open_date done [09:45:28]produce_requested_data done [09:45:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156181,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:45:28]process_action_free close_receipt [09:45:28]json_value_free [09:45:28]json_value_free done [09:45:28]process_json_proto returns [09:45:28]Send response to host [09:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156181,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:45:28]free response buf [09:45:28]execute_script done [09:45:28]execute_script returns [09:45:28]free content buf [09:45:28]Sock 9.Close socket [09:45:28]Sock 9.Thread stoped [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:49]accept exits with 7 [09:50:49]New connection [09:50:49]New thread 3066613092 created [09:50:49]Thread 3066469732 joined [09:50:49]Waiting for new connection... [09:50:49] Sock 7.Parse request [09:50:49]Sock 7.Check first char [09:50:49]Sock 7.First char is OK [09:50:49]request: POST /json_proto HTTP/1.0 [09:50:49]Method: POST [09:50:49]URL: /json_proto [09:50:49]Method is POST - this is cgi request [09:50:49]url: /json_proto [09:50:49]query_string will be loaded in cgi processing [09:50:49]execute_cgi json_proto POST (null) [09:50:49]execute_cgi path=json_proto method=POST [09:50:49]POST find Content-Length [09:50:49]Host: 172.17.63.3:8080 [09:50:49]Content-Length: 676 [09:50:49]Content-Type: application/json [09:50:49] [09:50:49]POST finish read [09:50:49]Found Content-Length = 676 [09:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:49]execute_script... [09:50: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)98998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:49]POST & json_proto [09:50:49]process_json_proto [09:50:49]json parsed OK: [09:50:49]protocol is kg_v1.0 [09:50:49]action value=close_receipt [09:50:49]process_action close_receipt [09:50:49]cmd_close_receipt [09:50:49]MH_GetDate [09:50:49]Write to MH i2c: F0 00 00 E9 1E F6 [09:50:49]Write i2c OK [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 09 00 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 09 00 E9 1E 00 7C BB 1C 67 50 D1 6C 64 AA [09:50:49]GetLastDocTimeStamp 1729935929 [09:50:49]current date 1729936252 [09:50:49]FM_GetShiftState [09:50:49]SAM_PROTO_GetShiftState [09:50:49]wFMCommunicate request_size=4 [09:50:49]MH_SAM_APDU [09:50:49]CAPDU: 80 13 01 00 [09:50:49]Write to MH i2c: E2 08 00 EA 1E 80 13 01 00 00 00 00 00 85 [09:50:49]Write i2c OK [09:50:49]MH_I2C_Read... [09:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:49]Read from MH i2c: E2 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: E2 0E 00 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: E2 0E 00 EA 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BA [09:50:49]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:50:49]wFMCommunicate OK [09:50:49]SAM_PROTO_GetShiftState done [09:50:49]FM_GetShiftState done [09:50:49]opened in 1729902702 [09:50:49]opened+sec_in_day 1729989102 [09:50:49]quantity*price = 20003 [09:50:49]sum+1 = 20004 [09:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 83 26.10.2024 09:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156182 ФПД: 54891170900158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095052&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156182&fm=54891170900158&tin=02508201610067®Number=0000000000091693&sum=20000 [09:50:50]StoreToDocumentArchive [09:50:50]shift 536 fd 156182 [09:50:50]save to /storage/0536/doc_00156182 [09:50:50]save last doc name /storage/0536/doc_00156182 to /storage/kkm_last_doc_name [09:50:50]save OK [09:50:50]Clear old archive folders... [09:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:50]tlvbuf is B6F026D0 [09:50:50]SAM_PROTO_ClearQueue [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 09 00 00 [09:50:50]Write to MH i2c: E2 08 00 F7 1E 80 09 00 00 00 00 00 00 87 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 F7 1E 00 90 00 89 [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]SAM_PROTO_ClearQueue done [09:50:50]KKMCreateOFDPacket [09:50:50]OFDProtocolAddRootSTLVToBuf [09:50:50]FM_MakeSignedData [09:50:50]FM_MakeSignedData [09:50:50]SAM_PROTO_SignData [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 01 02 [09:50:50]Write to MH i2c: E2 08 00 F8 1E 80 0D 01 02 00 00 00 00 8F [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 F8 1E 00 90 00 8A [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]wFMCommunicate request_size=255 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 7C BB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 62 02 00 35 04 06 00 31 [09:50:50]Write to MH i2c: E2 02 01 F9 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 7C BB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 62 02 00 35 04 06 00 31 00 00 B7 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 F9 1E 00 90 00 8B [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]wFMCommunicate request_size=10 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 02 02 05 EC 58 BE 28 BE [09:50:50]Write to MH i2c: E2 0D 00 FA 1E 80 0D 02 02 05 00 EC 58 BE 28 BE 00 00 84 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 FA 1E 00 90 00 8C [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 03 02 [09:50:50]Write to MH i2c: E2 08 00 FB 1E 80 0D 03 02 00 00 00 00 94 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 0B 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 0B 00 FB 1E 00 E6 C6 64 24 8D AF E5 B4 90 00 9E [09:50:50]RAPDU: E6 C6 64 24 8D AF E5 B4 90 00 [09:50:50]wFMCommunicate OK [09:50:50]SAM_PROTO_SignData done [09:50:50]FM_MakeSignedData done [09:50:50]CreateOFDProtocolMessage [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 11 00 00 [09:50:50]Write to MH i2c: E2 08 00 FC 1E 80 11 00 00 00 00 00 00 94 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 17 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 17 00 FC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [09:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:50:50]wFMCommunicate OK [09:50:50]CreateOFDProtocolMessage done [09:50:50]OFDSenderStorePacket 156182 [09:50:50]StoreOFDPacket docnum=156182 [09:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B5 00 07 01 18 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 7C BB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 62 02 00 35 04 06 00 31 EC 58 BE 28 BE E6 C6 64 24 8D AF E5 B4 [09:50:50]CheckFolder [09:50:50]dirname=/storage/ofd_packets [09:50:50]CheckFolder done [09:50:50]ProducePacketName [09:50:50]name=ofd_packets/00156182 [09:50:50]NVStorageSaveData ofd_packets/00156182 [09:50:50]File name is /storage/ofd_packets/00156182 [09:50:50]Write 301 bytes [09:50:50]NVStorageSaveData done [09:50:50]OFDSenderStorePacket done [09:50:50]KKMCreateOFDPacket done [09:50:50]NVStorageSaveData kkm_last_timestamp [09:50:50]File name is /storage/kkm_last_timestamp [09:50:50]Write 4 bytes [09:50:50]NVStorageSaveData done [09:50:50]ExternCall_PrintAddStr [09:50:50]wPrintStart [09:50:50]Write to MH i2c: 01 00 00 FD 1E 1B [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: 01 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: 01 07 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: 01 07 00 FD 1E 00 00 00 00 00 FF 0F 30 [09:50:50]RasterBufferAndPrint [09:50:50]line Счет N : (1)98998 [09:50:50]line ИНН: 02508201610067 [09:50:50]line Контрольно-Кассовый Чек [09:50:50]line ПРОДАЖА [09:50:50]line ТРК (МРК, ГНК) : 21 [09:50:50]line Товар: 2710124130 [09:50:50]line Аи-92-К-5 [09:50:50]line 2.990 * 66.90 [09:50:50]line = 200.03 [09:50:50]line НДС 12% НСП 1% [09:50:50]line > о реализуемом товаре [09:50:50]line ОКРУГЛЕНИЕ: -0.03 [09:50:50]line ИТОГО: 200.00 [09:50:50]line Внесено: 200.00 [09:50:50]line СДАЧА: 0.00 [09:50:50]line НСП 1% : 1.77 [09:50:50]line НДС 12% : 21.24 [09:50:50]line Наличными: 200.00 [09:50:50]line Безнал.: 0.00 [09:50:50]line Место: АЗС № 143 "Партнер Нефть" [09:50:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:50:50]line СНО: Общий режим [09:50:50]line Чек 83 26.10.2024 09:50 [09:50:50]line Смена: 536 ФФД: 1.0 [09:50:50]line ЗНМ: 0300000096 [09:50:50]line РНМ: 0000000000091693 [09:50:50]line Версия ККМ: 001 [09:50:50]line ФМ: 0000000000871792 [09:50:50]line ФД: 156182 [09:50:50]line ФПД: 54891170900158 [09:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095052&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156182&fm=54891170900158&tin=02508201610067®Number=0000000000091693&sum=20000 [09:50:50]written 0, free lines is 4095 [09:50:50]OFD Sender: Processing packet 156182 [packets to send 31, broken 30] [09:50:50]ProducePacketName [09:50:50]name=ofd_packets/00156182 [09:50:50]OFD Sender: To server: pG, [09:50:50]CommunicateWithHost lk.salyk.kg:30040 [09:50:50]ConnectInit lk.salyk.kg [09:50:50]Connected sock=10 [09:50:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B5 00 07 01 18 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 7C BB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 62 02 00 35 04 06 00 31 EC 58 BE 28 BE E6 C6 64 24 8D AF E5 B4 [09:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CD BE 47 00 58 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 62 02 00 F4 03 04 00 EF 60 1C 67 B6 04 01 00 00 2A A6 C9 3D 17 9B 3E C0 [09:50:51]CommunicateWithHost err = 0 [09:50:51]CheckOFDResponse [09:50:51]1017 (14) - 77093643461234 [09:50:51]1041 (16) - 0000000000871792 [09:50:51]1040 (4) - 156182 [09:50:51]1012 (4) - 26.10.2024 03:24 [09:50:51]1206 (1) - 0 [09:50:51]OFD Sender: Remove packet 156182 [09:50:51]ProducePacketName [09:50:51]name=ofd_packets/00156182 [09:50:51]NVStorageDeleteData [09:50:51]Write to MH i2c: 01 00 00 28 1F 47 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 07 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 07 00 28 1F 00 00 00 00 00 F1 0C 4B [09:50:51]RasterBufferAndPrint [09:50:51]line [09:50:51]line [09:50:51]line [09:50:51]line [09:50:51]line [09:50:51]written 0, free lines is 3319 [09:50:51]process_action close_receipt done [09:50:51]requested_data is exist [09:50:51]produce_requested_data [09:50:51]requested_item fm.sn is exist - process it [09:50:51]wFMCommunicate request_size=4 [09:50:51]MH_SAM_APDU [09:50:51]CAPDU: 80 11 00 00 [09:50:51]Write to MH i2c: E2 08 00 2F 1F 80 11 00 00 00 00 00 00 C8 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 17 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 17 00 2F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [09:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:50:51]wFMCommunicate OK [09:50:51]requested_item fd.num is exist - process it [09:50:51]SAM_PROTO_GetFieldsCounters [09:50:51]wFMCommunicate request_size=4 [09:50:51]MH_SAM_APDU [09:50:51]CAPDU: 80 13 00 00 [09:50:51]Write to MH i2c: E2 08 00 30 1F 80 13 00 00 00 00 00 00 CB [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 62 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 62 00 30 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 16 62 02 00 0E 04 04 00 18 02 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 7E [09:50:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 16 62 02 00 0E 04 04 00 18 02 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 [09:50:51]wFMCommunicate OK [09:50:51]SAM_PROTO_GetFieldsCounters done [09:50:51]requested_item shift.num is exist - process it [09:50:51]requested_item shift.opened is exist - process it [09:50:51]req_shift_opened [09:50:51]FM_GetShiftState [09:50:51]SAM_PROTO_GetShiftState [09:50:51]wFMCommunicate request_size=4 [09:50:51]MH_SAM_APDU [09:50:51]CAPDU: 80 13 01 00 [09:50:51]Write to MH i2c: E2 08 00 31 1F 80 13 01 00 00 00 00 00 CD [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 0E 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 0E 00 31 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 02 [09:50:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:50:51]wFMCommunicate OK [09:50:51]SAM_PROTO_GetShiftState done [09:50:51]FM_GetShiftState done [09:50:51]req_shift_opened done [09:50:51]requested_item shift.open_date is exist - process it [09:50:51]req_shift_open_date [09:50:51]req_shift_open_date done [09:50:51]produce_requested_data done [09:50:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156182,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:50:51]process_action_free close_receipt [09:50:51]json_value_free [09:50:51]json_value_free done [09:50:51]process_json_proto returns [09:50:51]Send response to host [09:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156182,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:50:51]free response buf [09:50:51]execute_script done [09:50:51]execute_script returns [09:50:51]free content buf [09:50:51]Sock 7.Close socket [09:50:51]Sock 7.Thread stoped [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:50:57]accept exits with 9 [09:50:57]New connection [09:50:57]New thread 3066469732 created [09:50:57]Thread 3066613092 joined [09:50:57]Waiting for new connection... [09:50:57] Sock 9.Parse request [09:50:57]Sock 9.Check first char [09:50:57]Sock 9.First char is OK [09:50:57]request: POST /json_proto HTTP/1.0 [09:50:57]Method: POST [09:50:57]URL: /json_proto [09:50:57]Method is POST - this is cgi request [09:50:57]url: /json_proto [09:50:57]query_string will be loaded in cgi processing [09:50:57]execute_cgi json_proto POST (null) [09:50:57]execute_cgi path=json_proto method=POST [09:50:57]POST find Content-Length [09:50:57]Host: 172.17.63.3:8080 [09:50:57]Content-Length: 681 [09:50:57]Content-Type: application/json [09:50:57] [09:50:57]POST finish read [09:50:57]Found Content-Length = 681 [09:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:57]execute_script... [09:50:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:57]POST & json_proto [09:50:57]process_json_proto [09:50:57]json parsed OK: [09:50:57]protocol is kg_v1.0 [09:50:57]action value=close_receipt [09:50:57]process_action close_receipt [09:50:57]cmd_close_receipt [09:50:57]MH_GetDate [09:50:57]Write to MH i2c: F0 00 00 32 1F 40 [09:50:57]Write i2c OK [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: F0 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: F0 09 00 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: F0 09 00 32 1F 00 85 BB 1C 67 50 D1 6C 64 FD [09:50:57]GetLastDocTimeStamp 1729936252 [09:50:57]current date 1729936261 [09:50:57]FM_GetShiftState [09:50:57]SAM_PROTO_GetShiftState [09:50:57]wFMCommunicate request_size=4 [09:50:57]MH_SAM_APDU [09:50:57]CAPDU: 80 13 01 00 [09:50:57]Write to MH i2c: E2 08 00 33 1F 80 13 01 00 00 00 00 00 CF [09:50:57]Write i2c OK [09:50:57]MH_I2C_Read... [09:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:57]Read from MH i2c: E2 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 0E 00 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 0E 00 33 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 04 [09:50:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:50:57]wFMCommunicate OK [09:50:57]SAM_PROTO_GetShiftState done [09:50:57]FM_GetShiftState done [09:50:57]opened in 1729902702 [09:50:57]opened+sec_in_day 1729989102 [09:50:57]quantity*price = 100015 [09:50:57]sum+1 = 100017 [09:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 84 26.10.2024 09:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156183 ФПД: 160382382802463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095101&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156183&fm=160382382802463&tin=02508201610067®Number=0000000000091693&sum=100000 [09:50:58]StoreToDocumentArchive [09:50:58]shift 536 fd 156183 [09:50:58]save to /storage/0536/doc_00156183 [09:50:58]save last doc name /storage/0536/doc_00156183 to /storage/kkm_last_doc_name [09:50:58]save OK [09:50:58]Clear old archive folders... [09:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:58]tlvbuf is 00D6B030 [09:50:58]SAM_PROTO_ClearQueue [09:50:58]wFMCommunicate request_size=4 [09:50:58]MH_SAM_APDU [09:50:58]CAPDU: 80 09 00 00 [09:50:58]Write to MH i2c: E2 08 00 40 1F 80 09 00 00 00 00 00 00 D1 [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:58]Read from MH i2c: E2 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 03 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 03 00 40 1F 00 90 00 D3 [09:50:58]RAPDU: 90 00 [09:50:58]wFMCommunicate OK [09:50:58]SAM_PROTO_ClearQueue done [09:50:58]KKMCreateOFDPacket [09:50:58]OFDProtocolAddRootSTLVToBuf [09:50:58]FM_MakeSignedData [09:50:58]FM_MakeSignedData [09:50:58]SAM_PROTO_SignData [09:50:58]wFMCommunicate request_size=4 [09:50:58]MH_SAM_APDU [09:50:58]CAPDU: 80 0D 01 02 [09:50:58]Write to MH i2c: E2 08 00 41 1F 80 0D 01 02 00 00 00 00 D9 [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:58]Read from MH i2c: E2 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 03 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 03 00 41 1F 00 90 00 D4 [09:50:58]RAPDU: 90 00 [09:50:58]wFMCommunicate OK [09:50:58]wFMCommunicate request_size=255 [09:50:58]MH_SAM_APDU [09:50:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 85 BB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 62 02 00 35 04 06 00 91 [09:50:58]Write to MH i2c: E2 02 01 42 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 85 BB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 62 02 00 35 04 06 00 91 00 00 A4 [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:59]Read from MH i2c: E2 03 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 42 1F 00 90 00 D5 [09:50:59]RAPDU: 90 00 [09:50:59]wFMCommunicate OK [09:50:59]wFMCommunicate request_size=10 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 0D 02 02 05 DD EE F4 86 1F [09:50:59]Write to MH i2c: E2 0D 00 43 1F 80 0D 02 02 05 00 DD EE F4 86 1F 00 00 4A [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [09:50:59]RAPDU: 90 00 [09:50:59]wFMCommunicate OK [09:50:59]wFMCommunicate request_size=4 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 0D 03 02 [09:50:59]Write to MH i2c: E2 08 00 44 1F 80 0D 03 02 00 00 00 00 DE [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 0B 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 0B 00 44 1F 00 6C D0 23 E7 67 D1 AB CE 90 00 D6 [09:50:59]RAPDU: 6C D0 23 E7 67 D1 AB CE 90 00 [09:50:59]wFMCommunicate OK [09:50:59]SAM_PROTO_SignData done [09:50:59]FM_MakeSignedData done [09:50:59]CreateOFDProtocolMessage [09:50:59]wFMCommunicate request_size=4 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 11 00 00 [09:50:59]Write to MH i2c: E2 08 00 45 1F 80 11 00 00 00 00 00 00 DE [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 17 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 17 00 45 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [09:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:50:59]wFMCommunicate OK [09:50:59]CreateOFDProtocolMessage done [09:50:59]OFDSenderStorePacket 156183 [09:50:59]StoreOFDPacket docnum=156183 [09:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C 20 07 01 E8 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 85 BB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 62 02 00 35 04 06 00 91 DD EE F4 86 1F 6C D0 23 E7 67 D1 AB CE [09:50:59]CheckFolder [09:50:59]dirname=/storage/ofd_packets [09:50:59]CheckFolder done [09:50:59]ProducePacketName [09:50:59]name=ofd_packets/00156183 [09:50:59]NVStorageSaveData ofd_packets/00156183 [09:50:59]File name is /storage/ofd_packets/00156183 [09:50:59]Write 301 bytes [09:50:59]NVStorageSaveData done [09:50:59]OFDSenderStorePacket done [09:50:59]KKMCreateOFDPacket done [09:50:59]NVStorageSaveData kkm_last_timestamp [09:50:59]File name is /storage/kkm_last_timestamp [09:50:59]Write 4 bytes [09:50:59]NVStorageSaveData done [09:50:59]ExternCall_PrintAddStr [09:50:59]wPrintStart [09:50:59]Write to MH i2c: 01 00 00 46 1F 65 [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 07 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 07 00 46 1F 00 00 00 00 00 FF 0F 7A [09:50:59]RasterBufferAndPrint [09:50:59]line Счет N : (1)98997 [09:50:59]line ИНН: 02508201610067 [09:50:59]line Контрольно-Кассовый Чек [09:50:59]line ПРОДАЖА [09:50:59]line ТРК (МРК, ГНК) : 31 [09:50:59]line Товар: 2710124130 [09:50:59]line Аи-92-К-5 [09:50:59]line 14.950 * 66.90 [09:50:59]line = 1000.16 [09:50:59]line НДС 12% НСП 1% [09:50:59]line > о реализуемом товаре [09:50:59]line ОКРУГЛЕНИЕ: -0.16 [09:50:59]line ИТОГО: 1000.00 [09:50:59]line Внесено: 1000.00 [09:50:59]line СДАЧА: 0.00 [09:50:59]line НСП 1% : 8.85 [09:50:59]line НДС 12% : 106.21 [09:50:59]line Наличными: 1000.00 [09:50:59]line Безнал.: 0.00 [09:50:59]line Место: АЗС № 143 "Партнер Нефть" [09:50:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:50:59]line СНО: Общий режим [09:50:59]line Чек 84 26.10.2024 09:51 [09:50:59]line Смена: 536 ФФД: 1.0 [09:50:59]line ЗНМ: 0300000096 [09:50:59]line РНМ: 0000000000091693 [09:50:59]line Версия ККМ: 001 [09:50:59]line ФМ: 0000000000871792 [09:50:59]line ФД: 156183 [09:50:59]line ФПД: 160382382802463 [09:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095101&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156183&fm=160382382802463&tin=02508201610067®Number=0000000000091693&sum=100000 [09:50:59]written 0, free lines is 4095 [09:50:59]OFD Sender: Processing packet 156183 [packets to send 31, broken 30] [09:50:59]ProducePacketName [09:50:59]name=ofd_packets/00156183 [09:50:59]OFD Sender: To server: pG, [09:50:59]CommunicateWithHost lk.salyk.kg:30040 [09:50:59]ConnectInit lk.salyk.kg [09:50:59]Connected sock=10 [09:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C 20 07 01 E8 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 85 BB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 62 02 00 35 04 06 00 91 DD EE F4 86 1F 6C D0 23 E7 67 D1 AB CE [09:50:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B6 B7 47 00 E9 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 31 37 39 32 10 04 04 00 17 62 02 00 F4 03 04 00 F8 60 1C 67 B6 04 01 00 00 5D D8 F9 4D 6A 80 5E 1B [09:50:59]CommunicateWithHost err = 0 [09:50:59]CheckOFDResponse [09:50:59]1017 (14) - 77093643461234 [09:50:59]1041 (16) - 0000000000871792 [09:50:59]1040 (4) - 156183 [09:50:59]1012 (4) - 26.10.2024 03:24 [09:50:59]1206 (1) - 0 [09:50:59]OFD Sender: Remove packet 156183 [09:50:59]ProducePacketName [09:50:59]name=ofd_packets/00156183 [09:50:59]NVStorageDeleteData [09:50:59]Write to MH i2c: 01 00 00 71 1F 90 [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 07 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 07 00 71 1F 00 00 00 00 00 FE 0C A1 [09:50:59]RasterBufferAndPrint [09:50:59]line [09:50:59]line [09:50:59]line [09:50:59]line [09:50:59]line [09:50:59]written 0, free lines is 3338 [09:50:59]process_action close_receipt done [09:50:59]requested_data is exist [09:50:59]produce_requested_data [09:50:59]requested_item fm.sn is exist - process it [09:50:59]wFMCommunicate request_size=4 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 11 00 00 [09:50:59]Write to MH i2c: E2 08 00 78 1F 80 11 00 00 00 00 00 00 11 [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 17 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 17 00 78 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [09:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:50:59]wFMCommunicate OK [09:50:59]requested_item fd.num is exist - process it [09:50:59]SAM_PROTO_GetFieldsCounters [09:50:59]wFMCommunicate request_size=4 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 13 00 00 [09:50:59]Write to MH i2c: E2 08 00 79 1F 80 13 00 00 00 00 00 00 14 [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:00]Read from MH i2c: E2 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 62 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 62 00 79 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 17 62 02 00 0E 04 04 00 18 02 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 CB [09:51:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 17 62 02 00 0E 04 04 00 18 02 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 [09:51:00]wFMCommunicate OK [09:51:00]SAM_PROTO_GetFieldsCounters done [09:51:00]requested_item shift.num is exist - process it [09:51:00]requested_item shift.opened is exist - process it [09:51:00]req_shift_opened [09:51:00]FM_GetShiftState [09:51:00]SAM_PROTO_GetShiftState [09:51:00]wFMCommunicate request_size=4 [09:51:00]MH_SAM_APDU [09:51:00]CAPDU: 80 13 01 00 [09:51:00]Write to MH i2c: E2 08 00 7A 1F 80 13 01 00 00 00 00 00 16 [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:00]Read from MH i2c: E2 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 0E 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 0E 00 7A 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4B [09:51:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:51:00]wFMCommunicate OK [09:51:00]SAM_PROTO_GetShiftState done [09:51:00]FM_GetShiftState done [09:51:00]req_shift_opened done [09:51:00]requested_item shift.open_date is exist - process it [09:51:00]req_shift_open_date [09:51:00]req_shift_open_date done [09:51:00]produce_requested_data done [09:51:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156183,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:51:00]process_action_free close_receipt [09:51:00]json_value_free [09:51:00]json_value_free done [09:51:00]process_json_proto returns [09:51:00]Send response to host [09:51:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156183,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:51:00]free response buf [09:51:00]execute_script done [09:51:00]execute_script returns [09:51:00]free content buf [09:51:00]Sock 9.Close socket [09:51:00]Sock 9.Thread stoped [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:38]accept exits with 7 [09:53:38]New connection [09:53:38]New thread 3066613092 created [09:53:38]Thread 3066469732 joined [09:53:38]Waiting for new connection... [09:53:38] Sock 7.Parse request [09:53:38]Sock 7.Check first char [09:53:38]Sock 7.First char is OK [09:53:38]request: POST /json_proto HTTP/1.0 [09:53:38]Method: POST [09:53:38]URL: /json_proto [09:53:38]Method is POST - this is cgi request [09:53:38]url: /json_proto [09:53:38]query_string will be loaded in cgi processing [09:53:38]execute_cgi json_proto POST (null) [09:53:38]execute_cgi path=json_proto method=POST [09:53:38]POST find Content-Length [09:53:38]Host: 172.17.63.3:8080 [09:53:38]Content-Length: 681 [09:53:38]Content-Type: application/json [09:53:38] [09:53:38]POST finish read [09:53:38]Found Content-Length = 681 [09:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:38]execute_script... [09:53:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:38]POST & json_proto [09:53:38]process_json_proto [09:53:38]json parsed OK: [09:53:38]protocol is kg_v1.0 [09:53:38]action value=close_receipt [09:53:38]process_action close_receipt [09:53:38]cmd_close_receipt [09:53:38]MH_GetDate [09:53:38]Write to MH i2c: F0 00 00 7B 1F 89 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: F0 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: F0 09 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: F0 09 00 7B 1F 00 25 BC 1C 67 50 D1 6C 64 E7 [09:53:38]GetLastDocTimeStamp 1729936261 [09:53:38]current date 1729936421 [09:53:38]FM_GetShiftState [09:53:38]SAM_PROTO_GetShiftState [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 13 01 00 [09:53:38]Write to MH i2c: E2 08 00 7C 1F 80 13 01 00 00 00 00 00 18 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 0E 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 0E 00 7C 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4D [09:53:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:53:38]wFMCommunicate OK [09:53:38]SAM_PROTO_GetShiftState done [09:53:38]FM_GetShiftState done [09:53:38]opened in 1729902702 [09:53:38]opened+sec_in_day 1729989102 [09:53:38]quantity*price = 100015 [09:53:38]sum+1 = 100017 [09:53:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 85 26.10.2024 09:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156184 ФПД: 209951079185544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095342&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156184&fm=209951079185544&tin=02508201610067®Number=0000000000091693&sum=100000 [09:53:39]StoreToDocumentArchive [09:53:39]shift 536 fd 156184 [09:53:39]save to /storage/0536/doc_00156184 [09:53:39]save last doc name /storage/0536/doc_00156184 to /storage/kkm_last_doc_name [09:53:39]save OK [09:53:39]Clear old archive folders... [09:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:39]tlvbuf is 00DA4000 [09:53:39]SAM_PROTO_ClearQueue [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 09 00 00 [09:53:39]Write to MH i2c: E2 08 00 89 1F 80 09 00 00 00 00 00 00 1A [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 89 1F 00 90 00 1C [09:53:39]RAPDU: 90 00 [09:53:39]wFMCommunicate OK [09:53:39]SAM_PROTO_ClearQueue done [09:53:39]KKMCreateOFDPacket [09:53:39]OFDProtocolAddRootSTLVToBuf [09:53:39]FM_MakeSignedData [09:53:39]FM_MakeSignedData [09:53:39]SAM_PROTO_SignData [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 0D 01 02 [09:53:39]Write to MH i2c: E2 08 00 8A 1F 80 0D 01 02 00 00 00 00 22 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [09:53:39]RAPDU: 90 00 [09:53:39]wFMCommunicate OK [09:53:39]wFMCommunicate request_size=255 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 26 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 62 02 00 35 04 06 00 BE [09:53:39]Write to MH i2c: E2 02 01 8B 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 26 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 62 02 00 35 04 06 00 BE 00 00 BE [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 8B 1F 00 90 00 1E [09:53:39]RAPDU: 90 00 [09:53:39]wFMCommunicate OK [09:53:39]wFMCommunicate request_size=10 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 0D 02 02 05 F3 0B 7E BC 88 [09:53:39]Write to MH i2c: E2 0D 00 8C 1F 80 0D 02 02 05 00 F3 0B 7E BC 88 00 00 EF [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 8C 1F 00 90 00 1F [09:53:39]RAPDU: 90 00 [09:53:39]wFMCommunicate OK [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 0D 03 02 [09:53:39]Write to MH i2c: E2 08 00 8D 1F 80 0D 03 02 00 00 00 00 27 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 0B 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 0B 00 8D 1F 00 A3 89 4A FC 2C 0C 5E 3D 90 00 6D [09:53:39]RAPDU: A3 89 4A FC 2C 0C 5E 3D 90 00 [09:53:39]wFMCommunicate OK [09:53:39]SAM_PROTO_SignData done [09:53:39]FM_MakeSignedData done [09:53:39]CreateOFDProtocolMessage [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 11 00 00 [09:53:39]Write to MH i2c: E2 08 00 8E 1F 80 11 00 00 00 00 00 00 27 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 17 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 17 00 8E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [09:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:53:40]wFMCommunicate OK [09:53:40]CreateOFDProtocolMessage done [09:53:40]OFDSenderStorePacket 156184 [09:53:40]StoreOFDPacket docnum=156184 [09:53:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 3B 07 01 30 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 26 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 62 02 00 35 04 06 00 BE F3 0B 7E BC 88 A3 89 4A FC 2C 0C 5E 3D [09:53:40]CheckFolder [09:53:40]dirname=/storage/ofd_packets [09:53:40]CheckFolder done [09:53:40]ProducePacketName [09:53:40]name=ofd_packets/00156184 [09:53:40]NVStorageSaveData ofd_packets/00156184 [09:53:40]File name is /storage/ofd_packets/00156184 [09:53:40]Write 301 bytes [09:53:40]NVStorageSaveData done [09:53:40]OFDSenderStorePacket done [09:53:40]KKMCreateOFDPacket done [09:53:40]NVStorageSaveData kkm_last_timestamp [09:53:40]File name is /storage/kkm_last_timestamp [09:53:40]Write 4 bytes [09:53:40]NVStorageSaveData done [09:53:40]ExternCall_PrintAddStr [09:53:40]wPrintStart [09:53:40]Write to MH i2c: 01 00 00 8F 1F AE [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 07 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 07 00 8F 1F 00 00 00 00 00 FF 0F C3 [09:53:40]RasterBufferAndPrint [09:53:40]line Счет N : (1)98999 [09:53:40]line ИНН: 02508201610067 [09:53:40]line Контрольно-Кассовый Чек [09:53:40]line ПРОДАЖА [09:53:40]line ТРК (МРК, ГНК) : 21 [09:53:40]line Товар: 2710124130 [09:53:40]line Аи-92-К-5 [09:53:40]line 14.950 * 66.90 [09:53:40]line = 1000.16 [09:53:40]line НДС 12% НСП 1% [09:53:40]line > о реализуемом товаре [09:53:40]line ОКРУГЛЕНИЕ: -0.16 [09:53:40]line ИТОГО: 1000.00 [09:53:40]line Внесено: 1000.00 [09:53:40]line СДАЧА: 0.00 [09:53:40]line НСП 1% : 8.85 [09:53:40]line НДС 12% : 106.21 [09:53:40]line Наличными: 1000.00 [09:53:40]line Безнал.: 0.00 [09:53:40]line Место: АЗС № 143 "Партнер Нефть" [09:53:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:53:40]line СНО: Общий режим [09:53:40]line Чек 85 26.10.2024 09:53 [09:53:40]line Смена: 536 ФФД: 1.0 [09:53:40]line ЗНМ: 0300000096 [09:53:40]line РНМ: 0000000000091693 [09:53:40]line Версия ККМ: 001 [09:53:40]line ФМ: 0000000000871792 [09:53:40]line ФД: 156184 [09:53:40]line ФПД: 209951079185544 [09:53:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095342&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156184&fm=209951079185544&tin=02508201610067®Number=0000000000091693&sum=100000 [09:53:40]written 0, free lines is 4095 [09:53:40]OFD Sender: Processing packet 156184 [packets to send 31, broken 30] [09:53:40]ProducePacketName [09:53:40]name=ofd_packets/00156184 [09:53:40]OFD Sender: To server: pG, [09:53:40]CommunicateWithHost lk.salyk.kg:30040 [09:53:40]ConnectInit lk.salyk.kg [09:53:40]Connected sock=9 [09:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 3B 07 01 30 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 26 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 62 02 00 35 04 06 00 BE F3 0B 7E BC 88 A3 89 4A FC 2C 0C 5E 3D [09:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5B C3 47 00 7A 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 31 37 39 32 10 04 04 00 18 62 02 00 F4 03 04 00 98 61 1C 67 B6 04 01 00 00 4F EF 4F CA F8 5E 13 C8 [09:53:40]CommunicateWithHost err = 0 [09:53:40]CheckOFDResponse [09:53:40]1017 (14) - 77093643461234 [09:53:40]1041 (16) - 0000000000871792 [09:53:40]1040 (4) - 156184 [09:53:40]1012 (4) - 26.10.2024 03:27 [09:53:40]1206 (1) - 0 [09:53:40]OFD Sender: Remove packet 156184 [09:53:40]ProducePacketName [09:53:40]name=ofd_packets/00156184 [09:53:40]NVStorageDeleteData [09:53:40]Write to MH i2c: 01 00 00 BA 1F D9 [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 07 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 07 00 BA 1F 00 00 00 00 00 FB 0C E7 [09:53:40]RasterBufferAndPrint [09:53:40]line [09:53:40]line [09:53:40]line [09:53:40]line [09:53:40]line [09:53:40]written 0, free lines is 3332 [09:53:40]process_action close_receipt done [09:53:40]requested_data is exist [09:53:40]produce_requested_data [09:53:40]requested_item fm.sn is exist - process it [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 11 00 00 [09:53:40]Write to MH i2c: E2 08 00 C1 1F 80 11 00 00 00 00 00 00 5A [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 17 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 17 00 C1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [09:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:53:40]wFMCommunicate OK [09:53:40]requested_item fd.num is exist - process it [09:53:40]SAM_PROTO_GetFieldsCounters [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 13 00 00 [09:53:40]Write to MH i2c: E2 08 00 C2 1F 80 13 00 00 00 00 00 00 5D [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 62 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 62 00 C2 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 18 62 02 00 0E 04 04 00 18 02 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 [09:53: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 18 62 02 00 0E 04 04 00 18 02 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 [09:53:40]wFMCommunicate OK [09:53:40]SAM_PROTO_GetFieldsCounters done [09:53:40]requested_item shift.num is exist - process it [09:53:40]requested_item shift.opened is exist - process it [09:53:40]req_shift_opened [09:53:40]FM_GetShiftState [09:53:40]SAM_PROTO_GetShiftState [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 13 01 00 [09:53:40]Write to MH i2c: E2 08 00 C3 1F 80 13 01 00 00 00 00 00 5F [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 0E 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 0E 00 C3 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 94 [09:53:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:53:40]wFMCommunicate OK [09:53:40]SAM_PROTO_GetShiftState done [09:53:40]FM_GetShiftState done [09:53:40]req_shift_opened done [09:53:40]requested_item shift.open_date is exist - process it [09:53:40]req_shift_open_date [09:53:40]req_shift_open_date done [09:53:40]produce_requested_data done [09:53:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156184,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:53:40]process_action_free close_receipt [09:53:40]json_value_free [09:53:40]json_value_free done [09:53:40]process_json_proto returns [09:53:40]Send response to host [09:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156184,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:53:40]free response buf [09:53:40]execute_script done [09:53:40]execute_script returns [09:53:40]free content buf [09:53:40]Sock 7.Close socket [09:53:40]Sock 7.Thread stoped [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:51]accept exits with 10 [09:53:51]New connection [09:53:51]New thread 3066469732 created [09:53:51]Thread 3066613092 joined [09:53:51]Waiting for new connection... [09:53:51] Sock 10.Parse request [09:53:51]Sock 10.Check first char [09:53:51]Sock 10.First char is OK [09:53:51]request: POST /json_proto HTTP/1.0 [09:53:51]Method: POST [09:53:51]URL: /json_proto [09:53:51]Method is POST - this is cgi request [09:53:51]url: /json_proto [09:53:51]query_string will be loaded in cgi processing [09:53:51]execute_cgi json_proto POST (null) [09:53:51]execute_cgi path=json_proto method=POST [09:53:51]POST find Content-Length [09:53:51]Host: 172.17.63.3:8080 [09:53:51]Content-Length: 681 [09:53:51]Content-Type: application/json [09:53:51] [09:53:51]POST finish read [09:53:51]Found Content-Length = 681 [09:53:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:51]execute_script... [09:53:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:51]POST & json_proto [09:53:51]process_json_proto [09:53:51]json parsed OK: [09:53:51]protocol is kg_v1.0 [09:53:51]action value=close_receipt [09:53:51]process_action close_receipt [09:53:51]cmd_close_receipt [09:53:51]MH_GetDate [09:53:51]Write to MH i2c: F0 00 00 C4 1F D2 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: F0 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: F0 09 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: F0 09 00 C4 1F 00 32 BC 1C 67 50 D1 6C 64 3D [09:53:51]GetLastDocTimeStamp 1729936422 [09:53:51]current date 1729936434 [09:53:51]FM_GetShiftState [09:53:51]SAM_PROTO_GetShiftState [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 13 01 00 [09:53:51]Write to MH i2c: E2 08 00 C5 1F 80 13 01 00 00 00 00 00 61 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0E 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0E 00 C5 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 96 [09:53:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:53:51]wFMCommunicate OK [09:53:51]SAM_PROTO_GetShiftState done [09:53:51]FM_GetShiftState done [09:53:51]opened in 1729902702 [09:53:51]opened+sec_in_day 1729989102 [09:53:51]quantity*price = 100015 [09:53:51]sum+1 = 100017 [09:53:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 86 26.10.2024 09:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156185 ФПД: 129576953753568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095354&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156185&fm=129576953753568&tin=02508201610067®Number=0000000000091693&sum=100000 [09:53:52]StoreToDocumentArchive [09:53:52]shift 536 fd 156185 [09:53:52]save to /storage/0536/doc_00156185 [09:53:52]save last doc name /storage/0536/doc_00156185 to /storage/kkm_last_doc_name [09:53:52]save OK [09:53:52]Clear old archive folders... [09:53:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:52]tlvbuf is 00D4A490 [09:53:52]SAM_PROTO_ClearQueue [09:53:52]wFMCommunicate request_size=4 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 09 00 00 [09:53:52]Write to MH i2c: E2 08 00 D2 1F 80 09 00 00 00 00 00 00 63 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 03 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 03 00 D2 1F 00 90 00 65 [09:53:52]RAPDU: 90 00 [09:53:52]wFMCommunicate OK [09:53:52]SAM_PROTO_ClearQueue done [09:53:52]KKMCreateOFDPacket [09:53:52]OFDProtocolAddRootSTLVToBuf [09:53:52]FM_MakeSignedData [09:53:52]FM_MakeSignedData [09:53:52]SAM_PROTO_SignData [09:53:52]wFMCommunicate request_size=4 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 0D 01 02 [09:53:52]Write to MH i2c: E2 08 00 D3 1F 80 0D 01 02 00 00 00 00 6B [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 03 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 03 00 D3 1F 00 90 00 66 [09:53:52]RAPDU: 90 00 [09:53:52]wFMCommunicate OK [09:53:52]wFMCommunicate request_size=255 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 32 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 62 02 00 35 04 06 00 75 [09:53:52]Write to MH i2c: E2 02 01 D4 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 32 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 62 02 00 35 04 06 00 75 00 00 CC [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 03 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [09:53:52]RAPDU: 90 00 [09:53:52]wFMCommunicate OK [09:53:52]wFMCommunicate request_size=10 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 0D 02 02 05 D9 7C 4C AF E0 [09:53:52]Write to MH i2c: E2 0D 00 D5 1F 80 0D 02 02 05 00 D9 7C 4C AF E0 00 00 A8 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 03 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 03 00 D5 1F 00 90 00 68 [09:53:52]RAPDU: 90 00 [09:53:52]wFMCommunicate OK [09:53:52]wFMCommunicate request_size=4 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 0D 03 02 [09:53:52]Write to MH i2c: E2 08 00 D6 1F 80 0D 03 02 00 00 00 00 70 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 0B 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 0B 00 D6 1F 00 A6 7A CD 98 BC 7D 68 52 90 00 E9 [09:53:52]RAPDU: A6 7A CD 98 BC 7D 68 52 90 00 [09:53:52]wFMCommunicate OK [09:53:52]SAM_PROTO_SignData done [09:53:52]FM_MakeSignedData done [09:53:52]CreateOFDProtocolMessage [09:53:52]wFMCommunicate request_size=4 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 11 00 00 [09:53:52]Write to MH i2c: E2 08 00 D7 1F 80 11 00 00 00 00 00 00 70 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 17 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 17 00 D7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [09:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:53:52]wFMCommunicate OK [09:53:52]CreateOFDProtocolMessage done [09:53:52]OFDSenderStorePacket 156185 [09:53:52]StoreOFDPacket docnum=156185 [09:53:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 95 07 01 1C 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 32 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 62 02 00 35 04 06 00 75 D9 7C 4C AF E0 A6 7A CD 98 BC 7D 68 52 [09:53:52]CheckFolder [09:53:52]dirname=/storage/ofd_packets [09:53:52]CheckFolder done [09:53:52]ProducePacketName [09:53:52]name=ofd_packets/00156185 [09:53:52]NVStorageSaveData ofd_packets/00156185 [09:53:52]File name is /storage/ofd_packets/00156185 [09:53:52]Write 301 bytes [09:53:52]NVStorageSaveData done [09:53:52]OFDSenderStorePacket done [09:53:52]KKMCreateOFDPacket done [09:53:52]NVStorageSaveData kkm_last_timestamp [09:53:52]File name is /storage/kkm_last_timestamp [09:53:52]Write 4 bytes [09:53:52]NVStorageSaveData done [09:53:52]ExternCall_PrintAddStr [09:53:52]wPrintStart [09:53:52]Write to MH i2c: 01 00 00 D8 1F F7 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 07 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 FF 0F 0C [09:53:52]RasterBufferAndPrint [09:53:52]line Счет N : (1)99000 [09:53:52]line ИНН: 02508201610067 [09:53:52]line Контрольно-Кассовый Чек [09:53:52]line ПРОДАЖА [09:53:52]line ТРК (МРК, ГНК) : 31 [09:53:52]line Товар: 2710124130 [09:53:52]line Аи-92-К-5 [09:53:52]line 14.950 * 66.90 [09:53:52]line = 1000.16 [09:53:52]line НДС 12% НСП 1% [09:53:52]line > о реализуемом товаре [09:53:52]line ОКРУГЛЕНИЕ: -0.16 [09:53:52]line ИТОГО: 1000.00 [09:53:52]line Внесено: 1000.00 [09:53:52]line СДАЧА: 0.00 [09:53:52]line НСП 1% : 8.85 [09:53:52]line НДС 12% : 106.21 [09:53:52]line Наличными: 1000.00 [09:53:52]line Безнал.: 0.00 [09:53:52]line Место: АЗС № 143 "Партнер Нефть" [09:53:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:53:52]line СНО: Общий режим [09:53:52]line Чек 86 26.10.2024 09:53 [09:53:52]line Смена: 536 ФФД: 1.0 [09:53:52]line ЗНМ: 0300000096 [09:53:52]line РНМ: 0000000000091693 [09:53:52]line Версия ККМ: 001 [09:53:52]line ФМ: 0000000000871792 [09:53:52]line ФД: 156185 [09:53:52]line ФПД: 129576953753568 [09:53:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095354&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156185&fm=129576953753568&tin=02508201610067®Number=0000000000091693&sum=100000 [09:53:52]written 0, free lines is 4095 [09:53:52]OFD Sender: Processing packet 156185 [packets to send 31, broken 30] [09:53:52]ProducePacketName [09:53:52]name=ofd_packets/00156185 [09:53:52]OFD Sender: To server: pG, [09:53:52]CommunicateWithHost lk.salyk.kg:30040 [09:53:52]ConnectInit lk.salyk.kg [09:53:53]Connected sock=9 [09: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 31 37 39 32 0F 01 00 00 76 95 07 01 1C 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 32 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 62 02 00 35 04 06 00 75 D9 7C 4C AF E0 A6 7A CD 98 BC 7D 68 52 [09:53:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8F 50 47 00 CF 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 62 02 00 F4 03 04 00 A5 61 1C 67 B6 04 01 00 00 BA AA D0 47 6C 79 29 C3 [09:53:53]CommunicateWithHost err = 0 [09:53:53]CheckOFDResponse [09:53:53]1017 (14) - 77093643461234 [09:53:53]1041 (16) - 0000000000871792 [09:53:53]1040 (4) - 156185 [09:53:53]1012 (4) - 26.10.2024 03:27 [09:53:53]1206 (1) - 0 [09:53:53]OFD Sender: Remove packet 156185 [09:53:53]ProducePacketName [09:53:53]name=ofd_packets/00156185 [09:53:53]NVStorageDeleteData [09:53:53]Write to MH i2c: 01 00 00 03 20 23 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 07 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 07 00 03 20 00 00 00 00 00 F6 0C 2C [09:53:53]RasterBufferAndPrint [09:53:53]line [09:53:53]line [09:53:53]line [09:53:53]line [09:53:53]line [09:53:53]written 0, free lines is 3330 [09:53:53]process_action close_receipt done [09:53:53]requested_data is exist [09:53:53]produce_requested_data [09:53:53]requested_item fm.sn is exist - process it [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 11 00 00 [09:53:53]Write to MH i2c: E2 08 00 0A 20 80 11 00 00 00 00 00 00 A4 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 0A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [09:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:53:53]wFMCommunicate OK [09:53:53]requested_item fd.num is exist - process it [09:53:53]SAM_PROTO_GetFieldsCounters [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 13 00 00 [09:53:53]Write to MH i2c: E2 08 00 0B 20 80 13 00 00 00 00 00 00 A7 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 62 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 62 00 0B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 19 62 02 00 0E 04 04 00 18 02 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 66 [09:53: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 19 62 02 00 0E 04 04 00 18 02 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 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_GetFieldsCounters done [09:53:53]requested_item shift.num is exist - process it [09:53:53]requested_item shift.opened is exist - process it [09:53:53]req_shift_opened [09:53:53]FM_GetShiftState [09:53:53]SAM_PROTO_GetShiftState [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 13 01 00 [09:53:53]Write to MH i2c: E2 08 00 0C 20 80 13 01 00 00 00 00 00 A9 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 0C 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DE [09:53:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_GetShiftState done [09:53:53]FM_GetShiftState done [09:53:53]req_shift_opened done [09:53:53]requested_item shift.open_date is exist - process it [09:53:53]req_shift_open_date [09:53:53]req_shift_open_date done [09:53:53]produce_requested_data done [09:53:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156185,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:53:53]process_action_free close_receipt [09:53:53]json_value_free [09:53:53]json_value_free done [09:53:53]process_json_proto returns [09:53:53]Send response to host [09:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156185,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:53:53]free response buf [09:53:53]execute_script done [09:53:53]execute_script returns [09:53:53]free content buf [09:53:53]Sock 10.Close socket [09:53:53]Sock 10.Thread stoped [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:24]accept exits with 7 [09:55:24]New connection [09:55:24]New thread 3066613092 created [09:55:24]Thread 3066469732 joined [09:55:24]Waiting for new connection... [09:55:24] Sock 7.Parse request [09:55:24]Sock 7.Check first char [09:55:24]Sock 7.First char is OK [09:55:24]request: POST /json_proto HTTP/1.0 [09:55:24]Method: POST [09:55:24]URL: /json_proto [09:55:24]Method is POST - this is cgi request [09:55:24]url: /json_proto [09:55:24]query_string will be loaded in cgi processing [09:55:24]execute_cgi json_proto POST (null) [09:55:24]execute_cgi path=json_proto method=POST [09:55:24]POST find Content-Length [09:55:24]Host: 172.17.63.3:8080 [09:55:24]Content-Length: 677 [09:55:24]Content-Type: application/json [09:55:24] [09:55:24]POST finish read [09:55:24]Found Content-Length = 677 [09:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:24]execute_script... [09:55:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:24]POST & json_proto [09:55:24]process_json_proto [09:55:24]json parsed OK: [09:55:24]protocol is kg_v1.0 [09:55:24]action value=close_receipt [09:55:24]process_action close_receipt [09:55:24]cmd_close_receipt [09:55:24]MH_GetDate [09:55:24]Write to MH i2c: F0 00 00 0D 20 1C [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: F0 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: F0 09 00 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: F0 09 00 0D 20 00 90 BC 1C 67 50 D1 6C 64 E5 [09:55:24]GetLastDocTimeStamp 1729936434 [09:55:24]current date 1729936528 [09:55:24]FM_GetShiftState [09:55:24]SAM_PROTO_GetShiftState [09:55:24]wFMCommunicate request_size=4 [09:55:24]MH_SAM_APDU [09:55:24]CAPDU: 80 13 01 00 [09:55:24]Write to MH i2c: E2 08 00 0E 20 80 13 01 00 00 00 00 00 AB [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:24]Read from MH i2c: E2 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: E2 0E 00 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: E2 0E 00 0E 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E0 [09:55:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:55:24]wFMCommunicate OK [09:55:24]SAM_PROTO_GetShiftState done [09:55:24]FM_GetShiftState done [09:55:24]opened in 1729902702 [09:55:24]opened+sec_in_day 1729989102 [09:55:24]quantity*price = 70044 [09:55:24]sum+1 = 70045 [09:55:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 87 26.10.2024 09:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156186 ФПД: 114477508787402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095528&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156186&fm=114477508787402&tin=02508201610067®Number=0000000000091693&sum=70000 [09:55:25]StoreToDocumentArchive [09:55:25]shift 536 fd 156186 [09:55:25]save to /storage/0536/doc_00156186 [09:55:25]save last doc name /storage/0536/doc_00156186 to /storage/kkm_last_doc_name [09:55:25]save OK [09:55:25]Clear old archive folders... [09:55:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:25]tlvbuf is 00D91C40 [09:55:25]SAM_PROTO_ClearQueue [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 09 00 00 [09:55:25]Write to MH i2c: E2 08 00 1B 20 80 09 00 00 00 00 00 00 AD [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 03 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 03 00 1B 20 00 90 00 AF [09:55:25]RAPDU: 90 00 [09:55:25]wFMCommunicate OK [09:55:25]SAM_PROTO_ClearQueue done [09:55:25]KKMCreateOFDPacket [09:55:25]OFDProtocolAddRootSTLVToBuf [09:55:25]FM_MakeSignedData [09:55:25]FM_MakeSignedData [09:55:25]SAM_PROTO_SignData [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 0D 01 02 [09:55:25]Write to MH i2c: E2 08 00 1C 20 80 0D 01 02 00 00 00 00 B5 [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 03 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 03 00 1C 20 00 90 00 B0 [09:55:25]RAPDU: 90 00 [09:55:25]wFMCommunicate OK [09:55:25]wFMCommunicate request_size=255 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 90 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 62 02 00 35 04 06 00 68 [09:55:25]Write to MH i2c: E2 02 01 1D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 90 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 62 02 00 35 04 06 00 68 00 00 7F [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 03 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 03 00 1D 20 00 90 00 B1 [09:55:25]RAPDU: 90 00 [09:55:25]wFMCommunicate OK [09:55:25]wFMCommunicate request_size=10 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 0D 02 02 05 1D DF 3E FC CA [09:55:25]Write to MH i2c: E2 0D 00 1E 20 80 0D 02 02 05 00 1D DF 3E FC CA 00 00 C2 [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 03 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [09:55:25]RAPDU: 90 00 [09:55:25]wFMCommunicate OK [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 0D 03 02 [09:55:25]Write to MH i2c: E2 08 00 1F 20 80 0D 03 02 00 00 00 00 BA [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 0B 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 0B 00 1F 20 00 88 6C 15 F8 56 92 2C 84 90 00 54 [09:55:25]RAPDU: 88 6C 15 F8 56 92 2C 84 90 00 [09:55:25]wFMCommunicate OK [09:55:25]SAM_PROTO_SignData done [09:55:25]FM_MakeSignedData done [09:55:25]CreateOFDProtocolMessage [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 11 00 00 [09:55:25]Write to MH i2c: E2 08 00 20 20 80 11 00 00 00 00 00 00 BA [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:26]Read from MH i2c: E2 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 17 00 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 17 00 20 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [09:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:55:26]wFMCommunicate OK [09:55:26]CreateOFDProtocolMessage done [09:55:26]OFDSenderStorePacket 156186 [09:55:26]StoreOFDPacket docnum=156186 [09:55:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE 7E 07 01 4D E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 90 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 62 02 00 35 04 06 00 68 1D DF 3E FC CA 88 6C 15 F8 56 92 2C 84 [09:55:26]CheckFolder [09:55:26]dirname=/storage/ofd_packets [09:55:26]CheckFolder done [09:55:26]ProducePacketName [09:55:26]name=ofd_packets/00156186 [09:55:26]NVStorageSaveData ofd_packets/00156186 [09:55:26]File name is /storage/ofd_packets/00156186 [09:55:26]Write 301 bytes [09:55:26]NVStorageSaveData done [09:55:26]OFDSenderStorePacket done [09:55:26]KKMCreateOFDPacket done [09:55:26]NVStorageSaveData kkm_last_timestamp [09:55:26]File name is /storage/kkm_last_timestamp [09:55:26]Write 4 bytes [09:55:26]NVStorageSaveData done [09:55:26]ExternCall_PrintAddStr [09:55:26]wPrintStart [09:55:26]Write to MH i2c: 01 00 00 21 20 41 [09:55:26]Write i2c OK [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: 01 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: 01 07 00 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [09:55:26]RasterBufferAndPrint [09:55:26]line Счет N : (1)99001 [09:55:26]line ИНН: 02508201610067 [09:55:26]line Контрольно-Кассовый Чек [09:55:26]line ПРОДАЖА [09:55:26]line ТРК (МРК, ГНК) : 21 [09:55:26]line Товар: 2710124130 [09:55:26]line Аи-92-К-5 [09:55:26]line 10.470 * 66.90 [09:55:26]line = 700.44 [09:55:26]line НДС 12% НСП 1% [09:55:26]line > о реализуемом товаре [09:55:26]line ОКРУГЛЕНИЕ: -0.44 [09:55:26]line ИТОГО: 700.00 [09:55:26]line Внесено: 700.00 [09:55:26]line СДАЧА: 0.00 [09:55:26]line НСП 1% : 6.20 [09:55:26]line НДС 12% : 74.38 [09:55:26]line Наличными: 700.00 [09:55:26]line Безнал.: 0.00 [09:55:26]line Место: АЗС № 143 "Партнер Нефть" [09:55:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:55:26]line СНО: Общий режим [09:55:26]line Чек 87 26.10.2024 09:55 [09:55:26]line Смена: 536 ФФД: 1.0 [09:55:26]line ЗНМ: 0300000096 [09:55:26]line РНМ: 0000000000091693 [09:55:26]line Версия ККМ: 001 [09:55:26]line ФМ: 0000000000871792 [09:55:26]line ФД: 156186 [09:55:26]line ФПД: 114477508787402 [09:55:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095528&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156186&fm=114477508787402&tin=02508201610067®Number=0000000000091693&sum=70000 [09:55:26]OFD Sender: Processing packet 156186 [packets to send 31, broken 30] [09:55:26]ProducePacketName [09:55:26]name=ofd_packets/00156186 [09:55:26]OFD Sender: To server: pG, [09:55:26]CommunicateWithHost lk.salyk.kg:30040 [09:55:26]ConnectInit lk.salyk.kg [09:55:26]written 0, free lines is 4095 [09:55:26]Connected sock=9 [09:55:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE 7E 07 01 4D E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 90 BC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 62 02 00 35 04 06 00 68 1D DF 3E FC CA 88 6C 15 F8 56 92 2C 84 [09:55:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FB 30 47 00 F1 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 62 02 00 F4 03 04 00 03 62 1C 67 B6 04 01 00 00 A5 F9 C7 6E 60 BB 32 04 [09:55:26]CommunicateWithHost err = 0 [09:55:26]CheckOFDResponse [09:55:26]1017 (14) - 77093643461234 [09:55:26]1041 (16) - 0000000000871792 [09:55:26]1040 (4) - 156186 [09:55:26]1012 (4) - 26.10.2024 03:29 [09:55:26]1206 (1) - 0 [09:55:26]OFD Sender: Remove packet 156186 [09:55:26]ProducePacketName [09:55:26]name=ofd_packets/00156186 [09:55:26]NVStorageDeleteData [09:55:26]Write to MH i2c: 01 00 00 4C 20 6C [09:55:26]Write i2c OK [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: 01 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: 01 07 00 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: 01 07 00 4C 20 00 00 00 00 00 ED 0C 6C [09:55:26]RasterBufferAndPrint [09:55:26]line [09:55:26]line [09:55:26]line [09:55:26]line [09:55:26]line [09:55:26]written 0, free lines is 3318 [09:55:26]process_action close_receipt done [09:55:26]requested_data is exist [09:55:26]produce_requested_data [09:55:26]requested_item fm.sn is exist - process it [09:55:26]wFMCommunicate request_size=4 [09:55:26]MH_SAM_APDU [09:55:26]CAPDU: 80 11 00 00 [09:55:26]Write to MH i2c: E2 08 00 53 20 80 11 00 00 00 00 00 00 ED [09:55:26]Write i2c OK [09:55:26]MH_I2C_Read... [09:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:26]Read from MH i2c: E2 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 17 00 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 17 00 53 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [09:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:55:26]wFMCommunicate OK [09:55:26]requested_item fd.num is exist - process it [09:55:26]SAM_PROTO_GetFieldsCounters [09:55:26]wFMCommunicate request_size=4 [09:55:26]MH_SAM_APDU [09:55:26]CAPDU: 80 13 00 00 [09:55:26]Write to MH i2c: E2 08 00 54 20 80 13 00 00 00 00 00 00 F0 [09:55:26]Write i2c OK [09:55:26]MH_I2C_Read... [09:55:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:27]Read from MH i2c: E2 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: E2 62 00 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: E2 62 00 54 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1A 62 02 00 0E 04 04 00 18 02 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 B3 [09:55: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1A 62 02 00 0E 04 04 00 18 02 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 [09:55:27]wFMCommunicate OK [09:55:27]SAM_PROTO_GetFieldsCounters done [09:55:27]requested_item shift.num is exist - process it [09:55:27]requested_item shift.opened is exist - process it [09:55:27]req_shift_opened [09:55:27]FM_GetShiftState [09:55:27]SAM_PROTO_GetShiftState [09:55:27]wFMCommunicate request_size=4 [09:55:27]MH_SAM_APDU [09:55:27]CAPDU: 80 13 01 00 [09:55:27]Write to MH i2c: E2 08 00 55 20 80 13 01 00 00 00 00 00 F2 [09:55:27]Write i2c OK [09:55:27]MH_I2C_Read... [09:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:27]Read from MH i2c: E2 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: E2 0E 00 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: E2 0E 00 55 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 27 [09:55:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:55:27]wFMCommunicate OK [09:55:27]SAM_PROTO_GetShiftState done [09:55:27]FM_GetShiftState done [09:55:27]req_shift_opened done [09:55:27]requested_item shift.open_date is exist - process it [09:55:27]req_shift_open_date [09:55:27]req_shift_open_date done [09:55:27]produce_requested_data done [09:55:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156186,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:55:27]process_action_free close_receipt [09:55:27]json_value_free [09:55:27]json_value_free done [09:55:27]process_json_proto returns [09:55:27]Send response to host [09:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156186,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:55:27]free response buf [09:55:27]execute_script done [09:55:27]execute_script returns [09:55:27]free content buf [09:55:27]Sock 7.Close socket [09:55:27]Sock 7.Thread stoped [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:16]accept exits with 10 [09:57:16]New connection [09:57:16]New thread 3066469732 created [09:57:16]Thread 3066613092 joined [09:57:16]Waiting for new connection... [09:57:16] Sock 10.Parse request [09:57:16]Sock 10.Check first char [09:57:16]Sock 10.First char is OK [09:57:16]request: POST /json_proto HTTP/1.0 [09:57:16]Method: POST [09:57:16]URL: /json_proto [09:57:16]Method is POST - this is cgi request [09:57:16]url: /json_proto [09:57:16]query_string will be loaded in cgi processing [09:57:16]execute_cgi json_proto POST (null) [09:57:16]execute_cgi path=json_proto method=POST [09:57:16]POST find Content-Length [09:57:16]Host: 172.17.63.3:8080 [09:57:16]Content-Length: 681 [09:57:16]Content-Type: application/json [09:57:16] [09:57:16]POST finish read [09:57:16]Found Content-Length = 681 [09:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:16]execute_script... [09: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)99002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:16]POST & json_proto [09:57:16]process_json_proto [09:57:16]json parsed OK: [09:57:16]protocol is kg_v1.0 [09:57:16]action value=close_receipt [09:57:16]process_action close_receipt [09:57:16]cmd_close_receipt [09:57:16]MH_GetDate [09:57:16]Write to MH i2c: F0 00 00 56 20 65 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: F0 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: F0 09 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: F0 09 00 56 20 00 FF BC 1C 67 50 D1 6C 64 9D [09:57:16]GetLastDocTimeStamp 1729936528 [09:57:16]current date 1729936639 [09:57:16]FM_GetShiftState [09:57:16]SAM_PROTO_GetShiftState [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 13 01 00 [09:57:16]Write to MH i2c: E2 08 00 57 20 80 13 01 00 00 00 00 00 F4 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 0E 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 0E 00 57 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 29 [09:57:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:57:16]wFMCommunicate OK [09:57:16]SAM_PROTO_GetShiftState done [09:57:16]FM_GetShiftState done [09:57:16]opened in 1729902702 [09:57:16]opened+sec_in_day 1729989102 [09:57:16]quantity*price = 130053 [09:57:16]sum+1 = 130055 [09:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 88 26.10.2024 09:57 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156187 ФПД: 266985987939998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095720&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156187&fm=266985987939998&tin=02508201610067®Number=0000000000091693&sum=130000 [09:57:17]StoreToDocumentArchive [09:57:17]shift 536 fd 156187 [09:57:17]save to /storage/0536/doc_00156187 [09:57:17]save last doc name /storage/0536/doc_00156187 to /storage/kkm_last_doc_name [09:57:17]save OK [09:57:17]Clear old archive folders... [09:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:17]tlvbuf is 00D4C4A0 [09:57:17]SAM_PROTO_ClearQueue [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 09 00 00 [09:57:17]Write to MH i2c: E2 08 00 64 20 80 09 00 00 00 00 00 00 F6 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 64 20 00 90 00 F8 [09:57:17]RAPDU: 90 00 [09:57:17]wFMCommunicate OK [09:57:17]SAM_PROTO_ClearQueue done [09:57:17]KKMCreateOFDPacket [09:57:17]OFDProtocolAddRootSTLVToBuf [09:57:17]FM_MakeSignedData [09:57:17]FM_MakeSignedData [09:57:17]SAM_PROTO_SignData [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 0D 01 02 [09:57:17]Write to MH i2c: E2 08 00 65 20 80 0D 01 02 00 00 00 00 FE [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 65 20 00 90 00 F9 [09:57:17]RAPDU: 90 00 [09:57:17]wFMCommunicate OK [09:57:17]wFMCommunicate request_size=255 [09:57:17]MH_SAM_APDU [09: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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 00 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 62 02 00 35 04 06 00 F2 [09:57:17]Write to MH i2c: E2 02 01 66 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 00 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 62 02 00 35 04 06 00 F2 00 00 ED [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 66 20 00 90 00 FA [09:57:17]RAPDU: 90 00 [09:57:17]wFMCommunicate OK [09:57:17]wFMCommunicate request_size=10 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 0D 02 02 05 D2 84 F8 9E 9E [09:57:17]Write to MH i2c: E2 0D 00 67 20 80 0D 02 02 05 00 D2 84 F8 9E 9E 00 00 95 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 03 00 67 20 00 90 00 FB [09:57:17]RAPDU: 90 00 [09:57:17]wFMCommunicate OK [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 0D 03 02 [09:57:17]Write to MH i2c: E2 08 00 68 20 80 0D 03 02 00 00 00 00 03 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 0B 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 0B 00 68 20 00 39 10 C8 CF 62 AE 9E B7 90 00 49 [09:57:17]RAPDU: 39 10 C8 CF 62 AE 9E B7 90 00 [09:57:17]wFMCommunicate OK [09:57:17]SAM_PROTO_SignData done [09:57:17]FM_MakeSignedData done [09:57:17]CreateOFDProtocolMessage [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 11 00 00 [09:57:17]Write to MH i2c: E2 08 00 69 20 80 11 00 00 00 00 00 00 03 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 17 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 17 00 69 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [09:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:57:17]wFMCommunicate OK [09:57:17]CreateOFDProtocolMessage done [09:57:17]OFDSenderStorePacket 156187 [09:57:17]StoreOFDPacket docnum=156187 [09:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E D2 07 01 22 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 00 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 62 02 00 35 04 06 00 F2 D2 84 F8 9E 9E 39 10 C8 CF 62 AE 9E B7 [09:57:17]CheckFolder [09:57:17]dirname=/storage/ofd_packets [09:57:17]CheckFolder done [09:57:17]ProducePacketName [09:57:17]name=ofd_packets/00156187 [09:57:17]NVStorageSaveData ofd_packets/00156187 [09:57:17]File name is /storage/ofd_packets/00156187 [09:57:17]Write 301 bytes [09:57:17]NVStorageSaveData done [09:57:17]OFDSenderStorePacket done [09:57:17]KKMCreateOFDPacket done [09:57:17]NVStorageSaveData kkm_last_timestamp [09:57:17]File name is /storage/kkm_last_timestamp [09:57:17]Write 4 bytes [09:57:17]NVStorageSaveData done [09:57:17]ExternCall_PrintAddStr [09:57:17]wPrintStart [09:57:17]Write to MH i2c: 01 00 00 6A 20 8A [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 6A 20 00 00 00 00 00 FF 0F 9F [09:57:17]RasterBufferAndPrint [09:57:17]line Счет N : (1)99002 [09:57:17]line ИНН: 02508201610067 [09:57:17]line Контрольно-Кассовый Чек [09:57:17]line ПРОДАЖА [09:57:17]line ТРК (МРК, ГНК) : 31 [09:57:17]line Товар: 2710124130 [09:57:17]line Аи-92-К-5 [09:57:17]line 19.440 * 66.90 [09:57:17]line = 1300.54 [09:57:17]line НДС 12% НСП 1% [09:57:17]line > о реализуемом товаре [09:57:17]line ОКРУГЛЕНИЕ: -0.54 [09:57:17]line ИТОГО: 1300.00 [09:57:17]line Внесено: 1300.00 [09:57:17]line СДАЧА: 0.00 [09:57:17]line НСП 1% : 11.51 [09:57:17]line НДС 12% : 138.11 [09:57:17]line Наличными: 1300.00 [09:57:17]line Безнал.: 0.00 [09:57:17]line Место: АЗС № 143 "Партнер Нефть" [09:57:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:57:17]line СНО: Общий режим [09:57:17]line Чек 88 26.10.2024 09:57 [09:57:17]line Смена: 536 ФФД: 1.0 [09:57:17]line ЗНМ: 0300000096 [09:57:17]line РНМ: 0000000000091693 [09:57:17]line Версия ККМ: 001 [09:57:17]line ФМ: 0000000000871792 [09:57:17]line ФД: 156187 [09:57:17]line ФПД: 266985987939998 [09:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095720&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156187&fm=266985987939998&tin=02508201610067®Number=0000000000091693&sum=130000 [09:57:18]OFD Sender: Processing packet 156187 [packets to send 31, broken 30] [09:57:18]ProducePacketName [09:57:18]name=ofd_packets/00156187 [09:57:18]OFD Sender: To server: pG, [09:57:18]CommunicateWithHost lk.salyk.kg:30040 [09:57:18]ConnectInit lk.salyk.kg [09:57:18]written 0, free lines is 4095 [09:57:18]Connected sock=9 [09:57:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E D2 07 01 22 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 00 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 62 02 00 35 04 06 00 F2 D2 84 F8 9E 9E 39 10 C8 CF 62 AE 9E B7 [09:57:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 50 92 47 00 61 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 31 37 39 32 10 04 04 00 1B 62 02 00 F4 03 04 00 73 62 1C 67 B6 04 01 00 00 D9 C5 4F 03 79 44 B8 1F [09:57:18]CommunicateWithHost err = 0 [09:57:18]CheckOFDResponse [09:57:18]1017 (14) - 77093643461234 [09:57:18]1041 (16) - 0000000000871792 [09:57:18]1040 (4) - 156187 [09:57:18]1012 (4) - 26.10.2024 03:30 [09:57:18]1206 (1) - 0 [09:57:18]OFD Sender: Remove packet 156187 [09:57:18]ProducePacketName [09:57:18]name=ofd_packets/00156187 [09:57:18]NVStorageDeleteData [09:57:18]Write to MH i2c: 01 00 00 95 20 B5 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 07 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 07 00 95 20 00 00 00 00 00 F4 0C BC [09:57:18]RasterBufferAndPrint [09:57:18]line [09:57:18]line [09:57:18]line [09:57:18]line [09:57:18]line [09:57:18]written 0, free lines is 3322 [09:57:18]process_action close_receipt done [09:57:18]requested_data is exist [09:57:18]produce_requested_data [09:57:18]requested_item fm.sn is exist - process it [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 11 00 00 [09:57:18]Write to MH i2c: E2 08 00 9C 20 80 11 00 00 00 00 00 00 36 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:18]Read from MH i2c: E2 17 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 17 00 9C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [09:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:57:18]wFMCommunicate OK [09:57:18]requested_item fd.num is exist - process it [09:57:18]SAM_PROTO_GetFieldsCounters [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 13 00 00 [09:57:18]Write to MH i2c: E2 08 00 9D 20 80 13 00 00 00 00 00 00 39 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:19]Read from MH i2c: E2 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: E2 62 00 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: E2 62 00 9D 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1B 62 02 00 0E 04 04 00 18 02 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 00 [09:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1B 62 02 00 0E 04 04 00 18 02 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 [09:57:19]wFMCommunicate OK [09:57:19]SAM_PROTO_GetFieldsCounters done [09:57:19]requested_item shift.num is exist - process it [09:57:19]requested_item shift.opened is exist - process it [09:57:19]req_shift_opened [09:57:19]FM_GetShiftState [09:57:19]SAM_PROTO_GetShiftState [09:57:19]wFMCommunicate request_size=4 [09:57:19]MH_SAM_APDU [09:57:19]CAPDU: 80 13 01 00 [09:57:19]Write to MH i2c: E2 08 00 9E 20 80 13 01 00 00 00 00 00 3B [09:57:19]Write i2c OK [09:57:19]MH_I2C_Read... [09:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:19]Read from MH i2c: E2 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: E2 0E 00 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: E2 0E 00 9E 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 70 [09:57:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:57:19]wFMCommunicate OK [09:57:19]SAM_PROTO_GetShiftState done [09:57:19]FM_GetShiftState done [09:57:19]req_shift_opened done [09:57:19]requested_item shift.open_date is exist - process it [09:57:19]req_shift_open_date [09:57:19]req_shift_open_date done [09:57:19]produce_requested_data done [09:57:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156187,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:57:19]process_action_free close_receipt [09:57:19]json_value_free [09:57:19]json_value_free done [09:57:19]process_json_proto returns [09:57:19]Send response to host [09:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156187,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:57:19]free response buf [09:57:19]execute_script done [09:57:19]execute_script returns [09:57:19]free content buf [09:57:19]Sock 10.Close socket [09:57:19]Sock 10.Thread stoped [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:30]accept exits with 7 [09:59:30]New connection [09:59:30]New thread 3066613092 created [09:59:30]Thread 3066469732 joined [09:59:30]Waiting for new connection... [09:59:30] Sock 7.Parse request [09:59:30]Sock 7.Check first char [09:59:30]Sock 7.First char is OK [09:59:30]request: POST /json_proto HTTP/1.0 [09:59:30]Method: POST [09:59:30]URL: /json_proto [09:59:30]Method is POST - this is cgi request [09:59:30]url: /json_proto [09:59:30]query_string will be loaded in cgi processing [09:59:30]execute_cgi json_proto POST (null) [09:59:30]execute_cgi path=json_proto method=POST [09:59:30]POST find Content-Length [09:59:30]Host: 172.17.63.3:8080 [09:59:30]Content-Length: 799 [09:59:30]Content-Type: application/json [09:59:30] [09:59:30]POST finish read [09:59:30]Found Content-Length = 799 [09:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466626.27", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:30]execute_script... [09:59:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466626.27", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:30]POST & json_proto [09:59:30]process_json_proto [09:59:30]json parsed OK: [09:59:30]protocol is kg_v1.0 [09:59:30]action value=close_receipt [09:59:30]process_action close_receipt [09:59:30]cmd_close_receipt [09:59:30]MH_GetDate [09:59:30]Write to MH i2c: F0 00 00 9F 20 AE [09:59:30]Write i2c OK [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 09 00 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 09 00 9F 20 00 86 BD 1C 67 50 D1 6C 64 6E [09:59:30]GetLastDocTimeStamp 1729936640 [09:59:30]current date 1729936774 [09:59:30]FM_GetShiftState [09:59:30]SAM_PROTO_GetShiftState [09:59:30]wFMCommunicate request_size=4 [09:59:30]MH_SAM_APDU [09:59:30]CAPDU: 80 13 01 00 [09:59:30]Write to MH i2c: E2 08 00 A0 20 80 13 01 00 00 00 00 00 3D [09:59:30]Write i2c OK [09:59:30]MH_I2C_Read... [09:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:30]Read from MH i2c: E2 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: E2 0E 00 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: E2 0E 00 A0 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 72 [09:59:30]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:59:30]wFMCommunicate OK [09:59:30]SAM_PROTO_GetShiftState done [09:59:30]FM_GetShiftState done [09:59:30]opened in 1729902702 [09:59:30]opened+sec_in_day 1729989102 [09:59:30]quantity*price = 0 [09:59:30]sum+1 = 1 [09:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 89 26.10.2024 09:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4466626.27 ФМ: 0000000000871792 ФД: 156188 ФПД: 130323160319734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095934&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156188&fm=130323160319734&tin=02508201610067®Number=0000000000091693&sum=0 [09:59:31]StoreToDocumentArchive [09:59:31]shift 536 fd 156188 [09:59:31]save to /storage/0536/doc_00156188 [09:59:31]save last doc name /storage/0536/doc_00156188 to /storage/kkm_last_doc_name [09:59:31]save OK [09:59:31]Clear old archive folders... [09:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:59:31]tlvbuf is B6E87350 [09:59:31]SAM_PROTO_ClearQueue [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 09 00 00 [09:59:31]Write to MH i2c: E2 08 00 AD 20 80 09 00 00 00 00 00 00 3F [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 AD 20 00 90 00 41 [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]SAM_PROTO_ClearQueue done [09:59:31]KKMCreateOFDPacket [09:59:31]OFDProtocolAddRootSTLVToBuf [09:59:31]FM_MakeSignedData [09:59:31]FM_MakeSignedData [09:59:31]SAM_PROTO_SignData [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 01 02 [09:59:31]Write to MH i2c: E2 08 00 AE 20 80 0D 01 02 00 00 00 00 47 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 AE 20 00 90 00 42 [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]wFMCommunicate request_size=255 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 86 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 62 02 00 35 04 06 00 76 87 39 AD [09:59:31]Write to MH i2c: E2 02 01 AF 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 86 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 62 02 00 35 04 06 00 76 87 39 AD 00 00 B3 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 AF 20 00 90 00 43 [09:59:32]RAPDU: 90 00 [09:59:32]wFMCommunicate OK [09:59:32]wFMCommunicate request_size=7 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 0D 02 02 02 46 F6 [09:59:32]Write to MH i2c: E2 0A 00 B0 20 80 0D 02 02 02 00 46 F6 00 00 8A [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 B0 20 00 90 00 44 [09:59:32]RAPDU: 90 00 [09:59:32]wFMCommunicate OK [09:59:32]wFMCommunicate request_size=4 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 0D 03 02 [09:59:32]Write to MH i2c: E2 08 00 B1 20 80 0D 03 02 00 00 00 00 4C [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 0B 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 0B 00 B1 20 00 36 C8 A3 B6 8D F0 83 BE 90 00 62 [09:59:32]RAPDU: 36 C8 A3 B6 8D F0 83 BE 90 00 [09:59:32]wFMCommunicate OK [09:59:32]SAM_PROTO_SignData done [09:59:32]FM_MakeSignedData done [09:59:32]CreateOFDProtocolMessage [09:59:32]wFMCommunicate request_size=4 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 11 00 00 [09:59:32]Write to MH i2c: E2 08 00 B2 20 80 11 00 00 00 00 00 00 4C [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 17 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 17 00 B2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [09:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:59:32]wFMCommunicate OK [09:59:32]CreateOFDProtocolMessage done [09:59:32]OFDSenderStorePacket 156188 [09:59:32]StoreOFDPacket docnum=156188 [09:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 BF 6C 04 01 35 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 86 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 62 02 00 35 04 06 00 76 87 39 AD 46 F6 36 C8 A3 B6 8D F0 83 BE [09:59:32]CheckFolder [09:59:32]dirname=/storage/ofd_packets [09:59:32]CheckFolder done [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00156188 [09:59:32]NVStorageSaveData ofd_packets/00156188 [09:59:32]File name is /storage/ofd_packets/00156188 [09:59:32]Write 298 bytes [09:59:32]NVStorageSaveData done [09:59:32]OFDSenderStorePacket done [09:59:32]KKMCreateOFDPacket done [09:59:32]NVStorageSaveData kkm_last_timestamp [09:59:32]File name is /storage/kkm_last_timestamp [09:59:32]Write 4 bytes [09:59:32]NVStorageSaveData done [09:59:32]ExternCall_PrintAddStr [09:59:32]wPrintStart [09:59:32]Write to MH i2c: 01 00 00 B3 20 D3 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 07 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 07 00 B3 20 00 00 00 00 00 FF 0F E8 [09:59:32]RasterBufferAndPrint [09:59:32]line Счет N : (1)99003 [09:59:32]line ИНН: 02508201610067 [09:59:32]line Контрольно-Кассовый Чек [09:59:32]line ПРОДАЖА [09:59:32]line ТРК (МРК, ГНК) : 32 [09:59:32]line Товар: 2710194210 [09:59:32]line ДТ-К-5 [09:59:32]line 20.000 * 0.00 [09:59:32]line = 0.00 [09:59:32]line НДС 12% НСП 1% [09:59:32]line > о реализуемом товаре [09:59:32]line ИТОГО: 0.00 [09:59:32]line НСП 1% : 0.00 [09:59:32]line НДС 12% : 0.00 [09:59:32]line Наличными: 0.00 [09:59:32]line Безнал.: 0.00 [09:59:32]line Место: АЗС № 143 "Партнер Нефть" [09:59:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:59:32]line СНО: Общий режим [09:59:32]line Чек 89 26.10.2024 09:59 [09:59:32]line Смена: 536 ФФД: 1.0 [09:59:32]line ЗНМ: 0300000096 [09:59:32]line РНМ: 0000000000091693 [09:59:32]line Версия ККМ: 001 [09:59:32]line Талоны: Топливные Талоны [09:59:32]line 4466626.27 [09:59:32]line ФМ: 0000000000871792 [09:59:32]line ФД: 156188 [09:59:32]line ФПД: 130323160319734 [09:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095934&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156188&fm=130323160319734&tin=02508201610067®Number=0000000000091693&sum=0 [09:59:32]OFD Sender: Processing packet 156188 [packets to send 31, broken 30] [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00156188 [09:59:32]OFD Sender: To server: pG, [09:59:32]CommunicateWithHost lk.salyk.kg:30040 [09:59:32]ConnectInit lk.salyk.kg [09:59:32]written 0, free lines is 4095 [09:59:32]Connected sock=10 [09:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 BF 6C 04 01 35 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 86 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 62 02 00 35 04 06 00 76 87 39 AD 46 F6 36 C8 A3 B6 8D F0 83 BE [09:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AB 4B 47 00 4E 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 62 02 00 F4 03 04 00 F9 62 1C 67 B6 04 01 00 00 0C 67 FA C1 8A A3 C5 9D [09:59:33]CommunicateWithHost err = 0 [09:59:33]CheckOFDResponse [09:59:33]1017 (14) - 77093643461234 [09:59:33]1041 (16) - 0000000000871792 [09:59:33]1040 (4) - 156188 [09:59:33]1012 (4) - 26.10.2024 03:33 [09:59:33]1206 (1) - 0 [09:59:33]OFD Sender: Remove packet 156188 [09:59:33]ProducePacketName [09:59:33]name=ofd_packets/00156188 [09:59:33]NVStorageDeleteData [09:59:33]Write to MH i2c: 01 00 00 DD 20 FD [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: 01 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: 01 07 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: 01 07 00 DD 20 00 00 00 00 00 08 0D 19 [09:59:33]RasterBufferAndPrint [09:59:33]line [09:59:33]line [09:59:33]line [09:59:33]line [09:59:33]line [09:59:33]written 0, free lines is 3343 [09:59:33]process_action close_receipt done [09:59:33]requested_data is exist [09:59:33]produce_requested_data [09:59:33]requested_item fm.sn is exist - process it [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 11 00 00 [09:59:33]Write to MH i2c: E2 08 00 E4 20 80 11 00 00 00 00 00 00 7E [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 [09:59:33]MH_I2C_Read... [09:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:33]Read from MH i2c: E2 17 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 17 00 E4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [09:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:59:33]wFMCommunicate OK [09:59:33]requested_item fd.num is exist - process it [09:59:33]SAM_PROTO_GetFieldsCounters [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 13 00 00 [09:59:33]Write to MH i2c: E2 08 00 E5 20 80 13 00 00 00 00 00 00 81 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:33]Read from MH i2c: E2 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 62 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 62 00 E5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1C 62 02 00 0E 04 04 00 18 02 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 4C [09:59: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1C 62 02 00 0E 04 04 00 18 02 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 [09:59:33]wFMCommunicate OK [09:59:33]SAM_PROTO_GetFieldsCounters done [09:59:33]requested_item shift.num is exist - process it [09:59:33]requested_item shift.opened is exist - process it [09:59:33]req_shift_opened [09:59:33]FM_GetShiftState [09:59:33]SAM_PROTO_GetShiftState [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 13 01 00 [09:59:33]Write to MH i2c: E2 08 00 E6 20 80 13 01 00 00 00 00 00 83 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:33]Read from MH i2c: E2 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 0E 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 0E 00 E6 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B8 [09:59:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [09:59:33]wFMCommunicate OK [09:59:33]SAM_PROTO_GetShiftState done [09:59:33]FM_GetShiftState done [09:59:33]req_shift_opened done [09:59:33]requested_item shift.open_date is exist - process it [09:59:33]req_shift_open_date [09:59:33]req_shift_open_date done [09:59:33]produce_requested_data done [09:59:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156188,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [09:59:33]process_action_free close_receipt [09:59:33]json_value_free [09:59:33]json_value_free done [09:59:33]process_json_proto returns [09:59:33]Send response to host [09:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156188,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [09:59:33]free response buf [09:59:33]execute_script done [09:59:33]execute_script returns [09:59:33]free content buf [09:59:33]Sock 7.Close socket [09:59:33]Sock 7.Thread stoped [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:31]accept exits with 9 [10:00:31]New connection [10:00:31]New thread 3066469732 created [10:00:31]Thread 3066613092 joined [10:00:31]Waiting for new connection... [10:00:31] Sock 9.Parse request [10:00:31]Sock 9.Check first char [10:00:31]Sock 9.First char is OK [10:00:31]request: POST /json_proto HTTP/1.0 [10:00:31]Method: POST [10:00:31]URL: /json_proto [10:00:31]Method is POST - this is cgi request [10:00:31]url: /json_proto [10:00:31]query_string will be loaded in cgi processing [10:00:31]execute_cgi json_proto POST (null) [10:00:31]execute_cgi path=json_proto method=POST [10:00:31]POST find Content-Length [10:00:31]Host: 172.17.63.3:8080 [10:00:31]Content-Length: 678 [10:00:31]Content-Type: application/json [10:00:31] [10:00:31]POST finish read [10:00:31]Found Content-Length = 678 [10:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:31]execute_script... [10:00:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:31]POST & json_proto [10:00:31]process_json_proto [10:00:31]json parsed OK: [10:00:31]protocol is kg_v1.0 [10:00:31]action value=close_receipt [10:00:31]process_action close_receipt [10:00:31]cmd_close_receipt [10:00:31]MH_GetDate [10:00:31]Write to MH i2c: F0 00 00 E7 20 F6 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: F0 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: F0 09 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: F0 09 00 E7 20 00 C3 BD 1C 67 50 D1 6C 64 F3 [10:00:31]GetLastDocTimeStamp 1729936774 [10:00:31]current date 1729936835 [10:00:31]FM_GetShiftState [10:00:31]SAM_PROTO_GetShiftState [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 13 01 00 [10:00:31]Write to MH i2c: E2 08 00 E8 20 80 13 01 00 00 00 00 00 85 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0E 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0E 00 E8 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BA [10:00:31]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:00:31]wFMCommunicate OK [10:00:31]SAM_PROTO_GetShiftState done [10:00:31]FM_GetShiftState done [10:00:31]opened in 1729902702 [10:00:31]opened+sec_in_day 1729989102 [10:00:31]quantity*price = 120015 [10:00:31]sum+1 = 120016 [10:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 90 26.10.2024 10:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156189 ФПД: 196390106653434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100035&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156189&fm=196390106653434&tin=02508201610067®Number=0000000000091693&sum=120000 [10:00:32]StoreToDocumentArchive [10:00:32]shift 536 fd 156189 [10:00:32]save to /storage/0536/doc_00156189 [10:00:32]save last doc name /storage/0536/doc_00156189 to /storage/kkm_last_doc_name [10:00:32]save OK [10:00:32]Clear old archive folders... [10:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:00:32]tlvbuf is 00D14530 [10:00:32]SAM_PROTO_ClearQueue [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 09 00 00 [10:00:32]Write to MH i2c: E2 08 00 F5 20 80 09 00 00 00 00 00 00 87 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 F5 20 00 90 00 89 [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_ClearQueue done [10:00:32]KKMCreateOFDPacket [10:00:32]OFDProtocolAddRootSTLVToBuf [10:00:32]FM_MakeSignedData [10:00:32]FM_MakeSignedData [10:00:32]SAM_PROTO_SignData [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 0D 01 02 [10:00:32]Write to MH i2c: E2 08 00 F6 20 80 0D 01 02 00 00 00 00 8F [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 F6 20 00 90 00 8A [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]wFMCommunicate request_size=255 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 5A 00 00 00 F4 03 04 00 C3 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 62 02 00 35 04 06 00 B2 9D A2 8B [10:00:32]Write to MH i2c: E2 02 01 F7 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 5A 00 00 00 F4 03 04 00 C3 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 62 02 00 35 04 06 00 B2 9D A2 8B 00 00 FB [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:33]Read from MH i2c: E2 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 03 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 03 00 F7 20 00 90 00 8B [10:00:33]RAPDU: 90 00 [10:00:33]wFMCommunicate OK [10:00:33]wFMCommunicate request_size=7 [10:00:33]MH_SAM_APDU [10:00:33]CAPDU: 80 0D 02 02 02 62 FA [10:00:33]Write to MH i2c: E2 0A 00 F8 20 80 0D 02 02 02 00 62 FA 00 00 F2 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:33]Read from MH i2c: E2 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 03 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 03 00 F8 20 00 90 00 8C [10:00:33]RAPDU: 90 00 [10:00:33]wFMCommunicate OK [10:00:33]wFMCommunicate request_size=4 [10:00:33]MH_SAM_APDU [10:00:33]CAPDU: 80 0D 03 02 [10:00:33]Write to MH i2c: E2 08 00 F9 20 80 0D 03 02 00 00 00 00 94 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:33]Read from MH i2c: E2 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 0B 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 0B 00 F9 20 00 AF F2 F8 9E 2B 07 3F 18 90 00 55 [10:00:33]RAPDU: AF F2 F8 9E 2B 07 3F 18 90 00 [10:00:33]wFMCommunicate OK [10:00:33]SAM_PROTO_SignData done [10:00:33]FM_MakeSignedData done [10:00:33]CreateOFDProtocolMessage [10:00:33]wFMCommunicate request_size=4 [10:00:33]MH_SAM_APDU [10:00:33]CAPDU: 80 11 00 00 [10:00:33]Write to MH i2c: E2 08 00 FA 20 80 11 00 00 00 00 00 00 94 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:33]Read from MH i2c: E2 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 17 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 17 00 FA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [10:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:00:33]wFMCommunicate OK [10:00:33]CreateOFDProtocolMessage done [10:00:33]OFDSenderStorePacket 156189 [10:00:33]StoreOFDPacket docnum=156189 [10:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A1 B2 04 01 92 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 5A 00 00 00 F4 03 04 00 C3 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 62 02 00 35 04 06 00 B2 9D A2 8B 62 FA AF F2 F8 9E 2B 07 3F 18 [10:00:33]CheckFolder [10:00:33]dirname=/storage/ofd_packets [10:00:33]CheckFolder done [10:00:33]ProducePacketName [10:00:33]name=ofd_packets/00156189 [10:00:33]NVStorageSaveData ofd_packets/00156189 [10:00:33]File name is /storage/ofd_packets/00156189 [10:00:33]Write 298 bytes [10:00:33]NVStorageSaveData done [10:00:33]OFDSenderStorePacket done [10:00:33]KKMCreateOFDPacket done [10:00:33]NVStorageSaveData kkm_last_timestamp [10:00:33]File name is /storage/kkm_last_timestamp [10:00:33]Write 4 bytes [10:00:33]NVStorageSaveData done [10:00:33]ExternCall_PrintAddStr [10:00:33]wPrintStart [10:00:33]Write to MH i2c: 01 00 00 FB 20 1B [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 07 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 07 00 FB 20 00 00 00 00 00 FF 0F 30 [10:00:33]RasterBufferAndPrint [10:00:33]line Счет N : (1)99004 [10:00:33]line ИНН: 02508201610067 [10:00:33]line Контрольно-Кассовый Чек [10:00:33]line ПРОДАЖА [10:00:33]line ТРК (МРК, ГНК) : 32 [10:00:33]line Товар: 2710194210 [10:00:33]line ДТ-К-5 [10:00:33]line 15.750 * 76.20 [10:00:33]line = 1200.15 [10:00:33]line НДС 12% НСП 1% [10:00:33]line > о реализуемом товаре [10:00:33]line ОКРУГЛЕНИЕ: -0.15 [10:00:33]line ИТОГО: 1200.00 [10:00:33]line Внесено: 1200.00 [10:00:33]line СДАЧА: 0.00 [10:00:33]line НСП 1% : 10.62 [10:00:33]line НДС 12% : 127.45 [10:00:33]line Наличными: 1200.00 [10:00:33]line Безнал.: 0.00 [10:00:33]line Место: АЗС № 143 "Партнер Нефть" [10:00:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:00:33]line СНО: Общий режим [10:00:33]line Чек 90 26.10.2024 10:00 [10:00:33]line Смена: 536 ФФД: 1.0 [10:00:33]line ЗНМ: 0300000096 [10:00:33]line РНМ: 0000000000091693 [10:00:33]line Версия ККМ: 001 [10:00:33]line ФМ: 0000000000871792 [10:00:33]line ФД: 156189 [10:00:33]line ФПД: 196390106653434 [10:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100035&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156189&fm=196390106653434&tin=02508201610067®Number=0000000000091693&sum=120000 [10:00:33]OFD Sender: Processing packet 156189 [packets to send 31, broken 30] [10:00:33]ProducePacketName [10:00:33]name=ofd_packets/00156189 [10:00:33]OFD Sender: To server: pG, [10:00:33]CommunicateWithHost lk.salyk.kg:30040 [10:00:33]ConnectInit lk.salyk.kg [10:00:33]written 0, free lines is 4095 [10:00:33]Connected sock=10 [10:00:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A1 B2 04 01 92 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 5A 00 00 00 F4 03 04 00 C3 BD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 62 02 00 35 04 06 00 B2 9D A2 8B 62 FA AF F2 F8 9E 2B 07 3F 18 [10:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5D FA 47 00 59 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 31 37 39 32 10 04 04 00 1D 62 02 00 F4 03 04 00 36 63 1C 67 B6 04 01 00 00 1D 91 62 E0 39 2A 7C C7 [10:00:33]CommunicateWithHost err = 0 [10:00:33]CheckOFDResponse [10:00:33]1017 (14) - 77093643461234 [10:00:33]1041 (16) - 0000000000871792 [10:00:33]1040 (4) - 156189 [10:00:33]1012 (4) - 26.10.2024 03:34 [10:00:33]1206 (1) - 0 [10:00:33]OFD Sender: Remove packet 156189 [10:00:33]ProducePacketName [10:00:33]name=ofd_packets/00156189 [10:00:33]NVStorageDeleteData [10:00:34]Write to MH i2c: 01 00 00 26 21 47 [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: 01 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: 01 07 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: 01 07 00 26 21 00 00 00 00 00 EE 0C 48 [10:00:34]RasterBufferAndPrint [10:00:34]line [10:00:34]line [10:00:34]line [10:00:34]line [10:00:34]line [10:00:34]written 0, free lines is 3316 [10:00:34]process_action close_receipt done [10:00:34]requested_data is exist [10:00:34]produce_requested_data [10:00:34]requested_item fm.sn is exist - process it [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 11 00 00 [10:00:34]Write to MH i2c: E2 08 00 2D 21 80 11 00 00 00 00 00 00 C8 [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 17 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 17 00 2D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [10:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:00:34]wFMCommunicate OK [10:00:34]requested_item fd.num is exist - process it [10:00:34]SAM_PROTO_GetFieldsCounters [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 13 00 00 [10:00:34]Write to MH i2c: E2 08 00 2E 21 80 13 00 00 00 00 00 00 CB [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 62 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 62 00 2E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1D 62 02 00 0E 04 04 00 18 02 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 9A [10:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:34]wFMCommunicate OK [10:00:34]SAM_PROTO_GetFieldsCounters done [10:00:34]requested_item shift.num is exist - process it [10:00:34]requested_item shift.opened is exist - process it [10:00:34]req_shift_opened [10:00:34]FM_GetShiftState [10:00:34]SAM_PROTO_GetShiftState [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 13 01 00 [10:00:34]Write to MH i2c: E2 08 00 2F 21 80 13 01 00 00 00 00 00 CD [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 0E 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 0E 00 2F 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 02 [10:00:34]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:00:34]wFMCommunicate OK [10:00:34]SAM_PROTO_GetShiftState done [10:00:34]FM_GetShiftState done [10:00:34]req_shift_opened done [10:00:34]requested_item shift.open_date is exist - process it [10:00:34]req_shift_open_date [10:00:34]req_shift_open_date done [10:00:34]produce_requested_data done [10:00:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156189,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:00:34]process_action_free close_receipt [10:00:34]json_value_free [10:00:34]json_value_free done [10:00:34]process_json_proto returns [10:00:34]Send response to host [10:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156189,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:00:34]free response buf [10:00:34]execute_script done [10:00:34]execute_script returns [10:00:34]free content buf [10:00:34]Sock 9.Close socket [10:00:34]Sock 9.Thread stoped [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:47]accept exits with 7 [10:01:47]New connection [10:01:47]New thread 3066613092 created [10:01:47]Thread 3066469732 joined [10:01:47]Waiting for new connection... [10:01:47] Sock 7.Parse request [10:01:47]Sock 7.Check first char [10:01:47]Sock 7.First char is OK [10:01:47]request: POST /json_proto HTTP/1.0 [10:01:47]Method: POST [10:01:47]URL: /json_proto [10:01:47]Method is POST - this is cgi request [10:01:47]url: /json_proto [10:01:47]query_string will be loaded in cgi processing [10:01:47]execute_cgi json_proto POST (null) [10:01:47]execute_cgi path=json_proto method=POST [10:01:47]POST find Content-Length [10:01:47]Host: 172.17.63.3:8080 [10:01:47]Content-Length: 677 [10:01:47]Content-Type: application/json [10:01:47] [10:01:47]POST finish read [10:01:47]Found Content-Length = 677 [10:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:47]execute_script... [10:01:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:47]POST & json_proto [10:01:47]process_json_proto [10:01:47]json parsed OK: [10:01:47]protocol is kg_v1.0 [10:01:47]action value=close_receipt [10:01:47]process_action close_receipt [10:01:47]cmd_close_receipt [10:01:47]MH_GetDate [10:01:47]Write to MH i2c: F0 00 00 30 21 40 [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: F0 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: F0 09 00 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: F0 09 00 30 21 00 0F BE 1C 67 50 D1 6C 64 8A [10:01:47]GetLastDocTimeStamp 1729936835 [10:01:47]current date 1729936911 [10:01:47]FM_GetShiftState [10:01:47]SAM_PROTO_GetShiftState [10:01:47]wFMCommunicate request_size=4 [10:01:47]MH_SAM_APDU [10:01:47]CAPDU: 80 13 01 00 [10:01:47]Write to MH i2c: E2 08 00 31 21 80 13 01 00 00 00 00 00 CF [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:47]Read from MH i2c: E2 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: E2 0E 00 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: E2 0E 00 31 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 04 [10:01:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:01:47]wFMCommunicate OK [10:01:47]SAM_PROTO_GetShiftState done [10:01:47]FM_GetShiftState done [10:01:47]opened in 1729902702 [10:01:47]opened+sec_in_day 1729989102 [10:01:47]quantity*price = 70044 [10:01:47]sum+1 = 70045 [10:01:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 91 26.10.2024 10:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156190 ФПД: 47613496316030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100151&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156190&fm=47613496316030&tin=02508201610067®Number=0000000000091693&sum=70000 [10:01:48]StoreToDocumentArchive [10:01:48]shift 536 fd 156190 [10:01:48]save to /storage/0536/doc_00156190 [10:01:48]save last doc name /storage/0536/doc_00156190 to /storage/kkm_last_doc_name [10:01:48]save OK [10:01:48]Clear old archive folders... [10:01:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:48]tlvbuf is 00DA43A0 [10:01:48]SAM_PROTO_ClearQueue [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 09 00 00 [10:01:48]Write to MH i2c: E2 08 00 3E 21 80 09 00 00 00 00 00 00 D1 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 3E 21 00 90 00 D3 [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]SAM_PROTO_ClearQueue done [10:01:48]KKMCreateOFDPacket [10:01:48]OFDProtocolAddRootSTLVToBuf [10:01:48]FM_MakeSignedData [10:01:48]FM_MakeSignedData [10:01:48]SAM_PROTO_SignData [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 01 02 [10:01:48]Write to MH i2c: E2 08 00 3F 21 80 0D 01 02 00 00 00 00 D9 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 3F 21 00 90 00 D4 [10:01:49]RAPDU: 90 00 [10:01:49]wFMCommunicate OK [10:01:49]wFMCommunicate request_size=255 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 0F BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 62 02 00 35 04 06 00 2B [10:01:49]Write to MH i2c: E2 02 01 40 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 0F BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 62 02 00 35 04 06 00 2B 00 00 EF [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 40 21 00 90 00 D5 [10:01:49]RAPDU: 90 00 [10:01:49]wFMCommunicate OK [10:01:49]wFMCommunicate request_size=10 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 0D 02 02 05 4D E1 88 D0 7E [10:01:49]Write to MH i2c: E2 0D 00 41 21 80 0D 02 02 05 00 4D E1 88 D0 7E 00 00 EA [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 41 21 00 90 00 D6 [10:01:49]RAPDU: 90 00 [10:01:49]wFMCommunicate OK [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 0D 03 02 [10:01:49]Write to MH i2c: E2 08 00 42 21 80 0D 03 02 00 00 00 00 DE [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0B 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0B 00 42 21 00 76 62 D4 8C ED F1 8D B3 90 00 35 [10:01:49]RAPDU: 76 62 D4 8C ED F1 8D B3 90 00 [10:01:49]wFMCommunicate OK [10:01:49]SAM_PROTO_SignData done [10:01:49]FM_MakeSignedData done [10:01:49]CreateOFDProtocolMessage [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 11 00 00 [10:01:49]Write to MH i2c: E2 08 00 43 21 80 11 00 00 00 00 00 00 DE [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 17 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 17 00 43 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [10:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:01:49]wFMCommunicate OK [10:01:49]CreateOFDProtocolMessage done [10:01:49]OFDSenderStorePacket 156190 [10:01:49]StoreOFDPacket docnum=156190 [10:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E7 3E 07 01 0E 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 0F BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 62 02 00 35 04 06 00 2B 4D E1 88 D0 7E 76 62 D4 8C ED F1 8D B3 [10:01:49]CheckFolder [10:01:49]dirname=/storage/ofd_packets [10:01:49]CheckFolder done [10:01:49]ProducePacketName [10:01:49]name=ofd_packets/00156190 [10:01:49]NVStorageSaveData ofd_packets/00156190 [10:01:49]File name is /storage/ofd_packets/00156190 [10:01:49]Write 301 bytes [10:01:49]NVStorageSaveData done [10:01:49]OFDSenderStorePacket done [10:01:49]KKMCreateOFDPacket done [10:01:49]NVStorageSaveData kkm_last_timestamp [10:01:49]File name is /storage/kkm_last_timestamp [10:01:49]Write 4 bytes [10:01:49]NVStorageSaveData done [10:01:49]ExternCall_PrintAddStr [10:01:49]wPrintStart [10:01:49]Write to MH i2c: 01 00 00 44 21 65 [10:01:49]OFD Sender: Processing packet 156190 [packets to send 31, broken 30] [10:01:49]ProducePacketName [10:01:49]name=ofd_packets/00156190 [10:01:49]OFD Sender: To server: pG, [10:01:49]CommunicateWithHost lk.salyk.kg:30040 [10:01:49]ConnectInit lk.salyk.kg [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 44 21 00 00 00 00 00 FF 0F 7A [10:01:49]RasterBufferAndPrint [10:01:49]line Счет N : (1)99005 [10:01:49]line ИНН: 02508201610067 [10:01:49]line Контрольно-Кассовый Чек [10:01:49]line ПРОДАЖА [10:01:49]line ТРК (МРК, ГНК) : 11 [10:01:49]line Товар: 2710124130 [10:01:49]line Аи-92-К-5 [10:01:49]line 10.470 * 66.90 [10:01:49]line = 700.44 [10:01:49]line НДС 12% НСП 1% [10:01:49]line > о реализуемом товаре [10:01:49]line ОКРУГЛЕНИЕ: -0.44 [10:01:49]line ИТОГО: 700.00 [10:01:49]line Внесено: 700.00 [10:01:49]line СДАЧА: 0.00 [10:01:49]line НСП 1% : 6.20 [10:01:49]line НДС 12% : 74.38 [10:01:49]line Наличными: 700.00 [10:01:49]line Безнал.: 0.00 [10:01:49]line Место: АЗС № 143 "Партнер Нефть" [10:01:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:01:49]line СНО: Общий режим [10:01:49]line Чек 91 26.10.2024 10:01 [10:01:49]line Смена: 536 ФФД: 1.0 [10:01:49]line ЗНМ: 0300000096 [10:01:49]line РНМ: 0000000000091693 [10:01:49]line Версия ККМ: 001 [10:01:49]line ФМ: 0000000000871792 [10:01:49]line ФД: 156190 [10:01:49]line ФПД: 47613496316030 [10:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100151&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156190&fm=47613496316030&tin=02508201610067®Number=0000000000091693&sum=70000 [10:01:49]Connected sock=10 [10:01:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E7 3E 07 01 0E 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 0F BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 62 02 00 35 04 06 00 2B 4D E1 88 D0 7E 76 62 D4 8C ED F1 8D B3 [10:01:49]written 0, free lines is 4095 [10:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F9 97 47 00 E5 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 62 02 00 F4 03 04 00 82 63 1C 67 B6 04 01 00 00 3E 0F EF A9 01 97 26 D5 [10:01:50]CommunicateWithHost err = 0 [10:01:50]CheckOFDResponse [10:01:50]1017 (14) - 77093643461234 [10:01:50]1041 (16) - 0000000000871792 [10:01:50]1040 (4) - 156190 [10:01:50]1012 (4) - 26.10.2024 03:35 [10:01:50]1206 (1) - 0 [10:01:50]OFD Sender: Remove packet 156190 [10:01:50]ProducePacketName [10:01:50]name=ofd_packets/00156190 [10:01:50]NVStorageDeleteData [10:01:50]Write to MH i2c: 01 00 00 6F 21 90 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 07 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 07 00 6F 21 00 00 00 00 00 E8 0C 8B [10:01:50]RasterBufferAndPrint [10:01:50]line [10:01:50]line [10:01:50]line [10:01:50]line [10:01:50]line [10:01:50]written 0, free lines is 3310 [10:01:50]process_action close_receipt done [10:01:50]requested_data is exist [10:01:50]produce_requested_data [10:01:50]requested_item fm.sn is exist - process it [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 11 00 00 [10:01:50]Write to MH i2c: E2 08 00 76 21 80 11 00 00 00 00 00 00 11 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 17 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 17 00 76 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [10:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:01:50]wFMCommunicate OK [10:01:50]requested_item fd.num is exist - process it [10:01:50]SAM_PROTO_GetFieldsCounters [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 13 00 00 [10:01:50]Write to MH i2c: E2 08 00 77 21 80 13 00 00 00 00 00 00 14 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 62 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 62 00 77 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1E 62 02 00 0E 04 04 00 18 02 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 E7 [10:01: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:50]wFMCommunicate OK [10:01:50]SAM_PROTO_GetFieldsCounters done [10:01:50]requested_item shift.num is exist - process it [10:01:50]requested_item shift.opened is exist - process it [10:01:50]req_shift_opened [10:01:50]FM_GetShiftState [10:01:50]SAM_PROTO_GetShiftState [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 13 01 00 [10:01:50]Write to MH i2c: E2 08 00 78 21 80 13 01 00 00 00 00 00 16 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]OFD Sender: No OFD packet to send [10:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 0E 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 0E 00 78 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4B [10:01:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:01:50]wFMCommunicate OK [10:01:50]SAM_PROTO_GetShiftState done [10:01:50]FM_GetShiftState done [10:01:50]req_shift_opened done [10:01:50]requested_item shift.open_date is exist - process it [10:01:50]req_shift_open_date [10:01:50]req_shift_open_date done [10:01:50]produce_requested_data done [10:01:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156190,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:01:50]process_action_free close_receipt [10:01:50]json_value_free [10:01:50]json_value_free done [10:01:50]process_json_proto returns [10:01:50]Send response to host [10:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156190,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:01:50]free response buf [10:01:50]execute_script done [10:01:50]execute_script returns [10:01:50]free content buf [10:01:50]Sock 7.Close socket [10:01:50]Sock 7.Thread stoped [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:36]accept exits with 9 [10:03:36]New connection [10:03:36]New thread 3066469732 created [10:03:36]Thread 3066613092 joined [10:03:36]Waiting for new connection... [10:03:36] Sock 9.Parse request [10:03:36]Sock 9.Check first char [10:03:36]Sock 9.First char is OK [10:03:36]request: POST /json_proto HTTP/1.0 [10:03:36]Method: POST [10:03:36]URL: /json_proto [10:03:36]Method is POST - this is cgi request [10:03:36]url: /json_proto [10:03:36]query_string will be loaded in cgi processing [10:03:36]execute_cgi json_proto POST (null) [10:03:36]execute_cgi path=json_proto method=POST [10:03:36]POST find Content-Length [10:03:36]Host: 172.17.63.3:8080 [10:03:36]Content-Length: 681 [10:03:36]Content-Type: application/json [10:03:36] [10:03:36]POST finish read [10:03:36]Found Content-Length = 681 [10:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:36]execute_script... [10:03:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:36]POST & json_proto [10:03:36]process_json_proto [10:03:36]json parsed OK: [10:03:36]protocol is kg_v1.0 [10:03:36]action value=close_receipt [10:03:36]process_action close_receipt [10:03:36]cmd_close_receipt [10:03:36]MH_GetDate [10:03:36]Write to MH i2c: F0 00 00 79 21 89 [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: F0 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: F0 09 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: F0 09 00 79 21 00 7B BE 1C 67 50 D1 6C 64 3F [10:03:36]GetLastDocTimeStamp 1729936911 [10:03:36]current date 1729937019 [10:03:36]FM_GetShiftState [10:03:36]SAM_PROTO_GetShiftState [10:03:36]wFMCommunicate request_size=4 [10:03:36]MH_SAM_APDU [10:03:36]CAPDU: 80 13 01 00 [10:03:36]Write to MH i2c: E2 08 00 7A 21 80 13 01 00 00 00 00 00 18 [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:36]Read from MH i2c: E2 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 0E 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 0E 00 7A 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4D [10:03:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:03:36]wFMCommunicate OK [10:03:36]SAM_PROTO_GetShiftState done [10:03:36]FM_GetShiftState done [10:03:36]opened in 1729902702 [10:03:36]opened+sec_in_day 1729989102 [10:03:36]quantity*price = 100015 [10:03:36]sum+1 = 100017 [10:03:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 92 26.10.2024 10:03 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156191 ФПД: 65583368886177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100339&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156191&fm=65583368886177&tin=02508201610067®Number=0000000000091693&sum=100000 [10:03:37]StoreToDocumentArchive [10:03:37]shift 536 fd 156191 [10:03:37]save to /storage/0536/doc_00156191 [10:03:37]save last doc name /storage/0536/doc_00156191 to /storage/kkm_last_doc_name [10:03:37]save OK [10:03:37]Clear old archive folders... [10:03:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:37]tlvbuf is 00D3EA10 [10:03:37]SAM_PROTO_ClearQueue [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 09 00 00 [10:03:37]Write to MH i2c: E2 08 00 87 21 80 09 00 00 00 00 00 00 1A [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 87 21 00 90 00 1C [10:03:37]RAPDU: 90 00 [10:03:37]wFMCommunicate OK [10:03:37]SAM_PROTO_ClearQueue done [10:03:37]KKMCreateOFDPacket [10:03:37]OFDProtocolAddRootSTLVToBuf [10:03:37]FM_MakeSignedData [10:03:37]FM_MakeSignedData [10:03:37]SAM_PROTO_SignData [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 0D 01 02 [10:03:37]Write to MH i2c: E2 08 00 88 21 80 0D 01 02 00 00 00 00 22 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 88 21 00 90 00 1D [10:03:37]RAPDU: 90 00 [10:03:37]wFMCommunicate OK [10:03:37]wFMCommunicate request_size=255 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 7B BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 62 02 00 35 04 06 00 3B [10:03:37]Write to MH i2c: E2 02 01 89 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 7B BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 62 02 00 35 04 06 00 3B 00 00 A0 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 89 21 00 90 00 1E [10:03:37]RAPDU: 90 00 [10:03:37]wFMCommunicate OK [10:03:37]wFMCommunicate request_size=10 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 0D 02 02 05 A5 D1 67 D7 A1 [10:03:37]Write to MH i2c: E2 0D 00 8A 21 80 0D 02 02 05 00 A5 D1 67 D7 A1 00 00 84 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 8A 21 00 90 00 1F [10:03:37]RAPDU: 90 00 [10:03:37]wFMCommunicate OK [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 0D 03 02 [10:03:37]Write to MH i2c: E2 08 00 8B 21 80 0D 03 02 00 00 00 00 27 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 0B 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 0B 00 8B 21 00 8F 81 AB EF E5 D5 A0 32 90 00 5E [10:03:37]RAPDU: 8F 81 AB EF E5 D5 A0 32 90 00 [10:03:37]wFMCommunicate OK [10:03:37]SAM_PROTO_SignData done [10:03:37]FM_MakeSignedData done [10:03:37]CreateOFDProtocolMessage [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 11 00 00 [10:03:37]Write to MH i2c: E2 08 00 8C 21 80 11 00 00 00 00 00 00 27 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 17 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 17 00 8C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [10:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:03:37]wFMCommunicate OK [10:03:37]CreateOFDProtocolMessage done [10:03:37]OFDSenderStorePacket 156191 [10:03:37]StoreOFDPacket docnum=156191 [10:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 80 07 01 A1 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 7B BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 62 02 00 35 04 06 00 3B A5 D1 67 D7 A1 8F 81 AB EF E5 D5 A0 32 [10:03:37]CheckFolder [10:03:37]dirname=/storage/ofd_packets [10:03:37]CheckFolder done [10:03:37]ProducePacketName [10:03:37]name=ofd_packets/00156191 [10:03:37]NVStorageSaveData ofd_packets/00156191 [10:03:37]File name is /storage/ofd_packets/00156191 [10:03:37]Write 301 bytes [10:03:37]NVStorageSaveData done [10:03:37]OFDSenderStorePacket done [10:03:37]KKMCreateOFDPacket done [10:03:37]NVStorageSaveData kkm_last_timestamp [10:03:37]File name is /storage/kkm_last_timestamp [10:03:37]Write 4 bytes [10:03:37]NVStorageSaveData done [10:03:37]ExternCall_PrintAddStr [10:03:37]wPrintStart [10:03:37]Write to MH i2c: 01 00 00 8D 21 AE [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: 01 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: 01 07 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: 01 07 00 8D 21 00 00 00 00 00 FF 0F C3 [10:03:37]RasterBufferAndPrint [10:03:37]line Счет N : (1)99006 [10:03:37]line ИНН: 02508201610067 [10:03:37]line Контрольно-Кассовый Чек [10:03:37]line ПРОДАЖА [10:03:37]line ТРК (МРК, ГНК) : 11 [10:03:37]line Товар: 2710124130 [10:03:37]line Аи-92-К-5 [10:03:37]line 14.950 * 66.90 [10:03:37]line = 1000.16 [10:03:37]line НДС 12% НСП 1% [10:03:37]line > о реализуемом товаре [10:03:37]line ОКРУГЛЕНИЕ: -0.16 [10:03:37]line ИТОГО: 1000.00 [10:03:37]line Внесено: 1000.00 [10:03:37]line СДАЧА: 0.00 [10:03:37]line НСП 1% : 8.85 [10:03:37]line НДС 12% : 106.21 [10:03:37]line Наличными: 1000.00 [10:03:37]line Безнал.: 0.00 [10:03:37]line Место: АЗС № 143 "Партнер Нефть" [10:03:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:03:37]line СНО: Общий режим [10:03:37]line Чек 92 26.10.2024 10:03 [10:03:37]line Смена: 536 ФФД: 1.0 [10:03:37]line ЗНМ: 0300000096 [10:03:37]line РНМ: 0000000000091693 [10:03:37]line Версия ККМ: 001 [10:03:37]line ФМ: 0000000000871792 [10:03:37]line ФД: 156191 [10:03:37]line ФПД: 65583368886177 [10:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100339&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156191&fm=65583368886177&tin=02508201610067®Number=0000000000091693&sum=100000 [10:03:37]written 0, free lines is 4095 [10:03:37]OFD Sender: Processing packet 156191 [packets to send 31, broken 30] [10:03:37]ProducePacketName [10:03:37]name=ofd_packets/00156191 [10:03:37]OFD Sender: To server: pG, [10:03:37]CommunicateWithHost lk.salyk.kg:30040 [10:03:37]ConnectInit lk.salyk.kg [10:03:37]Connected sock=10 [10:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 80 07 01 A1 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 7B BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 62 02 00 35 04 06 00 3B A5 D1 67 D7 A1 8F 81 AB EF E5 D5 A0 32 [10:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FE C3 47 00 73 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 62 02 00 F4 03 04 00 EE 63 1C 67 B6 04 01 00 00 17 88 0D 42 11 96 77 6C [10:03:38]CommunicateWithHost err = 0 [10:03:38]CheckOFDResponse [10:03:38]1017 (14) - 77093643461234 [10:03:38]1041 (16) - 0000000000871792 [10:03:38]1040 (4) - 156191 [10:03:38]1012 (4) - 26.10.2024 03:37 [10:03:38]1206 (1) - 0 [10:03:38]OFD Sender: Remove packet 156191 [10:03:38]ProducePacketName [10:03:38]name=ofd_packets/00156191 [10:03:38]NVStorageDeleteData [10:03:38]Write to MH i2c: 01 00 00 B8 21 D9 [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 07 00 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 07 00 B8 21 00 00 00 00 00 F1 0C DD [10:03:38]RasterBufferAndPrint [10:03:38]line [10:03:38]line [10:03:38]line [10:03:38]line [10:03:38]line [10:03:38]written 0, free lines is 3319 [10:03:38]process_action close_receipt done [10:03:38]requested_data is exist [10:03:38]produce_requested_data [10:03:38]requested_item fm.sn is exist - process it [10:03:38]wFMCommunicate request_size=4 [10:03:38]MH_SAM_APDU [10:03:38]CAPDU: 80 11 00 00 [10:03:38]Write to MH i2c: E2 08 00 BF 21 80 11 00 00 00 00 00 00 5A [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:38]Read from MH i2c: E2 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: E2 17 00 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: E2 17 00 BF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [10:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:03:38]wFMCommunicate OK [10:03:38]requested_item fd.num is exist - process it [10:03:38]SAM_PROTO_GetFieldsCounters [10:03:38]wFMCommunicate request_size=4 [10:03:38]MH_SAM_APDU [10:03:38]CAPDU: 80 13 00 00 [10:03:38]Write to MH i2c: E2 08 00 C0 21 80 13 00 00 00 00 00 00 5D [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:38]Read from MH i2c: E2 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: E2 62 00 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: E2 62 00 C0 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 62 02 00 0E 04 04 00 18 02 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 34 [10:03: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:38]wFMCommunicate OK [10:03:38]SAM_PROTO_GetFieldsCounters done [10:03:38]requested_item shift.num is exist - process it [10:03:38]requested_item shift.opened is exist - process it [10:03:38]req_shift_opened [10:03:38]FM_GetShiftState [10:03:38]SAM_PROTO_GetShiftState [10:03:38]wFMCommunicate request_size=4 [10:03:38]MH_SAM_APDU [10:03:38]CAPDU: 80 13 01 00 [10:03:38]Write to MH i2c: E2 08 00 C1 21 80 13 01 00 00 00 00 00 5F [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:38]Read from MH i2c: E2 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: E2 0E 00 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: E2 0E 00 C1 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 94 [10:03:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:03:38]wFMCommunicate OK [10:03:38]SAM_PROTO_GetShiftState done [10:03:38]FM_GetShiftState done [10:03:38]req_shift_opened done [10:03:38]requested_item shift.open_date is exist - process it [10:03:38]req_shift_open_date [10:03:38]req_shift_open_date done [10:03:38]produce_requested_data done [10:03:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156191,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:03:38]process_action_free close_receipt [10:03:38]json_value_free [10:03:38]json_value_free done [10:03:38]process_json_proto returns [10:03:38]Send response to host [10:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156191,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:03:38]free response buf [10:03:38]execute_script done [10:03:38]execute_script returns [10:03:38]free content buf [10:03:38]Sock 9.Close socket [10:03:38]Sock 9.Thread stoped [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]accept exits with 7 [10:05:23]New connection [10:05:23]New thread 3066613092 created [10:05:23]Thread 3066469732 joined [10:05:23]Waiting for new connection... [10:05:23] Sock 7.Parse request [10:05:23]Sock 7.Check first char [10:05:23]Sock 7.First char is OK [10:05:23]request: POST /json_proto HTTP/1.0 [10:05:23]Method: POST [10:05:23]URL: /json_proto [10:05:23]Method is POST - this is cgi request [10:05:23]url: /json_proto [10:05:23]query_string will be loaded in cgi processing [10:05:23]execute_cgi json_proto POST (null) [10:05:23]execute_cgi path=json_proto method=POST [10:05:23]POST find Content-Length [10:05:23]Host: 172.17.63.3:8080 [10:05:23]Content-Length: 674 [10:05:23]Content-Type: application/json [10:05:23] [10:05:23]POST finish read [10:05:23]Found Content-Length = 674 [10:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:23]execute_script... [10:05: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)99007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:23]POST & json_proto [10:05:23]process_json_proto [10:05:23]json parsed OK: [10:05:23]protocol is kg_v1.0 [10:05:23]action value=close_receipt [10:05:23]process_action close_receipt [10:05:23]cmd_close_receipt [10:05:23]MH_GetDate [10:05:23]Write to MH i2c: F0 00 00 C2 21 D2 [10:05:23]Write i2c OK [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: F0 [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: F0 09 00 [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: F0 09 00 C2 21 00 E7 BE 1C 67 50 D1 6C 64 F4 [10:05:23]GetLastDocTimeStamp 1729937019 [10:05:23]current date 1729937127 [10:05:23]FM_GetShiftState [10:05:23]SAM_PROTO_GetShiftState [10:05:23]wFMCommunicate request_size=4 [10:05:23]MH_SAM_APDU [10:05:23]CAPDU: 80 13 01 00 [10:05:23]Write to MH i2c: E2 08 00 C3 21 80 13 01 00 00 00 00 00 61 [10:05:23]Write i2c OK [10:05:23]MH_I2C_Read... [10:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:23]Read from MH i2c: E2 [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: E2 0E 00 [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: E2 0E 00 C3 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 96 [10:05:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:05:23]wFMCommunicate OK [10:05:23]SAM_PROTO_GetShiftState done [10:05:23]FM_GetShiftState done [10:05:23]opened in 1729902702 [10:05:23]opened+sec_in_day 1729989102 [10:05:23]quantity*price = 80010 [10:05:23]sum+1 = 80011 [10:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 93 26.10.2024 10:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156192 ФПД: 164364254799343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100527&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156192&fm=164364254799343&tin=02508201610067®Number=0000000000091693&sum=80000 [10:05:24]StoreToDocumentArchive [10:05:24]shift 536 fd 156192 [10:05:24]save to /storage/0536/doc_00156192 [10:05:24]save last doc name /storage/0536/doc_00156192 to /storage/kkm_last_doc_name [10:05:24]save OK [10:05:24]Clear old archive folders... [10:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:05:24]tlvbuf is 00D71DF0 [10:05:24]SAM_PROTO_ClearQueue [10:05:24]wFMCommunicate request_size=4 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 09 00 00 [10:05:24]Write to MH i2c: E2 08 00 D0 21 80 09 00 00 00 00 00 00 63 [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:24]Read from MH i2c: E2 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 D0 21 00 90 00 65 [10:05:24]RAPDU: 90 00 [10:05:24]wFMCommunicate OK [10:05:24]SAM_PROTO_ClearQueue done [10:05:24]KKMCreateOFDPacket [10:05:24]OFDProtocolAddRootSTLVToBuf [10:05:24]FM_MakeSignedData [10:05:24]FM_MakeSignedData [10:05:24]SAM_PROTO_SignData [10:05:24]wFMCommunicate request_size=4 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 0D 01 02 [10:05:24]Write to MH i2c: E2 08 00 D1 21 80 0D 01 02 00 00 00 00 6B [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:24]Read from MH i2c: E2 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 D1 21 00 90 00 66 [10:05:24]RAPDU: 90 00 [10:05:24]wFMCommunicate OK [10:05:24]wFMCommunicate request_size=255 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E7 BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 62 02 00 35 04 06 00 95 7D 09 05 [10:05:24]Write to MH i2c: E2 02 01 D2 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E7 BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 62 02 00 35 04 06 00 95 7D 09 05 00 00 6B [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 D2 21 00 90 00 67 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=7 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 02 02 02 65 EF [10:05:25]Write to MH i2c: E2 0A 00 D3 21 80 0D 02 02 02 00 65 EF 00 00 C6 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 03 02 [10:05:25]Write to MH i2c: E2 08 00 D4 21 80 0D 03 02 00 00 00 00 70 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0B 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0B 00 D4 21 00 69 1B CC 35 2F F3 B7 80 90 00 4F [10:05:25]RAPDU: 69 1B CC 35 2F F3 B7 80 90 00 [10:05:25]wFMCommunicate OK [10:05:25]SAM_PROTO_SignData done [10:05:25]FM_MakeSignedData done [10:05:25]CreateOFDProtocolMessage [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 11 00 00 [10:05:25]Write to MH i2c: E2 08 00 D5 21 80 11 00 00 00 00 00 00 70 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 17 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 17 00 D5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [10:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:05:25]wFMCommunicate OK [10:05:25]CreateOFDProtocolMessage done [10:05:25]OFDSenderStorePacket 156192 [10:05:25]StoreOFDPacket docnum=156192 [10:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 54 24 04 01 85 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E7 BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 62 02 00 35 04 06 00 95 7D 09 05 65 EF 69 1B CC 35 2F F3 B7 80 [10:05:25]CheckFolder [10:05:25]dirname=/storage/ofd_packets [10:05:25]CheckFolder done [10:05:25]ProducePacketName [10:05:25]name=ofd_packets/00156192 [10:05:25]NVStorageSaveData ofd_packets/00156192 [10:05:25]File name is /storage/ofd_packets/00156192 [10:05:25]Write 298 bytes [10:05:25]NVStorageSaveData done [10:05:25]OFDSenderStorePacket done [10:05:25]KKMCreateOFDPacket done [10:05:25]NVStorageSaveData kkm_last_timestamp [10:05:25]File name is /storage/kkm_last_timestamp [10:05:25]Write 4 bytes [10:05:25]NVStorageSaveData done [10:05:25]ExternCall_PrintAddStr [10:05:25]wPrintStart [10:05:25]Write to MH i2c: 01 00 00 D6 21 F7 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 07 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 FF 0F 0C [10:05:25]RasterBufferAndPrint [10:05:25]line Счет N : (1)99007 [10:05:25]line ИНН: 02508201610067 [10:05:25]line Контрольно-Кассовый Чек [10:05:25]line ПРОДАЖА [10:05:25]line ТРК (МРК, ГНК) : 32 [10:05:25]line Товар: 2710194210 [10:05:25]line ДТ-К-5 [10:05:25]line 10.500 * 76.20 [10:05:25]line = 800.10 [10:05:25]line НДС 12% НСП 1% [10:05:25]line > о реализуемом товаре [10:05:25]line ОКРУГЛЕНИЕ: -0.10 [10:05:25]line ИТОГО: 800.00 [10:05:25]line Внесено: 800.00 [10:05:25]line СДАЧА: 0.00 [10:05:25]line НСП 1% : 7.08 [10:05:25]line НДС 12% : 84.97 [10:05:25]line Наличными: 800.00 [10:05:25]line Безнал.: 0.00 [10:05:25]line Место: АЗС № 143 "Партнер Нефть" [10:05:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:05:25]line СНО: Общий режим [10:05:25]line Чек 93 26.10.2024 10:05 [10:05:25]line Смена: 536 ФФД: 1.0 [10:05:25]line ЗНМ: 0300000096 [10:05:25]line РНМ: 0000000000091693 [10:05:25]line Версия ККМ: 001 [10:05:25]line ФМ: 0000000000871792 [10:05:25]line ФД: 156192 [10:05:25]line ФПД: 164364254799343 [10:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100527&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156192&fm=164364254799343&tin=02508201610067®Number=0000000000091693&sum=80000 [10:05:25]OFD Sender: Processing packet 156192 [packets to send 31, broken 30] [10:05:25]ProducePacketName [10:05:25]name=ofd_packets/00156192 [10:05:25]OFD Sender: To server: pG, [10:05:25]CommunicateWithHost lk.salyk.kg:30040 [10:05:25]ConnectInit lk.salyk.kg [10:05:25]written 0, free lines is 4095 [10:05:25]Connected sock=10 [10:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 54 24 04 01 85 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E7 BE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 62 02 00 35 04 06 00 95 7D 09 05 65 EF 69 1B CC 35 2F F3 B7 80 [10:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AC 6B 47 00 6B 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 31 37 39 32 10 04 04 00 20 62 02 00 F4 03 04 00 5A 64 1C 67 B6 04 01 00 00 3E 70 F5 51 10 80 EB B5 [10:05:25]CommunicateWithHost err = 0 [10:05:25]CheckOFDResponse [10:05:25]1017 (14) - 77093643461234 [10:05:25]1041 (16) - 0000000000871792 [10:05:25]1040 (4) - 156192 [10:05:25]1012 (4) - 26.10.2024 03:39 [10:05:25]1206 (1) - 0 [10:05:25]OFD Sender: Remove packet 156192 [10:05:25]ProducePacketName [10:05:25]name=ofd_packets/00156192 [10:05:25]NVStorageDeleteData [10:05:26]Write to MH i2c: 01 00 00 01 22 23 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 01 22 00 00 00 00 00 E2 0C 18 [10:05:26]RasterBufferAndPrint [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]written 0, free lines is 3304 [10:05:26]process_action close_receipt done [10:05:26]requested_data is exist [10:05:26]produce_requested_data [10:05:26]requested_item fm.sn is exist - process it [10:05:26]wFMCommunicate request_size=4 [10:05:26]MH_SAM_APDU [10:05:26]CAPDU: 80 11 00 00 [10:05:26]Write to MH i2c: E2 08 00 08 22 80 11 00 00 00 00 00 00 A4 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 17 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 17 00 08 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [10:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:05:26]wFMCommunicate OK [10:05:26]requested_item fd.num is exist - process it [10:05:26]SAM_PROTO_GetFieldsCounters [10:05:26]wFMCommunicate request_size=4 [10:05:26]MH_SAM_APDU [10:05:26]CAPDU: 80 13 00 00 [10:05:26]Write to MH i2c: E2 08 00 09 22 80 13 00 00 00 00 00 00 A7 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 62 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 62 00 09 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 62 02 00 0E 04 04 00 18 02 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 82 [10: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:26]wFMCommunicate OK [10:05:26]SAM_PROTO_GetFieldsCounters done [10:05:26]requested_item shift.num is exist - process it [10:05:26]requested_item shift.opened is exist - process it [10:05:26]req_shift_opened [10:05:26]FM_GetShiftState [10:05:26]SAM_PROTO_GetShiftState [10:05:26]wFMCommunicate request_size=4 [10:05:26]MH_SAM_APDU [10:05:26]CAPDU: 80 13 01 00 [10:05:26]Write to MH i2c: E2 08 00 0A 22 80 13 01 00 00 00 00 00 A9 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 0E 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 0E 00 0A 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DE [10:05:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:05:26]wFMCommunicate OK [10:05:26]SAM_PROTO_GetShiftState done [10:05:26]FM_GetShiftState done [10:05:26]req_shift_opened done [10:05:26]requested_item shift.open_date is exist - process it [10:05:26]req_shift_open_date [10:05:26]req_shift_open_date done [10:05:26]produce_requested_data done [10:05:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156192,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:05:26]process_action_free close_receipt [10:05:26]json_value_free [10:05:26]json_value_free done [10:05:26]process_json_proto returns [10:05:26]Send response to host [10:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156192,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:05:26]free response buf [10:05:26]execute_script done [10:05:26]execute_script returns [10:05:26]free content buf [10:05:26]Sock 7.Close socket [10:05:26]Sock 7.Thread stoped [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:03]accept exits with 9 [10:08:03]New connection [10:08:03]New thread 3066469732 created [10:08:03]Thread 3066613092 joined [10:08:03]Waiting for new connection... [10:08:03] Sock 9.Parse request [10:08:03]Sock 9.Check first char [10:08:03]Sock 9.First char is OK [10:08:03]request: POST /json_proto HTTP/1.0 [10:08:03]Method: POST [10:08:03]URL: /json_proto [10:08:03]Method is POST - this is cgi request [10:08:03]url: /json_proto [10:08:03]query_string will be loaded in cgi processing [10:08:03]execute_cgi json_proto POST (null) [10:08:03]execute_cgi path=json_proto method=POST [10:08:03]POST find Content-Length [10:08:03]Host: 172.17.63.3:8080 [10:08:03]Content-Length: 677 [10:08:03]Content-Type: application/json [10:08:03] [10:08:03]POST finish read [10:08:03]Found Content-Length = 677 [10:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:03]execute_script... [10:08:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:03]POST & json_proto [10:08:03]process_json_proto [10:08:03]json parsed OK: [10:08:03]protocol is kg_v1.0 [10:08:03]action value=close_receipt [10:08:03]process_action close_receipt [10:08:03]cmd_close_receipt [10:08:03]MH_GetDate [10:08:03]Write to MH i2c: F0 00 00 0B 22 1C [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: F0 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: F0 09 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: F0 09 00 0B 22 00 87 BF 1C 67 50 D1 6C 64 DF [10:08:03]GetLastDocTimeStamp 1729937127 [10:08:03]current date 1729937287 [10:08:03]FM_GetShiftState [10:08:03]SAM_PROTO_GetShiftState [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 13 01 00 [10:08:03]Write to MH i2c: E2 08 00 0C 22 80 13 01 00 00 00 00 00 AB [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 0E 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 0E 00 0C 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E0 [10:08:03]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:08:03]wFMCommunicate OK [10:08:03]SAM_PROTO_GetShiftState done [10:08:03]FM_GetShiftState done [10:08:03]opened in 1729902702 [10:08:03]opened+sec_in_day 1729989102 [10:08:03]quantity*price = 70044 [10:08:03]sum+1 = 70045 [10:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 94 26.10.2024 10:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156193 ФПД: 269229566526045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156193&fm=269229566526045&tin=02508201610067®Number=0000000000091693&sum=70000 [10:08:04]StoreToDocumentArchive [10:08:04]shift 536 fd 156193 [10:08:04]save to /storage/0536/doc_00156193 [10:08:04]save last doc name /storage/0536/doc_00156193 to /storage/kkm_last_doc_name [10:08:04]save OK [10:08:04]Clear old archive folders... [10:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:04]tlvbuf is 00DA3A20 [10:08:04]SAM_PROTO_ClearQueue [10:08:04]wFMCommunicate request_size=4 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 09 00 00 [10:08:04]Write to MH i2c: E2 08 00 19 22 80 09 00 00 00 00 00 00 AD [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 19 22 00 90 00 AF [10:08:04]RAPDU: 90 00 [10:08:04]wFMCommunicate OK [10:08:04]SAM_PROTO_ClearQueue done [10:08:04]KKMCreateOFDPacket [10:08:04]OFDProtocolAddRootSTLVToBuf [10:08:04]FM_MakeSignedData [10:08:04]FM_MakeSignedData [10:08:04]SAM_PROTO_SignData [10:08:04]wFMCommunicate request_size=4 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 0D 01 02 [10:08:04]Write to MH i2c: E2 08 00 1A 22 80 0D 01 02 00 00 00 00 B5 [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 1A 22 00 90 00 B0 [10:08:04]RAPDU: 90 00 [10:08:04]wFMCommunicate OK [10:08:04]wFMCommunicate request_size=255 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 87 BF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 62 02 00 35 04 06 00 F4 [10:08:04]Write to MH i2c: E2 02 01 1B 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 87 BF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 62 02 00 35 04 06 00 F4 00 00 13 [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 03 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 03 00 1B 22 00 90 00 B1 [10:08:05]RAPDU: 90 00 [10:08:05]wFMCommunicate OK [10:08:05]wFMCommunicate request_size=10 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 0D 02 02 05 DC E4 AD 02 5D [10:08:05]Write to MH i2c: E2 0D 00 1C 22 80 0D 02 02 05 00 DC E4 AD 02 5D 00 00 8E [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 03 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 03 00 1C 22 00 90 00 B2 [10:08:05]RAPDU: 90 00 [10:08:05]wFMCommunicate OK [10:08:05]wFMCommunicate request_size=4 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 0D 03 02 [10:08:05]Write to MH i2c: E2 08 00 1D 22 80 0D 03 02 00 00 00 00 BA [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 0B 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 0B 00 1D 22 00 45 4C 7D F0 48 97 10 7E 90 00 26 [10:08:05]RAPDU: 45 4C 7D F0 48 97 10 7E 90 00 [10:08:05]wFMCommunicate OK [10:08:05]SAM_PROTO_SignData done [10:08:05]FM_MakeSignedData done [10:08:05]CreateOFDProtocolMessage [10:08:05]wFMCommunicate request_size=4 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 11 00 00 [10:08:05]Write to MH i2c: E2 08 00 1E 22 80 11 00 00 00 00 00 00 BA [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 17 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 17 00 1E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [10:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:08:05]wFMCommunicate OK [10:08:05]CreateOFDProtocolMessage done [10:08:05]OFDSenderStorePacket 156193 [10:08:05]StoreOFDPacket docnum=156193 [10:08:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE 8A 07 01 9A 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 87 BF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 62 02 00 35 04 06 00 F4 DC E4 AD 02 5D 45 4C 7D F0 48 97 10 7E [10:08:05]CheckFolder [10:08:05]dirname=/storage/ofd_packets [10:08:05]CheckFolder done [10:08:05]ProducePacketName [10:08:05]name=ofd_packets/00156193 [10:08:05]NVStorageSaveData ofd_packets/00156193 [10:08:05]File name is /storage/ofd_packets/00156193 [10:08:05]Write 301 bytes [10:08:05]NVStorageSaveData done [10:08:05]OFDSenderStorePacket done [10:08:05]KKMCreateOFDPacket done [10:08:05]NVStorageSaveData kkm_last_timestamp [10:08:05]File name is /storage/kkm_last_timestamp [10:08:05]Write 4 bytes [10:08:05]NVStorageSaveData done [10:08:05]ExternCall_PrintAddStr [10:08:05]wPrintStart [10:08:05]Write to MH i2c: 01 00 00 1F 22 41 [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 1F 22 00 00 00 00 00 FF 0F 56 [10:08:05]RasterBufferAndPrint [10:08:05]line Счет N : (1)99008 [10:08:05]line ИНН: 02508201610067 [10:08:05]line Контрольно-Кассовый Чек [10:08:05]line ПРОДАЖА [10:08:05]line ТРК (МРК, ГНК) : 31 [10:08:05]line Товар: 2710124130 [10:08:05]line Аи-92-К-5 [10:08:05]line 10.470 * 66.90 [10:08:05]line = 700.44 [10:08:05]line НДС 12% НСП 1% [10:08:05]line > о реализуемом товаре [10:08:05]line ОКРУГЛЕНИЕ: -0.44 [10:08:05]line ИТОГО: 700.00 [10:08:05]line Внесено: 700.00 [10:08:05]line СДАЧА: 0.00 [10:08:05]line НСП 1% : 6.20 [10:08:05]line НДС 12% : 74.38 [10:08:05]line Наличными: 700.00 [10:08:05]line Безнал.: 0.00 [10:08:05]line Место: АЗС № 143 "Партнер Нефть" [10:08:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:08:05]line СНО: Общий режим [10:08:05]line Чек 94 26.10.2024 10:08 [10:08:05]line Смена: 536 ФФД: 1.0 [10:08:05]line ЗНМ: 0300000096 [10:08:05]line РНМ: 0000000000091693 [10:08:05]line Версия ККМ: 001 [10:08:05]line ФМ: 0000000000871792 [10:08:05]line ФД: 156193 [10:08:05]line ФПД: 269229566526045 [10:08:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156193&fm=269229566526045&tin=02508201610067®Number=0000000000091693&sum=70000 [10:08:05]written 0, free lines is 4095 [10:08:05]OFD Sender: Processing packet 156193 [packets to send 31, broken 30] [10:08:05]ProducePacketName [10:08:05]name=ofd_packets/00156193 [10:08:05]OFD Sender: To server: pG, [10:08:05]CommunicateWithHost lk.salyk.kg:30040 [10:08:05]ConnectInit lk.salyk.kg [10:08:05]Connected sock=7 [10:08:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE 8A 07 01 9A 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 87 BF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 62 02 00 35 04 06 00 F4 DC E4 AD 02 5D 45 4C 7D F0 48 97 10 7E [10:08:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BC D8 47 00 62 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 62 02 00 F4 03 04 00 F9 64 1C 67 B6 04 01 00 00 E6 A0 F3 E7 32 1D 20 8C [10:08:05]CommunicateWithHost err = 0 [10:08:05]CheckOFDResponse [10:08:05]1017 (14) - 77093643461234 [10:08:05]1041 (16) - 0000000000871792 [10:08:05]1040 (4) - 156193 [10:08:05]1012 (4) - 26.10.2024 03:41 [10:08:05]1206 (1) - 0 [10:08:05]OFD Sender: Remove packet 156193 [10:08:05]ProducePacketName [10:08:05]name=ofd_packets/00156193 [10:08:05]NVStorageDeleteData [10:08:05]Write to MH i2c: 01 00 00 4A 22 6C [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 4A 22 00 00 00 00 00 FD 0C 7C [10:08:05]RasterBufferAndPrint [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]written 0, free lines is 3334 [10:08:05]process_action close_receipt done [10:08:05]requested_data is exist [10:08:05]produce_requested_data [10:08:05]requested_item fm.sn is exist - process it [10:08:05]wFMCommunicate request_size=4 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 11 00 00 [10:08:05]Write to MH i2c: E2 08 00 51 22 80 11 00 00 00 00 00 00 ED [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 17 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 17 00 51 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [10:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:08:05]wFMCommunicate OK [10:08:05]requested_item fd.num is exist - process it [10:08:05]SAM_PROTO_GetFieldsCounters [10:08:05]wFMCommunicate request_size=4 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 13 00 00 [10:08:05]Write to MH i2c: E2 08 00 52 22 80 13 00 00 00 00 00 00 F0 [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 62 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 62 00 52 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 62 02 00 0E 04 04 00 18 02 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 CF [10:08:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:05]wFMCommunicate OK [10:08:05]SAM_PROTO_GetFieldsCounters done [10:08:05]requested_item shift.num is exist - process it [10:08:05]requested_item shift.opened is exist - process it [10:08:05]req_shift_opened [10:08:05]FM_GetShiftState [10:08:05]SAM_PROTO_GetShiftState [10:08:05]wFMCommunicate request_size=4 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 13 01 00 [10:08:05]Write to MH i2c: E2 08 00 53 22 80 13 01 00 00 00 00 00 F2 [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 0E 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 0E 00 53 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 27 [10:08:05]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:08:05]wFMCommunicate OK [10:08:05]SAM_PROTO_GetShiftState done [10:08:05]FM_GetShiftState done [10:08:05]req_shift_opened done [10:08:05]requested_item shift.open_date is exist - process it [10:08:05]req_shift_open_date [10:08:05]req_shift_open_date done [10:08:05]produce_requested_data done [10:08:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156193,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:08:05]process_action_free close_receipt [10:08:05]json_value_free [10:08:05]json_value_free done [10:08:05]process_json_proto returns [10:08:05]Send response to host [10:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156193,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:08:05]free response buf [10:08:05]execute_script done [10:08:05]execute_script returns [10:08:05]free content buf [10:08:05]Sock 9.Close socket [10:08:05]Sock 9.Thread stoped [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:16]accept exits with 10 [10:10:16]New connection [10:10:16]New thread 3066613092 created [10:10:16]Thread 3066469732 joined [10:10:16]Waiting for new connection... [10:10:16] Sock 10.Parse request [10:10:16]Sock 10.Check first char [10:10:16]Sock 10.First char is OK [10:10:16]request: POST /json_proto HTTP/1.0 [10:10:16]Method: POST [10:10:16]URL: /json_proto [10:10:16]Method is POST - this is cgi request [10:10:16]url: /json_proto [10:10:16]query_string will be loaded in cgi processing [10:10:16]execute_cgi json_proto POST (null) [10:10:16]execute_cgi path=json_proto method=POST [10:10:16]POST find Content-Length [10:10:16]Host: 172.17.63.3:8080 [10:10:16]Content-Length: 676 [10:10:16]Content-Type: application/json [10:10:16] [10:10:16]POST finish read [10:10:16]Found Content-Length = 676 [10:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:16]execute_script... [10:10:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:16]POST & json_proto [10:10:16]process_json_proto [10:10:16]json parsed OK: [10:10:16]protocol is kg_v1.0 [10:10:16]action value=close_receipt [10:10:16]process_action close_receipt [10:10:16]cmd_close_receipt [10:10:16]MH_GetDate [10:10:16]Write to MH i2c: F0 00 00 54 22 65 [10:10:16]Write i2c OK [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 09 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 09 00 54 22 00 0C C0 1C 67 50 D1 6C 64 AE [10:10:16]GetLastDocTimeStamp 1729937287 [10:10:16]current date 1729937420 [10:10:16]FM_GetShiftState [10:10:16]SAM_PROTO_GetShiftState [10:10:16]wFMCommunicate request_size=4 [10:10:16]MH_SAM_APDU [10:10:16]CAPDU: 80 13 01 00 [10:10:16]Write to MH i2c: E2 08 00 55 22 80 13 01 00 00 00 00 00 F4 [10:10:16]Write i2c OK [10:10:16]MH_I2C_Read... [10:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:16]Read from MH i2c: E2 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 0E 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 0E 00 55 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 29 [10:10:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:10:16]wFMCommunicate OK [10:10:16]SAM_PROTO_GetShiftState done [10:10:16]FM_GetShiftState done [10:10:16]opened in 1729902702 [10:10:16]opened+sec_in_day 1729989102 [10:10:16]quantity*price = 50041 [10:10:16]sum+1 = 50042 [10:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 95 26.10.2024 10:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156194 ФПД: 27060905387144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101020&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156194&fm=27060905387144&tin=02508201610067®Number=0000000000091693&sum=50000 [10:10:17]StoreToDocumentArchive [10:10:17]shift 536 fd 156194 [10:10:17]save to /storage/0536/doc_00156194 [10:10:17]save last doc name /storage/0536/doc_00156194 to /storage/kkm_last_doc_name [10:10:17]save OK [10:10:17]Clear old archive folders... [10:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:17]tlvbuf is 00D9E550 [10:10:17]SAM_PROTO_ClearQueue [10:10:17]wFMCommunicate request_size=4 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 09 00 00 [10:10:17]Write to MH i2c: E2 08 00 62 22 80 09 00 00 00 00 00 00 F6 [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 62 22 00 90 00 F8 [10:10:18]RAPDU: 90 00 [10:10:18]wFMCommunicate OK [10:10:18]SAM_PROTO_ClearQueue done [10:10:18]KKMCreateOFDPacket [10:10:18]OFDProtocolAddRootSTLVToBuf [10:10:18]FM_MakeSignedData [10:10:18]FM_MakeSignedData [10:10:18]SAM_PROTO_SignData [10:10:18]wFMCommunicate request_size=4 [10:10:18]MH_SAM_APDU [10:10:18]CAPDU: 80 0D 01 02 [10:10:18]Write to MH i2c: E2 08 00 63 22 80 0D 01 02 00 00 00 00 FE [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 63 22 00 90 00 F9 [10:10:18]RAPDU: 90 00 [10:10:18]wFMCommunicate OK [10:10:18]wFMCommunicate request_size=255 [10:10:18]MH_SAM_APDU [10:10:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 62 02 00 35 04 06 00 18 [10:10:18]Write to MH i2c: E2 02 01 64 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 62 02 00 35 04 06 00 18 00 00 F8 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 64 22 00 90 00 FA [10:10:18]RAPDU: 90 00 [10:10:18]wFMCommunicate OK [10:10:18]wFMCommunicate request_size=10 [10:10:18]MH_SAM_APDU [10:10:18]CAPDU: 80 0D 02 02 05 9C 9B A7 24 88 [10:10:18]Write to MH i2c: E2 0D 00 65 22 80 0D 02 02 05 00 9C 9B A7 24 88 00 00 95 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 65 22 00 90 00 FB [10:10:18]RAPDU: 90 00 [10:10:18]wFMCommunicate OK [10:10:18]wFMCommunicate request_size=4 [10:10:18]MH_SAM_APDU [10:10:18]CAPDU: 80 0D 03 02 [10:10:18]Write to MH i2c: E2 08 00 66 22 80 0D 03 02 00 00 00 00 03 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 0B 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 0B 00 66 22 00 63 9F 8C 81 8D 16 99 76 90 00 C5 [10:10:18]RAPDU: 63 9F 8C 81 8D 16 99 76 90 00 [10:10:18]wFMCommunicate OK [10:10:18]SAM_PROTO_SignData done [10:10:18]FM_MakeSignedData done [10:10:18]CreateOFDProtocolMessage [10:10:18]wFMCommunicate request_size=4 [10:10:18]MH_SAM_APDU [10:10:18]CAPDU: 80 11 00 00 [10:10:18]Write to MH i2c: E2 08 00 67 22 80 11 00 00 00 00 00 00 03 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 17 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 17 00 67 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [10:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:10:18]wFMCommunicate OK [10:10:18]CreateOFDProtocolMessage done [10:10:18]OFDSenderStorePacket 156194 [10:10:18]StoreOFDPacket docnum=156194 [10:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F A1 07 01 03 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0C C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 62 02 00 35 04 06 00 18 9C 9B A7 24 88 63 9F 8C 81 8D 16 99 76 [10:10:18]CheckFolder [10:10:18]dirname=/storage/ofd_packets [10:10:18]CheckFolder done [10:10:18]ProducePacketName [10:10:18]name=ofd_packets/00156194 [10:10:18]NVStorageSaveData ofd_packets/00156194 [10:10:18]File name is /storage/ofd_packets/00156194 [10:10:18]Write 301 bytes [10:10:18]NVStorageSaveData done [10:10:18]OFDSenderStorePacket done [10:10:18]KKMCreateOFDPacket done [10:10:18]NVStorageSaveData kkm_last_timestamp [10:10:18]File name is /storage/kkm_last_timestamp [10:10:18]Write 4 bytes [10:10:18]NVStorageSaveData done [10:10:18]ExternCall_PrintAddStr [10:10:18]wPrintStart [10:10:18]Write to MH i2c: 01 00 00 68 22 8A [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 07 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 07 00 68 22 00 00 00 00 00 FF 0F 9F [10:10:18]RasterBufferAndPrint [10:10:18]line Счет N : (1)99009 [10:10:18]line ИНН: 02508201610067 [10:10:18]line Контрольно-Кассовый Чек [10:10:18]line ПРОДАЖА [10:10:18]line ТРК (МРК, ГНК) : 11 [10:10:18]line Товар: 2710124130 [10:10:18]line Аи-92-К-5 [10:10:18]line 7.480 * 66.90 [10:10:18]line = 500.41 [10:10:18]line НДС 12% НСП 1% [10:10:18]line > о реализуемом товаре [10:10:18]line ОКРУГЛЕНИЕ: -0.41 [10:10:18]line ИТОГО: 500.00 [10:10:18]line Внесено: 500.00 [10:10:18]line СДАЧА: 0.00 [10:10:18]line НСП 1% : 4.43 [10:10:18]line НДС 12% : 53.14 [10:10:18]line Наличными: 500.00 [10:10:18]line Безнал.: 0.00 [10:10:18]line Место: АЗС № 143 "Партнер Нефть" [10:10:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:10:18]line СНО: Общий режим [10:10:18]line Чек 95 26.10.2024 10:10 [10:10:18]line Смена: 536 ФФД: 1.0 [10:10:18]line ЗНМ: 0300000096 [10:10:18]line РНМ: 0000000000091693 [10:10:18]line Версия ККМ: 001 [10:10:18]line ФМ: 0000000000871792 [10:10:18]line ФД: 156194 [10:10:18]line ФПД: 27060905387144 [10:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101020&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156194&fm=27060905387144&tin=02508201610067®Number=0000000000091693&sum=50000 [10:10:18]OFD Sender: Processing packet 156194 [packets to send 31, broken 30] [10:10:18]ProducePacketName [10:10:18]name=ofd_packets/00156194 [10:10:18]OFD Sender: To server: pG, [10:10:18]CommunicateWithHost lk.salyk.kg:30040 [10:10:18]ConnectInit lk.salyk.kg [10:10:18]written 0, free lines is 4095 [10:10:18]Connected sock=11 [10:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F A1 07 01 03 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0C C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 62 02 00 35 04 06 00 18 9C 9B A7 24 88 63 9F 8C 81 8D 16 99 76 [10:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 65 1C 47 00 09 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 31 37 39 32 10 04 04 00 22 62 02 00 F4 03 04 00 7F 65 1C 67 B6 04 01 00 00 5E F8 15 9E E0 E1 73 D4 [10:10:19]CommunicateWithHost err = 0 [10:10:19]CheckOFDResponse [10:10:19]1017 (14) - 77093643461234 [10:10:19]1041 (16) - 0000000000871792 [10:10:19]1040 (4) - 156194 [10:10:19]1012 (4) - 26.10.2024 03:43 [10:10:19]1206 (1) - 0 [10:10:19]OFD Sender: Remove packet 156194 [10:10:19]ProducePacketName [10:10:19]name=ofd_packets/00156194 [10:10:19]NVStorageDeleteData [10:10:19]Write to MH i2c: 01 00 00 93 22 B5 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 07 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 07 00 93 22 00 00 00 00 00 F0 0C B8 [10:10:19]RasterBufferAndPrint [10:10:19]line [10:10:19]line [10:10:19]line [10:10:19]line [10:10:19]line [10:10:19]written 0, free lines is 3318 [10:10:19]process_action close_receipt done [10:10:19]requested_data is exist [10:10:19]produce_requested_data [10:10:19]requested_item fm.sn is exist - process it [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 11 00 00 [10:10:19]Write to MH i2c: E2 08 00 9A 22 80 11 00 00 00 00 00 00 36 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 17 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 17 00 9A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [10:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:10:19]wFMCommunicate OK [10:10:19]requested_item fd.num is exist - process it [10:10:19]SAM_PROTO_GetFieldsCounters [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 13 00 00 [10:10:19]Write to MH i2c: E2 08 00 9B 22 80 13 00 00 00 00 00 00 39 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 62 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 62 00 9B 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 22 62 02 00 0E 04 04 00 18 02 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 1C [10:10:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 22 62 02 00 0E 04 04 00 18 02 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 [10:10:19]wFMCommunicate OK [10:10:19]SAM_PROTO_GetFieldsCounters done [10:10:19]requested_item shift.num is exist - process it [10:10:19]requested_item shift.opened is exist - process it [10:10:19]req_shift_opened [10:10:19]FM_GetShiftState [10:10:19]SAM_PROTO_GetShiftState [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 13 01 00 [10:10:19]Write to MH i2c: E2 08 00 9C 22 80 13 01 00 00 00 00 00 3B [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 0E 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 0E 00 9C 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 70 [10:10:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:10:19]wFMCommunicate OK [10:10:19]SAM_PROTO_GetShiftState done [10:10:19]FM_GetShiftState done [10:10:19]req_shift_opened done [10:10:19]requested_item shift.open_date is exist - process it [10:10:19]req_shift_open_date [10:10:19]req_shift_open_date done [10:10:19]produce_requested_data done [10:10:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156194,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:10:19]process_action_free close_receipt [10:10:19]json_value_free [10:10:19]json_value_free done [10:10:19]process_json_proto returns [10:10:19]Send response to host [10:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156194,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:10:19]free response buf [10:10:19]execute_script done [10:10:19]execute_script returns [10:10:19]free content buf [10:10:19]Sock 10.Close socket [10:10:19]Sock 10.Thread stoped [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:12:41]wFMCommunicate OK [10:12:41]wFMCommunicate request_size=15 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [10:12:41]Write to MH i2c: E2 12 00 A5 22 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 9E [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:12:41]Read from MH i2c: E2 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 A5 22 00 90 00 3B [10:12:41]RAPDU: 90 00 [10:12:41]wFMCommunicate OK [10:12:41]wFMCommunicate request_size=11 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [10:12:41]Write to MH i2c: E2 0E 00 A6 22 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 7A [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:12:41]Read from MH i2c: E2 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 A6 22 00 90 00 3C [10:12:41]RAPDU: 90 00 [10:12:41]wFMCommunicate OK [10:12:41]wFMCommunicate request_size=13 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 15 02 00 08 F4 03 04 00 9C C0 1C 67 [10:12:41]Write to MH i2c: E2 10 00 A7 22 80 15 02 00 08 00 F4 03 04 00 9C C0 1C 67 00 00 33 [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:12:41]Read from MH i2c: E2 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 A7 22 00 90 00 3D [10:12:41]RAPDU: 90 00 [10:12:41]wFMCommunicate OK [10:12:41]wFMCommunicate request_size=25 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [10:12:41]Write to MH i2c: E2 1C 00 A8 22 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 AF [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:12:41]Read from MH i2c: E2 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 A8 22 00 90 00 3E [10:12:41]RAPDU: 90 00 [10:12:41]wFMCommunicate OK [10:12:41]wFMCommunicate request_size=4 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 15 03 00 [10:12:41]Write to MH i2c: E2 08 00 A9 22 80 15 03 00 00 00 00 00 4C [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [10:12:41]Read from MH i2c: E2 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 40 00 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 40 00 A9 22 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 60 00 00 00 35 04 06 00 80 DE 3A DB 27 14 90 00 F3 [10:12:41]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 60 00 00 00 35 04 06 00 80 DE 3A DB 27 14 90 00 [10:12:41]wFMCommunicate OK [10:12:41]SAM_PROTO_ProcessDocument answer len = 59 [10:12:41]SAM_PROTO_ProcessDocument done [10:12:41]SetTLVBufToDocument [10:12:41]Processing tag 1209 (04B9) [10:12:41]Malloc new data [10:12:41]Processing tag 1041 (0411) [10:12:41]Processing tag 1040 (0410) [10:12:41]Malloc new data [10:12:41]Processing tag 1038 (040E) [10:12:41]Malloc new data [10:12:41]Processing tag 1042 (0412) [10:12:41]Malloc new data [10:12:41]Processing tag 1077 (0435) [10:12:41]Malloc new data [10:12:41]SetTLVBufToDocument err=0 [10:12:41]KKMLoadAndSignReceiptData store KKM data [10:12:41]KKMLoadAndSignReceiptData err=0 [10:12:41]wFMCommunicate request_size=4 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 11 00 00 [10:12:41]Write to MH i2c: E2 08 00 AA 22 80 11 00 00 00 00 00 00 46 [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:41]Read from MH i2c: E2 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 17 00 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 17 00 AA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [10:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:12:41]wFMCommunicate OK [10:12:41]Счет N : (1)99010 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710124130 Аи-92-К-5 14.950 * 66.90 = 1000.16 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 96 26.10.2024 10:12 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156195 ФПД: 141691958535956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101244&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156195&fm=141691958535956&tin=02508201610067®Number=0000000000091693&sum=100000 [10:12:41]StoreToDocumentArchive [10:12:41]shift 536 fd 156195 [10:12:41]save to /storage/0536/doc_00156195 [10:12:41]save last doc name /storage/0536/doc_00156195 to /storage/kkm_last_doc_name [10:12:41]save OK [10:12:41]Clear old archive folders... [10:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:41]tlvbuf is B6D55010 [10:12:41]SAM_PROTO_ClearQueue [10:12:41]wFMCommunicate request_size=4 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 09 00 00 [10:12:41]Write to MH i2c: E2 08 00 AB 22 80 09 00 00 00 00 00 00 3F [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:41]Read from MH i2c: E2 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 AB 22 00 90 00 41 [10:12:41]RAPDU: 90 00 [10:12:41]wFMCommunicate OK [10:12:41]SAM_PROTO_ClearQueue done [10:12:41]KKMCreateOFDPacket [10:12:41]OFDProtocolAddRootSTLVToBuf [10:12:41]FM_MakeSignedData [10:12:41]FM_MakeSignedData [10:12:41]SAM_PROTO_SignData [10:12:41]wFMCommunicate request_size=4 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 0D 01 02 [10:12:41]Write to MH i2c: E2 08 00 AC 22 80 0D 01 02 00 00 00 00 47 [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:41]Read from MH i2c: E2 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 [10:12:41]MH_I2C_Read... [10:12:41]Read from MH i2c: E2 03 00 AC 22 00 90 00 42 [10:12:41]RAPDU: 90 00 [10:12:41]wFMCommunicate OK [10:12:41]wFMCommunicate request_size=255 [10:12:41]MH_SAM_APDU [10:12:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9C C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 62 02 00 35 04 06 00 80 [10:12:41]Write to MH i2c: E2 02 01 AD 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9C C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 62 02 00 35 04 06 00 80 00 00 35 [10:12:41]Write i2c OK [10:12:41]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:42]Read from MH i2c: E2 03 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 AD 22 00 90 00 43 [10:12:42]RAPDU: 90 00 [10:12:42]wFMCommunicate OK [10:12:42]wFMCommunicate request_size=10 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 0D 02 02 05 DE 3A DB 27 14 [10:12:42]Write to MH i2c: E2 0D 00 AE 22 80 0D 02 02 05 00 DE 3A DB 27 14 00 00 82 [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 AE 22 00 90 00 44 [10:12:42]RAPDU: 90 00 [10:12:42]wFMCommunicate OK [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 0D 03 02 [10:12:42]Write to MH i2c: E2 08 00 AF 22 80 0D 03 02 00 00 00 00 4C [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 0B 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 0B 00 AF 22 00 0A BC AF 18 F8 21 B9 DA 90 00 86 [10:12:42]RAPDU: 0A BC AF 18 F8 21 B9 DA 90 00 [10:12:42]wFMCommunicate OK [10:12:42]SAM_PROTO_SignData done [10:12:42]FM_MakeSignedData done [10:12:42]CreateOFDProtocolMessage [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 11 00 00 [10:12:42]Write to MH i2c: E2 08 00 B0 22 80 11 00 00 00 00 00 00 4C [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 17 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 17 00 B0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [10:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:12:42]wFMCommunicate OK [10:12:42]CreateOFDProtocolMessage done [10:12:42]OFDSenderStorePacket 156195 [10:12:42]StoreOFDPacket docnum=156195 [10:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6D 66 07 01 4C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9C C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 62 02 00 35 04 06 00 80 DE 3A DB 27 14 0A BC AF 18 F8 21 B9 DA [10:12:42]CheckFolder [10:12:42]dirname=/storage/ofd_packets [10:12:42]CheckFolder done [10:12:42]ProducePacketName [10:12:42]name=ofd_packets/00156195 [10:12:42]NVStorageSaveData ofd_packets/00156195 [10:12:42]File name is /storage/ofd_packets/00156195 [10:12:42]Write 301 bytes [10:12:42]NVStorageSaveData done [10:12:42]OFDSenderStorePacket done [10:12:42]KKMCreateOFDPacket done [10:12:42]NVStorageSaveData kkm_last_timestamp [10:12:42]File name is /storage/kkm_last_timestamp [10:12:42]Write 4 bytes [10:12:42]NVStorageSaveData done [10:12:42]ExternCall_PrintAddStr [10:12:42]wPrintStart [10:12:42]Write to MH i2c: 01 00 00 B1 22 D3 [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 07 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 07 00 B1 22 00 00 00 00 00 FF 0F E8 [10:12:42]RasterBufferAndPrint [10:12:42]line Счет N : (1)99010 [10:12:42]line ИНН: 02508201610067 [10:12:42]line Контрольно-Кассовый Чек [10:12:42]line ПРОДАЖА [10:12:42]line ТРК (МРК, ГНК) : 21 [10:12:42]line Товар: 2710124130 [10:12:42]line Аи-92-К-5 [10:12:42]line 14.950 * 66.90 [10:12:42]line = 1000.16 [10:12:42]line НДС 12% НСП 1% [10:12:42]line > о реализуемом товаре [10:12:42]line ОКРУГЛЕНИЕ: -0.16 [10:12:42]line ИТОГО: 1000.00 [10:12:42]line Внесено: 1000.00 [10:12:42]line СДАЧА: 0.00 [10:12:42]line НСП 1% : 8.85 [10:12:42]line НДС 12% : 106.21 [10:12:42]line Наличными: 1000.00 [10:12:42]line Безнал.: 0.00 [10:12:42]line Место: АЗС № 143 "Партнер Нефть" [10:12:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:12:42]line СНО: Общий режим [10:12:42]line Чек 96 26.10.2024 10:12 [10:12:42]line Смена: 536 ФФД: 1.0 [10:12:42]line ЗНМ: 0300000096 [10:12:42]line РНМ: 0000000000091693 [10:12:42]line Версия ККМ: 001 [10:12:42]line ФМ: 0000000000871792 [10:12:42]line ФД: 156195 [10:12:42]line ФПД: 141691958535956 [10:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101244&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156195&fm=141691958535956&tin=02508201610067®Number=0000000000091693&sum=100000 [10:12:42]written 0, free lines is 4095 [10:12:42]OFD Sender: Processing packet 156195 [packets to send 31, broken 30] [10:12:42]ProducePacketName [10:12:42]name=ofd_packets/00156195 [10:12:42]OFD Sender: To server: pG, [10:12:42]CommunicateWithHost lk.salyk.kg:30040 [10:12:42]ConnectInit lk.salyk.kg [10:12:42]Connected sock=11 [10:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6D 66 07 01 4C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9C C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 62 02 00 35 04 06 00 80 DE 3A DB 27 14 0A BC AF 18 F8 21 B9 DA [10:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1E 45 47 00 69 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 31 37 39 32 10 04 04 00 23 62 02 00 F4 03 04 00 0F 66 1C 67 B6 04 01 00 00 71 F2 26 8D 01 96 7E 58 [10:12:42]CommunicateWithHost err = 0 [10:12:42]CheckOFDResponse [10:12:42]1017 (14) - 77093643461234 [10:12:42]1041 (16) - 0000000000871792 [10:12:42]1040 (4) - 156195 [10:12:42]1012 (4) - 26.10.2024 03:46 [10:12:42]1206 (1) - 0 [10:12:42]OFD Sender: Remove packet 156195 [10:12:42]ProducePacketName [10:12:42]name=ofd_packets/00156195 [10:12:42]NVStorageDeleteData [10:12:42]Write to MH i2c: 01 00 00 DC 22 FE [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 07 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 07 00 DC 22 00 00 00 00 00 F4 0C 05 [10:12:42]RasterBufferAndPrint [10:12:42]line [10:12:42]line [10:12:42]line [10:12:42]line [10:12:42]line [10:12:42]written 0, free lines is 3327 [10:12:42]process_action close_receipt done [10:12:42]requested_data is exist [10:12:42]produce_requested_data [10:12:42]requested_item fm.sn is exist - process it [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 11 00 00 [10:12:42]Write to MH i2c: E2 08 00 E3 22 80 11 00 00 00 00 00 00 7F [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 17 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 17 00 E3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [10:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:12:42]wFMCommunicate OK [10:12:42]requested_item fd.num is exist - process it [10:12:42]SAM_PROTO_GetFieldsCounters [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 13 00 00 [10:12:42]Write to MH i2c: E2 08 00 E4 22 80 13 00 00 00 00 00 00 82 [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 62 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 62 00 E4 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 23 62 02 00 0E 04 04 00 18 02 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 69 [10:12:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 23 62 02 00 0E 04 04 00 18 02 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 [10:12:43]wFMCommunicate OK [10:12:43]SAM_PROTO_GetFieldsCounters done [10:12:43]requested_item shift.num is exist - process it [10:12:43]requested_item shift.opened is exist - process it [10:12:43]req_shift_opened [10:12:43]FM_GetShiftState [10:12:43]SAM_PROTO_GetShiftState [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 13 01 00 [10:12:43]Write to MH i2c: E2 08 00 E5 22 80 13 01 00 00 00 00 00 84 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0E 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0E 00 E5 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B9 [10:12:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:12:43]wFMCommunicate OK [10:12:43]SAM_PROTO_GetShiftState done [10:12:43]FM_GetShiftState done [10:12:43]req_shift_opened done [10:12:43]requested_item shift.open_date is exist - process it [10:12:43]req_shift_open_date [10:12:43]req_shift_open_date done [10:12:43]produce_requested_data done [10:12:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156195,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:12:43]process_action_free close_receipt [10:12:43]json_value_free [10:12:43]json_value_free done [10:12:43]process_json_proto returns [10:12:43]Send response to host [10:12:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156195,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:12:43]free response buf [10:12:43]execute_script done [10:12:43]execute_script returns [10:12:43]free content buf [10:12:43]Sock 9.Close socket [10:12:43]Sock 9.Thread stoped [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:13:59]accept exits with 10 [10:13:59]New connection [10:13:59]New thread 3066613092 created [10:13:59]Thread 3066469732 joined [10:13:59]Waiting for new connection... [10:13:59] Sock 10.Parse request [10:13:59]Sock 10.Check first char [10:13:59]Sock 10.First char is OK [10:13:59]request: POST /json_proto HTTP/1.0 [10:13:59]Method: POST [10:13:59]URL: /json_proto [10:13:59]Method is POST - this is cgi request [10:13:59]url: /json_proto [10:13:59]query_string will be loaded in cgi processing [10:13:59]execute_cgi json_proto POST (null) [10:13:59]execute_cgi path=json_proto method=POST [10:13:59]POST find Content-Length [10:13:59]Host: 172.17.63.3:8080 [10:13:59]Content-Length: 639 [10:13:59]Content-Type: application/json [10:13:59] [10:13:59]POST finish read [10:13:59]Found Content-Length = 639 [10:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:59]execute_script... [10:13:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:59]POST & json_proto [10:13:59]process_json_proto [10:13:59]json parsed OK: [10:13:59]protocol is kg_v1.0 [10:13:59]action value=close_receipt [10:13:59]process_action close_receipt [10:13:59]cmd_close_receipt [10:13:59]MH_GetDate [10:13:59]Write to MH i2c: F0 00 00 E6 22 F7 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: F0 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: F0 09 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: F0 09 00 E6 22 00 EB C0 1C 67 50 D1 6C 64 1F [10:13:59]GetLastDocTimeStamp 1729937564 [10:13:59]current date 1729937643 [10:13:59]FM_GetShiftState [10:13:59]SAM_PROTO_GetShiftState [10:13:59]wFMCommunicate request_size=4 [10:13:59]MH_SAM_APDU [10:13:59]CAPDU: 80 13 01 00 [10:13:59]Write to MH i2c: E2 08 00 E7 22 80 13 01 00 00 00 00 00 86 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:59]Read from MH i2c: E2 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 0E 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 0E 00 E7 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [10:13:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:13:59]wFMCommunicate OK [10:13:59]SAM_PROTO_GetShiftState done [10:13:59]FM_GetShiftState done [10:13:59]opened in 1729902702 [10:13:59]opened+sec_in_day 1729989102 [10:13:59]quantity*price = 66900 [10:13:59]sum+1 = 66901 [10:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 97 26.10.2024 10:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156196 ФПД: 123061974679748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101403&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156196&fm=123061974679748&tin=02508201610067®Number=0000000000091693&sum=66900 [10:14:01]StoreToDocumentArchive [10:14:01]shift 536 fd 156196 [10:14:01]save to /storage/0536/doc_00156196 [10:14:01]save last doc name /storage/0536/doc_00156196 to /storage/kkm_last_doc_name [10:14:01]save OK [10:14:01]Clear old archive folders... [10:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:01]tlvbuf is 00D333D0 [10:14:01]SAM_PROTO_ClearQueue [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 09 00 00 [10:14:01]Write to MH i2c: E2 08 00 F4 22 80 09 00 00 00 00 00 00 88 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 03 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 03 00 F4 22 00 90 00 8A [10:14:01]RAPDU: 90 00 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_ClearQueue done [10:14:01]KKMCreateOFDPacket [10:14:01]OFDProtocolAddRootSTLVToBuf [10:14:01]FM_MakeSignedData [10:14:01]FM_MakeSignedData [10:14:01]SAM_PROTO_SignData [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 0D 01 02 [10:14:01]Write to MH i2c: E2 08 00 F5 22 80 0D 01 02 00 00 00 00 90 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 03 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 03 00 F5 22 00 90 00 8B [10:14:01]RAPDU: 90 00 [10:14:01]wFMCommunicate OK [10:14:01]wFMCommunicate request_size=255 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EB C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 62 02 00 35 04 06 00 6F [10:14:01]Write to MH i2c: E2 02 01 F6 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EB C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 62 02 00 35 04 06 00 6F 00 00 ED [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 03 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 03 00 F6 22 00 90 00 8C [10:14:01]RAPDU: 90 00 [10:14:01]wFMCommunicate OK [10:14:01]wFMCommunicate request_size=10 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 0D 02 02 05 EC 99 49 40 C4 [10:14:01]Write to MH i2c: E2 0D 00 F7 22 80 0D 02 02 05 00 EC 99 49 40 C4 00 00 6F [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 03 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 03 00 F7 22 00 90 00 8D [10:14:01]RAPDU: 90 00 [10:14:01]wFMCommunicate OK [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 0D 03 02 [10:14:01]Write to MH i2c: E2 08 00 F8 22 80 0D 03 02 00 00 00 00 95 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0B 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0B 00 F8 22 00 DA 3E AD D0 98 5B 31 9B 90 00 EA [10:14:01]RAPDU: DA 3E AD D0 98 5B 31 9B 90 00 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_SignData done [10:14:01]FM_MakeSignedData done [10:14:01]CreateOFDProtocolMessage [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 11 00 00 [10:14:01]Write to MH i2c: E2 08 00 F9 22 80 11 00 00 00 00 00 00 95 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 17 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 17 00 F9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [10:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:14:01]wFMCommunicate OK [10:14:01]CreateOFDProtocolMessage done [10:14:01]OFDSenderStorePacket 156196 [10:14:01]StoreOFDPacket docnum=156196 [10:14:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 59 A7 07 01 01 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EB C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 62 02 00 35 04 06 00 6F EC 99 49 40 C4 DA 3E AD D0 98 5B 31 9B [10:14:01]CheckFolder [10:14:01]dirname=/storage/ofd_packets [10:14:01]CheckFolder done [10:14:01]ProducePacketName [10:14:01]name=ofd_packets/00156196 [10:14:01]NVStorageSaveData ofd_packets/00156196 [10:14:01]File name is /storage/ofd_packets/00156196 [10:14:01]Write 301 bytes [10:14:01]NVStorageSaveData done [10:14:01]OFDSenderStorePacket done [10:14:01]KKMCreateOFDPacket done [10:14:01]NVStorageSaveData kkm_last_timestamp [10:14:01]File name is /storage/kkm_last_timestamp [10:14:01]Write 4 bytes [10:14:01]NVStorageSaveData done [10:14:01]ExternCall_PrintAddStr [10:14:01]wPrintStart [10:14:01]Write to MH i2c: 01 00 00 FA 22 1C [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: 01 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: 01 07 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: 01 07 00 FA 22 00 00 00 00 00 FF 0F 31 [10:14:01]RasterBufferAndPrint [10:14:01]line Счет N : (1)99011 [10:14:01]line ИНН: 02508201610067 [10:14:01]line Контрольно-Кассовый Чек [10:14:01]line ПРОДАЖА [10:14:01]line ТРК (МРК, ГНК) : 31 [10:14:01]line Товар: 2710124130 [10:14:01]line Аи-92-К-5 [10:14:01]line 10.000 * 66.90 [10:14:01]line = 669.00 [10:14:01]line НДС 12% НСП 1% [10:14:01]line > о реализуемом товаре [10:14:01]line ИТОГО: 669.00 [10:14:01]line НСП 1% : 5.92 [10:14:01]line НДС 12% : 71.04 [10:14:01]line Наличными: 669.00 [10:14:01]line Безнал.: 0.00 [10:14:01]line Место: АЗС № 143 "Партнер Нефть" [10:14:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:14:01]line СНО: Общий режим [10:14:01]line Чек 97 26.10.2024 10:14 [10:14:01]line Смена: 536 ФФД: 1.0 [10:14:01]line ЗНМ: 0300000096 [10:14:01]line РНМ: 0000000000091693 [10:14:01]line Версия ККМ: 001 [10:14:01]line ФМ: 0000000000871792 [10:14:01]line ФД: 156196 [10:14:01]line ФПД: 123061974679748 [10:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101403&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156196&fm=123061974679748&tin=02508201610067®Number=0000000000091693&sum=66900 [10:14:01]written 0, free lines is 4095 [10:14:01]OFD Sender: Processing packet 156196 [packets to send 31, broken 30] [10:14:01]ProducePacketName [10:14:01]name=ofd_packets/00156196 [10:14:01]OFD Sender: To server: pG, [10:14:01]CommunicateWithHost lk.salyk.kg:30040 [10:14:01]ConnectInit lk.salyk.kg [10:14:01]Connected sock=11 [10:14:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 59 A7 07 01 01 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EB C0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 62 02 00 35 04 06 00 6F EC 99 49 40 C4 DA 3E AD D0 98 5B 31 9B [10:14:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 41 9D 47 00 7F DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 62 02 00 F4 03 04 00 5E 66 1C 67 B6 04 01 00 00 D1 22 40 81 B5 F3 14 E0 [10:14:02]CommunicateWithHost err = 0 [10:14:02]CheckOFDResponse [10:14:02]1017 (14) - 77093643461234 [10:14:02]1041 (16) - 0000000000871792 [10:14:02]1040 (4) - 156196 [10:14:02]1012 (4) - 26.10.2024 03:47 [10:14:02]1206 (1) - 0 [10:14:02]OFD Sender: Remove packet 156196 [10:14:02]ProducePacketName [10:14:02]name=ofd_packets/00156196 [10:14:02]NVStorageDeleteData [10:14:02]Write to MH i2c: 01 00 00 22 23 45 [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: 01 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: 01 07 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: 01 07 00 22 23 00 00 00 00 00 6F 0D C8 [10:14:02]RasterBufferAndPrint [10:14:02]line [10:14:02]line [10:14:02]line [10:14:02]line [10:14:02]line [10:14:02]written 0, free lines is 3453 [10:14:02]process_action close_receipt done [10:14:02]requested_data is exist [10:14:02]produce_requested_data [10:14:02]requested_item fm.sn is exist - process it [10:14:02]wFMCommunicate request_size=4 [10:14:02]MH_SAM_APDU [10:14:02]CAPDU: 80 11 00 00 [10:14:02]Write to MH i2c: E2 08 00 29 23 80 11 00 00 00 00 00 00 C6 [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:02]Read from MH i2c: E2 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 17 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 17 00 29 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [10:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:14:02]wFMCommunicate OK [10:14:02]requested_item fd.num is exist - process it [10:14:02]SAM_PROTO_GetFieldsCounters [10:14:02]wFMCommunicate request_size=4 [10:14:02]MH_SAM_APDU [10:14:02]CAPDU: 80 13 00 00 [10:14:02]Write to MH i2c: E2 08 00 2A 23 80 13 00 00 00 00 00 00 C9 [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:02]Read from MH i2c: E2 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 62 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 62 00 2A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 24 62 02 00 0E 04 04 00 18 02 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 B4 [10:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 24 62 02 00 0E 04 04 00 18 02 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 [10:14:02]wFMCommunicate OK [10:14:02]SAM_PROTO_GetFieldsCounters done [10:14:02]requested_item shift.num is exist - process it [10:14:02]requested_item shift.opened is exist - process it [10:14:02]req_shift_opened [10:14:02]FM_GetShiftState [10:14:02]SAM_PROTO_GetShiftState [10:14:02]wFMCommunicate request_size=4 [10:14:02]MH_SAM_APDU [10:14:02]CAPDU: 80 13 01 00 [10:14:02]Write to MH i2c: E2 08 00 2B 23 80 13 01 00 00 00 00 00 CB [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:02]Read from MH i2c: E2 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 0E 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 0E 00 2B 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 00 [10:14:02]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:14:02]wFMCommunicate OK [10:14:02]SAM_PROTO_GetShiftState done [10:14:02]FM_GetShiftState done [10:14:02]req_shift_opened done [10:14:02]requested_item shift.open_date is exist - process it [10:14:02]req_shift_open_date [10:14:02]req_shift_open_date done [10:14:02]produce_requested_data done [10:14:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156196,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:14:02]process_action_free close_receipt [10:14:02]json_value_free [10:14:02]json_value_free done [10:14:02]process_json_proto returns [10:14:02]Send response to host [10:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156196,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:14:02]free response buf [10:14:02]execute_script done [10:14:02]execute_script returns [10:14:02]free content buf [10:14:02]Sock 10.Close socket [10:14:02]Sock 10.Thread stoped [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:44]ConnectInit Can't connect to host [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: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]accept exits with 9 [10:17:47]New connection [10:17:47]New thread 3066469732 created [10:17:47]Thread 3066613092 joined [10:17:47]Waiting for new connection... [10:17:47] Sock 9.Parse request [10:17:47]Sock 9.Check first char [10:17:47]Sock 9.First char is OK [10:17:47]request: POST /json_proto HTTP/1.0 [10:17:47]Method: POST [10:17:47]URL: /json_proto [10:17:47]Method is POST - this is cgi request [10:17:47]url: /json_proto [10:17:47]query_string will be loaded in cgi processing [10:17:47]execute_cgi json_proto POST (null) [10:17:47]execute_cgi path=json_proto method=POST [10:17:47]POST find Content-Length [10:17:47]Host: 172.17.63.3:8080 [10:17:47]Content-Length: 677 [10:17:47]Content-Type: application/json [10:17:47] [10:17:47]POST finish read [10:17:47]Found Content-Length = 677 [10:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:47]execute_script... [10:17:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:47]POST & json_proto [10:17:47]process_json_proto [10:17:47]json parsed OK: [10:17:47]protocol is kg_v1.0 [10:17:47]action value=close_receipt [10:17:47]process_action close_receipt [10:17:47]cmd_close_receipt [10:17:47]MH_GetDate [10:17:47]Write to MH i2c: F0 00 00 2C 23 3E [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: F0 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: F0 09 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: F0 09 00 2C 23 00 CF C1 1C 67 50 D1 6C 64 4B [10:17:47]GetLastDocTimeStamp 1729937643 [10:17:47]current date 1729937871 [10:17:47]FM_GetShiftState [10:17:47]SAM_PROTO_GetShiftState [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 01 00 [10:17:47]Write to MH i2c: E2 08 00 2D 23 80 13 01 00 00 00 00 00 CD [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 2D 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 02 [10:17:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetShiftState done [10:17:47]FM_GetShiftState done [10:17:47]opened in 1729902702 [10:17:47]opened+sec_in_day 1729989102 [10:17:47]quantity*price = 70044 [10:17:47]sum+1 = 70045 [10:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 98 26.10.2024 10:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156197 ФПД: 157927202857752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101751&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156197&fm=157927202857752&tin=02508201610067®Number=0000000000091693&sum=70000 [10:17:48]StoreToDocumentArchive [10:17:48]shift 536 fd 156197 [10:17:48]save to /storage/0536/doc_00156197 [10:17:48]save last doc name /storage/0536/doc_00156197 to /storage/kkm_last_doc_name [10:17:48]save OK [10:17:48]Clear old archive folders... [10:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:48]tlvbuf is 00DC0C00 [10:17:48]SAM_PROTO_ClearQueue [10:17:48]wFMCommunicate request_size=4 [10:17:48]MH_SAM_APDU [10:17:48]CAPDU: 80 09 00 00 [10:17:48]Write to MH i2c: E2 08 00 3A 23 80 09 00 00 00 00 00 00 CF [10:17:48]Write i2c OK [10:17:48]MH_I2C_Read... [10:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:48]Read from MH i2c: E2 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 03 00 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 03 00 3A 23 00 90 00 D1 [10:17:48]RAPDU: 90 00 [10:17:48]wFMCommunicate OK [10:17:48]SAM_PROTO_ClearQueue done [10:17:48]KKMCreateOFDPacket [10:17:48]OFDProtocolAddRootSTLVToBuf [10:17:48]FM_MakeSignedData [10:17:48]FM_MakeSignedData [10:17:48]SAM_PROTO_SignData [10:17:48]wFMCommunicate request_size=4 [10:17:48]MH_SAM_APDU [10:17:48]CAPDU: 80 0D 01 02 [10:17:48]Write to MH i2c: E2 08 00 3B 23 80 0D 01 02 00 00 00 00 D7 [10:17:48]Write i2c OK [10:17:48]MH_I2C_Read... [10:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:48]Read from MH i2c: E2 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 03 00 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [10:17:48]RAPDU: 90 00 [10:17:48]wFMCommunicate OK [10:17:48]wFMCommunicate request_size=255 [10:17:48]MH_SAM_APDU [10:17:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CF C1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 62 02 00 35 04 06 00 8F [10:17:48]Write to MH i2c: E2 02 01 3C 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CF C1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 62 02 00 35 04 06 00 8F 00 00 22 [10:17:48]Write i2c OK [10:17:48]MH_I2C_Read... [10:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:48]Read from MH i2c: E2 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 03 00 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [10:17:48]RAPDU: 90 00 [10:17:48]wFMCommunicate OK [10:17:48]wFMCommunicate request_size=10 [10:17:48]MH_SAM_APDU [10:17:48]CAPDU: 80 0D 02 02 05 A2 4A D3 A3 18 [10:17:48]Write to MH i2c: E2 0D 00 3D 23 80 0D 02 02 05 00 A2 4A D3 A3 18 00 00 5E [10:17:48]Write i2c OK [10:17:48]MH_I2C_Read... [10:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 03 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 03 00 3D 23 00 90 00 D4 [10:17:49]RAPDU: 90 00 [10:17:49]wFMCommunicate OK [10:17:49]wFMCommunicate request_size=4 [10:17:49]MH_SAM_APDU [10:17:49]CAPDU: 80 0D 03 02 [10:17:49]Write to MH i2c: E2 08 00 3E 23 80 0D 03 02 00 00 00 00 DC [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 0B 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 0B 00 3E 23 00 05 D7 55 1B BD 91 F7 F2 90 00 60 [10:17:49]RAPDU: 05 D7 55 1B BD 91 F7 F2 90 00 [10:17:49]wFMCommunicate OK [10:17:49]SAM_PROTO_SignData done [10:17:49]FM_MakeSignedData done [10:17:49]CreateOFDProtocolMessage [10:17:49]wFMCommunicate request_size=4 [10:17:49]MH_SAM_APDU [10:17:49]CAPDU: 80 11 00 00 [10:17:49]Write to MH i2c: E2 08 00 3F 23 80 11 00 00 00 00 00 00 DC [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 17 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 17 00 3F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 31 [10:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:17:49]wFMCommunicate OK [10:17:49]CreateOFDProtocolMessage done [10:17:49]OFDSenderStorePacket 156197 [10:17:49]StoreOFDPacket docnum=156197 [10:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B7 68 07 01 67 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CF C1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 62 02 00 35 04 06 00 8F A2 4A D3 A3 18 05 D7 55 1B BD 91 F7 F2 [10:17:49]CheckFolder [10:17:49]dirname=/storage/ofd_packets [10:17:49]CheckFolder done [10:17:49]ProducePacketName [10:17:49]name=ofd_packets/00156197 [10:17:49]NVStorageSaveData ofd_packets/00156197 [10:17:49]File name is /storage/ofd_packets/00156197 [10:17:49]Write 301 bytes [10:17:49]NVStorageSaveData done [10:17:49]OFDSenderStorePacket done [10:17:49]KKMCreateOFDPacket done [10:17:49]NVStorageSaveData kkm_last_timestamp [10:17:49]File name is /storage/kkm_last_timestamp [10:17:49]Write 4 bytes [10:17:49]NVStorageSaveData done [10:17:49]ExternCall_PrintAddStr [10:17:49]wPrintStart [10:17:49]Write to MH i2c: 01 00 00 40 23 63 [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: 01 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: 01 07 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: 01 07 00 40 23 00 00 00 00 00 FF 0F 78 [10:17:49]RasterBufferAndPrint [10:17:49]line Счет N : (1)99012 [10:17:49]line ИНН: 02508201610067 [10:17:49]line Контрольно-Кассовый Чек [10:17:49]line ПРОДАЖА [10:17:49]line ТРК (МРК, ГНК) : 11 [10:17:49]line Товар: 2710124130 [10:17:49]line Аи-92-К-5 [10:17:49]line 10.470 * 66.90 [10:17:49]line = 700.44 [10:17:49]line НДС 12% НСП 1% [10:17:49]line > о реализуемом товаре [10:17:49]line ОКРУГЛЕНИЕ: -0.44 [10:17:49]line ИТОГО: 700.00 [10:17:49]line Внесено: 700.00 [10:17:49]line СДАЧА: 0.00 [10:17:49]line НСП 1% : 6.20 [10:17:49]line НДС 12% : 74.38 [10:17:49]line Наличными: 700.00 [10:17:49]line Безнал.: 0.00 [10:17:49]line Место: АЗС № 143 "Партнер Нефть" [10:17:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:17:49]line СНО: Общий режим [10:17:49]line Чек 98 26.10.2024 10:17 [10:17:49]line Смена: 536 ФФД: 1.0 [10:17:49]line ЗНМ: 0300000096 [10:17:49]line РНМ: 0000000000091693 [10:17:49]line Версия ККМ: 001 [10:17:49]line ФМ: 0000000000871792 [10:17:49]line ФД: 156197 [10:17:49]line ФПД: 157927202857752 [10:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101751&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156197&fm=157927202857752&tin=02508201610067®Number=0000000000091693&sum=70000 [10:17:49]written 0, free lines is 4095 [10:17:49]OFD Sender: Processing packet 156197 [packets to send 31, broken 30] [10:17:49]ProducePacketName [10:17:49]name=ofd_packets/00156197 [10:17:49]OFD Sender: To server: pG, [10:17:49]CommunicateWithHost lk.salyk.kg:30040 [10:17:49]ConnectInit lk.salyk.kg [10:17:49]Connected sock=11 [10:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B7 68 07 01 67 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CF C1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 62 02 00 35 04 06 00 8F A2 4A D3 A3 18 05 D7 55 1B BD 91 F7 F2 [10:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6B BD 47 00 01 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 31 37 39 32 10 04 04 00 25 62 02 00 F4 03 04 00 41 67 1C 67 B6 04 01 00 00 78 24 ED FB 51 52 D6 7F [10:17:49]CommunicateWithHost err = 0 [10:17:49]CheckOFDResponse [10:17:49]1017 (14) - 77093643461234 [10:17:49]1041 (16) - 0000000000871792 [10:17:49]1040 (4) - 156197 [10:17:49]1012 (4) - 26.10.2024 03:51 [10:17:49]1206 (1) - 0 [10:17:49]OFD Sender: Remove packet 156197 [10:17:49]ProducePacketName [10:17:49]name=ofd_packets/00156197 [10:17:49]NVStorageDeleteData [10:17:49]Write to MH i2c: 01 00 00 6B 23 8E [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: 01 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: 01 07 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: 01 07 00 6B 23 00 00 00 00 00 E4 0C 85 [10:17:49]RasterBufferAndPrint [10:17:49]line [10:17:49]line [10:17:49]line [10:17:49]line [10:17:49]line [10:17:49]written 0, free lines is 3306 [10:17:49]process_action close_receipt done [10:17:49]requested_data is exist [10:17:49]produce_requested_data [10:17:49]requested_item fm.sn is exist - process it [10:17:49]wFMCommunicate request_size=4 [10:17:49]MH_SAM_APDU [10:17:49]CAPDU: 80 11 00 00 [10:17:49]Write to MH i2c: E2 08 00 72 23 80 11 00 00 00 00 00 00 0F [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 17 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 17 00 72 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [10:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:17:49]wFMCommunicate OK [10:17:49]requested_item fd.num is exist - process it [10:17:49]SAM_PROTO_GetFieldsCounters [10:17:49]wFMCommunicate request_size=4 [10:17:49]MH_SAM_APDU [10:17:49]CAPDU: 80 13 00 00 [10:17:49]Write to MH i2c: E2 08 00 73 23 80 13 00 00 00 00 00 00 12 [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 62 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 62 00 73 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 25 62 02 00 0E 04 04 00 18 02 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 01 [10:17: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 25 62 02 00 0E 04 04 00 18 02 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 [10:17:49]wFMCommunicate OK [10:17:49]SAM_PROTO_GetFieldsCounters done [10:17:49]requested_item shift.num is exist - process it [10:17:49]requested_item shift.opened is exist - process it [10:17:49]req_shift_opened [10:17:49]FM_GetShiftState [10:17:49]SAM_PROTO_GetShiftState [10:17:49]wFMCommunicate request_size=4 [10:17:49]MH_SAM_APDU [10:17:49]CAPDU: 80 13 01 00 [10:17:49]Write to MH i2c: E2 08 00 74 23 80 13 01 00 00 00 00 00 14 [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 0E 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 0E 00 74 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 49 [10:17:49]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:17:49]wFMCommunicate OK [10:17:49]SAM_PROTO_GetShiftState done [10:17:49]FM_GetShiftState done [10:17:49]req_shift_opened done [10:17:49]requested_item shift.open_date is exist - process it [10:17:49]req_shift_open_date [10:17:49]req_shift_open_date done [10:17:49]produce_requested_data done [10:17:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156197,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:17:49]process_action_free close_receipt [10:17:49]json_value_free [10:17:49]json_value_free done [10:17:49]process_json_proto returns [10:17:49]Send response to host [10:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156197,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:17:49]free response buf [10:17:49]execute_script done [10:17:49]execute_script returns [10:17:49]free content buf [10:17:49]Sock 9.Close socket [10:17:49]Sock 9.Thread stoped [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:28]accept exits with 10 [10:19:28]New connection [10:19:28]New thread 3066613092 created [10:19:28]Thread 3066469732 joined [10:19:28]Waiting for new connection... [10:19:28] Sock 10.Parse request [10:19:28]Sock 10.Check first char [10:19:28]Sock 10.First char is OK [10:19:28]request: POST /json_proto HTTP/1.0 [10:19:28]Method: POST [10:19:28]URL: /json_proto [10:19:28]Method is POST - this is cgi request [10:19:28]url: /json_proto [10:19:28]query_string will be loaded in cgi processing [10:19:28]execute_cgi json_proto POST (null) [10:19:28]execute_cgi path=json_proto method=POST [10:19:28]POST find Content-Length [10:19:28]Host: 172.17.63.3:8080 [10:19:28]Content-Length: 681 [10:19:28]Content-Type: application/json [10:19:28] [10:19:28]POST finish read [10:19:28]Found Content-Length = 681 [10:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:28]execute_script... [10:19: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)99013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:28]POST & json_proto [10:19:28]process_json_proto [10:19:28]json parsed OK: [10:19:28]protocol is kg_v1.0 [10:19:28]action value=close_receipt [10:19:28]process_action close_receipt [10:19:28]cmd_close_receipt [10:19:28]MH_GetDate [10:19:28]Write to MH i2c: F0 00 00 75 23 87 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: F0 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: F0 09 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: F0 09 00 75 23 00 34 C2 1C 67 50 D1 6C 64 FA [10:19:28]GetLastDocTimeStamp 1729937871 [10:19:28]current date 1729937972 [10:19:28]FM_GetShiftState [10:19:28]SAM_PROTO_GetShiftState [10:19:28]wFMCommunicate request_size=4 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 13 01 00 [10:19:28]Write to MH i2c: E2 08 00 76 23 80 13 01 00 00 00 00 00 16 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:28]Read from MH i2c: E2 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 0E 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 0E 00 76 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4B [10:19:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:19:28]wFMCommunicate OK [10:19:28]SAM_PROTO_GetShiftState done [10:19:28]FM_GetShiftState done [10:19:28]opened in 1729902702 [10:19:28]opened+sec_in_day 1729989102 [10:19:28]quantity*price = 200031 [10:19:28]sum+1 = 200032 [10:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 99 26.10.2024 10:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156198 ФПД: 27621857572418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101932&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156198&fm=27621857572418&tin=02508201610067®Number=0000000000091693&sum=200000 [10:19:29]StoreToDocumentArchive [10:19:29]shift 536 fd 156198 [10:19:29]save to /storage/0536/doc_00156198 [10:19:29]save last doc name /storage/0536/doc_00156198 to /storage/kkm_last_doc_name [10:19:29]save OK [10:19:29]Clear old archive folders... [10:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:29]tlvbuf is 00DF9540 [10:19:29]SAM_PROTO_ClearQueue [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 09 00 00 [10:19:29]Write to MH i2c: E2 08 00 83 23 80 09 00 00 00 00 00 00 18 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 83 23 00 90 00 1A [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]SAM_PROTO_ClearQueue done [10:19:29]KKMCreateOFDPacket [10:19:29]OFDProtocolAddRootSTLVToBuf [10:19:29]FM_MakeSignedData [10:19:29]FM_MakeSignedData [10:19:29]SAM_PROTO_SignData [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 0D 01 02 [10:19:29]Write to MH i2c: E2 08 00 84 23 80 0D 01 02 00 00 00 00 20 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]wFMCommunicate request_size=255 [10:19:29]MH_SAM_APDU [10:19: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 34 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 62 02 00 35 04 06 00 19 [10:19:30]Write to MH i2c: E2 02 01 85 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 34 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 62 02 00 35 04 06 00 19 00 00 8F [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]OFD Sender: No OFD packet to send [10:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 03 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [10:19:30]RAPDU: 90 00 [10:19:30]wFMCommunicate OK [10:19:30]wFMCommunicate request_size=10 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 0D 02 02 05 1F 37 02 36 42 [10:19:30]Write to MH i2c: E2 0D 00 86 23 80 0D 02 02 05 00 1F 37 02 36 42 00 00 FD [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 03 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [10:19:30]RAPDU: 90 00 [10:19:30]wFMCommunicate OK [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 0D 03 02 [10:19:30]Write to MH i2c: E2 08 00 87 23 80 0D 03 02 00 00 00 00 25 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0B 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0B 00 87 23 00 83 EF 0F 16 E5 89 FF BE 90 00 E8 [10:19:30]RAPDU: 83 EF 0F 16 E5 89 FF BE 90 00 [10:19:30]wFMCommunicate OK [10:19:30]SAM_PROTO_SignData done [10:19:30]FM_MakeSignedData done [10:19:30]CreateOFDProtocolMessage [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 11 00 00 [10:19:30]Write to MH i2c: E2 08 00 88 23 80 11 00 00 00 00 00 00 25 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 17 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 17 00 88 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7A [10:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:19:30]wFMCommunicate OK [10:19:30]CreateOFDProtocolMessage done [10:19:30]OFDSenderStorePacket 156198 [10:19:30]StoreOFDPacket docnum=156198 [10:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 91 3C 07 01 F4 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 34 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 62 02 00 35 04 06 00 19 1F 37 02 36 42 83 EF 0F 16 E5 89 FF BE [10:19:30]CheckFolder [10:19:30]dirname=/storage/ofd_packets [10:19:30]CheckFolder done [10:19:30]ProducePacketName [10:19:30]name=ofd_packets/00156198 [10:19:30]NVStorageSaveData ofd_packets/00156198 [10:19:30]File name is /storage/ofd_packets/00156198 [10:19:30]Write 301 bytes [10:19:30]NVStorageSaveData done [10:19:30]OFDSenderStorePacket done [10:19:30]KKMCreateOFDPacket done [10:19:30]NVStorageSaveData kkm_last_timestamp [10:19:30]File name is /storage/kkm_last_timestamp [10:19:30]Write 4 bytes [10:19:30]NVStorageSaveData done [10:19:30]ExternCall_PrintAddStr [10:19:30]wPrintStart [10:19:30]Write to MH i2c: 01 00 00 89 23 AC [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 07 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 07 00 89 23 00 00 00 00 00 FF 0F C1 [10:19:30]RasterBufferAndPrint [10:19:30]line Счет N : (1)99013 [10:19:30]line ИНН: 02508201610067 [10:19:30]line Контрольно-Кассовый Чек [10:19:30]line ПРОДАЖА [10:19:30]line ТРК (МРК, ГНК) : 21 [10:19:30]line Товар: 2710124130 [10:19:30]line Аи-92-К-5 [10:19:30]line 29.900 * 66.90 [10:19:30]line = 2000.31 [10:19:30]line НДС 12% НСП 1% [10:19:30]line > о реализуемом товаре [10:19:30]line ОКРУГЛЕНИЕ: -0.31 [10:19:30]line ИТОГО: 2000.00 [10:19:30]line Внесено: 2000.00 [10:19:30]line СДАЧА: 0.00 [10:19:30]line НСП 1% : 17.70 [10:19:30]line НДС 12% : 212.42 [10:19:30]line Наличными: 2000.00 [10:19:30]line Безнал.: 0.00 [10:19:30]line Место: АЗС № 143 "Партнер Нефть" [10:19:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:19:30]line СНО: Общий режим [10:19:30]line Чек 99 26.10.2024 10:19 [10:19:30]line Смена: 536 ФФД: 1.0 [10:19:30]line ЗНМ: 0300000096 [10:19:30]line РНМ: 0000000000091693 [10:19:30]line Версия ККМ: 001 [10:19:30]line ФМ: 0000000000871792 [10:19:30]line ФД: 156198 [10:19:30]line ФПД: 27621857572418 [10:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101932&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156198&fm=27621857572418&tin=02508201610067®Number=0000000000091693&sum=200000 [10:19:30]written 0, free lines is 4095 [10:19:30]OFD Sender: Processing packet 156198 [packets to send 31, broken 30] [10:19:30]ProducePacketName [10:19:30]name=ofd_packets/00156198 [10:19:30]OFD Sender: To server: pG, [10:19:30]CommunicateWithHost lk.salyk.kg:30040 [10:19:30]ConnectInit lk.salyk.kg [10:19:30]Connected sock=7 [10:19:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 91 3C 07 01 F4 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 34 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 62 02 00 35 04 06 00 19 1F 37 02 36 42 83 EF 0F 16 E5 89 FF BE [10:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 80 A3 47 00 B7 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 62 02 00 F4 03 04 00 A7 67 1C 67 B6 04 01 00 00 01 3C 91 52 C3 54 96 96 [10:19:30]CommunicateWithHost err = 0 [10:19:30]CheckOFDResponse [10:19:30]1017 (14) - 77093643461234 [10:19:30]1041 (16) - 0000000000871792 [10:19:30]1040 (4) - 156198 [10:19:30]1012 (4) - 26.10.2024 03:53 [10:19:30]1206 (1) - 0 [10:19:30]OFD Sender: Remove packet 156198 [10:19:30]ProducePacketName [10:19:30]name=ofd_packets/00156198 [10:19:30]NVStorageDeleteData [10:19:31]Write to MH i2c: 01 00 00 B4 23 D7 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 07 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 07 00 B4 23 00 00 00 00 00 01 0D EC [10:19:31]RasterBufferAndPrint [10:19:31]line [10:19:31]line [10:19:31]line [10:19:31]line [10:19:31]line [10:19:31]written 0, free lines is 3348 [10:19:31]process_action close_receipt done [10:19:31]requested_data is exist [10:19:31]produce_requested_data [10:19:31]requested_item fm.sn is exist - process it [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 11 00 00 [10:19:31]Write to MH i2c: E2 08 00 BB 23 80 11 00 00 00 00 00 00 58 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 17 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 17 00 BB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [10:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:19:31]wFMCommunicate OK [10:19:31]requested_item fd.num is exist - process it [10:19:31]SAM_PROTO_GetFieldsCounters [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 13 00 00 [10:19:31]Write to MH i2c: E2 08 00 BC 23 80 13 00 00 00 00 00 00 5B [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 62 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 62 00 BC 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 26 62 02 00 0E 04 04 00 18 02 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 4E [10:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 26 62 02 00 0E 04 04 00 18 02 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 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_GetFieldsCounters done [10:19:31]requested_item shift.num is exist - process it [10:19:31]requested_item shift.opened is exist - process it [10:19:31]req_shift_opened [10:19:31]FM_GetShiftState [10:19:31]SAM_PROTO_GetShiftState [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 13 01 00 [10:19:31]Write to MH i2c: E2 08 00 BD 23 80 13 01 00 00 00 00 00 5D [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0E 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0E 00 BD 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 92 [10:19:31]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_GetShiftState done [10:19:31]FM_GetShiftState done [10:19:31]req_shift_opened done [10:19:31]requested_item shift.open_date is exist - process it [10:19:31]req_shift_open_date [10:19:31]req_shift_open_date done [10:19:31]produce_requested_data done [10:19:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156198,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:19:31]process_action_free close_receipt [10:19:31]json_value_free [10:19:31]json_value_free done [10:19:31]process_json_proto returns [10:19:31]Send response to host [10:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156198,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:19:31]free response buf [10:19:31]execute_script done [10:19:31]execute_script returns [10:19:31]free content buf [10:19:31]Sock 10.Close socket [10:19:31]Sock 10.Thread stoped [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:37]accept exits with 9 [10:19:37]New connection [10:19:37]New thread 3066469732 created [10:19:37]Thread 3066613092 joined [10:19:37]Waiting for new connection... [10:19:37] Sock 9.Parse request [10:19:37]Sock 9.Check first char [10:19:37]Sock 9.First char is OK [10:19:37]request: POST /json_proto HTTP/1.0 [10:19:37]Method: POST [10:19:37]URL: /json_proto [10:19:37]Method is POST - this is cgi request [10:19:37]url: /json_proto [10:19:37]query_string will be loaded in cgi processing [10:19:37]execute_cgi json_proto POST (null) [10:19:37]execute_cgi path=json_proto method=POST [10:19:37]POST find Content-Length [10:19:37]Host: 172.17.63.3:8080 [10:19:37]Content-Length: 681 [10:19:37]Content-Type: application/json [10:19:37] [10:19:37]POST finish read [10:19:37]Found Content-Length = 681 [10:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:37]execute_script... [10:19:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:37]POST & json_proto [10:19:37]process_json_proto [10:19:37]json parsed OK: [10:19:37]protocol is kg_v1.0 [10:19:37]action value=close_receipt [10:19:37]process_action close_receipt [10:19:37]cmd_close_receipt [10:19:37]MH_GetDate [10:19:37]Write to MH i2c: F0 00 00 BE 23 D0 [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: F0 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: F0 09 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: F0 09 00 BE 23 00 3D C2 1C 67 50 D1 6C 64 4C [10:19:37]GetLastDocTimeStamp 1729937972 [10:19:37]current date 1729937981 [10:19:37]FM_GetShiftState [10:19:37]SAM_PROTO_GetShiftState [10:19:37]wFMCommunicate request_size=4 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 13 01 00 [10:19:37]Write to MH i2c: E2 08 00 BF 23 80 13 01 00 00 00 00 00 5F [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:37]Read from MH i2c: E2 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 0E 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 0E 00 BF 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 94 [10:19:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:19:37]wFMCommunicate OK [10:19:37]SAM_PROTO_GetShiftState done [10:19:37]FM_GetShiftState done [10:19:37]opened in 1729902702 [10:19:37]opened+sec_in_day 1729989102 [10:19:37]quantity*price = 100015 [10:19:37]sum+1 = 100017 [10:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 100 26.10.2024 10:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156199 ФПД: 161267678970272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101941&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156199&fm=161267678970272&tin=02508201610067®Number=0000000000091693&sum=100000 [10:19:38]StoreToDocumentArchive [10:19:38]shift 536 fd 156199 [10:19:38]save to /storage/0536/doc_00156199 [10:19:38]save last doc name /storage/0536/doc_00156199 to /storage/kkm_last_doc_name [10:19:38]save OK [10:19:38]Clear old archive folders... [10:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:38]tlvbuf is 00E1C2F0 [10:19:38]SAM_PROTO_ClearQueue [10:19:38]wFMCommunicate request_size=4 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 09 00 00 [10:19:38]Write to MH i2c: E2 08 00 CC 23 80 09 00 00 00 00 00 00 61 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 CC 23 00 90 00 63 [10:19:38]RAPDU: 90 00 [10:19:38]wFMCommunicate OK [10:19:38]SAM_PROTO_ClearQueue done [10:19:38]KKMCreateOFDPacket [10:19:38]OFDProtocolAddRootSTLVToBuf [10:19:38]FM_MakeSignedData [10:19:38]FM_MakeSignedData [10:19:38]SAM_PROTO_SignData [10:19:38]wFMCommunicate request_size=4 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 0D 01 02 [10:19:38]Write to MH i2c: E2 08 00 CD 23 80 0D 01 02 00 00 00 00 69 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 CD 23 00 90 00 64 [10:19:38]RAPDU: 90 00 [10:19:38]wFMCommunicate OK [10:19:38]wFMCommunicate request_size=255 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 3D C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 62 02 00 35 04 06 00 92 [10:19:38]Write to MH i2c: E2 02 01 CE 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 3D C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 62 02 00 35 04 06 00 92 00 00 14 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 CE 23 00 90 00 65 [10:19:38]RAPDU: 90 00 [10:19:38]wFMCommunicate OK [10:19:38]wFMCommunicate request_size=10 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 0D 02 02 05 AC 0E B8 01 A0 [10:19:38]Write to MH i2c: E2 0D 00 CF 23 80 0D 02 02 05 00 AC 0E B8 01 A0 00 00 89 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 CF 23 00 90 00 66 [10:19:38]RAPDU: 90 00 [10:19:38]wFMCommunicate OK [10:19:38]wFMCommunicate request_size=4 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 0D 03 02 [10:19:38]Write to MH i2c: E2 08 00 D0 23 80 0D 03 02 00 00 00 00 6E [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:39]Read from MH i2c: E2 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: E2 0B 00 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: E2 0B 00 D0 23 00 8A 63 AA B3 C8 57 DF E0 90 00 97 [10:19:39]RAPDU: 8A 63 AA B3 C8 57 DF E0 90 00 [10:19:39]wFMCommunicate OK [10:19:39]SAM_PROTO_SignData done [10:19:39]FM_MakeSignedData done [10:19:39]CreateOFDProtocolMessage [10:19:39]wFMCommunicate request_size=4 [10:19:39]MH_SAM_APDU [10:19:39]CAPDU: 80 11 00 00 [10:19:39]Write to MH i2c: E2 08 00 D1 23 80 11 00 00 00 00 00 00 6E [10:19:39]Write i2c OK [10:19:39]MH_I2C_Read... [10:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:39]Read from MH i2c: E2 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: E2 17 00 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: E2 17 00 D1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C3 [10:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:19:39]wFMCommunicate OK [10:19:39]CreateOFDProtocolMessage done [10:19:39]OFDSenderStorePacket 156199 [10:19:39]StoreOFDPacket docnum=156199 [10:19:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 63 49 07 01 95 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 3D C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 62 02 00 35 04 06 00 92 AC 0E B8 01 A0 8A 63 AA B3 C8 57 DF E0 [10:19:39]CheckFolder [10:19:39]dirname=/storage/ofd_packets [10:19:39]CheckFolder done [10:19:39]ProducePacketName [10:19:39]name=ofd_packets/00156199 [10:19:39]NVStorageSaveData ofd_packets/00156199 [10:19:39]File name is /storage/ofd_packets/00156199 [10:19:39]Write 301 bytes [10:19:39]NVStorageSaveData done [10:19:39]OFDSenderStorePacket done [10:19:39]KKMCreateOFDPacket done [10:19:39]NVStorageSaveData kkm_last_timestamp [10:19:39]File name is /storage/kkm_last_timestamp [10:19:39]Write 4 bytes [10:19:39]NVStorageSaveData done [10:19:39]ExternCall_PrintAddStr [10:19:39]wPrintStart [10:19:39]Write to MH i2c: 01 00 00 D2 23 F5 [10:19:39]Write i2c OK [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 07 00 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 07 00 D2 23 00 00 00 00 00 FF 0F 0A [10:19:39]RasterBufferAndPrint [10:19:39]line Счет N : (1)99014 [10:19:39]line ИНН: 02508201610067 [10:19:39]line Контрольно-Кассовый Чек [10:19:39]line ПРОДАЖА [10:19:39]line ТРК (МРК, ГНК) : 11 [10:19:39]line Товар: 2710124130 [10:19:39]line Аи-92-К-5 [10:19:39]line 14.950 * 66.90 [10:19:39]line = 1000.16 [10:19:39]line НДС 12% НСП 1% [10:19:39]line > о реализуемом товаре [10:19:39]line ОКРУГЛЕНИЕ: -0.16 [10:19:39]line ИТОГО: 1000.00 [10:19:39]line Внесено: 1000.00 [10:19:39]line СДАЧА: 0.00 [10:19:39]line НСП 1% : 8.85 [10:19:39]line НДС 12% : 106.21 [10:19:39]line Наличными: 1000.00 [10:19:39]line Безнал.: 0.00 [10:19:39]line Место: АЗС № 143 "Партнер Нефть" [10:19:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:19:39]line СНО: Общий режим [10:19:39]line Чек 100 26.10.2024 10:19 [10:19:39]line Смена: 536 ФФД: 1.0 [10:19:39]line ЗНМ: 0300000096 [10:19:39]line РНМ: 0000000000091693 [10:19:39]line Версия ККМ: 001 [10:19:39]line ФМ: 0000000000871792 [10:19:39]line ФД: 156199 [10:19:39]line ФПД: 161267678970272 [10:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101941&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156199&fm=161267678970272&tin=02508201610067®Number=0000000000091693&sum=100000 [10:19:39]written 0, free lines is 4095 [10:19:39]OFD Sender: Processing packet 156199 [packets to send 31, broken 30] [10:19:39]ProducePacketName [10:19:39]name=ofd_packets/00156199 [10:19:39]OFD Sender: To server: pG, [10:19:39]CommunicateWithHost lk.salyk.kg:30040 [10:19:39]ConnectInit lk.salyk.kg [10:19:39]Connected sock=10 [10:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 63 49 07 01 95 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 3D C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 62 02 00 35 04 06 00 92 AC 0E B8 01 A0 8A 63 AA B3 C8 57 DF E0 [10:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B6 9C 47 00 22 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 62 02 00 F4 03 04 00 B0 67 1C 67 B6 04 01 00 00 AC 9C 89 29 2A 0C CF 3A [10:19:39]CommunicateWithHost err = 0 [10:19:39]CheckOFDResponse [10:19:39]1017 (14) - 77093643461234 [10:19:39]1041 (16) - 0000000000871792 [10:19:39]1040 (4) - 156199 [10:19:39]1012 (4) - 26.10.2024 03:53 [10:19:39]1206 (1) - 0 [10:19:39]OFD Sender: Remove packet 156199 [10:19:39]ProducePacketName [10:19:39]name=ofd_packets/00156199 [10:19:39]NVStorageDeleteData [10:19:39]Write to MH i2c: 01 00 00 FD 23 20 [10:19:39]Write i2c OK [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 07 00 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 07 00 FD 23 00 00 00 00 00 7D 0D B1 [10:19:39]RasterBufferAndPrint [10:19:39]line [10:19:39]line [10:19:39]line [10:19:39]line [10:19:39]line [10:19:39]written 0, free lines is 3477 [10:19:39]process_action close_receipt done [10:19:39]requested_data is exist [10:19:39]produce_requested_data [10:19:39]requested_item fm.sn is exist - process it [10:19:39]wFMCommunicate request_size=4 [10:19:39]MH_SAM_APDU [10:19:39]CAPDU: 80 11 00 00 [10:19:39]Write to MH i2c: E2 08 00 04 24 80 11 00 00 00 00 00 00 A2 [10:19:39]Write i2c OK [10:19:39]MH_I2C_Read... [10:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:39]Read from MH i2c: E2 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: E2 17 00 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: E2 17 00 04 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [10:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:19:39]wFMCommunicate OK [10:19:39]requested_item fd.num is exist - process it [10:19:39]SAM_PROTO_GetFieldsCounters [10:19:39]wFMCommunicate request_size=4 [10:19:39]MH_SAM_APDU [10:19:39]CAPDU: 80 13 00 00 [10:19:39]Write to MH i2c: E2 08 00 05 24 80 13 00 00 00 00 00 00 A5 [10:19:39]Write i2c OK [10:19:39]MH_I2C_Read... [10:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:39]Read from MH i2c: E2 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: E2 62 00 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: E2 62 00 05 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 27 62 02 00 0E 04 04 00 18 02 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 9C [10:19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 27 62 02 00 0E 04 04 00 18 02 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 [10:19:40]wFMCommunicate OK [10:19:40]SAM_PROTO_GetFieldsCounters done [10:19:40]requested_item shift.num is exist - process it [10:19:40]requested_item shift.opened is exist - process it [10:19:40]req_shift_opened [10:19:40]FM_GetShiftState [10:19:40]SAM_PROTO_GetShiftState [10:19:40]wFMCommunicate request_size=4 [10:19:40]MH_SAM_APDU [10:19:40]CAPDU: 80 13 01 00 [10:19:40]Write to MH i2c: E2 08 00 06 24 80 13 01 00 00 00 00 00 A7 [10:19:40]Write i2c OK [10:19:40]MH_I2C_Read... [10:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:40]Read from MH i2c: E2 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 0E 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 0E 00 06 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DC [10:19:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:19:40]wFMCommunicate OK [10:19:40]SAM_PROTO_GetShiftState done [10:19:40]FM_GetShiftState done [10:19:40]req_shift_opened done [10:19:40]requested_item shift.open_date is exist - process it [10:19:40]req_shift_open_date [10:19:40]req_shift_open_date done [10:19:40]produce_requested_data done [10:19:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156199,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:19:40]process_action_free close_receipt [10:19:40]json_value_free [10:19:40]json_value_free done [10:19:40]process_json_proto returns [10:19:40]Send response to host [10:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156199,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:19:40]free response buf [10:19:40]execute_script done [10:19:40]execute_script returns [10:19:40]free content buf [10:19:40]Sock 9.Close socket [10:19:40]Sock 9.Thread stoped [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:37]accept exits with 7 [10:21:37]New connection [10:21:37]New thread 3066613092 created [10:21:37]Thread 3066469732 joined [10:21:37]Waiting for new connection... [10:21:37] Sock 7.Parse request [10:21:37]Sock 7.Check first char [10:21:37]Sock 7.First char is OK [10:21:37]request: POST /json_proto HTTP/1.0 [10:21:37]Method: POST [10:21:37]URL: /json_proto [10:21:37]Method is POST - this is cgi request [10:21:37]url: /json_proto [10:21:37]query_string will be loaded in cgi processing [10:21:37]execute_cgi json_proto POST (null) [10:21:37]execute_cgi path=json_proto method=POST [10:21:37]POST find Content-Length [10:21:37]Host: 172.17.63.3:8080 [10:21:37]Content-Length: 681 [10:21:37]Content-Type: application/json [10:21:37] [10:21:37]POST finish read [10:21:37]Found Content-Length = 681 [10:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:37]execute_script... [10:21:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:37]POST & json_proto [10:21:37]process_json_proto [10:21:37]json parsed OK: [10:21:37]protocol is kg_v1.0 [10:21:37]action value=close_receipt [10:21:37]process_action close_receipt [10:21:37]cmd_close_receipt [10:21:37]MH_GetDate [10:21:37]Write to MH i2c: F0 00 00 07 24 1A [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: F0 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: F0 09 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: F0 09 00 07 24 00 B5 C2 1C 67 50 D1 6C 64 0E [10:21:37]GetLastDocTimeStamp 1729937981 [10:21:37]current date 1729938101 [10:21:37]FM_GetShiftState [10:21:37]SAM_PROTO_GetShiftState [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 13 01 00 [10:21:37]Write to MH i2c: E2 08 00 08 24 80 13 01 00 00 00 00 00 A9 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0E 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0E 00 08 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DE [10:21:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:21:37]wFMCommunicate OK [10:21:37]SAM_PROTO_GetShiftState done [10:21:37]FM_GetShiftState done [10:21:37]opened in 1729902702 [10:21:37]opened+sec_in_day 1729989102 [10:21:37]quantity*price = 100015 [10:21:37]sum+1 = 100017 [10:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 101 26.10.2024 10:21 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156200 ФПД: 180956991173043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102141&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156200&fm=180956991173043&tin=02508201610067®Number=0000000000091693&sum=100000 [10:21:38]StoreToDocumentArchive [10:21:38]shift 536 fd 156200 [10:21:38]save to /storage/0536/doc_00156200 [10:21:38]save last doc name /storage/0536/doc_00156200 to /storage/kkm_last_doc_name [10:21:38]save OK [10:21:38]Clear old archive folders... [10:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:38]tlvbuf is 00D7D840 [10:21:38]SAM_PROTO_ClearQueue [10:21:38]wFMCommunicate request_size=4 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 09 00 00 [10:21:38]Write to MH i2c: E2 08 00 15 24 80 09 00 00 00 00 00 00 AB [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 15 24 00 90 00 AD [10:21:38]RAPDU: 90 00 [10:21:38]wFMCommunicate OK [10:21:38]SAM_PROTO_ClearQueue done [10:21:38]KKMCreateOFDPacket [10:21:38]OFDProtocolAddRootSTLVToBuf [10:21:38]FM_MakeSignedData [10:21:38]FM_MakeSignedData [10:21:38]SAM_PROTO_SignData [10:21:38]wFMCommunicate request_size=4 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 0D 01 02 [10:21:38]Write to MH i2c: E2 08 00 16 24 80 0D 01 02 00 00 00 00 B3 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 16 24 00 90 00 AE [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=255 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B5 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 62 02 00 35 04 06 00 A4 [10:21:39]Write to MH i2c: E2 02 01 17 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B5 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 62 02 00 35 04 06 00 A4 00 00 EA [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 17 24 00 90 00 AF [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=10 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 02 02 05 94 55 2D B1 B3 [10:21:39]Write to MH i2c: E2 0D 00 18 24 80 0D 02 02 05 00 94 55 2D B1 B3 00 00 3A [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 18 24 00 90 00 B0 [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 03 02 [10:21:39]Write to MH i2c: E2 08 00 19 24 80 0D 03 02 00 00 00 00 B8 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0B 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0B 00 19 24 00 74 62 50 55 BD 7E 48 4D 90 00 04 [10:21:39]RAPDU: 74 62 50 55 BD 7E 48 4D 90 00 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_SignData done [10:21:39]FM_MakeSignedData done [10:21:39]CreateOFDProtocolMessage [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 11 00 00 [10:21:39]Write to MH i2c: E2 08 00 1A 24 80 11 00 00 00 00 00 00 B8 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 17 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 17 00 1A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0D [10:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:21:39]wFMCommunicate OK [10:21:39]CreateOFDProtocolMessage done [10:21:39]OFDSenderStorePacket 156200 [10:21:39]StoreOFDPacket docnum=156200 [10:21:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3E 48 07 01 BE A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B5 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 62 02 00 35 04 06 00 A4 94 55 2D B1 B3 74 62 50 55 BD 7E 48 4D [10:21:39]CheckFolder [10:21:39]dirname=/storage/ofd_packets [10:21:39]CheckFolder done [10:21:39]ProducePacketName [10:21:39]name=ofd_packets/00156200 [10:21:39]NVStorageSaveData ofd_packets/00156200 [10:21:39]File name is /storage/ofd_packets/00156200 [10:21:39]Write 301 bytes [10:21:39]NVStorageSaveData done [10:21:39]OFDSenderStorePacket done [10:21:39]KKMCreateOFDPacket done [10:21:39]NVStorageSaveData kkm_last_timestamp [10:21:39]File name is /storage/kkm_last_timestamp [10:21:39]Write 4 bytes [10:21:39]NVStorageSaveData done [10:21:39]ExternCall_PrintAddStr [10:21:39]wPrintStart [10:21:39]Write to MH i2c: 01 00 00 1B 24 3F [10:21:39]OFD Sender: Processing packet 156200 [packets to send 31, broken 30] [10:21:39]ProducePacketName [10:21:39]name=ofd_packets/00156200 [10:21:39]OFD Sender: To server: pG, [10:21:39]CommunicateWithHost lk.salyk.kg:30040 [10:21:39]ConnectInit lk.salyk.kg [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 1B 24 00 00 00 00 00 FF 0F 54 [10:21:39]RasterBufferAndPrint [10:21:39]line Счет N : (1)99015 [10:21:39]line ИНН: 02508201610067 [10:21:39]line Контрольно-Кассовый Чек [10:21:39]line ПРОДАЖА [10:21:39]line ТРК (МРК, ГНК) : 31 [10:21:39]line Товар: 2710124130 [10:21:39]line Аи-92-К-5 [10:21:39]line 14.950 * 66.90 [10:21:39]line = 1000.16 [10:21:39]line НДС 12% НСП 1% [10:21:39]line > о реализуемом товаре [10:21:39]line ОКРУГЛЕНИЕ: -0.16 [10:21:39]line ИТОГО: 1000.00 [10:21:39]line Внесено: 1000.00 [10:21:39]line СДАЧА: 0.00 [10:21:39]line НСП 1% : 8.85 [10:21:39]line НДС 12% : 106.21 [10:21:39]line Наличными: 1000.00 [10:21:39]line Безнал.: 0.00 [10:21:39]line Место: АЗС № 143 "Партнер Нефть" [10:21:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:21:39]line СНО: Общий режим [10:21:39]line Чек 101 26.10.2024 10:21 [10:21:39]line Смена: 536 ФФД: 1.0 [10:21:39]line ЗНМ: 0300000096 [10:21:39]line РНМ: 0000000000091693 [10:21:39]line Версия ККМ: 001 [10:21:39]line ФМ: 0000000000871792 [10:21:39]line ФД: 156200 [10:21:39]line ФПД: 180956991173043 [10:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102141&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156200&fm=180956991173043&tin=02508201610067®Number=0000000000091693&sum=100000 [10:21:39]Connected sock=10 [10:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3E 48 07 01 BE A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B5 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 62 02 00 35 04 06 00 A4 94 55 2D B1 B3 74 62 50 55 BD 7E 48 4D [10:21:39]written 0, free lines is 4095 [10:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B2 8F 47 00 18 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 62 02 00 F4 03 04 00 28 68 1C 67 B6 04 01 00 00 38 73 99 0D 17 5E 28 87 [10:21:40]CommunicateWithHost err = 0 [10:21:40]CheckOFDResponse [10:21:40]1017 (14) - 77093643461234 [10:21:40]1041 (16) - 0000000000871792 [10:21:40]1040 (4) - 156200 [10:21:40]1012 (4) - 26.10.2024 03:55 [10:21:40]1206 (1) - 0 [10:21:40]OFD Sender: Remove packet 156200 [10:21:40]ProducePacketName [10:21:40]name=ofd_packets/00156200 [10:21:40]NVStorageDeleteData [10:21:40]Write to MH i2c: 01 00 00 46 24 6A [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 46 24 00 00 00 00 00 E8 0C 65 [10:21:40]RasterBufferAndPrint [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]written 0, free lines is 3313 [10:21:40]process_action close_receipt done [10:21:40]requested_data is exist [10:21:40]produce_requested_data [10:21:40]requested_item fm.sn is exist - process it [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 11 00 00 [10:21:40]Write to MH i2c: E2 08 00 4D 24 80 11 00 00 00 00 00 00 EB [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 17 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 17 00 4D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 40 [10:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:21:40]wFMCommunicate OK [10:21:40]requested_item fd.num is exist - process it [10:21:40]SAM_PROTO_GetFieldsCounters [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 13 00 00 [10:21:40]Write to MH i2c: E2 08 00 4E 24 80 13 00 00 00 00 00 00 EE [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 62 00 [10:21:40]MH_I2C_Read... [10:21:40]OFD Sender: No OFD packet to send [10:21:40]Read from MH i2c: E2 62 00 4E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 28 62 02 00 0E 04 04 00 18 02 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 E9 [10:21: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 28 62 02 00 0E 04 04 00 18 02 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 [10:21:40]wFMCommunicate OK [10:21:40]SAM_PROTO_GetFieldsCounters done [10:21:40]requested_item shift.num is exist - process it [10:21:40]requested_item shift.opened is exist - process it [10:21:40]req_shift_opened [10:21:40]FM_GetShiftState [10:21:40]SAM_PROTO_GetShiftState [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 13 01 00 [10:21:40]Write to MH i2c: E2 08 00 4F 24 80 13 01 00 00 00 00 00 F0 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 0E 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 0E 00 4F 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 25 [10:21:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:21:40]wFMCommunicate OK [10:21:40]SAM_PROTO_GetShiftState done [10:21:40]FM_GetShiftState done [10:21:40]req_shift_opened done [10:21:40]requested_item shift.open_date is exist - process it [10:21:40]req_shift_open_date [10:21:40]req_shift_open_date done [10:21:40]produce_requested_data done [10:21:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156200,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:21:40]process_action_free close_receipt [10:21:40]json_value_free [10:21:40]json_value_free done [10:21:40]process_json_proto returns [10:21:40]Send response to host [10:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156200,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:21:40]free response buf [10:21:40]execute_script done [10:21:40]execute_script returns [10:21:40]free content buf [10:21:40]Sock 7.Close socket [10:21:40]Sock 7.Thread stoped [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]accept exits with 9 [10:22:10]New connection [10:22:10]New thread 3066469732 created [10:22:10]Thread 3066613092 joined [10:22:10]Waiting for new connection... [10:22:10] Sock 9.Parse request [10:22:10]Sock 9.Check first char [10:22:10]Sock 9.First char is OK [10:22:10]request: POST /json_proto HTTP/1.0 [10:22:10]Method: POST [10:22:10]URL: /json_proto [10:22:10]Method is POST - this is cgi request [10:22:10]url: /json_proto [10:22:10]query_string will be loaded in cgi processing [10:22:10]execute_cgi json_proto POST (null) [10:22:10]execute_cgi path=json_proto method=POST [10:22:10]POST find Content-Length [10:22:10]Host: 172.17.63.3:8080 [10:22:10]Content-Length: 768 [10:22:10]Content-Type: application/json [10:22:10] [10:22:10]POST finish read [10:22:10]Found Content-Length = 768 [10:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:10]execute_script... [10:22:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:10]POST & json_proto [10:22:10]process_json_proto [10:22:10]json parsed OK: [10:22:10]protocol is kg_v1.0 [10:22:10]action value=close_receipt [10:22:10]process_action close_receipt [10:22:10]cmd_close_receipt [10:22:10]MH_GetDate [10:22:10]Write to MH i2c: F0 00 00 50 24 63 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: F0 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: F0 09 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: F0 09 00 50 24 00 D6 C2 1C 67 50 D1 6C 64 78 [10:22:10]GetLastDocTimeStamp 1729938101 [10:22:10]current date 1729938134 [10:22:10]FM_GetShiftState [10:22:10]SAM_PROTO_GetShiftState [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 13 01 00 [10:22:10]Write to MH i2c: E2 08 00 51 24 80 13 01 00 00 00 00 00 F2 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 0E 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 0E 00 51 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 27 [10:22:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:22:10]wFMCommunicate OK [10:22:10]SAM_PROTO_GetShiftState done [10:22:10]FM_GetShiftState done [10:22:10]opened in 1729902702 [10:22:10]opened+sec_in_day 1729989102 [10:22:10]quantity*price = 100015 [10:22:10]sum+1 = 100017 [10:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 102 26.10.2024 10:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156201 ФПД: 278141576314116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102214&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156201&fm=278141576314116&tin=02508201610067®Number=0000000000091693&sum=100016 [10:22:11]StoreToDocumentArchive [10:22:11]shift 536 fd 156201 [10:22:11]save to /storage/0536/doc_00156201 [10:22:11]save last doc name /storage/0536/doc_00156201 to /storage/kkm_last_doc_name [10:22:11]save OK [10:22:11]Clear old archive folders... [10:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:11]tlvbuf is 00D17F40 [10:22:11]SAM_PROTO_ClearQueue [10:22:11]wFMCommunicate request_size=4 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 09 00 00 [10:22:11]Write to MH i2c: E2 08 00 5E 24 80 09 00 00 00 00 00 00 F4 [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 5E 24 00 90 00 F6 [10:22:11]RAPDU: 90 00 [10:22:11]wFMCommunicate OK [10:22:11]SAM_PROTO_ClearQueue done [10:22:11]KKMCreateOFDPacket [10:22:11]OFDProtocolAddRootSTLVToBuf [10:22:11]FM_MakeSignedData [10:22:11]FM_MakeSignedData [10:22:11]SAM_PROTO_SignData [10:22:11]wFMCommunicate request_size=4 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 0D 01 02 [10:22:11]Write to MH i2c: E2 08 00 5F 24 80 0D 01 02 00 00 00 00 FC [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 5F 24 00 90 00 F7 [10:22:11]RAPDU: 90 00 [10:22:11]wFMCommunicate OK [10:22:11]wFMCommunicate request_size=255 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D6 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 62 02 00 35 04 06 00 FC [10:22:11]Write to MH i2c: E2 02 01 60 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D6 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 62 02 00 35 04 06 00 FC 00 00 CE [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 60 24 00 90 00 F8 [10:22:11]RAPDU: 90 00 [10:22:11]wFMCommunicate OK [10:22:11]wFMCommunicate request_size=10 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 0D 02 02 05 F7 E1 DA 7D 04 [10:22:11]Write to MH i2c: E2 0D 00 61 24 80 0D 02 02 05 00 F7 E1 DA 7D 04 00 00 3C [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 61 24 00 90 00 F9 [10:22:11]RAPDU: 90 00 [10:22:11]wFMCommunicate OK [10:22:11]wFMCommunicate request_size=4 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 0D 03 02 [10:22:11]Write to MH i2c: E2 08 00 62 24 80 0D 03 02 00 00 00 00 01 [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 0B 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 0B 00 62 24 00 8F 59 76 B1 8B B8 28 A8 90 00 24 [10:22:11]RAPDU: 8F 59 76 B1 8B B8 28 A8 90 00 [10:22:11]wFMCommunicate OK [10:22:11]SAM_PROTO_SignData done [10:22:11]FM_MakeSignedData done [10:22:11]CreateOFDProtocolMessage [10:22:11]wFMCommunicate request_size=4 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 11 00 00 [10:22:11]Write to MH i2c: E2 08 00 63 24 80 11 00 00 00 00 00 00 01 [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 17 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 17 00 63 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 56 [10:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:22:11]wFMCommunicate OK [10:22:11]CreateOFDProtocolMessage done [10:22:11]OFDSenderStorePacket 156201 [10:22:11]StoreOFDPacket docnum=156201 [10:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D4 F7 07 01 70 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D6 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 62 02 00 35 04 06 00 FC F7 E1 DA 7D 04 8F 59 76 B1 8B B8 28 A8 [10:22:11]CheckFolder [10:22:11]dirname=/storage/ofd_packets [10:22:11]CheckFolder done [10:22:11]ProducePacketName [10:22:11]name=ofd_packets/00156201 [10:22:11]NVStorageSaveData ofd_packets/00156201 [10:22:11]File name is /storage/ofd_packets/00156201 [10:22:11]Write 301 bytes [10:22:11]NVStorageSaveData done [10:22:11]OFDSenderStorePacket done [10:22:12]KKMCreateOFDPacket done [10:22:12]NVStorageSaveData kkm_last_timestamp [10:22:12]File name is /storage/kkm_last_timestamp [10:22:12]Write 4 bytes [10:22:12]NVStorageSaveData done [10:22:12]ExternCall_PrintAddStr [10:22:12]wPrintStart [10:22:12]Write to MH i2c: 01 00 00 64 24 88 [10:22:12]OFD Sender: Processing packet 156201 [packets to send 31, broken 30] [10:22:12]ProducePacketName [10:22:12]name=ofd_packets/00156201 [10:22:12]OFD Sender: To server: pG, [10:22:12]CommunicateWithHost lk.salyk.kg:30040 [10:22:12]ConnectInit lk.salyk.kg [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 07 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 07 00 64 24 00 00 00 00 00 FF 0F 9D [10:22:12]RasterBufferAndPrint [10:22:12]line Счет N : (1)99016 [10:22:12]line ИНН: 02508201610067 [10:22:12]line Контрольно-Кассовый Чек [10:22:12]line ПРОДАЖА [10:22:12]line ТРК (МРК, ГНК) : 21 [10:22:12]line Товар: 2710124130 [10:22:12]line Аи-92-К-5 [10:22:12]line 14.950 * 66.90 [10:22:12]line = 1000.16 [10:22:12]line НДС 12% НСП 1% [10:22:12]line > о реализуемом товаре [10:22:12]line ИТОГО: 1000.16 [10:22:12]line НСП 1% : 8.85 [10:22:12]line НДС 12% : 106.21 [10:22:12]line Наличными: 0.00 [10:22:12]line Безнал.: 1000.16 [10:22:12]line Место: АЗС № 143 "Партнер Нефть" [10:22:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:22:12]line СНО: Общий режим [10:22:12]line Чек 102 26.10.2024 10:22 [10:22:12]line Смена: 536 ФФД: 1.0 [10:22:12]line ЗНМ: 0300000096 [10:22:12]line РНМ: 0000000000091693 [10:22:12]line Версия ККМ: 001 [10:22:12]line Платежная система: Mbank [10:22:12]line ФМ: 0000000000871792 [10:22:12]line ФД: 156201 [10:22:12]line ФПД: 278141576314116 [10:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102214&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156201&fm=278141576314116&tin=02508201610067®Number=0000000000091693&sum=100016 [10:22:12]Connected sock=10 [10:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D4 F7 07 01 70 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D6 C2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 62 02 00 35 04 06 00 FC F7 E1 DA 7D 04 8F 59 76 B1 8B B8 28 A8 [10:22:12]written 0, free lines is 4095 [10:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C3 2F 47 00 59 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 62 02 00 F4 03 04 00 49 68 1C 67 B6 04 01 00 00 1C 11 F8 33 93 D4 F0 AA [10:22:12]CommunicateWithHost err = 0 [10:22:12]CheckOFDResponse [10:22:12]1017 (14) - 77093643461234 [10:22:12]1041 (16) - 0000000000871792 [10:22:12]1040 (4) - 156201 [10:22:12]1012 (4) - 26.10.2024 03:55 [10:22:12]1206 (1) - 0 [10:22:12]OFD Sender: Remove packet 156201 [10:22:12]ProducePacketName [10:22:12]name=ofd_packets/00156201 [10:22:12]NVStorageDeleteData [10:22:12]Write to MH i2c: 01 00 00 8D 24 B1 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 07 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 07 00 8D 24 00 00 00 00 00 17 0D DC [10:22:12]RasterBufferAndPrint [10:22:12]line [10:22:12]line [10:22:12]line [10:22:12]line [10:22:12]line [10:22:12]written 0, free lines is 3358 [10:22:12]process_action close_receipt done [10:22:12]requested_data is exist [10:22:12]produce_requested_data [10:22:12]requested_item fm.sn is exist - process it [10:22:12]wFMCommunicate request_size=4 [10:22:12]MH_SAM_APDU [10:22:12]CAPDU: 80 11 00 00 [10:22:12]Write to MH i2c: E2 08 00 94 24 80 11 00 00 00 00 00 00 32 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: E2 [10:22:12]MH_I2C_Read... [10:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:12]Read from MH i2c: E2 17 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: E2 17 00 94 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 87 [10:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:22:12]wFMCommunicate OK [10:22:12]requested_item fd.num is exist - process it [10:22:12]SAM_PROTO_GetFieldsCounters [10:22:12]wFMCommunicate request_size=4 [10:22:12]MH_SAM_APDU [10:22:12]CAPDU: 80 13 00 00 [10:22:12]Write to MH i2c: E2 08 00 95 24 80 13 00 00 00 00 00 00 35 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 62 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 62 00 95 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 29 62 02 00 0E 04 04 00 18 02 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 34 [10:22: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 29 62 02 00 0E 04 04 00 18 02 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 [10:22:13]wFMCommunicate OK [10:22:13]SAM_PROTO_GetFieldsCounters done [10:22:13]requested_item shift.num is exist - process it [10:22:13]requested_item shift.opened is exist - process it [10:22:13]req_shift_opened [10:22:13]FM_GetShiftState [10:22:13]SAM_PROTO_GetShiftState [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 13 01 00 [10:22:13]Write to MH i2c: E2 08 00 96 24 80 13 01 00 00 00 00 00 37 [10:22:13]OFD Sender: No OFD packet to send [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 96 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6C [10:22:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:22:13]wFMCommunicate OK [10:22:13]SAM_PROTO_GetShiftState done [10:22:13]FM_GetShiftState done [10:22:13]req_shift_opened done [10:22:13]requested_item shift.open_date is exist - process it [10:22:13]req_shift_open_date [10:22:13]req_shift_open_date done [10:22:13]produce_requested_data done [10:22:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156201,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:22:13]process_action_free close_receipt [10:22:13]json_value_free [10:22:13]json_value_free done [10:22:13]process_json_proto returns [10:22:13]Send response to host [10:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156201,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:22:13]free response buf [10:22:13]execute_script done [10:22:13]execute_script returns [10:22:13]free content buf [10:22:13]Sock 9.Close socket [10:22:13]Sock 9.Thread stoped [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:41]int [10:22:41]Write to MH i2c: 01 00 00 97 24 BB [10:22:41]*** FLAG_PRN_KEY set [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 97 24 00 08 00 00 00 FF 0F D8 [10:22:41]state=0 [10:22:41]Key pressed [10:22:41]Feed [10:22:41]Write to MH i2c: D8 00 00 98 24 93 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: D8 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: D8 01 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: D8 01 00 98 24 00 94 [10:22:41]int [10:22:41]Write to MH i2c: 01 00 00 99 24 BD [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 99 24 00 48 00 00 00 3D 00 49 [10:22:41]state=2 [10:22:41]Key pressed [10:22:42]int [10:22:42]Write to MH i2c: 01 00 00 9A 24 BE [10:22:42]*** FLAG_PRN_KEY reset [10:22:42]Write i2c OK [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: 01 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: 01 07 00 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: 01 07 00 9A 24 00 00 00 00 00 FF 0F D3 [10:22:42]state=2 [10:22:42]Stop feed [10:22:43]OFD Sender: No OFD packet to send [10:22:44]int [10:22:44]Write to MH i2c: 01 00 00 9B 24 BF [10:22:44]*** FLAG_PRN_PAP1 set [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 9B 24 00 01 00 00 00 FF 0F D5 [10:22:44]state=0 [10:22:44]No paper [10:22:44]int [10:22:44]Write to MH i2c: 01 00 00 9C 24 C0 [10:22:45]*** FLAG_PRN_PAP2 set [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 9C 24 00 03 00 00 00 FF 0F D8 [10:22:45]state=0 [10:22:45]No paper [10:22:45]Cover opened [10:22:48]OFD Sender: No OFD packet to send [10:22:49]int [10:22:49]Write to MH i2c: 01 00 00 9D 24 C1 [10:22:49]*** FLAG_PRN_PAP2 reset [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 9D 24 00 01 00 00 00 FF 0F D7 [10:22:49]state=3 [10:22:49]No paper [10:22:49]Cover closed [10:22:49]int [10:22:49]Write to MH i2c: 01 00 00 9E 24 C2 [10:22:49]*** FLAG_PRN_PAP1 reset [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 9E 24 00 00 00 00 00 FF 0F D7 [10:22:49]state=0 [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:29]accept exits with 7 [10:24:29]New connection [10:24:29]New thread 3066613092 created [10:24:29]Thread 3066469732 joined [10:24:29]Waiting for new connection... [10:24:29] Sock 7.Parse request [10:24:29]Sock 7.Check first char [10:24:29]Sock 7.First char is OK [10:24:29]request: POST /json_proto HTTP/1.0 [10:24:29]Method: POST [10:24:29]URL: /json_proto [10:24:29]Method is POST - this is cgi request [10:24:29]url: /json_proto [10:24:29]query_string will be loaded in cgi processing [10:24:29]execute_cgi json_proto POST (null) [10:24:29]execute_cgi path=json_proto method=POST [10:24:29]POST find Content-Length [10:24:29]Host: 172.17.63.3:8080 [10:24:29]Content-Length: 681 [10:24:29]Content-Type: application/json [10:24:29] [10:24:29]POST finish read [10:24:29]Found Content-Length = 681 [10:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:29]execute_script... [10:24:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:29]POST & json_proto [10:24:29]process_json_proto [10:24:29]json parsed OK: [10:24:29]protocol is kg_v1.0 [10:24:29]action value=close_receipt [10:24:29]process_action close_receipt [10:24:29]cmd_close_receipt [10:24:29]MH_GetDate [10:24:29]Write to MH i2c: F0 00 00 9F 24 B2 [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: F0 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: F0 09 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: F0 09 00 9F 24 00 61 C3 1C 67 50 D1 6C 64 53 [10:24:29]GetLastDocTimeStamp 1729938134 [10:24:29]current date 1729938273 [10:24:29]FM_GetShiftState [10:24:29]SAM_PROTO_GetShiftState [10:24:29]wFMCommunicate request_size=4 [10:24:29]MH_SAM_APDU [10:24:29]CAPDU: 80 13 01 00 [10:24:29]Write to MH i2c: E2 08 00 A0 24 80 13 01 00 00 00 00 00 41 [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:29]Read from MH i2c: E2 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 0E 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 0E 00 A0 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 76 [10:24:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:24:29]wFMCommunicate OK [10:24:29]SAM_PROTO_GetShiftState done [10:24:29]FM_GetShiftState done [10:24:29]opened in 1729902702 [10:24:29]opened+sec_in_day 1729989102 [10:24:29]quantity*price = 100015 [10:24:29]sum+1 = 100017 [10:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 103 26.10.2024 10:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156202 ФПД: 219374254500081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102433&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156202&fm=219374254500081&tin=02508201610067®Number=0000000000091693&sum=100000 [10:24:31]StoreToDocumentArchive [10:24:31]shift 536 fd 156202 [10:24:31]save to /storage/0536/doc_00156202 [10:24:31]save last doc name /storage/0536/doc_00156202 to /storage/kkm_last_doc_name [10:24:31]save OK [10:24:31]Clear old archive folders... [10:24:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:31]tlvbuf is 00D5DD00 [10:24:31]SAM_PROTO_ClearQueue [10:24:31]wFMCommunicate request_size=4 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 09 00 00 [10:24:31]Write to MH i2c: E2 08 00 AD 24 80 09 00 00 00 00 00 00 43 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 AD 24 00 90 00 45 [10:24:31]RAPDU: 90 00 [10:24:31]wFMCommunicate OK [10:24:31]SAM_PROTO_ClearQueue done [10:24:31]KKMCreateOFDPacket [10:24:31]OFDProtocolAddRootSTLVToBuf [10:24:31]FM_MakeSignedData [10:24:31]FM_MakeSignedData [10:24:31]SAM_PROTO_SignData [10:24:31]wFMCommunicate request_size=4 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 0D 01 02 [10:24:31]Write to MH i2c: E2 08 00 AE 24 80 0D 01 02 00 00 00 00 4B [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 AE 24 00 90 00 46 [10:24:31]RAPDU: 90 00 [10:24:31]wFMCommunicate OK [10:24:31]wFMCommunicate request_size=255 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 61 C3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 62 02 00 35 04 06 00 C7 [10:24:31]Write to MH i2c: E2 02 01 AF 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 61 C3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 62 02 00 35 04 06 00 C7 00 00 56 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 AF 24 00 90 00 47 [10:24:31]RAPDU: 90 00 [10:24:31]wFMCommunicate OK [10:24:31]wFMCommunicate request_size=10 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 0D 02 02 05 85 0C 83 28 F1 [10:24:31]Write to MH i2c: E2 0D 00 B0 24 80 0D 02 02 05 00 85 0C 83 28 F1 00 00 85 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 B0 24 00 90 00 48 [10:24:31]RAPDU: 90 00 [10:24:31]wFMCommunicate OK [10:24:31]wFMCommunicate request_size=4 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 0D 03 02 [10:24:31]Write to MH i2c: E2 08 00 B1 24 80 0D 03 02 00 00 00 00 50 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 0B 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 0B 00 B1 24 00 69 72 AA 64 C7 56 E9 31 90 00 71 [10:24:31]RAPDU: 69 72 AA 64 C7 56 E9 31 90 00 [10:24:31]wFMCommunicate OK [10:24:31]SAM_PROTO_SignData done [10:24:31]FM_MakeSignedData done [10:24:31]CreateOFDProtocolMessage [10:24:31]wFMCommunicate request_size=4 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 11 00 00 [10:24:31]Write to MH i2c: E2 08 00 B2 24 80 11 00 00 00 00 00 00 50 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 17 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 17 00 B2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [10:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:24:31]wFMCommunicate OK [10:24:31]CreateOFDProtocolMessage done [10:24:31]OFDSenderStorePacket 156202 [10:24:31]StoreOFDPacket docnum=156202 [10:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 08 07 01 78 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 61 C3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 62 02 00 35 04 06 00 C7 85 0C 83 28 F1 69 72 AA 64 C7 56 E9 31 [10:24:31]CheckFolder [10:24:31]dirname=/storage/ofd_packets [10:24:31]CheckFolder done [10:24:31]ProducePacketName [10:24:31]name=ofd_packets/00156202 [10:24:31]NVStorageSaveData ofd_packets/00156202 [10:24:31]File name is /storage/ofd_packets/00156202 [10:24:31]Write 301 bytes [10:24:31]NVStorageSaveData done [10:24:31]OFDSenderStorePacket done [10:24:31]KKMCreateOFDPacket done [10:24:31]NVStorageSaveData kkm_last_timestamp [10:24:31]File name is /storage/kkm_last_timestamp [10:24:31]Write 4 bytes [10:24:31]NVStorageSaveData done [10:24:31]ExternCall_PrintAddStr [10:24:31]wPrintStart [10:24:31]Write to MH i2c: 01 00 00 B3 24 D7 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 07 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 07 00 B3 24 00 00 00 00 00 FF 0F EC [10:24:31]RasterBufferAndPrint [10:24:31]line Счет N : (1)99017 [10:24:31]line ИНН: 02508201610067 [10:24:31]line Контрольно-Кассовый Чек [10:24:31]line ПРОДАЖА [10:24:31]line ТРК (МРК, ГНК) : 11 [10:24:31]line Товар: 2710124130 [10:24:31]line Аи-92-К-5 [10:24:31]line 14.950 * 66.90 [10:24:31]line = 1000.16 [10:24:31]line НДС 12% НСП 1% [10:24:31]line > о реализуемом товаре [10:24:31]line ОКРУГЛЕНИЕ: -0.16 [10:24:31]line ИТОГО: 1000.00 [10:24:31]line Внесено: 1000.00 [10:24:31]line СДАЧА: 0.00 [10:24:31]line НСП 1% : 8.85 [10:24:31]line НДС 12% : 106.21 [10:24:31]line Наличными: 1000.00 [10:24:31]line Безнал.: 0.00 [10:24:31]line Место: АЗС № 143 "Партнер Нефть" [10:24:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:24:31]line СНО: Общий режим [10:24:31]line Чек 103 26.10.2024 10:24 [10:24:31]line Смена: 536 ФФД: 1.0 [10:24:31]line ЗНМ: 0300000096 [10:24:31]line РНМ: 0000000000091693 [10:24:31]line Версия ККМ: 001 [10:24:31]line ФМ: 0000000000871792 [10:24:31]line ФД: 156202 [10:24:31]line ФПД: 219374254500081 [10:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102433&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156202&fm=219374254500081&tin=02508201610067®Number=0000000000091693&sum=100000 [10:24:31]written 0, free lines is 4095 [10:24:31]OFD Sender: Processing packet 156202 [packets to send 31, broken 30] [10:24:31]ProducePacketName [10:24:31]name=ofd_packets/00156202 [10:24:31]OFD Sender: To server: pG, [10:24:31]CommunicateWithHost lk.salyk.kg:30040 [10:24:31]ConnectInit lk.salyk.kg [10:24:32]Write to MH i2c: 01 00 00 DE 24 02 [10:24:32]Write i2c OK [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: 01 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: 01 07 00 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: 01 07 00 DE 24 00 00 00 00 00 F5 0C 0A [10:24:32]RasterBufferAndPrint [10:24:32]line [10:24:32]line [10:24:32]line [10:24:32]line [10:24:32]line [10:24:32]written 0, free lines is 3323 [10:24:32]process_action close_receipt done [10:24:32]requested_data is exist [10:24:32]produce_requested_data [10:24:32]requested_item fm.sn is exist - process it [10:24:32]wFMCommunicate request_size=4 [10:24:32]MH_SAM_APDU [10:24:32]CAPDU: 80 11 00 00 [10:24:32]Write to MH i2c: E2 08 00 E5 24 80 11 00 00 00 00 00 00 83 [10:24:32]Write i2c OK [10:24:32]MH_I2C_Read... [10:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:32]Read from MH i2c: E2 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 17 00 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 17 00 E5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D8 [10:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:24:32]wFMCommunicate OK [10:24:32]requested_item fd.num is exist - process it [10:24:32]SAM_PROTO_GetFieldsCounters [10:24:32]wFMCommunicate request_size=4 [10:24:32]MH_SAM_APDU [10:24:32]CAPDU: 80 13 00 00 [10:24:32]Write to MH i2c: E2 08 00 E6 24 80 13 00 00 00 00 00 00 86 [10:24:32]Write i2c OK [10:24:32]MH_I2C_Read... [10:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:32]Read from MH i2c: E2 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 62 00 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 62 00 E6 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2A 62 02 00 0E 04 04 00 18 02 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 89 [10:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2A 62 02 00 0E 04 04 00 18 02 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 [10:24:32]wFMCommunicate OK [10:24:32]SAM_PROTO_GetFieldsCounters done [10:24:32]requested_item shift.num is exist - process it [10:24:32]requested_item shift.opened is exist - process it [10:24:32]req_shift_opened [10:24:32]FM_GetShiftState [10:24:32]SAM_PROTO_GetShiftState [10:24:32]wFMCommunicate request_size=4 [10:24:32]MH_SAM_APDU [10:24:32]CAPDU: 80 13 01 00 [10:24:32]Write to MH i2c: E2 08 00 E7 24 80 13 01 00 00 00 00 00 88 [10:24:32]Write i2c OK [10:24:32]MH_I2C_Read... [10:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:32]Read from MH i2c: E2 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 0E 00 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 0E 00 E7 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BD [10:24:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:24:32]wFMCommunicate OK [10:24:32]SAM_PROTO_GetShiftState done [10:24:32]FM_GetShiftState done [10:24:32]req_shift_opened done [10:24:32]requested_item shift.open_date is exist - process it [10:24:32]req_shift_open_date [10:24:32]req_shift_open_date done [10:24:32]produce_requested_data done [10:24:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156202,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:24:32]process_action_free close_receipt [10:24:32]json_value_free [10:24:32]json_value_free done [10:24:32]process_json_proto returns [10:24:32]Send response to host [10:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156202,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:24:32]free response buf [10:24:32]execute_script done [10:24:32]execute_script returns [10:24:32]free content buf [10:24:32]Sock 7.Close socket [10:24:32]Sock 7.Thread stoped [10:24:39]accept exits with 9 [10:24:39]New connection [10:24:39]New thread 3066469732 created [10:24:39]Thread 3066613092 joined [10:24:39]Waiting for new connection... [10:24:39] Sock 9.Parse request [10:24:39]Sock 9.Check first char [10:24:39]Sock 9.First char is OK [10:24:39]request: POST /json_proto HTTP/1.0 [10:24:39]Method: POST [10:24:39]URL: /json_proto [10:24:39]Method is POST - this is cgi request [10:24:39]url: /json_proto [10:24:39]query_string will be loaded in cgi processing [10:24:39]execute_cgi json_proto POST (null) [10:24:39]execute_cgi path=json_proto method=POST [10:24:39]POST find Content-Length [10:24:39]Host: 172.17.63.3:8080 [10:24:39]Content-Length: 676 [10:24:39]Content-Type: application/json [10:24:39] [10:24:39]POST finish read [10:24:39]Found Content-Length = 676 [10:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:39]execute_script... [10:24:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:39]POST & json_proto [10:24:39]process_json_proto [10:24:39]json parsed OK: [10:24:39]protocol is kg_v1.0 [10:24:39]action value=close_receipt [10:24:39]process_action close_receipt [10:24:39]cmd_close_receipt [10:24:39]MH_GetDate [10:24:39]Write to MH i2c: F0 00 00 E8 24 FB [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 09 00 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 09 00 E8 24 00 6A C3 1C 67 50 D1 6C 64 A5 [10:24:39]GetLastDocTimeStamp 1729938273 [10:24:39]current date 1729938282 [10:24:39]FM_GetShiftState [10:24:39]SAM_PROTO_GetShiftState [10:24:39]wFMCommunicate request_size=4 [10:24:39]MH_SAM_APDU [10:24:39]CAPDU: 80 13 01 00 [10:24:39]Write to MH i2c: E2 08 00 E9 24 80 13 01 00 00 00 00 00 8A [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:39]Read from MH i2c: E2 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: E2 0E 00 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: E2 0E 00 E9 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BF [10:24:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:24:39]wFMCommunicate OK [10:24:39]SAM_PROTO_GetShiftState done [10:24:39]FM_GetShiftState done [10:24:39]opened in 1729902702 [10:24:39]opened+sec_in_day 1729989102 [10:24:39]quantity*price = 30038 [10:24:39]sum+1 = 30039 [10:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 104 26.10.2024 10:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156203 ФПД: 184935780268955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102443&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156203&fm=184935780268955&tin=02508201610067®Number=0000000000091693&sum=30000 [10:24:40]StoreToDocumentArchive [10:24:40]shift 536 fd 156203 [10:24:40]save to /storage/0536/doc_00156203 [10:24:40]save last doc name /storage/0536/doc_00156203 to /storage/kkm_last_doc_name [10:24:40]save OK [10:24:40]Clear old archive folders... [10:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:40]tlvbuf is 00D4C510 [10:24:40]SAM_PROTO_ClearQueue [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 09 00 00 [10:24:40]Write to MH i2c: E2 08 00 F6 24 80 09 00 00 00 00 00 00 8C [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 F6 24 00 90 00 8E [10:24:40]RAPDU: 90 00 [10:24:40]wFMCommunicate OK [10:24:40]SAM_PROTO_ClearQueue done [10:24:40]KKMCreateOFDPacket [10:24:40]OFDProtocolAddRootSTLVToBuf [10:24:40]FM_MakeSignedData [10:24:40]FM_MakeSignedData [10:24:40]SAM_PROTO_SignData [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 0D 01 02 [10:24:40]Write to MH i2c: E2 08 00 F7 24 80 0D 01 02 00 00 00 00 94 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 F7 24 00 90 00 8F [10:24:40]RAPDU: 90 00 [10:24:40]wFMCommunicate OK [10:24:40]wFMCommunicate request_size=255 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 6B C3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 62 02 00 35 04 06 00 A8 [10:24:40]Write to MH i2c: E2 02 01 F8 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 6B C3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 62 02 00 35 04 06 00 A8 00 00 86 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 F8 24 00 90 00 90 [10:24:40]RAPDU: 90 00 [10:24:40]wFMCommunicate OK [10:24:40]wFMCommunicate request_size=10 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 0D 02 02 05 32 B7 7D 3B 9B [10:24:40]Write to MH i2c: E2 0D 00 F9 24 80 0D 02 02 05 00 32 B7 7D 3B 9B 00 00 DD [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 F9 24 00 90 00 91 [10:24:40]RAPDU: 90 00 [10:24:40]wFMCommunicate OK [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 0D 03 02 [10:24:40]Write to MH i2c: E2 08 00 FA 24 80 0D 03 02 00 00 00 00 99 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 0B 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 0B 00 FA 24 00 EF 1D 7F 6B 74 9B 08 8B 90 00 32 [10:24:40]RAPDU: EF 1D 7F 6B 74 9B 08 8B 90 00 [10:24:40]wFMCommunicate OK [10:24:40]SAM_PROTO_SignData done [10:24:40]FM_MakeSignedData done [10:24:40]CreateOFDProtocolMessage [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 11 00 00 [10:24:40]Write to MH i2c: E2 08 00 FB 24 80 11 00 00 00 00 00 00 99 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 17 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 17 00 FB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [10:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:24:40]wFMCommunicate OK [10:24:40]CreateOFDProtocolMessage done [10:24:40]OFDSenderStorePacket 156203 [10:24:40]StoreOFDPacket docnum=156203 [10:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B F7 07 01 66 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 6B C3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 62 02 00 35 04 06 00 A8 32 B7 7D 3B 9B EF 1D 7F 6B 74 9B 08 8B [10:24:40]CheckFolder [10:24:40]dirname=/storage/ofd_packets [10:24:40]CheckFolder done [10:24:40]ProducePacketName [10:24:40]name=ofd_packets/00156203 [10:24:40]NVStorageSaveData ofd_packets/00156203 [10:24:40]File name is /storage/ofd_packets/00156203 [10:24:40]Write 301 bytes [10:24:40]NVStorageSaveData done [10:24:40]OFDSenderStorePacket done [10:24:40]KKMCreateOFDPacket done [10:24:40]NVStorageSaveData kkm_last_timestamp [10:24:40]File name is /storage/kkm_last_timestamp [10:24:40]Write 4 bytes [10:24:40]NVStorageSaveData done [10:24:40]ExternCall_PrintAddStr [10:24:40]wPrintStart [10:24:40]Write to MH i2c: 01 00 00 FC 24 20 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: 01 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: 01 07 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: 01 07 00 FC 24 00 00 00 00 00 FF 0F 35 [10:24:40]RasterBufferAndPrint [10:24:40]line Счет N : (1)99018 [10:24:40]line ИНН: 02508201610067 [10:24:40]line Контрольно-Кассовый Чек [10:24:40]line ПРОДАЖА [10:24:40]line ТРК (МРК, ГНК) : 21 [10:24:40]line Товар: 2710124130 [10:24:40]line Аи-92-К-5 [10:24:40]line 4.490 * 66.90 [10:24:40]line = 300.38 [10:24:40]line НДС 12% НСП 1% [10:24:40]line > о реализуемом товаре [10:24:40]line ОКРУГЛЕНИЕ: -0.38 [10:24:40]line ИТОГО: 300.00 [10:24:40]line Внесено: 300.00 [10:24:40]line СДАЧА: 0.00 [10:24:40]line НСП 1% : 2.66 [10:24:40]line НДС 12% : 31.90 [10:24:40]line Наличными: 300.00 [10:24:40]line Безнал.: 0.00 [10:24:40]line Место: АЗС № 143 "Партнер Нефть" [10:24:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:24:40]line СНО: Общий режим [10:24:40]line Чек 104 26.10.2024 10:24 [10:24:40]line Смена: 536 ФФД: 1.0 [10:24:40]line ЗНМ: 0300000096 [10:24:40]line РНМ: 0000000000091693 [10:24:40]line Версия ККМ: 001 [10:24:40]line ФМ: 0000000000871792 [10:24:40]line ФД: 156203 [10:24:40]line ФПД: 184935780268955 [10:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102443&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156203&fm=184935780268955&tin=02508201610067®Number=0000000000091693&sum=30000 [10:24:41]written 0, free lines is 4095 [10:24:41]Write to MH i2c: 01 00 00 27 25 4C [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 07 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 07 00 27 25 00 00 00 00 00 F2 0C 51 [10:24:41]RasterBufferAndPrint [10:24:41]line [10:24:41]line [10:24:41]line [10:24:41]line [10:24:41]line [10:24:41]written 0, free lines is 3323 [10:24:41]process_action close_receipt done [10:24:41]requested_data is exist [10:24:41]produce_requested_data [10:24:41]requested_item fm.sn is exist - process it [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 11 00 00 [10:24:41]Write to MH i2c: E2 08 00 2E 25 80 11 00 00 00 00 00 00 CD [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 17 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 17 00 2E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 22 [10:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:24:41]wFMCommunicate OK [10:24:41]requested_item fd.num is exist - process it [10:24:41]SAM_PROTO_GetFieldsCounters [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 13 00 00 [10:24:41]Write to MH i2c: E2 08 00 2F 25 80 13 00 00 00 00 00 00 D0 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 62 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 62 00 2F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2B 62 02 00 0E 04 04 00 18 02 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 D7 [10:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2B 62 02 00 0E 04 04 00 18 02 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 [10:24:41]wFMCommunicate OK [10:24:41]SAM_PROTO_GetFieldsCounters done [10:24:41]requested_item shift.num is exist - process it [10:24:41]requested_item shift.opened is exist - process it [10:24:41]req_shift_opened [10:24:41]FM_GetShiftState [10:24:41]SAM_PROTO_GetShiftState [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 13 01 00 [10:24:41]Write to MH i2c: E2 08 00 30 25 80 13 01 00 00 00 00 00 D2 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 0E 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 0E 00 30 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 07 [10:24:41]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:24:41]wFMCommunicate OK [10:24:41]SAM_PROTO_GetShiftState done [10:24:41]FM_GetShiftState done [10:24:41]req_shift_opened done [10:24:41]requested_item shift.open_date is exist - process it [10:24:41]req_shift_open_date [10:24:41]req_shift_open_date done [10:24:41]produce_requested_data done [10:24:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156203,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:24:41]process_action_free close_receipt [10:24:41]json_value_free [10:24:41]json_value_free done [10:24:41]process_json_proto returns [10:24:41]Send response to host [10:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156203,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:24:41]free response buf [10:24:41]execute_script done [10:24:41]execute_script returns [10:24:41]free content buf [10:24:41]Sock 9.Close socket [10:24:41]Sock 9.Thread stoped [10:26:45]ConnectInit Can't connect to host [10:26:45]CommunicateWithHost connect error [10:26:45]CommunicateWithHost err = -1 [10:26:45]OFD Sender: Server communicate error [10:26:45]OFD Sender: Processing packet 156202 [packets to send 32, broken 30] [10:26:45]ProducePacketName [10:26:45]name=ofd_packets/00156202 [10:26:45]OFD Sender: To server: pG, [10:26:45]CommunicateWithHost lk.salyk.kg:30040 [10:26:45]ConnectInit lk.salyk.kg [10:26:45]Connected sock=9 [10:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 08 07 01 78 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 61 C3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 62 02 00 35 04 06 00 C7 85 0C 83 28 F1 69 72 AA 64 C7 56 E9 31 [10:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8A 8B 47 00 34 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 62 02 00 F4 03 04 00 59 69 1C 67 B6 04 01 00 00 B0 C2 82 99 8C 10 F7 5E [10:26:45]CommunicateWithHost err = 0 [10:26:45]CheckOFDResponse [10:26:45]1017 (14) - 77093643461234 [10:26:45]1041 (16) - 0000000000871792 [10:26:45]1040 (4) - 156202 [10:26:45]1012 (4) - 26.10.2024 04:00 [10:26:45]1206 (1) - 0 [10:26:45]OFD Sender: Remove packet 156202 [10:26:45]ProducePacketName [10:26:45]name=ofd_packets/00156202 [10:26:45]NVStorageDeleteData [10:26:45]OFD Sender: Processing packet 156203 [packets to send 31, broken 30] [10:26:45]ProducePacketName [10:26:45]name=ofd_packets/00156203 [10:26:45]OFD Sender: To server: pG, [10:26:45]CommunicateWithHost lk.salyk.kg:30040 [10:26:45]ConnectInit lk.salyk.kg [10:26:46]Connected sock=9 [10:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B F7 07 01 66 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 6B C3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 62 02 00 35 04 06 00 A8 32 B7 7D 3B 9B EF 1D 7F 6B 74 9B 08 8B [10:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A0 BC 47 00 D5 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 62 02 00 F4 03 04 00 5A 69 1C 67 B6 04 01 00 00 4B 9A E7 6B 07 99 B1 5F [10:26:46]CommunicateWithHost err = 0 [10:26:46]CheckOFDResponse [10:26:46]1017 (14) - 77093643461234 [10:26:46]1041 (16) - 0000000000871792 [10:26:46]1040 (4) - 156203 [10:26:46]1012 (4) - 26.10.2024 04:00 [10:26:46]1206 (1) - 0 [10:26:46]OFD Sender: Remove packet 156203 [10:26:46]ProducePacketName [10:26:46]name=ofd_packets/00156203 [10:26:46]NVStorageDeleteData [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:14]accept exits with 7 [10:27:14]New connection [10:27:14]New thread 3066613092 created [10:27:14]Thread 3066469732 joined [10:27:14]Waiting for new connection... [10:27:14] Sock 7.Parse request [10:27:14]Sock 7.Check first char [10:27:14]Sock 7.First char is OK [10:27:14]request: POST /json_proto HTTP/1.0 [10:27:14]Method: POST [10:27:14]URL: /json_proto [10:27:14]Method is POST - this is cgi request [10:27:14]url: /json_proto [10:27:14]query_string will be loaded in cgi processing [10:27:14]execute_cgi json_proto POST (null) [10:27:14]execute_cgi path=json_proto method=POST [10:27:14]POST find Content-Length [10:27:14]Host: 172.17.63.3:8080 [10:27:14]Content-Length: 676 [10:27:14]Content-Type: application/json [10:27:14] [10:27:14]POST finish read [10:27:14]Found Content-Length = 676 [10:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:14]execute_script... [10:27:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:14]POST & json_proto [10:27:14]process_json_proto [10:27:14]json parsed OK: [10:27:14]protocol is kg_v1.0 [10:27:14]action value=close_receipt [10:27:14]process_action close_receipt [10:27:14]cmd_close_receipt [10:27:14]MH_GetDate [10:27:14]Write to MH i2c: F0 00 00 31 25 45 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 09 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 09 00 31 25 00 05 C4 1C 67 50 D1 6C 64 8B [10:27:14]GetLastDocTimeStamp 1729938283 [10:27:14]current date 1729938437 [10:27:14]FM_GetShiftState [10:27:14]SAM_PROTO_GetShiftState [10:27:14]wFMCommunicate request_size=4 [10:27:14]MH_SAM_APDU [10:27:14]CAPDU: 80 13 01 00 [10:27:14]Write to MH i2c: E2 08 00 32 25 80 13 01 00 00 00 00 00 D4 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:14]Read from MH i2c: E2 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 0E 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 0E 00 32 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 09 [10:27:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:27:14]wFMCommunicate OK [10:27:14]SAM_PROTO_GetShiftState done [10:27:14]FM_GetShiftState done [10:27:14]opened in 1729902702 [10:27:14]opened+sec_in_day 1729989102 [10:27:14]quantity*price = 30038 [10:27:14]sum+1 = 30039 [10:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 105 26.10.2024 10:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156204 ФПД: 16592313281028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156204&fm=16592313281028&tin=02508201610067®Number=0000000000091693&sum=30000 [10:27:15]StoreToDocumentArchive [10:27:15]shift 536 fd 156204 [10:27:15]save to /storage/0536/doc_00156204 [10:27:15]save last doc name /storage/0536/doc_00156204 to /storage/kkm_last_doc_name [10:27:15]save OK [10:27:15]Clear old archive folders... [10:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:15]tlvbuf is 00D1EAF0 [10:27:15]SAM_PROTO_ClearQueue [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 09 00 00 [10:27:15]Write to MH i2c: E2 08 00 3F 25 80 09 00 00 00 00 00 00 D6 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 3F 25 00 90 00 D8 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]SAM_PROTO_ClearQueue done [10:27:15]KKMCreateOFDPacket [10:27:15]OFDProtocolAddRootSTLVToBuf [10:27:15]FM_MakeSignedData [10:27:15]FM_MakeSignedData [10:27:15]SAM_PROTO_SignData [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 01 02 [10:27:15]Write to MH i2c: E2 08 00 40 25 80 0D 01 02 00 00 00 00 DE [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 40 25 00 90 00 D9 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=255 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 06 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 62 02 00 35 04 06 00 0F [10:27:15]Write to MH i2c: E2 02 01 41 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 06 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 62 02 00 35 04 06 00 0F 00 00 D5 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 41 25 00 90 00 DA [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=10 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 02 02 05 17 32 F0 6A 04 [10:27:15]Write to MH i2c: E2 0D 00 42 25 80 0D 02 02 05 00 17 32 F0 6A 04 00 00 92 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 42 25 00 90 00 DB [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 03 02 [10:27:15]Write to MH i2c: E2 08 00 43 25 80 0D 03 02 00 00 00 00 E3 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 0B 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 0B 00 43 25 00 76 73 04 9F 87 93 FE BB 90 00 43 [10:27:15]RAPDU: 76 73 04 9F 87 93 FE BB 90 00 [10:27:15]wFMCommunicate OK [10:27:15]SAM_PROTO_SignData done [10:27:15]FM_MakeSignedData done [10:27:15]CreateOFDProtocolMessage [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 11 00 00 [10:27:15]Write to MH i2c: E2 08 00 44 25 80 11 00 00 00 00 00 00 E3 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 17 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 17 00 44 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 38 [10:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:27:15]wFMCommunicate OK [10:27:15]CreateOFDProtocolMessage done [10:27:15]OFDSenderStorePacket 156204 [10:27:15]StoreOFDPacket docnum=156204 [10:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 E4 07 01 50 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 06 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 62 02 00 35 04 06 00 0F 17 32 F0 6A 04 76 73 04 9F 87 93 FE BB [10:27:15]CheckFolder [10:27:15]dirname=/storage/ofd_packets [10:27:15]CheckFolder done [10:27:15]ProducePacketName [10:27:15]name=ofd_packets/00156204 [10:27:15]NVStorageSaveData ofd_packets/00156204 [10:27:15]File name is /storage/ofd_packets/00156204 [10:27:15]Write 301 bytes [10:27:15]NVStorageSaveData done [10:27:15]OFDSenderStorePacket done [10:27:15]KKMCreateOFDPacket done [10:27:15]NVStorageSaveData kkm_last_timestamp [10:27:15]File name is /storage/kkm_last_timestamp [10:27:15]Write 4 bytes [10:27:15]NVStorageSaveData done [10:27:15]ExternCall_PrintAddStr [10:27:15]wPrintStart [10:27:15]Write to MH i2c: 01 00 00 45 25 6A [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 07 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 07 00 45 25 00 00 00 00 00 FF 0F 7F [10:27:15]RasterBufferAndPrint [10:27:15]line Счет N : (1)99019 [10:27:15]line ИНН: 02508201610067 [10:27:15]line Контрольно-Кассовый Чек [10:27:15]line ПРОДАЖА [10:27:15]line ТРК (МРК, ГНК) : 21 [10:27:15]line Товар: 2710124130 [10:27:15]line Аи-92-К-5 [10:27:15]line 4.490 * 66.90 [10:27:15]line = 300.38 [10:27:15]line НДС 12% НСП 1% [10:27:15]line > о реализуемом товаре [10:27:15]line ОКРУГЛЕНИЕ: -0.38 [10:27:15]line ИТОГО: 300.00 [10:27:15]line Внесено: 300.00 [10:27:15]line СДАЧА: 0.00 [10:27:15]line НСП 1% : 2.66 [10:27:15]line НДС 12% : 31.90 [10:27:15]line Наличными: 300.00 [10:27:15]line Безнал.: 0.00 [10:27:15]line Место: АЗС № 143 "Партнер Нефть" [10:27:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:27:15]line СНО: Общий режим [10:27:15]line Чек 105 26.10.2024 10:27 [10:27:15]line Смена: 536 ФФД: 1.0 [10:27:15]line ЗНМ: 0300000096 [10:27:15]line РНМ: 0000000000091693 [10:27:15]line Версия ККМ: 001 [10:27:15]line ФМ: 0000000000871792 [10:27:16]line ФД: 156204 [10:27:16]line ФПД: 16592313281028 [10:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156204&fm=16592313281028&tin=02508201610067®Number=0000000000091693&sum=30000 [10:27:16]OFD Sender: Processing packet 156204 [packets to send 31, broken 30] [10:27:16]ProducePacketName [10:27:16]name=ofd_packets/00156204 [10:27:16]OFD Sender: To server: pG, [10:27:16]CommunicateWithHost lk.salyk.kg:30040 [10:27:16]ConnectInit lk.salyk.kg [10:27:16]written 0, free lines is 4095 [10:27:16]Connected sock=10 [10:27:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 E4 07 01 50 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 06 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 62 02 00 35 04 06 00 0F 17 32 F0 6A 04 76 73 04 9F 87 93 FE BB [10:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4C 33 47 00 7A EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 62 02 00 F4 03 04 00 78 69 1C 67 B6 04 01 00 00 DA 1C 87 7E 62 1B 30 D8 [10:27:16]CommunicateWithHost err = 0 [10:27:16]CheckOFDResponse [10:27:16]1017 (14) - 77093643461234 [10:27:16]1041 (16) - 0000000000871792 [10:27:16]1040 (4) - 156204 [10:27:16]1012 (4) - 26.10.2024 04:00 [10:27:16]1206 (1) - 0 [10:27:16]OFD Sender: Remove packet 156204 [10:27:16]ProducePacketName [10:27:16]name=ofd_packets/00156204 [10:27:16]NVStorageDeleteData [10:27:16]Write to MH i2c: 01 00 00 70 25 95 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 07 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 07 00 70 25 00 00 00 00 00 EB 0C 93 [10:27:16]RasterBufferAndPrint [10:27:16]line [10:27:16]line [10:27:16]line [10:27:16]line [10:27:16]line [10:27:16]written 0, free lines is 3313 [10:27:16]process_action close_receipt done [10:27:16]requested_data is exist [10:27:16]produce_requested_data [10:27:16]requested_item fm.sn is exist - process it [10:27:16]wFMCommunicate request_size=4 [10:27:16]MH_SAM_APDU [10:27:16]CAPDU: 80 11 00 00 [10:27:16]Write to MH i2c: E2 08 00 77 25 80 11 00 00 00 00 00 00 16 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:16]Read from MH i2c: E2 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 17 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 17 00 77 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6B [10:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:27:16]wFMCommunicate OK [10:27:16]requested_item fd.num is exist - process it [10:27:16]SAM_PROTO_GetFieldsCounters [10:27:16]wFMCommunicate request_size=4 [10:27:16]MH_SAM_APDU [10:27:16]CAPDU: 80 13 00 00 [10:27:16]Write to MH i2c: E2 08 00 78 25 80 13 00 00 00 00 00 00 19 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:16]Read from MH i2c: E2 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 62 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 62 00 78 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2C 62 02 00 0E 04 04 00 18 02 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 24 [10:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2C 62 02 00 0E 04 04 00 18 02 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 [10:27:16]wFMCommunicate OK [10:27:16]SAM_PROTO_GetFieldsCounters done [10:27:16]requested_item shift.num is exist - process it [10:27:16]requested_item shift.opened is exist - process it [10:27:16]req_shift_opened [10:27:16]FM_GetShiftState [10:27:16]SAM_PROTO_GetShiftState [10:27:16]wFMCommunicate request_size=4 [10:27:16]MH_SAM_APDU [10:27:16]CAPDU: 80 13 01 00 [10:27:16]Write to MH i2c: E2 08 00 79 25 80 13 01 00 00 00 00 00 1B [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:16]Read from MH i2c: E2 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 0E 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 0E 00 79 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [10:27:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:27:16]wFMCommunicate OK [10:27:16]SAM_PROTO_GetShiftState done [10:27:16]FM_GetShiftState done [10:27:16]req_shift_opened done [10:27:16]requested_item shift.open_date is exist - process it [10:27:16]req_shift_open_date [10:27:16]req_shift_open_date done [10:27:16]produce_requested_data done [10:27:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156204,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:27:16]process_action_free close_receipt [10:27:16]json_value_free [10:27:16]json_value_free done [10:27:16]process_json_proto returns [10:27:16]Send response to host [10:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156204,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:27:16]free response buf [10:27:16]execute_script done [10:27:16]execute_script returns [10:27:16]free content buf [10:27:16]Sock 7.Close socket [10:27:16]Sock 7.Thread stoped [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]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:18]accept exits with 9 [10:29:18]New connection [10:29:18]New thread 3066469732 created [10:29:18]Thread 3066613092 joined [10:29:18]Waiting for new connection... [10:29:18] Sock 9.Parse request [10:29:18]Sock 9.Check first char [10:29:18]Sock 9.First char is OK [10:29:18]request: POST /json_proto HTTP/1.0 [10:29:18]Method: POST [10:29:18]URL: /json_proto [10:29:18]Method is POST - this is cgi request [10:29:18]url: /json_proto [10:29:18]query_string will be loaded in cgi processing [10:29:18]execute_cgi json_proto POST (null) [10:29:18]execute_cgi path=json_proto method=POST [10:29:18]POST find Content-Length [10:29:18]Host: 172.17.63.3:8080 [10:29:18]Content-Length: 681 [10:29:18]Content-Type: application/json [10:29:18] [10:29:18]POST finish read [10:29:18]Found Content-Length = 681 [10:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:18]execute_script... [10:29:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:18]POST & json_proto [10:29:18]process_json_proto [10:29:18]json parsed OK: [10:29:18]protocol is kg_v1.0 [10:29:18]action value=close_receipt [10:29:18]process_action close_receipt [10:29:18]cmd_close_receipt [10:29:18]MH_GetDate [10:29:18]Write to MH i2c: F0 00 00 7A 25 8E [10:29:18]Write i2c OK [10:29:18]MH_I2C_Read... [10:29:18]Read from MH i2c: F0 [10:29:18]MH_I2C_Read... [10:29:18]Read from MH i2c: F0 09 00 [10:29:18]MH_I2C_Read... [10:29:18]Read from MH i2c: F0 09 00 7A 25 00 82 C4 1C 67 50 D1 6C 64 51 [10:29:18]GetLastDocTimeStamp 1729938438 [10:29:18]current date 1729938562 [10:29:18]FM_GetShiftState [10:29:18]SAM_PROTO_GetShiftState [10:29:18]wFMCommunicate request_size=4 [10:29:18]MH_SAM_APDU [10:29:18]CAPDU: 80 13 01 00 [10:29:18]Write to MH i2c: E2 08 00 7B 25 80 13 01 00 00 00 00 00 1D [10:29:18]Write i2c OK [10:29:18]MH_I2C_Read... [10:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:18]Read from MH i2c: E2 [10:29:18]MH_I2C_Read... [10:29:18]Read from MH i2c: E2 0E 00 [10:29:18]MH_I2C_Read... [10:29:18]Read from MH i2c: E2 0E 00 7B 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 52 [10:29:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:29:18]wFMCommunicate OK [10:29:18]SAM_PROTO_GetShiftState done [10:29:18]FM_GetShiftState done [10:29:18]opened in 1729902702 [10:29:18]opened+sec_in_day 1729989102 [10:29:18]quantity*price = 100015 [10:29:18]sum+1 = 100017 [10:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 106 26.10.2024 10:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156205 ФПД: 17112616989949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102922&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156205&fm=17112616989949&tin=02508201610067®Number=0000000000091693&sum=100000 [10:29:20]StoreToDocumentArchive [10:29:20]shift 536 fd 156205 [10:29:20]save to /storage/0536/doc_00156205 [10:29:20]save last doc name /storage/0536/doc_00156205 to /storage/kkm_last_doc_name [10:29:20]save OK [10:29:20]Clear old archive folders... [10:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:20]tlvbuf is 00D49D80 [10:29:20]SAM_PROTO_ClearQueue [10:29:20]wFMCommunicate request_size=4 [10:29:20]MH_SAM_APDU [10:29:20]CAPDU: 80 09 00 00 [10:29:20]Write to MH i2c: E2 08 00 88 25 80 09 00 00 00 00 00 00 1F [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 [10:29:20]MH_I2C_Read... [10:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:20]Read from MH i2c: E2 03 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 03 00 88 25 00 90 00 21 [10:29:20]RAPDU: 90 00 [10:29:20]wFMCommunicate OK [10:29:20]SAM_PROTO_ClearQueue done [10:29:20]KKMCreateOFDPacket [10:29:20]OFDProtocolAddRootSTLVToBuf [10:29:20]FM_MakeSignedData [10:29:20]FM_MakeSignedData [10:29:20]SAM_PROTO_SignData [10:29:20]wFMCommunicate request_size=4 [10:29:20]MH_SAM_APDU [10:29:20]CAPDU: 80 0D 01 02 [10:29:20]Write to MH i2c: E2 08 00 89 25 80 0D 01 02 00 00 00 00 27 [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:20]Read from MH i2c: E2 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 03 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 03 00 89 25 00 90 00 22 [10:29:20]RAPDU: 90 00 [10:29:20]wFMCommunicate OK [10:29:20]wFMCommunicate request_size=255 [10:29:20]MH_SAM_APDU [10:29:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 82 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 62 02 00 35 04 06 00 0F [10:29:20]Write to MH i2c: E2 02 01 8A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 82 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 62 02 00 35 04 06 00 0F 00 00 A2 [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:20]Read from MH i2c: E2 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 03 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 03 00 8A 25 00 90 00 23 [10:29:20]RAPDU: 90 00 [10:29:20]wFMCommunicate OK [10:29:20]wFMCommunicate request_size=10 [10:29:20]MH_SAM_APDU [10:29:20]CAPDU: 80 0D 02 02 05 90 57 74 F4 FD [10:29:20]Write to MH i2c: E2 0D 00 8B 25 80 0D 02 02 05 00 90 57 74 F4 FD 00 00 80 [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:20]Read from MH i2c: E2 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 03 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 03 00 8B 25 00 90 00 24 [10:29:20]RAPDU: 90 00 [10:29:20]wFMCommunicate OK [10:29:20]wFMCommunicate request_size=4 [10:29:20]MH_SAM_APDU [10:29:20]CAPDU: 80 0D 03 02 [10:29:20]Write to MH i2c: E2 08 00 8C 25 80 0D 03 02 00 00 00 00 2C [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:20]Read from MH i2c: E2 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 0B 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 0B 00 8C 25 00 37 4F 18 F5 68 54 E1 0B 90 00 68 [10:29:20]RAPDU: 37 4F 18 F5 68 54 E1 0B 90 00 [10:29:20]wFMCommunicate OK [10:29:20]SAM_PROTO_SignData done [10:29:20]FM_MakeSignedData done [10:29:20]CreateOFDProtocolMessage [10:29:20]wFMCommunicate request_size=4 [10:29:20]MH_SAM_APDU [10:29:20]CAPDU: 80 11 00 00 [10:29:20]Write to MH i2c: E2 08 00 8D 25 80 11 00 00 00 00 00 00 2C [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:20]Read from MH i2c: E2 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 17 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: E2 17 00 8D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 81 [10:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:29:20]wFMCommunicate OK [10:29:20]CreateOFDProtocolMessage done [10:29:20]OFDSenderStorePacket 156205 [10:29:20]StoreOFDPacket docnum=156205 [10:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 00 1A 07 01 E3 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 82 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 62 02 00 35 04 06 00 0F 90 57 74 F4 FD 37 4F 18 F5 68 54 E1 0B [10:29:20]CheckFolder [10:29:20]dirname=/storage/ofd_packets [10:29:20]CheckFolder done [10:29:20]ProducePacketName [10:29:20]name=ofd_packets/00156205 [10:29:20]NVStorageSaveData ofd_packets/00156205 [10:29:20]File name is /storage/ofd_packets/00156205 [10:29:20]Write 301 bytes [10:29:20]NVStorageSaveData done [10:29:20]OFDSenderStorePacket done [10:29:20]KKMCreateOFDPacket done [10:29:20]NVStorageSaveData kkm_last_timestamp [10:29:20]File name is /storage/kkm_last_timestamp [10:29:20]Write 4 bytes [10:29:20]NVStorageSaveData done [10:29:20]ExternCall_PrintAddStr [10:29:20]wPrintStart [10:29:20]Write to MH i2c: 01 00 00 8E 25 B3 [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: 01 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: 01 07 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: 01 07 00 8E 25 00 00 00 00 00 FF 0F C8 [10:29:20]RasterBufferAndPrint [10:29:20]line Счет N : (1)99021 [10:29:20]line ИНН: 02508201610067 [10:29:20]line Контрольно-Кассовый Чек [10:29:20]line ПРОДАЖА [10:29:20]line ТРК (МРК, ГНК) : 11 [10:29:20]line Товар: 2710124130 [10:29:20]line Аи-92-К-5 [10:29:20]line 14.950 * 66.90 [10:29:20]line = 1000.16 [10:29:20]line НДС 12% НСП 1% [10:29:20]line > о реализуемом товаре [10:29:20]line ОКРУГЛЕНИЕ: -0.16 [10:29:20]line ИТОГО: 1000.00 [10:29:20]line Внесено: 1000.00 [10:29:20]line СДАЧА: 0.00 [10:29:20]line НСП 1% : 8.85 [10:29:20]line НДС 12% : 106.21 [10:29:20]line Наличными: 1000.00 [10:29:20]line Безнал.: 0.00 [10:29:20]line Место: АЗС № 143 "Партнер Нефть" [10:29:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:29:20]line СНО: Общий режим [10:29:20]line Чек 106 26.10.2024 10:29 [10:29:20]line Смена: 536 ФФД: 1.0 [10:29:20]line ЗНМ: 0300000096 [10:29:20]line РНМ: 0000000000091693 [10:29:20]line Версия ККМ: 001 [10:29:20]line ФМ: 0000000000871792 [10:29:20]line ФД: 156205 [10:29:20]line ФПД: 17112616989949 [10:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102922&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156205&fm=17112616989949&tin=02508201610067®Number=0000000000091693&sum=100000 [10:29:20]OFD Sender: Processing packet 156205 [packets to send 31, broken 30] [10:29:20]ProducePacketName [10:29:20]name=ofd_packets/00156205 [10:29:20]OFD Sender: To server: pG, [10:29:20]CommunicateWithHost lk.salyk.kg:30040 [10:29:20]ConnectInit lk.salyk.kg [10:29:20]written 0, free lines is 4095 [10:29:21]Connected sock=10 [10:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 00 1A 07 01 E3 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 82 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 62 02 00 35 04 06 00 0F 90 57 74 F4 FD 37 4F 18 F5 68 54 E1 0B [10:29:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 80 90 47 00 2F 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 31 37 39 32 10 04 04 00 2D 62 02 00 F4 03 04 00 F5 69 1C 67 B6 04 01 00 00 22 00 F1 8D 53 F2 5B D8 [10:29:21]CommunicateWithHost err = 0 [10:29:21]CheckOFDResponse [10:29:21]1017 (14) - 77093643461234 [10:29:21]1041 (16) - 0000000000871792 [10:29:21]1040 (4) - 156205 [10:29:21]1012 (4) - 26.10.2024 04:03 [10:29:21]1206 (1) - 0 [10:29:21]OFD Sender: Remove packet 156205 [10:29:21]ProducePacketName [10:29:21]name=ofd_packets/00156205 [10:29:21]NVStorageDeleteData [10:29:21]Write to MH i2c: 01 00 00 B9 25 DE [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 07 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 07 00 B9 25 00 00 00 00 00 EE 0C DF [10:29:21]RasterBufferAndPrint [10:29:21]line [10:29:21]line [10:29:21]line [10:29:21]line [10:29:21]line [10:29:21]written 0, free lines is 3316 [10:29:21]process_action close_receipt done [10:29:21]requested_data is exist [10:29:21]produce_requested_data [10:29:21]requested_item fm.sn is exist - process it [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 11 00 00 [10:29:21]Write to MH i2c: E2 08 00 C0 25 80 11 00 00 00 00 00 00 5F [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 17 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 17 00 C0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B4 [10:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:29:21]wFMCommunicate OK [10:29:21]requested_item fd.num is exist - process it [10:29:21]SAM_PROTO_GetFieldsCounters [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 13 00 00 [10:29:21]Write to MH i2c: E2 08 00 C1 25 80 13 00 00 00 00 00 00 62 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 62 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 62 00 C1 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2D 62 02 00 0E 04 04 00 18 02 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 71 [10:29: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2D 62 02 00 0E 04 04 00 18 02 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 [10:29:21]wFMCommunicate OK [10:29:21]SAM_PROTO_GetFieldsCounters done [10:29:21]requested_item shift.num is exist - process it [10:29:21]requested_item shift.opened is exist - process it [10:29:21]req_shift_opened [10:29:21]FM_GetShiftState [10:29:21]SAM_PROTO_GetShiftState [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 13 01 00 [10:29:21]Write to MH i2c: E2 08 00 C2 25 80 13 01 00 00 00 00 00 64 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 0E 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 0E 00 C2 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 99 [10:29:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:29:21]wFMCommunicate OK [10:29:21]SAM_PROTO_GetShiftState done [10:29:21]FM_GetShiftState done [10:29:21]req_shift_opened done [10:29:21]requested_item shift.open_date is exist - process it [10:29:21]req_shift_open_date [10:29:21]req_shift_open_date done [10:29:21]produce_requested_data done [10:29:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156205,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:29:21]process_action_free close_receipt [10:29:21]json_value_free [10:29:21]json_value_free done [10:29:21]process_json_proto returns [10:29:21]Send response to host [10:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156205,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:29:21]free response buf [10:29:21]execute_script done [10:29:21]execute_script returns [10:29:21]free content buf [10:29:21]Sock 9.Close socket [10:29:21]Sock 9.Thread stoped [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:37]accept exits with 7 [10:29:37]New connection [10:29:37]New thread 3066613092 created [10:29:37]Thread 3066469732 joined [10:29:37]Waiting for new connection... [10:29:37] Sock 7.Parse request [10:29:37]Sock 7.Check first char [10:29:37]Sock 7.First char is OK [10:29:37]request: POST /json_proto HTTP/1.0 [10:29:37]Method: POST [10:29:37]URL: /json_proto [10:29:37]Method is POST - this is cgi request [10:29:37]url: /json_proto [10:29:37]query_string will be loaded in cgi processing [10:29:37]execute_cgi json_proto POST (null) [10:29:37]execute_cgi path=json_proto method=POST [10:29:37]POST find Content-Length [10:29:37]Host: 172.17.63.3:8080 [10:29:37]Content-Length: 681 [10:29:37]Content-Type: application/json [10:29:37] [10:29:37]POST finish read [10:29:37]Found Content-Length = 681 [10:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:37]execute_script... [10:29:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:37]POST & json_proto [10:29:37]process_json_proto [10:29:37]json parsed OK: [10:29:37]protocol is kg_v1.0 [10:29:37]action value=close_receipt [10:29:37]process_action close_receipt [10:29:37]cmd_close_receipt [10:29:37]MH_GetDate [10:29:37]Write to MH i2c: F0 00 00 C3 25 D7 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: F0 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: F0 09 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: F0 09 00 C3 25 00 95 C4 1C 67 50 D1 6C 64 AD [10:29:37]GetLastDocTimeStamp 1729938562 [10:29:37]current date 1729938581 [10:29:37]FM_GetShiftState [10:29:37]SAM_PROTO_GetShiftState [10:29:37]wFMCommunicate request_size=4 [10:29:37]MH_SAM_APDU [10:29:37]CAPDU: 80 13 01 00 [10:29:37]Write to MH i2c: E2 08 00 C4 25 80 13 01 00 00 00 00 00 66 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:38]Read from MH i2c: E2 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: E2 0E 00 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: E2 0E 00 C4 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9B [10:29:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:29:38]wFMCommunicate OK [10:29:38]SAM_PROTO_GetShiftState done [10:29:38]FM_GetShiftState done [10:29:38]opened in 1729902702 [10:29:38]opened+sec_in_day 1729989102 [10:29:38]quantity*price = 100015 [10:29:38]sum+1 = 100017 [10:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 107 26.10.2024 10:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156206 ФПД: 209065390541190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102941&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156206&fm=209065390541190&tin=02508201610067®Number=0000000000091693&sum=100000 [10:29:39]StoreToDocumentArchive [10:29:39]shift 536 fd 156206 [10:29:39]save to /storage/0536/doc_00156206 [10:29:39]save last doc name /storage/0536/doc_00156206 to /storage/kkm_last_doc_name [10:29:39]save OK [10:29:39]Clear old archive folders... [10:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:39]tlvbuf is 00D91E40 [10:29:39]SAM_PROTO_ClearQueue [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 09 00 00 [10:29:39]Write to MH i2c: E2 08 00 D1 25 80 09 00 00 00 00 00 00 68 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 D1 25 00 90 00 6A [10:29:39]RAPDU: 90 00 [10:29:39]wFMCommunicate OK [10:29:39]SAM_PROTO_ClearQueue done [10:29:39]KKMCreateOFDPacket [10:29:39]OFDProtocolAddRootSTLVToBuf [10:29:39]FM_MakeSignedData [10:29:39]FM_MakeSignedData [10:29:39]SAM_PROTO_SignData [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 0D 01 02 [10:29:39]Write to MH i2c: E2 08 00 D2 25 80 0D 01 02 00 00 00 00 70 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 D2 25 00 90 00 6B [10:29:39]RAPDU: 90 00 [10:29:39]wFMCommunicate OK [10:29:39]wFMCommunicate request_size=255 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 95 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 62 02 00 35 04 06 00 BE [10:29:39]Write to MH i2c: E2 02 01 D3 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 95 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 62 02 00 35 04 06 00 BE 00 00 AF [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 D3 25 00 90 00 6C [10:29:39]RAPDU: 90 00 [10:29:39]wFMCommunicate OK [10:29:39]wFMCommunicate request_size=10 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 0D 02 02 05 24 D4 56 89 86 [10:29:39]Write to MH i2c: E2 0D 00 D4 25 80 0D 02 02 05 00 24 D4 56 89 86 00 00 DA [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 03 00 D4 25 00 90 00 6D [10:29:39]RAPDU: 90 00 [10:29:39]wFMCommunicate OK [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 0D 03 02 [10:29:39]Write to MH i2c: E2 08 00 D5 25 80 0D 03 02 00 00 00 00 75 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 0B 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 0B 00 D5 25 00 1D 07 B4 9E 69 AB E1 A4 90 00 85 [10:29:39]RAPDU: 1D 07 B4 9E 69 AB E1 A4 90 00 [10:29:39]wFMCommunicate OK [10:29:39]SAM_PROTO_SignData done [10:29:39]FM_MakeSignedData done [10:29:39]CreateOFDProtocolMessage [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 11 00 00 [10:29:39]Write to MH i2c: E2 08 00 D6 25 80 11 00 00 00 00 00 00 75 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 17 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 17 00 D6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CA [10:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:29:39]wFMCommunicate OK [10:29:39]CreateOFDProtocolMessage done [10:29:39]OFDSenderStorePacket 156206 [10:29:39]StoreOFDPacket docnum=156206 [10:29:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E9 B1 07 01 2A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 95 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 62 02 00 35 04 06 00 BE 24 D4 56 89 86 1D 07 B4 9E 69 AB E1 A4 [10:29:39]CheckFolder [10:29:39]dirname=/storage/ofd_packets [10:29:39]CheckFolder done [10:29:39]ProducePacketName [10:29:39]name=ofd_packets/00156206 [10:29:39]NVStorageSaveData ofd_packets/00156206 [10:29:39]File name is /storage/ofd_packets/00156206 [10:29:39]Write 301 bytes [10:29:39]NVStorageSaveData done [10:29:39]OFDSenderStorePacket done [10:29:39]KKMCreateOFDPacket done [10:29:39]NVStorageSaveData kkm_last_timestamp [10:29:39]File name is /storage/kkm_last_timestamp [10:29:39]Write 4 bytes [10:29:39]NVStorageSaveData done [10:29:39]ExternCall_PrintAddStr [10:29:39]wPrintStart [10:29:39]Write to MH i2c: 01 00 00 D7 25 FC [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: 01 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: 01 07 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: 01 07 00 D7 25 00 00 00 00 00 FF 0F 11 [10:29:39]RasterBufferAndPrint [10:29:39]line Счет N : (1)99020 [10:29:39]line ИНН: 02508201610067 [10:29:39]line Контрольно-Кассовый Чек [10:29:39]line ПРОДАЖА [10:29:39]line ТРК (МРК, ГНК) : 21 [10:29:39]line Товар: 2710124130 [10:29:39]line Аи-92-К-5 [10:29:39]line 14.950 * 66.90 [10:29:39]line = 1000.16 [10:29:39]line НДС 12% НСП 1% [10:29:39]line > о реализуемом товаре [10:29:39]line ОКРУГЛЕНИЕ: -0.16 [10:29:39]line ИТОГО: 1000.00 [10:29:39]line Внесено: 1000.00 [10:29:39]line СДАЧА: 0.00 [10:29:39]line НСП 1% : 8.85 [10:29:39]line НДС 12% : 106.21 [10:29:39]line Наличными: 1000.00 [10:29:39]line Безнал.: 0.00 [10:29:39]line Место: АЗС № 143 "Партнер Нефть" [10:29:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:29:39]line СНО: Общий режим [10:29:39]line Чек 107 26.10.2024 10:29 [10:29:39]line Смена: 536 ФФД: 1.0 [10:29:39]line ЗНМ: 0300000096 [10:29:39]line РНМ: 0000000000091693 [10:29:39]line Версия ККМ: 001 [10:29:39]line ФМ: 0000000000871792 [10:29:39]line ФД: 156206 [10:29:39]line ФПД: 209065390541190 [10:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102941&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156206&fm=209065390541190&tin=02508201610067®Number=0000000000091693&sum=100000 [10:29:40]OFD Sender: Processing packet 156206 [packets to send 31, broken 30] [10:29:40]ProducePacketName [10:29:40]name=ofd_packets/00156206 [10:29:40]OFD Sender: To server: pG, [10:29:40]CommunicateWithHost lk.salyk.kg:30040 [10:29:40]ConnectInit lk.salyk.kg [10:29:40]written 0, free lines is 4095 [10:29:40]Connected sock=10 [10:29:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E9 B1 07 01 2A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 95 C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 62 02 00 35 04 06 00 BE 24 D4 56 89 86 1D 07 B4 9E 69 AB E1 A4 [10:29:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 01 7D 47 00 D5 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 62 02 00 F4 03 04 00 08 6A 1C 67 B6 04 01 00 00 B4 73 E2 3C FF E9 D1 F7 [10:29:40]CommunicateWithHost err = 0 [10:29:40]CheckOFDResponse [10:29:40]1017 (14) - 77093643461234 [10:29:40]1041 (16) - 0000000000871792 [10:29:40]1040 (4) - 156206 [10:29:40]1012 (4) - 26.10.2024 04:03 [10:29:40]1206 (1) - 0 [10:29:40]OFD Sender: Remove packet 156206 [10:29:40]ProducePacketName [10:29:40]name=ofd_packets/00156206 [10:29:40]NVStorageDeleteData [10:29:40]Write to MH i2c: 01 00 00 02 26 28 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 07 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 07 00 02 26 00 00 00 00 00 F9 0C 34 [10:29:40]RasterBufferAndPrint [10:29:40]line [10:29:40]line [10:29:40]line [10:29:40]line [10:29:40]line [10:29:40]written 0, free lines is 3330 [10:29:40]process_action close_receipt done [10:29:40]requested_data is exist [10:29:40]produce_requested_data [10:29:40]requested_item fm.sn is exist - process it [10:29:40]wFMCommunicate request_size=4 [10:29:40]MH_SAM_APDU [10:29:40]CAPDU: 80 11 00 00 [10:29:40]Write to MH i2c: E2 08 00 09 26 80 11 00 00 00 00 00 00 A9 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:40]Read from MH i2c: E2 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 17 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 17 00 09 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FE [10:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:29:40]wFMCommunicate OK [10:29:40]requested_item fd.num is exist - process it [10:29:40]SAM_PROTO_GetFieldsCounters [10:29:40]wFMCommunicate request_size=4 [10:29:40]MH_SAM_APDU [10:29:40]CAPDU: 80 13 00 00 [10:29:40]Write to MH i2c: E2 08 00 0A 26 80 13 00 00 00 00 00 00 AC [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:40]Read from MH i2c: E2 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 62 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 62 00 0A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2E 62 02 00 0E 04 04 00 18 02 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 BF [10:29: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2E 62 02 00 0E 04 04 00 18 02 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 [10:29:40]wFMCommunicate OK [10:29:40]SAM_PROTO_GetFieldsCounters done [10:29:40]requested_item shift.num is exist - process it [10:29:40]requested_item shift.opened is exist - process it [10:29:40]req_shift_opened [10:29:40]FM_GetShiftState [10:29:40]SAM_PROTO_GetShiftState [10:29:40]wFMCommunicate request_size=4 [10:29:40]MH_SAM_APDU [10:29:40]CAPDU: 80 13 01 00 [10:29:40]Write to MH i2c: E2 08 00 0B 26 80 13 01 00 00 00 00 00 AE [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 [10:29:40]MH_I2C_Read... [10:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:40]Read from MH i2c: E2 0E 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 0E 00 0B 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E3 [10:29:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:29:40]wFMCommunicate OK [10:29:40]SAM_PROTO_GetShiftState done [10:29:40]FM_GetShiftState done [10:29:40]req_shift_opened done [10:29:40]requested_item shift.open_date is exist - process it [10:29:40]req_shift_open_date [10:29:40]req_shift_open_date done [10:29:40]produce_requested_data done [10:29:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156206,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:29:40]process_action_free close_receipt [10:29:40]json_value_free [10:29:40]json_value_free done [10:29:40]process_json_proto returns [10:29:40]Send response to host [10:29:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156206,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:29:40]free response buf [10:29:40]execute_script done [10:29:40]execute_script returns [10:29:40]free content buf [10:29:40]Sock 7.Close socket [10:29:40]Sock 7.Thread stoped [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:49]accept exits with 9 [10:30:49]New connection [10:30:49]New thread 3066469732 created [10:30:49]Thread 3066613092 joined [10:30:49]Waiting for new connection... [10:30:49] Sock 9.Parse request [10:30:49]Sock 9.Check first char [10:30:49]Sock 9.First char is OK [10:30:49]request: POST /json_proto HTTP/1.0 [10:30:49]Method: POST [10:30:49]URL: /json_proto [10:30:49]Method is POST - this is cgi request [10:30:49]url: /json_proto [10:30:49]query_string will be loaded in cgi processing [10:30:49]execute_cgi json_proto POST (null) [10:30:49]execute_cgi path=json_proto method=POST [10:30:49]POST find Content-Length [10:30:49]Host: 172.17.63.3:8080 [10:30:49]Content-Length: 681 [10:30:49]Content-Type: application/json [10:30:49] [10:30:49]POST finish read [10:30:49]Found Content-Length = 681 [10:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:49]execute_script... [10:30: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)99022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:49]POST & json_proto [10:30:49]process_json_proto [10:30:49]json parsed OK: [10:30:49]protocol is kg_v1.0 [10:30:49]action value=close_receipt [10:30:49]process_action close_receipt [10:30:49]cmd_close_receipt [10:30:49]MH_GetDate [10:30:49]Write to MH i2c: F0 00 00 0C 26 21 [10:30:49]Write i2c OK [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: F0 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: F0 09 00 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: F0 09 00 0C 26 00 DD C4 1C 67 50 D1 6C 64 3F [10:30:49]GetLastDocTimeStamp 1729938581 [10:30:49]current date 1729938653 [10:30:49]FM_GetShiftState [10:30:49]SAM_PROTO_GetShiftState [10:30:49]wFMCommunicate request_size=4 [10:30:49]MH_SAM_APDU [10:30:49]CAPDU: 80 13 01 00 [10:30:49]Write to MH i2c: E2 08 00 0D 26 80 13 01 00 00 00 00 00 B0 [10:30:49]Write i2c OK [10:30:49]MH_I2C_Read... [10:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:49]Read from MH i2c: E2 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 0E 00 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 0E 00 0D 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E5 [10:30:49]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:30:49]wFMCommunicate OK [10:30:49]SAM_PROTO_GetShiftState done [10:30:49]FM_GetShiftState done [10:30:49]opened in 1729902702 [10:30:49]opened+sec_in_day 1729989102 [10:30:49]quantity*price = 100015 [10:30:49]sum+1 = 100017 [10:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 108 26.10.2024 10:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156207 ФПД: 245976111851167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103053&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156207&fm=245976111851167&tin=02508201610067®Number=0000000000091693&sum=100000 [10:30:50]StoreToDocumentArchive [10:30:50]shift 536 fd 156207 [10:30:50]save to /storage/0536/doc_00156207 [10:30:50]save last doc name /storage/0536/doc_00156207 to /storage/kkm_last_doc_name [10:30:50]save OK [10:30:50]Clear old archive folders... [10:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:50]tlvbuf is 00D3EE50 [10:30:50]SAM_PROTO_ClearQueue [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 09 00 00 [10:30:50]Write to MH i2c: E2 08 00 1A 26 80 09 00 00 00 00 00 00 B2 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:51]Read from MH i2c: E2 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 03 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 03 00 1A 26 00 90 00 B4 [10:30:51]RAPDU: 90 00 [10:30:51]wFMCommunicate OK [10:30:51]SAM_PROTO_ClearQueue done [10:30:51]KKMCreateOFDPacket [10:30:51]OFDProtocolAddRootSTLVToBuf [10:30:51]FM_MakeSignedData [10:30:51]FM_MakeSignedData [10:30:51]SAM_PROTO_SignData [10:30:51]wFMCommunicate request_size=4 [10:30:51]MH_SAM_APDU [10:30:51]CAPDU: 80 0D 01 02 [10:30:51]Write to MH i2c: E2 08 00 1B 26 80 0D 01 02 00 00 00 00 BA [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:51]Read from MH i2c: E2 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 03 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 03 00 1B 26 00 90 00 B5 [10:30:51]RAPDU: 90 00 [10:30:51]wFMCommunicate OK [10:30:51]wFMCommunicate request_size=255 [10:30:51]MH_SAM_APDU [10:30:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DD C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 62 02 00 35 04 06 00 DF [10:30:51]Write to MH i2c: E2 02 01 1C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DD C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 62 02 00 35 04 06 00 DF 00 00 64 [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:51]Read from MH i2c: E2 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 03 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 03 00 1C 26 00 90 00 B6 [10:30:51]RAPDU: 90 00 [10:30:51]wFMCommunicate OK [10:30:51]wFMCommunicate request_size=10 [10:30:51]MH_SAM_APDU [10:30:51]CAPDU: 80 0D 02 02 05 B6 C6 C5 26 9F [10:30:51]Write to MH i2c: E2 0D 00 1D 26 80 0D 02 02 05 00 B6 C6 C5 26 9F 00 00 CD [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:51]Read from MH i2c: E2 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 03 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 03 00 1D 26 00 90 00 B7 [10:30:51]RAPDU: 90 00 [10:30:51]wFMCommunicate OK [10:30:51]wFMCommunicate request_size=4 [10:30:51]MH_SAM_APDU [10:30:51]CAPDU: 80 0D 03 02 [10:30:51]Write to MH i2c: E2 08 00 1E 26 80 0D 03 02 00 00 00 00 BF [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:51]Read from MH i2c: E2 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 0B 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 0B 00 1E 26 00 6A E4 F3 7E 61 47 63 93 90 00 1D [10:30:51]RAPDU: 6A E4 F3 7E 61 47 63 93 90 00 [10:30:51]wFMCommunicate OK [10:30:51]SAM_PROTO_SignData done [10:30:51]FM_MakeSignedData done [10:30:51]CreateOFDProtocolMessage [10:30:51]wFMCommunicate request_size=4 [10:30:51]MH_SAM_APDU [10:30:51]CAPDU: 80 11 00 00 [10:30:51]Write to MH i2c: E2 08 00 1F 26 80 11 00 00 00 00 00 00 BF [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:51]Read from MH i2c: E2 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 17 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 17 00 1F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [10:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:30:51]wFMCommunicate OK [10:30:51]CreateOFDProtocolMessage done [10:30:51]OFDSenderStorePacket 156207 [10:30:51]StoreOFDPacket docnum=156207 [10:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 56 07 01 E8 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DD C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 62 02 00 35 04 06 00 DF B6 C6 C5 26 9F 6A E4 F3 7E 61 47 63 93 [10:30:51]CheckFolder [10:30:51]dirname=/storage/ofd_packets [10:30:51]CheckFolder done [10:30:51]ProducePacketName [10:30:51]name=ofd_packets/00156207 [10:30:51]NVStorageSaveData ofd_packets/00156207 [10:30:51]File name is /storage/ofd_packets/00156207 [10:30:51]Write 301 bytes [10:30:51]NVStorageSaveData done [10:30:51]OFDSenderStorePacket done [10:30:51]KKMCreateOFDPacket done [10:30:51]NVStorageSaveData kkm_last_timestamp [10:30:51]File name is /storage/kkm_last_timestamp [10:30:51]Write 4 bytes [10:30:51]NVStorageSaveData done [10:30:51]ExternCall_PrintAddStr [10:30:51]wPrintStart [10:30:51]Write to MH i2c: 01 00 00 20 26 46 [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 07 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 07 00 20 26 00 00 00 00 00 FF 0F 5B [10:30:51]RasterBufferAndPrint [10:30:51]line Счет N : (1)99022 [10:30:51]line ИНН: 02508201610067 [10:30:51]line Контрольно-Кассовый Чек [10:30:51]line ПРОДАЖА [10:30:51]line ТРК (МРК, ГНК) : 11 [10:30:51]line Товар: 2710124130 [10:30:51]line Аи-92-К-5 [10:30:51]line 14.950 * 66.90 [10:30:51]line = 1000.16 [10:30:51]line НДС 12% НСП 1% [10:30:51]line > о реализуемом товаре [10:30:51]line ОКРУГЛЕНИЕ: -0.16 [10:30:51]line ИТОГО: 1000.00 [10:30:51]line Внесено: 1000.00 [10:30:51]line СДАЧА: 0.00 [10:30:51]line НСП 1% : 8.85 [10:30:51]line НДС 12% : 106.21 [10:30:51]line Наличными: 1000.00 [10:30:51]line Безнал.: 0.00 [10:30:51]line Место: АЗС № 143 "Партнер Нефть" [10:30:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:30:51]line СНО: Общий режим [10:30:51]line Чек 108 26.10.2024 10:30 [10:30:51]line Смена: 536 ФФД: 1.0 [10:30:51]line ЗНМ: 0300000096 [10:30:51]line РНМ: 0000000000091693 [10:30:51]line Версия ККМ: 001 [10:30:51]line ФМ: 0000000000871792 [10:30:51]line ФД: 156207 [10:30:51]line ФПД: 245976111851167 [10:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103053&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156207&fm=245976111851167&tin=02508201610067®Number=0000000000091693&sum=100000 [10:30:51]OFD Sender: Processing packet 156207 [packets to send 31, broken 30] [10:30:51]ProducePacketName [10:30:51]name=ofd_packets/00156207 [10:30:51]OFD Sender: To server: pG, [10:30:51]CommunicateWithHost lk.salyk.kg:30040 [10:30:51]ConnectInit lk.salyk.kg [10:30:51]written 0, free lines is 4095 [10:30:51]Connected sock=10 [10:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 56 07 01 E8 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DD C4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 62 02 00 35 04 06 00 DF B6 C6 C5 26 9F 6A E4 F3 7E 61 47 63 93 [10:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AD 41 47 00 F5 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 31 37 39 32 10 04 04 00 2F 62 02 00 F4 03 04 00 50 6A 1C 67 B6 04 01 00 00 5E 3C 68 9D 9E D1 2D EE [10:30:52]CommunicateWithHost err = 0 [10:30:52]CheckOFDResponse [10:30:52]1017 (14) - 77093643461234 [10:30:52]1041 (16) - 0000000000871792 [10:30:52]1040 (4) - 156207 [10:30:52]1012 (4) - 26.10.2024 04:04 [10:30:52]1206 (1) - 0 [10:30:52]OFD Sender: Remove packet 156207 [10:30:52]ProducePacketName [10:30:52]name=ofd_packets/00156207 [10:30:52]NVStorageDeleteData [10:30:52]Write to MH i2c: 01 00 00 4B 26 71 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: 01 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: 01 07 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: 01 07 00 4B 26 00 00 00 00 00 F7 0C 7B [10:30:52]RasterBufferAndPrint [10:30:52]line [10:30:52]line [10:30:52]line [10:30:52]line [10:30:52]line [10:30:52]written 0, free lines is 3326 [10:30:52]process_action close_receipt done [10:30:52]requested_data is exist [10:30:52]produce_requested_data [10:30:52]requested_item fm.sn is exist - process it [10:30:52]wFMCommunicate request_size=4 [10:30:52]MH_SAM_APDU [10:30:52]CAPDU: 80 11 00 00 [10:30:52]Write to MH i2c: E2 08 00 52 26 80 11 00 00 00 00 00 00 F2 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 [10:30:52]MH_I2C_Read... [10:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:52]Read from MH i2c: E2 17 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 17 00 52 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 47 [10:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:30:52]wFMCommunicate OK [10:30:52]requested_item fd.num is exist - process it [10:30:52]SAM_PROTO_GetFieldsCounters [10:30:52]wFMCommunicate request_size=4 [10:30:52]MH_SAM_APDU [10:30:52]CAPDU: 80 13 00 00 [10:30:52]Write to MH i2c: E2 08 00 53 26 80 13 00 00 00 00 00 00 F5 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:52]Read from MH i2c: E2 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 62 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 62 00 53 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2F 62 02 00 0E 04 04 00 18 02 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 0C [10:30: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2F 62 02 00 0E 04 04 00 18 02 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 [10:30:52]wFMCommunicate OK [10:30:52]SAM_PROTO_GetFieldsCounters done [10:30:52]requested_item shift.num is exist - process it [10:30:52]requested_item shift.opened is exist - process it [10:30:52]req_shift_opened [10:30:52]FM_GetShiftState [10:30:52]SAM_PROTO_GetShiftState [10:30:52]wFMCommunicate request_size=4 [10:30:52]MH_SAM_APDU [10:30:52]CAPDU: 80 13 01 00 [10:30:52]Write to MH i2c: E2 08 00 54 26 80 13 01 00 00 00 00 00 F7 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:52]Read from MH i2c: E2 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 0E 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 0E 00 54 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2C [10:30:52]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:30:52]wFMCommunicate OK [10:30:52]SAM_PROTO_GetShiftState done [10:30:52]FM_GetShiftState done [10:30:52]req_shift_opened done [10:30:52]requested_item shift.open_date is exist - process it [10:30:52]req_shift_open_date [10:30:52]req_shift_open_date done [10:30:52]produce_requested_data done [10:30:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156207,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:30:52]process_action_free close_receipt [10:30:52]json_value_free [10:30:52]json_value_free done [10:30:52]process_json_proto returns [10:30:52]Send response to host [10:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156207,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:30:52]free response buf [10:30:52]execute_script done [10:30:52]execute_script returns [10:30:52]free content buf [10:30:52]Sock 9.Close socket [10:30:52]Sock 9.Thread stoped [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:56]accept exits with 7 [10:32:56]New connection [10:32:56]New thread 3066613092 created [10:32:56]Thread 3066469732 joined [10:32:56]Waiting for new connection... [10:32:56] Sock 7.Parse request [10:32:56]Sock 7.Check first char [10:32:56]Sock 7.First char is OK [10:32:56]request: POST /json_proto HTTP/1.0 [10:32:56]Method: POST [10:32:56]URL: /json_proto [10:32:56]Method is POST - this is cgi request [10:32:56]url: /json_proto [10:32:56]query_string will be loaded in cgi processing [10:32:56]execute_cgi json_proto POST (null) [10:32:56]execute_cgi path=json_proto method=POST [10:32:56]POST find Content-Length [10:32:56]Host: 172.17.63.3:8080 [10:32:56]Content-Length: 796 [10:32:56]Content-Type: application/json [10:32:56] [10:32:56]POST finish read [10:32:56]Found Content-Length = 796 [10:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295615", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:56]execute_script... [10: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)99023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295615", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:56]POST & json_proto [10:32:56]process_json_proto [10:32:56]json parsed OK: [10:32:56]protocol is kg_v1.0 [10:32:56]action value=close_receipt [10:32:56]process_action close_receipt [10:32:56]cmd_close_receipt [10:32:56]MH_GetDate [10:32:56]Write to MH i2c: F0 00 00 55 26 6A [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: F0 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: F0 09 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: F0 09 00 55 26 00 5C C5 1C 67 50 D1 6C 64 08 [10:32:56]GetLastDocTimeStamp 1729938653 [10:32:56]current date 1729938780 [10:32:56]FM_GetShiftState [10:32:56]SAM_PROTO_GetShiftState [10:32:56]wFMCommunicate request_size=4 [10:32:56]MH_SAM_APDU [10:32:56]CAPDU: 80 13 01 00 [10:32:56]Write to MH i2c: E2 08 00 56 26 80 13 01 00 00 00 00 00 F9 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 56 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2E [10:32:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:32:56]wFMCommunicate OK [10:32:56]SAM_PROTO_GetShiftState done [10:32:56]FM_GetShiftState done [10:32:56]opened in 1729902702 [10:32:56]opened+sec_in_day 1729989102 [10:32:56]quantity*price = 0 [10:32:56]sum+1 = 1 [10:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 109 26.10.2024 10:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4295615 ФМ: 0000000000871792 ФД: 156208 ФПД: 106779334780962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103300&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156208&fm=106779334780962&tin=02508201610067®Number=0000000000091693&sum=0 [10:32:57]StoreToDocumentArchive [10:32:57]shift 536 fd 156208 [10:32:57]save to /storage/0536/doc_00156208 [10:32:57]save last doc name /storage/0536/doc_00156208 to /storage/kkm_last_doc_name [10:32:57]save OK [10:32:57]Clear old archive folders... [10:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:57]tlvbuf is 00D9DD60 [10:32:57]SAM_PROTO_ClearQueue [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 09 00 00 [10:32:57]Write to MH i2c: E2 08 00 63 26 80 09 00 00 00 00 00 00 FB [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 63 26 00 90 00 FD [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_ClearQueue done [10:32:57]KKMCreateOFDPacket [10:32:57]OFDProtocolAddRootSTLVToBuf [10:32:57]FM_MakeSignedData [10:32:57]FM_MakeSignedData [10:32:57]SAM_PROTO_SignData [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 01 02 [10:32:57]Write to MH i2c: E2 08 00 64 26 80 0D 01 02 00 00 00 00 03 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 64 26 00 90 00 FE [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=255 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 5C C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 62 02 00 35 04 06 00 61 1D 80 51 [10:32:57]Write to MH i2c: E2 02 01 65 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 5C C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 62 02 00 35 04 06 00 61 1D 80 51 00 00 AA [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]OFD Sender: No OFD packet to send [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 65 26 00 90 00 FF [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=7 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 02 A8 22 [10:32:57]Write to MH i2c: E2 0A 00 66 26 80 0D 02 02 02 00 A8 22 00 00 D4 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 66 26 00 90 00 00 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 03 02 [10:32:57]Write to MH i2c: E2 08 00 67 26 80 0D 03 02 00 00 00 00 08 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:58]Read from MH i2c: E2 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 0B 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 0B 00 67 26 00 1F 6A 0B D4 59 9C 09 2E 90 00 9D [10:32:58]RAPDU: 1F 6A 0B D4 59 9C 09 2E 90 00 [10:32:58]wFMCommunicate OK [10:32:58]SAM_PROTO_SignData done [10:32:58]FM_MakeSignedData done [10:32:58]CreateOFDProtocolMessage [10:32:58]wFMCommunicate request_size=4 [10:32:58]MH_SAM_APDU [10:32:58]CAPDU: 80 11 00 00 [10:32:58]Write to MH i2c: E2 08 00 68 26 80 11 00 00 00 00 00 00 08 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:58]Read from MH i2c: E2 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 68 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5D [10:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:32:58]wFMCommunicate OK [10:32:58]CreateOFDProtocolMessage done [10:32:58]OFDSenderStorePacket 156208 [10:32:58]StoreOFDPacket docnum=156208 [10:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A4 56 04 01 B6 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 5C C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 62 02 00 35 04 06 00 61 1D 80 51 A8 22 1F 6A 0B D4 59 9C 09 2E [10:32:58]CheckFolder [10:32:58]dirname=/storage/ofd_packets [10:32:58]CheckFolder done [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00156208 [10:32:58]NVStorageSaveData ofd_packets/00156208 [10:32:58]File name is /storage/ofd_packets/00156208 [10:32:58]Write 298 bytes [10:32:58]NVStorageSaveData done [10:32:58]OFDSenderStorePacket done [10:32:58]KKMCreateOFDPacket done [10:32:58]NVStorageSaveData kkm_last_timestamp [10:32:58]File name is /storage/kkm_last_timestamp [10:32:58]Write 4 bytes [10:32:58]NVStorageSaveData done [10:32:58]ExternCall_PrintAddStr [10:32:58]wPrintStart [10:32:58]Write to MH i2c: 01 00 00 69 26 8F [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 69 26 00 00 00 00 00 FF 0F A4 [10:32:58]RasterBufferAndPrint [10:32:58]line Счет N : (1)99023 [10:32:58]line ИНН: 02508201610067 [10:32:58]line Контрольно-Кассовый Чек [10:32:58]line ПРОДАЖА [10:32:58]line ТРК (МРК, ГНК) : 32 [10:32:58]line Товар: 2710194210 [10:32:58]line ДТ-К-5 [10:32:58]line 10.000 * 0.00 [10:32:58]line = 0.00 [10:32:58]line НДС 12% НСП 1% [10:32:58]line > о реализуемом товаре [10:32:58]line ИТОГО: 0.00 [10:32:58]line НСП 1% : 0.00 [10:32:58]line НДС 12% : 0.00 [10:32:58]line Наличными: 0.00 [10:32:58]line Безнал.: 0.00 [10:32:58]line Место: АЗС № 143 "Партнер Нефть" [10:32:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:32:58]line СНО: Общий режим [10:32:58]line Чек 109 26.10.2024 10:33 [10:32:58]line Смена: 536 ФФД: 1.0 [10:32:58]line ЗНМ: 0300000096 [10:32:58]line РНМ: 0000000000091693 [10:32:58]line Версия ККМ: 001 [10:32:58]line Талоны: Топливные Талоны [10:32:58]line 4295615 [10:32:58]line ФМ: 0000000000871792 [10:32:58]line ФД: 156208 [10:32:58]line ФПД: 106779334780962 [10:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103300&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156208&fm=106779334780962&tin=02508201610067®Number=0000000000091693&sum=0 [10:32:58]OFD Sender: Processing packet 156208 [packets to send 31, broken 30] [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00156208 [10:32:58]OFD Sender: To server: pG, [10:32:58]CommunicateWithHost lk.salyk.kg:30040 [10:32:58]ConnectInit lk.salyk.kg [10:32:58]written 0, free lines is 4095 [10:32:58]Connected sock=10 [10: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 31 37 39 32 0C 01 00 00 A4 56 04 01 B6 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 5C C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 62 02 00 35 04 06 00 61 1D 80 51 A8 22 1F 6A 0B D4 59 9C 09 2E [10:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 38 DD 47 00 BD 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 31 37 39 32 10 04 04 00 30 62 02 00 F4 03 04 00 CF 6A 1C 67 B6 04 01 00 00 14 04 C0 2B D8 56 47 8F [10:32:58]CommunicateWithHost err = 0 [10:32:58]CheckOFDResponse [10:32:58]1017 (14) - 77093643461234 [10:32:58]1041 (16) - 0000000000871792 [10:32:58]1040 (4) - 156208 [10:32:58]1012 (4) - 26.10.2024 04:06 [10:32:58]1206 (1) - 0 [10:32:58]OFD Sender: Remove packet 156208 [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00156208 [10:32:58]NVStorageDeleteData [10:32:58]Write to MH i2c: 01 00 00 93 26 B9 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 93 26 00 00 00 00 00 01 0D CE [10:32:58]RasterBufferAndPrint [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]written 0, free lines is 3335 [10:32:58]process_action close_receipt done [10:32:58]requested_data is exist [10:32:58]produce_requested_data [10:32:58]requested_item fm.sn is exist - process it [10:32:58]wFMCommunicate request_size=4 [10:32:58]MH_SAM_APDU [10:32:58]CAPDU: 80 11 00 00 [10:32:58]Write to MH i2c: E2 08 00 9A 26 80 11 00 00 00 00 00 00 3A [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 [10:32:58]MH_I2C_Read... [10:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:58]Read from MH i2c: E2 17 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 9A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8F [10:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:32:58]wFMCommunicate OK [10:32:58]requested_item fd.num is exist - process it [10:32:58]SAM_PROTO_GetFieldsCounters [10:32:58]wFMCommunicate request_size=4 [10:32:58]MH_SAM_APDU [10:32:58]CAPDU: 80 13 00 00 [10:32:58]Write to MH i2c: E2 08 00 9B 26 80 13 00 00 00 00 00 00 3D [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:59]Read from MH i2c: E2 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 62 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 62 00 9B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 30 62 02 00 0E 04 04 00 18 02 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 58 [10:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 30 62 02 00 0E 04 04 00 18 02 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 [10:32:59]wFMCommunicate OK [10:32:59]SAM_PROTO_GetFieldsCounters done [10:32:59]requested_item shift.num is exist - process it [10:32:59]requested_item shift.opened is exist - process it [10:32:59]req_shift_opened [10:32:59]FM_GetShiftState [10:32:59]SAM_PROTO_GetShiftState [10:32:59]wFMCommunicate request_size=4 [10:32:59]MH_SAM_APDU [10:32:59]CAPDU: 80 13 01 00 [10:32:59]Write to MH i2c: E2 08 00 9C 26 80 13 01 00 00 00 00 00 3F [10:32:59]Write i2c OK [10:32:59]MH_I2C_Read... [10:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:59]Read from MH i2c: E2 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 0E 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 0E 00 9C 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 74 [10:32:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:32:59]wFMCommunicate OK [10:32:59]SAM_PROTO_GetShiftState done [10:32:59]FM_GetShiftState done [10:32:59]req_shift_opened done [10:32:59]requested_item shift.open_date is exist - process it [10:32:59]req_shift_open_date [10:32:59]req_shift_open_date done [10:32:59]produce_requested_data done [10:32:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156208,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:32:59]process_action_free close_receipt [10:32:59]json_value_free [10:32:59]json_value_free done [10:32:59]process_json_proto returns [10:32:59]Send response to host [10:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156208,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:32:59]free response buf [10:32:59]execute_script done [10:32:59]execute_script returns [10:32:59]free content buf [10:32:59]Sock 7.Close socket [10:32:59]Sock 7.Thread stoped [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:14]accept exits with 9 [10:33:14]New connection [10:33:14]New thread 3066469732 created [10:33:14]Thread 3066613092 joined [10:33:14]Waiting for new connection... [10:33:14] Sock 9.Parse request [10:33:14]Sock 9.Check first char [10:33:14]Sock 9.First char is OK [10:33:14]request: POST /json_proto HTTP/1.0 [10:33:14]Method: POST [10:33:14]URL: /json_proto [10:33:14]Method is POST - this is cgi request [10:33:14]url: /json_proto [10:33:14]query_string will be loaded in cgi processing [10:33:14]execute_cgi json_proto POST (null) [10:33:14]execute_cgi path=json_proto method=POST [10:33:14]POST find Content-Length [10:33:14]Host: 172.17.63.3:8080 [10:33:14]Content-Length: 673 [10:33:14]Content-Type: application/json [10:33:14] [10:33:14]POST finish read [10:33:14]Found Content-Length = 673 [10:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.130, "sum" : 238.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 238.00, "total" : 238.00, "payments": [ { "type": 0, "sum" : 238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:14]execute_script... [10:33:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.130, "sum" : 238.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 238.00, "total" : 238.00, "payments": [ { "type": 0, "sum" : 238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:14]POST & json_proto [10:33:14]process_json_proto [10:33:14]json parsed OK: [10:33:14]protocol is kg_v1.0 [10:33:14]action value=close_receipt [10:33:14]process_action close_receipt [10:33:14]cmd_close_receipt [10:33:14]MH_GetDate [10:33:14]Write to MH i2c: F0 00 00 9D 26 B2 [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: F0 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: F0 09 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: F0 09 00 9D 26 00 6E C5 1C 67 50 D1 6C 64 62 [10:33:14]GetLastDocTimeStamp 1729938780 [10:33:14]current date 1729938798 [10:33:14]FM_GetShiftState [10:33:14]SAM_PROTO_GetShiftState [10:33:14]wFMCommunicate request_size=4 [10:33:14]MH_SAM_APDU [10:33:14]CAPDU: 80 13 01 00 [10:33:14]Write to MH i2c: E2 08 00 9E 26 80 13 01 00 00 00 00 00 41 [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:14]Read from MH i2c: E2 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 0E 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 0E 00 9E 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 76 [10:33:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:33:14]wFMCommunicate OK [10:33:14]SAM_PROTO_GetShiftState done [10:33:14]FM_GetShiftState done [10:33:14]opened in 1729902702 [10:33:14]opened+sec_in_day 1729989102 [10:33:14]quantity*price = 23850 [10:33:14]sum+1 = 23852 [10:33:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 238.00 Внесено: 238.00 СДАЧА: 0.00 НСП 1% : 2.11 НДС 12% : 25.33 Наличными: 238.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 110 26.10.2024 10:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156209 ФПД: 48122834703894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103318&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156209&fm=48122834703894&tin=02508201610067®Number=0000000000091693&sum=23800 [10:33:15]StoreToDocumentArchive [10:33:15]shift 536 fd 156209 [10:33:15]save to /storage/0536/doc_00156209 [10:33:15]save last doc name /storage/0536/doc_00156209 to /storage/kkm_last_doc_name [10:33:15]save OK [10:33:15]Clear old archive folders... [10:33:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:33:15]tlvbuf is 00DD6970 [10:33:15]SAM_PROTO_ClearQueue [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 09 00 00 [10:33:15]Write to MH i2c: E2 08 00 AB 26 80 09 00 00 00 00 00 00 43 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 AB 26 00 90 00 45 [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]SAM_PROTO_ClearQueue done [10:33:15]KKMCreateOFDPacket [10:33:15]OFDProtocolAddRootSTLVToBuf [10:33:15]FM_MakeSignedData [10:33:15]FM_MakeSignedData [10:33:15]SAM_PROTO_SignData [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 01 02 [10:33:15]Write to MH i2c: E2 08 00 AC 26 80 0D 01 02 00 00 00 00 4B [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 AC 26 00 90 00 46 [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]wFMCommunicate request_size=255 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2B 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 09 00 00 00 00 07 04 06 00 F8 5C 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 6E C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 62 02 00 35 04 06 00 2B C4 78 77 [10:33:15]Write to MH i2c: E2 02 01 AD 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2B 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 09 00 00 00 00 07 04 06 00 F8 5C 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 6E C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 62 02 00 35 04 06 00 2B C4 78 77 00 00 76 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:16]Read from MH i2c: E2 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 03 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 03 00 AD 26 00 90 00 47 [10:33:16]RAPDU: 90 00 [10:33:16]wFMCommunicate OK [10:33:16]wFMCommunicate request_size=7 [10:33:16]MH_SAM_APDU [10:33:16]CAPDU: 80 0D 02 02 02 D6 16 [10:33:16]Write to MH i2c: E2 0A 00 AE 26 80 0D 02 02 02 00 D6 16 00 00 3E [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:16]Read from MH i2c: E2 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 03 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 03 00 AE 26 00 90 00 48 [10:33:16]RAPDU: 90 00 [10:33:16]wFMCommunicate OK [10:33:16]wFMCommunicate request_size=4 [10:33:16]MH_SAM_APDU [10:33:16]CAPDU: 80 0D 03 02 [10:33:16]Write to MH i2c: E2 08 00 AF 26 80 0D 03 02 00 00 00 00 50 [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:16]Read from MH i2c: E2 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 0B 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 0B 00 AF 26 00 9A 50 87 FB 6B B6 F6 C1 90 00 95 [10:33:16]RAPDU: 9A 50 87 FB 6B B6 F6 C1 90 00 [10:33:16]wFMCommunicate OK [10:33:16]SAM_PROTO_SignData done [10:33:16]FM_MakeSignedData done [10:33:16]CreateOFDProtocolMessage [10:33:16]wFMCommunicate request_size=4 [10:33:16]MH_SAM_APDU [10:33:16]CAPDU: 80 11 00 00 [10:33:16]Write to MH i2c: E2 08 00 B0 26 80 11 00 00 00 00 00 00 50 [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:16]Read from MH i2c: E2 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 17 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 17 00 B0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [10:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:33:16]wFMCommunicate OK [10:33:16]CreateOFDProtocolMessage done [10:33:16]OFDSenderStorePacket 156209 [10:33:16]StoreOFDPacket docnum=156209 [10:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 1E DF 04 01 93 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2B 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 09 00 00 00 00 07 04 06 00 F8 5C 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 6E C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 62 02 00 35 04 06 00 2B C4 78 77 D6 16 9A 50 87 FB 6B B6 F6 C1 [10:33:16]CheckFolder [10:33:16]dirname=/storage/ofd_packets [10:33:16]CheckFolder done [10:33:16]ProducePacketName [10:33:16]name=ofd_packets/00156209 [10:33:16]NVStorageSaveData ofd_packets/00156209 [10:33:16]File name is /storage/ofd_packets/00156209 [10:33:16]Write 298 bytes [10:33:16]NVStorageSaveData done [10:33:16]OFDSenderStorePacket done [10:33:16]KKMCreateOFDPacket done [10:33:16]NVStorageSaveData kkm_last_timestamp [10:33:16]File name is /storage/kkm_last_timestamp [10:33:16]Write 4 bytes [10:33:16]NVStorageSaveData done [10:33:16]ExternCall_PrintAddStr [10:33:16]wPrintStart [10:33:16]Write to MH i2c: 01 00 00 B1 26 D7 [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 07 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 07 00 B1 26 00 00 00 00 00 FF 0F EC [10:33:16]RasterBufferAndPrint [10:33:16]line Счет N : (1)99024 [10:33:16]line ИНН: 02508201610067 [10:33:16]line Контрольно-Кассовый Чек [10:33:16]line ПРОДАЖА [10:33:16]line ТРК (МРК, ГНК) : 32 [10:33:16]line Товар: 2710194210 [10:33:16]line ДТ-К-5 [10:33:16]line 3.130 * 76.20 [10:33:16]line = 238.51 [10:33:16]line НДС 12% НСП 1% [10:33:16]line > о реализуемом товаре [10:33:16]line ОКРУГЛЕНИЕ: -0.51 [10:33:16]line ИТОГО: 238.00 [10:33:16]line Внесено: 238.00 [10:33:16]line СДАЧА: 0.00 [10:33:16]line НСП 1% : 2.11 [10:33:16]line НДС 12% : 25.33 [10:33:16]line Наличными: 238.00 [10:33:16]line Безнал.: 0.00 [10:33:16]line Место: АЗС № 143 "Партнер Нефть" [10:33:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:33:16]line СНО: Общий режим [10:33:16]line Чек 110 26.10.2024 10:33 [10:33:16]line Смена: 536 ФФД: 1.0 [10:33:16]line ЗНМ: 0300000096 [10:33:16]line РНМ: 0000000000091693 [10:33:16]line Версия ККМ: 001 [10:33:16]line ФМ: 0000000000871792 [10:33:16]line ФД: 156209 [10:33:16]line ФПД: 48122834703894 [10:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103318&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156209&fm=48122834703894&tin=02508201610067®Number=0000000000091693&sum=23800 [10:33:16]OFD Sender: Processing packet 156209 [packets to send 31, broken 30] [10:33:16]ProducePacketName [10:33:16]name=ofd_packets/00156209 [10:33:16]OFD Sender: To server: pG, [10:33:16]CommunicateWithHost lk.salyk.kg:30040 [10:33:16]ConnectInit lk.salyk.kg [10:33:16]written 0, free lines is 4095 [10:33:16]Connected sock=10 [10:33:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 1E DF 04 01 93 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2B 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 09 00 00 00 00 07 04 06 00 F8 5C 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 6E C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 62 02 00 35 04 06 00 2B C4 78 77 D6 16 9A 50 87 FB 6B B6 F6 C1 [10:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 09 DA 47 00 7D C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 62 02 00 F4 03 04 00 E1 6A 1C 67 B6 04 01 00 00 14 36 5A 15 DF 31 A1 23 [10:33:16]CommunicateWithHost err = 0 [10:33:16]CheckOFDResponse [10:33:16]1017 (14) - 77093643461234 [10:33:16]1041 (16) - 0000000000871792 [10:33:16]1040 (4) - 156209 [10:33:16]1012 (4) - 26.10.2024 04:06 [10:33:16]1206 (1) - 0 [10:33:16]OFD Sender: Remove packet 156209 [10:33:16]ProducePacketName [10:33:16]name=ofd_packets/00156209 [10:33:16]NVStorageDeleteData [10:33:17]Write to MH i2c: 01 00 00 DC 26 02 [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: 01 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: 01 07 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: 01 07 00 DC 26 00 00 00 00 00 F3 0C 08 [10:33:17]RasterBufferAndPrint [10:33:17]line [10:33:17]line [10:33:17]line [10:33:17]line [10:33:17]line [10:33:17]written 0, free lines is 3321 [10:33:17]process_action close_receipt done [10:33:17]requested_data is exist [10:33:17]produce_requested_data [10:33:17]requested_item fm.sn is exist - process it [10:33:17]wFMCommunicate request_size=4 [10:33:17]MH_SAM_APDU [10:33:17]CAPDU: 80 11 00 00 [10:33:17]Write to MH i2c: E2 08 00 E3 26 80 11 00 00 00 00 00 00 83 [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:17]Read from MH i2c: E2 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 17 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 17 00 E3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D8 [10:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:33:17]wFMCommunicate OK [10:33:17]requested_item fd.num is exist - process it [10:33:17]SAM_PROTO_GetFieldsCounters [10:33:17]wFMCommunicate request_size=4 [10:33:17]MH_SAM_APDU [10:33:17]CAPDU: 80 13 00 00 [10:33:17]Write to MH i2c: E2 08 00 E4 26 80 13 00 00 00 00 00 00 86 [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:17]Read from MH i2c: E2 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 62 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 62 00 E4 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 31 62 02 00 0E 04 04 00 18 02 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 A5 [10:33: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 31 62 02 00 0E 04 04 00 18 02 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 [10:33:17]wFMCommunicate OK [10:33:17]SAM_PROTO_GetFieldsCounters done [10:33:17]requested_item shift.num is exist - process it [10:33:17]requested_item shift.opened is exist - process it [10:33:17]req_shift_opened [10:33:17]FM_GetShiftState [10:33:17]SAM_PROTO_GetShiftState [10:33:17]wFMCommunicate request_size=4 [10:33:17]MH_SAM_APDU [10:33:17]CAPDU: 80 13 01 00 [10:33:17]Write to MH i2c: E2 08 00 E5 26 80 13 01 00 00 00 00 00 88 [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:17]Read from MH i2c: E2 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 0E 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 0E 00 E5 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BD [10:33:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:33:17]wFMCommunicate OK [10:33:17]SAM_PROTO_GetShiftState done [10:33:17]FM_GetShiftState done [10:33:17]req_shift_opened done [10:33:17]requested_item shift.open_date is exist - process it [10:33:17]req_shift_open_date [10:33:17]req_shift_open_date done [10:33:17]produce_requested_data done [10:33:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156209,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:33:17]process_action_free close_receipt [10:33:17]json_value_free [10:33:17]json_value_free done [10:33:17]process_json_proto returns [10:33:17]Send response to host [10:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156209,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:33:17]free response buf [10:33:17]execute_script done [10:33:17]execute_script returns [10:33:17]free content buf [10:33:17]Sock 9.Close socket [10:33:17]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]accept exits with 7 [10:35:37]New connection [10:35:37]New thread 3066613092 created [10:35:37] Sock 7.Parse request [10:35:37]Sock 7.Check first char [10:35:37]Thread 3066469732 joined [10:35:37]Sock 7.First char is OK [10:35:37]Waiting for new connection... [10:35:37]request: POST /json_proto HTTP/1.0 [10:35:37]Method: POST [10:35:37]URL: /json_proto [10:35:37]Method is POST - this is cgi request [10:35:37]url: /json_proto [10:35:37]query_string will be loaded in cgi processing [10:35:37]execute_cgi json_proto POST (null) [10:35:37]execute_cgi path=json_proto method=POST [10:35:37]POST find Content-Length [10:35:37]Host: 172.17.63.3:8080 [10:35:37]Content-Length: 676 [10:35:37]Content-Type: application/json [10:35:37] [10:35:37]POST finish read [10:35:37]Found Content-Length = 676 [10:35:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:37]execute_script... [10:35:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:37]POST & json_proto [10:35:37]process_json_proto [10:35:37]json parsed OK: [10:35:37]protocol is kg_v1.0 [10:35:37]action value=close_receipt [10:35:37]process_action close_receipt [10:35:37]cmd_close_receipt [10:35:37]MH_GetDate [10:35:37]Write to MH i2c: F0 00 00 E6 26 FB [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: F0 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: F0 09 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: F0 09 00 E6 26 00 FD C5 1C 67 50 D1 6C 64 3A [10:35:37]GetLastDocTimeStamp 1729938798 [10:35:37]current date 1729938941 [10:35:37]FM_GetShiftState [10:35:37]SAM_PROTO_GetShiftState [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 13 01 00 [10:35:37]Write to MH i2c: E2 08 00 E7 26 80 13 01 00 00 00 00 00 8A [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 0E 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 0E 00 E7 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BF [10:35:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_GetShiftState done [10:35:37]FM_GetShiftState done [10:35:37]opened in 1729902702 [10:35:37]opened+sec_in_day 1729989102 [10:35:37]quantity*price = 40006 [10:35:37]sum+1 = 40007 [10:35:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 111 26.10.2024 10:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156210 ФПД: 89359999224067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103541&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156210&fm=89359999224067&tin=02508201610067®Number=0000000000091693&sum=40000 [10:35:38]StoreToDocumentArchive [10:35:38]shift 536 fd 156210 [10:35:38]save to /storage/0536/doc_00156210 [10:35:38]save last doc name /storage/0536/doc_00156210 to /storage/kkm_last_doc_name [10:35:38]save OK [10:35:38]Clear old archive folders... [10:35:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:38]tlvbuf is 00D3EBF0 [10:35:38]SAM_PROTO_ClearQueue [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 09 00 00 [10:35:38]Write to MH i2c: E2 08 00 F4 26 80 09 00 00 00 00 00 00 8C [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [10:35:38]RAPDU: 90 00 [10:35:38]wFMCommunicate OK [10:35:38]SAM_PROTO_ClearQueue done [10:35:38]KKMCreateOFDPacket [10:35:38]OFDProtocolAddRootSTLVToBuf [10:35:38]FM_MakeSignedData [10:35:38]FM_MakeSignedData [10:35:38]SAM_PROTO_SignData [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 0D 01 02 [10:35:38]Write to MH i2c: E2 08 00 F5 26 80 0D 01 02 00 00 00 00 94 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 F5 26 00 90 00 8F [10:35:38]RAPDU: 90 00 [10:35:38]wFMCommunicate OK [10:35:38]wFMCommunicate request_size=255 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FD C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 62 02 00 35 04 06 00 51 [10:35:38]Write to MH i2c: E2 02 01 F6 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FD C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 62 02 00 35 04 06 00 51 00 00 AC [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 F6 26 00 90 00 90 [10:35:38]RAPDU: 90 00 [10:35:38]wFMCommunicate OK [10:35:38]wFMCommunicate request_size=10 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 0D 02 02 05 45 BF 02 C9 03 [10:35:38]Write to MH i2c: E2 0D 00 F7 26 80 0D 02 02 05 00 45 BF 02 C9 03 00 00 73 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 F7 26 00 90 00 91 [10:35:38]RAPDU: 90 00 [10:35:38]wFMCommunicate OK [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 0D 03 02 [10:35:38]Write to MH i2c: E2 08 00 F8 26 80 0D 03 02 00 00 00 00 99 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 0B 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 0B 00 F8 26 00 49 5B 9E FC C6 27 13 52 90 00 2A [10:35:38]RAPDU: 49 5B 9E FC C6 27 13 52 90 00 [10:35:38]wFMCommunicate OK [10:35:38]SAM_PROTO_SignData done [10:35:38]FM_MakeSignedData done [10:35:38]CreateOFDProtocolMessage [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 11 00 00 [10:35:38]Write to MH i2c: E2 08 00 F9 26 80 11 00 00 00 00 00 00 99 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 F9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [10:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:35:38]wFMCommunicate OK [10:35:38]CreateOFDProtocolMessage done [10:35:38]OFDSenderStorePacket 156210 [10:35:38]StoreOFDPacket docnum=156210 [10:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7F 36 07 01 85 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FD C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 62 02 00 35 04 06 00 51 45 BF 02 C9 03 49 5B 9E FC C6 27 13 52 [10:35:38]CheckFolder [10:35:38]dirname=/storage/ofd_packets [10:35:38]CheckFolder done [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00156210 [10:35:38]NVStorageSaveData ofd_packets/00156210 [10:35:38]File name is /storage/ofd_packets/00156210 [10:35:38]Write 301 bytes [10:35:38]NVStorageSaveData done [10:35:38]OFDSenderStorePacket done [10:35:38]KKMCreateOFDPacket done [10:35:38]NVStorageSaveData kkm_last_timestamp [10:35:38]File name is /storage/kkm_last_timestamp [10:35:38]Write 4 bytes [10:35:38]NVStorageSaveData done [10:35:38]ExternCall_PrintAddStr [10:35:38]wPrintStart [10:35:38]Write to MH i2c: 01 00 00 FA 26 20 [10:35:38]OFD Sender: Processing packet 156210 [packets to send 31, broken 30] [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00156210 [10:35:38]OFD Sender: To server: pG, [10:35:38]CommunicateWithHost lk.salyk.kg:30040 [10:35:38]ConnectInit lk.salyk.kg [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 FA 26 00 00 00 00 00 FF 0F 35 [10:35:38]RasterBufferAndPrint [10:35:38]line Счет N : (1)99025 [10:35:38]line ИНН: 02508201610067 [10:35:38]line Контрольно-Кассовый Чек [10:35:38]line ПРОДАЖА [10:35:38]line ТРК (МРК, ГНК) : 31 [10:35:38]line Товар: 2710124130 [10:35:38]line Аи-92-К-5 [10:35:38]line 5.980 * 66.90 [10:35:38]line = 400.06 [10:35:38]line НДС 12% НСП 1% [10:35:38]line > о реализуемом товаре [10:35:38]line ОКРУГЛЕНИЕ: -0.06 [10:35:38]line ИТОГО: 400.00 [10:35:38]line Внесено: 400.00 [10:35:38]line СДАЧА: 0.00 [10:35:38]line НСП 1% : 3.54 [10:35:38]line НДС 12% : 42.48 [10:35:38]line Наличными: 400.00 [10:35:38]line Безнал.: 0.00 [10:35:38]line Место: АЗС № 143 "Партнер Нефть" [10:35:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:35:38]line СНО: Общий режим [10:35:38]line Чек 111 26.10.2024 10:35 [10:35:38]line Смена: 536 ФФД: 1.0 [10:35:38]line ЗНМ: 0300000096 [10:35:38]line РНМ: 0000000000091693 [10:35:38]line Версия ККМ: 001 [10:35:38]line ФМ: 0000000000871792 [10:35:38]line ФД: 156210 [10:35:38]line ФПД: 89359999224067 [10:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103541&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156210&fm=89359999224067&tin=02508201610067®Number=0000000000091693&sum=40000 [10:35:39]Connected sock=11 [10:35:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7F 36 07 01 85 3D written 0, free lines is 4095 [10:35:39]5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FD C5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 62 02 00 35 04 06 00 51 45 BF 02 C9 03 49 5B 9E FC C6 27 13 52 [10:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C2 E4 47 00 2A 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 62 02 00 F4 03 04 00 6F 6B 1C 67 B6 04 01 00 00 FF 72 D8 9A AB 24 7F 33 [10:35:39]CommunicateWithHost err = 0 [10:35:39]CheckOFDResponse [10:35:39]1017 (14) - 77093643461234 [10:35:39]1041 (16) - 0000000000871792 [10:35:39]1040 (4) - 156210 [10:35:39]1012 (4) - 26.10.2024 04:09 [10:35:39]1206 (1) - 0 [10:35:39]OFD Sender: Remove packet 156210 [10:35:39]ProducePacketName [10:35:39]name=ofd_packets/00156210 [10:35:39]NVStorageDeleteData [10:35:39]Write to MH i2c: 01 00 00 25 27 4C [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 07 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 07 00 25 27 00 00 00 00 00 EB 0C 4A [10:35:39]RasterBufferAndPrint [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]written 0, free lines is 3313 [10:35:39]process_action close_receipt done [10:35:39]requested_data is exist [10:35:39]produce_requested_data [10:35:39]requested_item fm.sn is exist - process it [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 11 00 00 [10:35:39]Write to MH i2c: E2 08 00 2C 27 80 11 00 00 00 00 00 00 CD [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:39]Read from MH i2c: E2 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 17 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 17 00 2C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 22 [10:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:35:39]wFMCommunicate OK [10:35:39]requested_item fd.num is exist - process it [10:35:39]SAM_PROTO_GetFieldsCounters [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 13 00 00 [10:35:39]Write to MH i2c: E2 08 00 2D 27 80 13 00 00 00 00 00 00 D0 [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:39]Read from MH i2c: E2 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 62 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 62 00 2D 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 32 62 02 00 0E 04 04 00 18 02 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 F3 [10:35: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 32 62 02 00 0E 04 04 00 18 02 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 [10:35:39]wFMCommunicate OK [10:35:39]SAM_PROTO_GetFieldsCounters done [10:35:39]requested_item shift.num is exist - process it [10:35:39]requested_item shift.opened is exist - process it [10:35:39]req_shift_opened [10:35:39]FM_GetShiftState [10:35:39]SAM_PROTO_GetShiftState [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 13 01 00 [10:35:39]Write to MH i2c: E2 08 00 2E 27 80 13 01 00 00 00 00 00 D2 [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]OFD Sender: No OFD packet to send [10:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 2E 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 07 [10:35:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:35:40]wFMCommunicate OK [10:35:40]SAM_PROTO_GetShiftState done [10:35:40]FM_GetShiftState done [10:35:40]req_shift_opened done [10:35:40]requested_item shift.open_date is exist - process it [10:35:40]req_shift_open_date [10:35:40]req_shift_open_date done [10:35:40]produce_requested_data done [10:35:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156210,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:35:40]process_action_free close_receipt [10:35:40]json_value_free [10:35:40]json_value_free done [10:35:40]process_json_proto returns [10:35:40]Send response to host [10:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156210,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:35:40]free response buf [10:35:40]execute_script done [10:35:40]execute_script returns [10:35:40]free content buf [10:35:40]Sock 7.Close socket [10:35:40]Sock 7.Thread stoped [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:49]accept exits with 9 [10:37:49]New connection [10:37:49]New thread 3066469732 created [10:37:49]Thread 3066613092 joined [10:37:49]Waiting for new connection... [10:37:49] Sock 9.Parse request [10:37:49]Sock 9.Check first char [10:37:49]Sock 9.First char is OK [10:37:49]request: POST /json_proto HTTP/1.0 [10:37:49]Method: POST [10:37:49]URL: /json_proto [10:37:49]Method is POST - this is cgi request [10:37:49]url: /json_proto [10:37:49]query_string will be loaded in cgi processing [10:37:49]execute_cgi json_proto POST (null) [10:37:49]execute_cgi path=json_proto method=POST [10:37:49]POST find Content-Length [10:37:49]Host: 172.17.63.3:8080 [10:37:49]Content-Length: 678 [10:37:49]Content-Type: application/json [10:37:49] [10:37:49]POST finish read [10:37:49]Found Content-Length = 678 [10:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:49]execute_script... [10:37:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:49]POST & json_proto [10:37:49]process_json_proto [10:37:49]json parsed OK: [10:37:49]protocol is kg_v1.0 [10:37:49]action value=close_receipt [10:37:49]process_action close_receipt [10:37:49]cmd_close_receipt [10:37:49]MH_GetDate [10:37:49]Write to MH i2c: F0 00 00 2F 27 45 [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 09 00 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 09 00 2F 27 00 81 C6 1C 67 50 D1 6C 64 09 [10:37:49]GetLastDocTimeStamp 1729938941 [10:37:49]current date 1729939073 [10:37:49]FM_GetShiftState [10:37:49]SAM_PROTO_GetShiftState [10:37:49]wFMCommunicate request_size=4 [10:37:49]MH_SAM_APDU [10:37:49]CAPDU: 80 13 01 00 [10:37:49]Write to MH i2c: E2 08 00 30 27 80 13 01 00 00 00 00 00 D4 [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:49]Read from MH i2c: E2 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: E2 0E 00 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: E2 0E 00 30 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 09 [10:37:49]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:37:49]wFMCommunicate OK [10:37:49]SAM_PROTO_GetShiftState done [10:37:49]FM_GetShiftState done [10:37:49]opened in 1729902702 [10:37:49]opened+sec_in_day 1729989102 [10:37:49]quantity*price = 100050 [10:37:49]sum+1 = 100052 [10:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 112 26.10.2024 10:37 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156211 ФПД: 221167185197375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103753&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156211&fm=221167185197375&tin=02508201610067®Number=0000000000091693&sum=100000 [10:37:50]StoreToDocumentArchive [10:37:50]shift 536 fd 156211 [10:37:50]save to /storage/0536/doc_00156211 [10:37:50]save last doc name /storage/0536/doc_00156211 to /storage/kkm_last_doc_name [10:37:50]save OK [10:37:50]Clear old archive folders... [10:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:37:50]tlvbuf is 00D8A7F0 [10:37:50]SAM_PROTO_ClearQueue [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 09 00 00 [10:37:50]Write to MH i2c: E2 08 00 3D 27 80 09 00 00 00 00 00 00 D6 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_ClearQueue done [10:37:50]KKMCreateOFDPacket [10:37:50]OFDProtocolAddRootSTLVToBuf [10:37:50]FM_MakeSignedData [10:37:50]FM_MakeSignedData [10:37:50]SAM_PROTO_SignData [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 01 02 [10:37:50]Write to MH i2c: E2 08 00 3E 27 80 0D 01 02 00 00 00 00 DE [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 3E 27 00 90 00 D9 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=255 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 81 C6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 62 02 00 35 04 06 00 C9 26 7F 82 [10:37:50]Write to MH i2c: E2 02 01 3F 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 81 C6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 62 02 00 35 04 06 00 C9 26 7F 82 00 00 43 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:51]Read from MH i2c: E2 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 03 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [10:37:51]RAPDU: 90 00 [10:37:51]wFMCommunicate OK [10:37:51]wFMCommunicate request_size=7 [10:37:51]MH_SAM_APDU [10:37:51]CAPDU: 80 0D 02 02 02 79 3F [10:37:51]Write to MH i2c: E2 0A 00 40 27 80 0D 02 02 02 00 79 3F 00 00 9D [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:51]Read from MH i2c: E2 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 03 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 03 00 40 27 00 90 00 DB [10:37:51]RAPDU: 90 00 [10:37:51]wFMCommunicate OK [10:37:51]wFMCommunicate request_size=4 [10:37:51]MH_SAM_APDU [10:37:51]CAPDU: 80 0D 03 02 [10:37:51]Write to MH i2c: E2 08 00 41 27 80 0D 03 02 00 00 00 00 E3 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:51]Read from MH i2c: E2 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 0B 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 0B 00 41 27 00 AB 0C ED 6F 70 65 21 94 90 00 81 [10:37:51]RAPDU: AB 0C ED 6F 70 65 21 94 90 00 [10:37:51]wFMCommunicate OK [10:37:51]SAM_PROTO_SignData done [10:37:51]FM_MakeSignedData done [10:37:51]CreateOFDProtocolMessage [10:37:51]wFMCommunicate request_size=4 [10:37:51]MH_SAM_APDU [10:37:51]CAPDU: 80 11 00 00 [10:37:51]Write to MH i2c: E2 08 00 42 27 80 11 00 00 00 00 00 00 E3 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:51]Read from MH i2c: E2 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 17 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 17 00 42 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 38 [10:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:37:51]wFMCommunicate OK [10:37:51]CreateOFDProtocolMessage done [10:37:51]OFDSenderStorePacket 156211 [10:37:51]StoreOFDPacket docnum=156211 [10:37:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9F E3 04 01 BD 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 81 C6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 62 02 00 35 04 06 00 C9 26 7F 82 79 3F AB 0C ED 6F 70 65 21 94 [10:37:51]CheckFolder [10:37:51]dirname=/storage/ofd_packets [10:37:51]CheckFolder done [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00156211 [10:37:51]NVStorageSaveData ofd_packets/00156211 [10:37:51]File name is /storage/ofd_packets/00156211 [10:37:51]Write 298 bytes [10:37:51]NVStorageSaveData done [10:37:51]OFDSenderStorePacket done [10:37:51]KKMCreateOFDPacket done [10:37:51]NVStorageSaveData kkm_last_timestamp [10:37:51]File name is /storage/kkm_last_timestamp [10:37:51]OFD Sender: Processing packet 156211 [packets to send 31, broken 30] [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00156211 [10:37:51]OFD Sender: To server: pG, [10:37:51]CommunicateWithHost lk.salyk.kg:30040 [10:37:51]ConnectInit lk.salyk.kg [10:37:51]Write 4 bytes [10:37:51]NVStorageSaveData done [10:37:51]ExternCall_PrintAddStr [10:37:51]wPrintStart [10:37:51]Write to MH i2c: 01 00 00 43 27 6A [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 43 27 00 00 00 00 00 FF 0F 7F [10:37:51]RasterBufferAndPrint [10:37:51]line Счет N : (1)99026 [10:37:51]line ИНН: 02508201610067 [10:37:51]line Контрольно-Кассовый Чек [10:37:51]line ПРОДАЖА [10:37:51]line ТРК (МРК, ГНК) : 32 [10:37:51]line Товар: 2710194210 [10:37:51]line ДТ-К-5 [10:37:51]line 13.130 * 76.20 [10:37:51]line = 1000.51 [10:37:51]line НДС 12% НСП 1% [10:37:51]line > о реализуемом товаре [10:37:51]line ОКРУГЛЕНИЕ: -0.51 [10:37:51]line ИТОГО: 1000.00 [10:37:51]line Внесено: 1000.00 [10:37:51]line СДАЧА: 0.00 [10:37:51]line НСП 1% : 8.85 [10:37:51]line НДС 12% : 106.25 [10:37:51]line Наличными: 1000.00 [10:37:51]line Безнал.: 0.00 [10:37:51]line Место: АЗС № 143 "Партнер Нефть" [10:37:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:37:51]line СНО: Общий режим [10:37:51]line Чек 112 26.10.2024 10:37 [10:37:51]line Смена: 536 ФФД: 1.0 [10:37:51]line ЗНМ: 0300000096 [10:37:51]line РНМ: 0000000000091693 [10:37:51]line Версия ККМ: 001 [10:37:51]line ФМ: 0000000000871792 [10:37:51]line ФД: 156211 [10:37:51]line ФПД: 221167185197375 [10:37:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103753&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156211&fm=221167185197375&tin=02508201610067®Number=0000000000091693&sum=100000 [10:37:51]Connected sock=11 [10:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9F E3 04 01 BD 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 81 C6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 62 02 00 35 04 06 00 C9 26 7F 82 79 3F AB 0C ED 6F 70 65 21 94 [10:37:51]written 0, free lines is 4095 [10:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 62 D1 47 00 DA 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 31 37 39 32 10 04 04 00 33 62 02 00 F4 03 04 00 F4 6B 1C 67 B6 04 01 00 00 BF EB E1 26 19 44 53 16 [10:37:51]CommunicateWithHost err = 0 [10:37:51]CheckOFDResponse [10:37:51]1017 (14) - 77093643461234 [10:37:51]1041 (16) - 0000000000871792 [10:37:51]1040 (4) - 156211 [10:37:51]1012 (4) - 26.10.2024 04:11 [10:37:51]1206 (1) - 0 [10:37:51]OFD Sender: Remove packet 156211 [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00156211 [10:37:51]NVStorageDeleteData [10:37:52]Write to MH i2c: 01 00 00 6E 27 95 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: 01 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: 01 07 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 E2 0C 8A [10:37:52]RasterBufferAndPrint [10:37:52]line [10:37:52]line [10:37:52]line [10:37:52]line [10:37:52]line [10:37:52]written 0, free lines is 3304 [10:37:52]process_action close_receipt done [10:37:52]requested_data is exist [10:37:52]produce_requested_data [10:37:52]requested_item fm.sn is exist - process it [10:37:52]wFMCommunicate request_size=4 [10:37:52]MH_SAM_APDU [10:37:52]CAPDU: 80 11 00 00 [10:37:52]Write to MH i2c: E2 08 00 75 27 80 11 00 00 00 00 00 00 16 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:52]Read from MH i2c: E2 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 17 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 17 00 75 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6B [10:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:37:52]wFMCommunicate OK [10:37:52]requested_item fd.num is exist - process it [10:37:52]SAM_PROTO_GetFieldsCounters [10:37:52]wFMCommunicate request_size=4 [10:37:52]MH_SAM_APDU [10:37:52]CAPDU: 80 13 00 00 [10:37:52]Write to MH i2c: E2 08 00 76 27 80 13 00 00 00 00 00 00 19 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:52]Read from MH i2c: E2 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 62 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 62 00 76 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 33 62 02 00 0E 04 04 00 18 02 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 40 [10:37: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 33 62 02 00 0E 04 04 00 18 02 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 [10:37:52]wFMCommunicate OK [10:37:52]SAM_PROTO_GetFieldsCounters done [10:37:52]requested_item shift.num is exist - process it [10:37:52]requested_item shift.opened is exist - process it [10:37:52]req_shift_opened [10:37:52]FM_GetShiftState [10:37:52]SAM_PROTO_GetShiftState [10:37:52]wFMCommunicate request_size=4 [10:37:52]MH_SAM_APDU [10:37:52]CAPDU: 80 13 01 00 [10:37:52]Write to MH i2c: E2 08 00 77 27 80 13 01 00 00 00 00 00 1B [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:52]OFD Sender: No OFD packet to send [10:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:52]Read from MH i2c: E2 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 0E 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 0E 00 77 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [10:37:52]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:37:52]wFMCommunicate OK [10:37:52]SAM_PROTO_GetShiftState done [10:37:52]FM_GetShiftState done [10:37:52]req_shift_opened done [10:37:52]requested_item shift.open_date is exist - process it [10:37:52]req_shift_open_date [10:37:52]req_shift_open_date done [10:37:52]produce_requested_data done [10:37:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156211,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:37:52]process_action_free close_receipt [10:37:52]json_value_free [10:37:52]json_value_free done [10:37:52]process_json_proto returns [10:37:52]Send response to host [10:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156211,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:37:52]free response buf [10:37:52]execute_script done [10:37:52]execute_script returns [10:37:52]free content buf [10:37:52]Sock 9.Close socket [10:37:52]Sock 9.Thread stoped [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:22]accept exits with 7 [10:39:22]New connection [10:39:22]New thread 3066613092 created [10:39:22]Thread 3066469732 joined [10:39:22]Waiting for new connection... [10:39:22] Sock 7.Parse request [10:39:22]Sock 7.Check first char [10:39:22]Sock 7.First char is OK [10:39:22]request: POST /json_proto HTTP/1.0 [10:39:22]Method: POST [10:39:22]URL: /json_proto [10:39:22]Method is POST - this is cgi request [10:39:22]url: /json_proto [10:39:22]query_string will be loaded in cgi processing [10:39:22]execute_cgi json_proto POST (null) [10:39:22]execute_cgi path=json_proto method=POST [10:39:22]POST find Content-Length [10:39:22]Host: 172.17.63.3:8080 [10:39:22]Content-Length: 676 [10:39:22]Content-Type: application/json [10:39:22] [10:39:22]POST finish read [10:39:22]Found Content-Length = 676 [10:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:22]execute_script... [10:39:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:22]POST & json_proto [10:39:22]process_json_proto [10:39:22]json parsed OK: [10:39:22]protocol is kg_v1.0 [10:39:22]action value=close_receipt [10:39:22]process_action close_receipt [10:39:22]cmd_close_receipt [10:39:22]MH_GetDate [10:39:22]Write to MH i2c: F0 00 00 78 27 8E [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 09 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 09 00 78 27 00 DE C6 1C 67 50 D1 6C 64 AF [10:39:22]GetLastDocTimeStamp 1729939073 [10:39:22]current date 1729939166 [10:39:22]FM_GetShiftState [10:39:22]SAM_PROTO_GetShiftState [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 13 01 00 [10:39:22]Write to MH i2c: E2 08 00 79 27 80 13 01 00 00 00 00 00 1D [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:22]Read from MH i2c: E2 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 0E 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 0E 00 79 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 52 [10:39:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:39:22]wFMCommunicate OK [10:39:22]SAM_PROTO_GetShiftState done [10:39:22]FM_GetShiftState done [10:39:22]opened in 1729902702 [10:39:22]opened+sec_in_day 1729989102 [10:39:22]quantity*price = 40006 [10:39:22]sum+1 = 40007 [10:39:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 113 26.10.2024 10:39 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156212 ФПД: 252723523225765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103926&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156212&fm=252723523225765&tin=02508201610067®Number=0000000000091693&sum=40000 [10:39:23]StoreToDocumentArchive [10:39:23]shift 536 fd 156212 [10:39:23]save to /storage/0536/doc_00156212 [10:39:23]save last doc name /storage/0536/doc_00156212 to /storage/kkm_last_doc_name [10:39:23]save OK [10:39:23]Clear old archive folders... [10:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:23]tlvbuf is 00DC0970 [10:39:23]SAM_PROTO_ClearQueue [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 09 00 00 [10:39:23]Write to MH i2c: E2 08 00 86 27 80 09 00 00 00 00 00 00 1F [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 86 27 00 90 00 21 [10:39:23]RAPDU: 90 00 [10:39:23]wFMCommunicate OK [10:39:23]SAM_PROTO_ClearQueue done [10:39:23]KKMCreateOFDPacket [10:39:23]OFDProtocolAddRootSTLVToBuf [10:39:23]FM_MakeSignedData [10:39:23]FM_MakeSignedData [10:39:23]SAM_PROTO_SignData [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 0D 01 02 [10:39:23]Write to MH i2c: E2 08 00 87 27 80 0D 01 02 00 00 00 00 27 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 87 27 00 90 00 22 [10:39:23]RAPDU: 90 00 [10:39:23]wFMCommunicate OK [10:39:23]wFMCommunicate request_size=255 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DE C6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 62 02 00 35 04 06 00 E5 [10:39:23]Write to MH i2c: E2 02 01 88 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DE C6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 62 02 00 35 04 06 00 E5 00 00 B9 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 88 27 00 90 00 23 [10:39:23]RAPDU: 90 00 [10:39:23]wFMCommunicate OK [10:39:23]wFMCommunicate request_size=10 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 0D 02 02 05 D9 C7 D4 08 A5 [10:39:23]Write to MH i2c: E2 0D 00 89 27 80 0D 02 02 05 00 D9 C7 D4 08 A5 00 00 55 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 89 27 00 90 00 24 [10:39:23]RAPDU: 90 00 [10:39:23]wFMCommunicate OK [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 0D 03 02 [10:39:23]Write to MH i2c: E2 08 00 8A 27 80 0D 03 02 00 00 00 00 2C [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0B 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0B 00 8A 27 00 B9 AE 71 55 44 F7 99 FC 90 00 2A [10:39:24]RAPDU: B9 AE 71 55 44 F7 99 FC 90 00 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_SignData done [10:39:24]FM_MakeSignedData done [10:39:24]CreateOFDProtocolMessage [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 11 00 00 [10:39:24]Write to MH i2c: E2 08 00 8B 27 80 11 00 00 00 00 00 00 2C [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 17 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 17 00 8B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 81 [10:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:39:24]wFMCommunicate OK [10:39:24]CreateOFDProtocolMessage done [10:39:24]OFDSenderStorePacket 156212 [10:39:24]StoreOFDPacket docnum=156212 [10:39:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 E1 07 01 9F 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DE C6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 62 02 00 35 04 06 00 E5 D9 C7 D4 08 A5 B9 AE 71 55 44 F7 99 FC [10:39:24]CheckFolder [10:39:24]dirname=/storage/ofd_packets [10:39:24]CheckFolder done [10:39:24]ProducePacketName [10:39:24]name=ofd_packets/00156212 [10:39:24]NVStorageSaveData ofd_packets/00156212 [10:39:24]File name is /storage/ofd_packets/00156212 [10:39:24]Write 301 bytes [10:39:24]NVStorageSaveData done [10:39:24]OFDSenderStorePacket done [10:39:24]KKMCreateOFDPacket done [10:39:24]NVStorageSaveData kkm_last_timestamp [10:39:24]File name is /storage/kkm_last_timestamp [10:39:24]Write 4 bytes [10:39:24]NVStorageSaveData done [10:39:24]ExternCall_PrintAddStr [10:39:24]wPrintStart [10:39:24]Write to MH i2c: 01 00 00 8C 27 B3 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 8C 27 00 00 00 00 00 FF 0F C8 [10:39:24]RasterBufferAndPrint [10:39:24]line Счет N : (1)99027 [10:39:24]line ИНН: 02508201610067 [10:39:24]line Контрольно-Кассовый Чек [10:39:24]line ПРОДАЖА [10:39:24]line ТРК (МРК, ГНК) : 21 [10:39:24]line Товар: 2710124130 [10:39:24]line Аи-92-К-5 [10:39:24]line 5.980 * 66.90 [10:39:24]line = 400.06 [10:39:24]line НДС 12% НСП 1% [10:39:24]line > о реализуемом товаре [10:39:24]line ОКРУГЛЕНИЕ: -0.06 [10:39:24]line ИТОГО: 400.00 [10:39:24]line Внесено: 400.00 [10:39:24]line СДАЧА: 0.00 [10:39:24]line НСП 1% : 3.54 [10:39:24]line НДС 12% : 42.48 [10:39:24]line Наличными: 400.00 [10:39:24]line Безнал.: 0.00 [10:39:24]line Место: АЗС № 143 "Партнер Нефть" [10:39:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:39:24]line СНО: Общий режим [10:39:24]line Чек 113 26.10.2024 10:39 [10:39:24]line Смена: 536 ФФД: 1.0 [10:39:24]line ЗНМ: 0300000096 [10:39:24]line РНМ: 0000000000091693 [10:39:24]line Версия ККМ: 001 [10:39:24]line ФМ: 0000000000871792 [10:39:24]line ФД: 156212 [10:39:24]line ФПД: 252723523225765 [10:39:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103926&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156212&fm=252723523225765&tin=02508201610067®Number=0000000000091693&sum=40000 [10:39:24]written 0, free lines is 4095 [10:39:24]OFD Sender: Processing packet 156212 [packets to send 31, broken 30] [10:39:24]ProducePacketName [10:39:24]name=ofd_packets/00156212 [10:39:24]OFD Sender: To server: pG, [10:39:24]CommunicateWithHost lk.salyk.kg:30040 [10:39:24]ConnectInit lk.salyk.kg [10:39:24]Connected sock=10 [10:39:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 E1 07 01 9F 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DE C6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 62 02 00 35 04 06 00 E5 D9 C7 D4 08 A5 B9 AE 71 55 44 F7 99 FC [10:39:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C7 B1 47 00 28 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 62 02 00 F4 03 04 00 50 6C 1C 67 B6 04 01 00 00 FC C7 60 97 EE 0F 8D 35 [10:39:24]CommunicateWithHost err = 0 [10:39:24]CheckOFDResponse [10:39:24]1017 (14) - 77093643461234 [10:39:24]1041 (16) - 0000000000871792 [10:39:24]1040 (4) - 156212 [10:39:24]1012 (4) - 26.10.2024 04:13 [10:39:24]1206 (1) - 0 [10:39:24]OFD Sender: Remove packet 156212 [10:39:24]ProducePacketName [10:39:24]name=ofd_packets/00156212 [10:39:24]NVStorageDeleteData [10:39:24]Write to MH i2c: 01 00 00 B7 27 DE [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 B7 27 00 00 00 00 00 F7 0C E8 [10:39:24]RasterBufferAndPrint [10:39:24]line [10:39:24]line [10:39:24]line [10:39:24]line [10:39:24]line [10:39:24]written 0, free lines is 3330 [10:39:24]process_action close_receipt done [10:39:24]requested_data is exist [10:39:24]produce_requested_data [10:39:24]requested_item fm.sn is exist - process it [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 11 00 00 [10:39:24]Write to MH i2c: E2 08 00 BE 27 80 11 00 00 00 00 00 00 5F [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 17 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 17 00 BE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B4 [10:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:39:24]wFMCommunicate OK [10:39:24]requested_item fd.num is exist - process it [10:39:24]SAM_PROTO_GetFieldsCounters [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 13 00 00 [10:39:24]Write to MH i2c: E2 08 00 BF 27 80 13 00 00 00 00 00 00 62 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 62 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 62 00 BF 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 34 62 02 00 0E 04 04 00 18 02 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 8D [10:39: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 34 62 02 00 0E 04 04 00 18 02 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 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_GetFieldsCounters done [10:39:24]requested_item shift.num is exist - process it [10:39:24]requested_item shift.opened is exist - process it [10:39:24]req_shift_opened [10:39:24]FM_GetShiftState [10:39:24]SAM_PROTO_GetShiftState [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 13 01 00 [10:39:24]Write to MH i2c: E2 08 00 C0 27 80 13 01 00 00 00 00 00 64 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0E 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0E 00 C0 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 99 [10:39:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_GetShiftState done [10:39:24]FM_GetShiftState done [10:39:24]req_shift_opened done [10:39:24]requested_item shift.open_date is exist - process it [10:39:24]req_shift_open_date [10:39:24]req_shift_open_date done [10:39:24]produce_requested_data done [10:39:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156212,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:39:24]process_action_free close_receipt [10:39:24]json_value_free [10:39:24]json_value_free done [10:39:24]process_json_proto returns [10:39:24]Send response to host [10:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156212,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:39:24]free response buf [10:39:24]execute_script done [10:39:24]execute_script returns [10:39:24]free content buf [10:39:24]Sock 7.Close socket [10:39:24]Sock 7.Thread stoped [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:16]accept exits with 9 [10:40:16]New connection [10:40:16]New thread 3066469732 created [10:40:16]Thread 3066613092 joined [10:40:16]Waiting for new connection... [10:40:16] Sock 9.Parse request [10:40:16]Sock 9.Check first char [10:40:16]Sock 9.First char is OK [10:40:16]request: POST /json_proto HTTP/1.0 [10:40:16]Method: POST [10:40:16]URL: /json_proto [10:40:16]Method is POST - this is cgi request [10:40:16]url: /json_proto [10:40:16]query_string will be loaded in cgi processing [10:40:16]execute_cgi json_proto POST (null) [10:40:16]execute_cgi path=json_proto method=POST [10:40:16]POST find Content-Length [10:40:16]Host: 172.17.63.3:8080 [10:40:16]Content-Length: 765 [10:40:16]Content-Type: application/json [10:40:16] [10:40:16]POST finish read [10:40:16]Found Content-Length = 765 [10:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:16]execute_script... [10:40:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:16]POST & json_proto [10:40:16]process_json_proto [10:40:16]json parsed OK: [10:40:16]protocol is kg_v1.0 [10:40:16]action value=close_receipt [10:40:16]process_action close_receipt [10:40:16]cmd_close_receipt [10:40:16]MH_GetDate [10:40:16]Write to MH i2c: F0 00 00 C1 27 D7 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 09 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 09 00 C1 27 00 14 C7 1C 67 50 D1 6C 64 2F [10:40:16]GetLastDocTimeStamp 1729939166 [10:40:16]current date 1729939220 [10:40:16]FM_GetShiftState [10:40:16]SAM_PROTO_GetShiftState [10:40:16]wFMCommunicate request_size=4 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 13 01 00 [10:40:16]Write to MH i2c: E2 08 00 C2 27 80 13 01 00 00 00 00 00 66 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 0E 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 0E 00 C2 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9B [10:40:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:40:16]wFMCommunicate OK [10:40:16]SAM_PROTO_GetShiftState done [10:40:16]FM_GetShiftState done [10:40:16]opened in 1729902702 [10:40:16]opened+sec_in_day 1729989102 [10:40:16]quantity*price = 20003 [10:40:16]sum+1 = 20004 [10:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 114 26.10.2024 10:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156213 ФПД: 167892555538123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104020&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156213&fm=167892555538123&tin=02508201610067®Number=0000000000091693&sum=20003 [10:40:17]StoreToDocumentArchive [10:40:17]shift 536 fd 156213 [10:40:17]save to /storage/0536/doc_00156213 [10:40:17]save last doc name /storage/0536/doc_00156213 to /storage/kkm_last_doc_name [10:40:17]save OK [10:40:17]Clear old archive folders... [10:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:17]tlvbuf is 00DC09D0 [10:40:17]SAM_PROTO_ClearQueue [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 09 00 00 [10:40:17]Write to MH i2c: E2 08 00 CF 27 80 09 00 00 00 00 00 00 68 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 CF 27 00 90 00 6A [10:40:17]RAPDU: 90 00 [10:40:17]wFMCommunicate OK [10:40:17]SAM_PROTO_ClearQueue done [10:40:17]KKMCreateOFDPacket [10:40:17]OFDProtocolAddRootSTLVToBuf [10:40:17]FM_MakeSignedData [10:40:17]FM_MakeSignedData [10:40:17]SAM_PROTO_SignData [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 0D 01 02 [10:40:17]Write to MH i2c: E2 08 00 D0 27 80 0D 01 02 00 00 00 00 70 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 D0 27 00 90 00 6B [10:40:17]RAPDU: 90 00 [10:40:17]wFMCommunicate OK [10:40:17]wFMCommunicate request_size=255 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 14 C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 62 02 00 35 04 06 00 98 [10:40:17]Write to MH i2c: E2 02 01 D1 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 14 C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 62 02 00 35 04 06 00 98 00 00 E7 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 D1 27 00 90 00 6C [10:40:17]RAPDU: 90 00 [10:40:17]wFMCommunicate OK [10:40:17]wFMCommunicate request_size=10 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 0D 02 02 05 B2 88 22 1E CB [10:40:17]Write to MH i2c: E2 0D 00 D2 27 80 0D 02 02 05 00 B2 88 22 1E CB 00 00 C2 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 D2 27 00 90 00 6D [10:40:17]RAPDU: 90 00 [10:40:17]wFMCommunicate OK [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 0D 03 02 [10:40:17]Write to MH i2c: E2 08 00 D3 27 80 0D 03 02 00 00 00 00 75 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 0B 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 0B 00 D3 27 00 5A 61 F9 F4 09 9F 8B 80 90 00 D1 [10:40:17]RAPDU: 5A 61 F9 F4 09 9F 8B 80 90 00 [10:40:17]wFMCommunicate OK [10:40:17]SAM_PROTO_SignData done [10:40:17]FM_MakeSignedData done [10:40:17]CreateOFDProtocolMessage [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 11 00 00 [10:40:17]Write to MH i2c: E2 08 00 D4 27 80 11 00 00 00 00 00 00 75 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 D4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CA [10:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:40:18]wFMCommunicate OK [10:40:18]CreateOFDProtocolMessage done [10:40:18]OFDSenderStorePacket 156213 [10:40:18]StoreOFDPacket docnum=156213 [10:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C4 D7 07 01 6E 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 14 C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 62 02 00 35 04 06 00 98 B2 88 22 1E CB 5A 61 F9 F4 09 9F 8B 80 [10:40:18]CheckFolder [10:40:18]dirname=/storage/ofd_packets [10:40:18]CheckFolder done [10:40:18]ProducePacketName [10:40:18]name=ofd_packets/00156213 [10:40:18]NVStorageSaveData ofd_packets/00156213 [10:40:18]File name is /storage/ofd_packets/00156213 [10:40:18]Write 301 bytes [10:40:18]NVStorageSaveData done [10:40:18]OFDSenderStorePacket done [10:40:18]KKMCreateOFDPacket done [10:40:18]NVStorageSaveData kkm_last_timestamp [10:40:18]File name is /storage/kkm_last_timestamp [10:40:18]Write 4 bytes [10:40:18]NVStorageSaveData done [10:40:18]ExternCall_PrintAddStr [10:40:18]wPrintStart [10:40:18]Write to MH i2c: 01 00 00 D5 27 FC [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 D5 27 00 00 00 00 00 FF 0F 11 [10:40:18]RasterBufferAndPrint [10:40:18]line Счет N : (1)99028 [10:40:18]line ИНН: 02508201610067 [10:40:18]line Контрольно-Кассовый Чек [10:40:18]line ПРОДАЖА [10:40:18]line ТРК (МРК, ГНК) : 11 [10:40:18]line Товар: 2710124130 [10:40:18]line Аи-92-К-5 [10:40:18]line 2.990 * 66.90 [10:40:18]line = 200.03 [10:40:18]line НДС 12% НСП 1% [10:40:18]line > о реализуемом товаре [10:40:18]line ИТОГО: 200.03 [10:40:18]line НСП 1% : 1.77 [10:40:18]line НДС 12% : 21.24 [10:40:18]line Наличными: 0.00 [10:40:18]line Безнал.: 200.03 [10:40:18]line Место: АЗС № 143 "Партнер Нефть" [10:40:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:40:18]line СНО: Общий режим [10:40:18]line Чек 114 26.10.2024 10:40 [10:40:18]line Смена: 536 ФФД: 1.0 [10:40:18]line ЗНМ: 0300000096 [10:40:18]line РНМ: 0000000000091693 [10:40:18]line Версия ККМ: 001 [10:40:18]line Платежная система: Mbank [10:40:18]line ФМ: 0000000000871792 [10:40:18]line ФД: 156213 [10:40:18]line ФПД: 167892555538123 [10:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104020&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156213&fm=167892555538123&tin=02508201610067®Number=0000000000091693&sum=20003 [10:40:18]written 0, free lines is 4095 [10:40:18]OFD Sender: Processing packet 156213 [packets to send 31, broken 30] [10:40:18]ProducePacketName [10:40:18]name=ofd_packets/00156213 [10:40:18]OFD Sender: To server: pG, [10:40:18]CommunicateWithHost lk.salyk.kg:30040 [10:40:18]ConnectInit lk.salyk.kg [10:40:18]Connected sock=10 [10:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C4 D7 07 01 6E 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 14 C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 62 02 00 35 04 06 00 98 B2 88 22 1E CB 5A 61 F9 F4 09 9F 8B 80 [10:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 66 40 47 00 02 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 31 37 39 32 10 04 04 00 35 62 02 00 F4 03 04 00 86 6C 1C 67 B6 04 01 00 00 AA 8F 81 2E 5E 65 38 5B [10:40:18]CommunicateWithHost err = 0 [10:40:18]CheckOFDResponse [10:40:18]1017 (14) - 77093643461234 [10:40:18]1041 (16) - 0000000000871792 [10:40:18]1040 (4) - 156213 [10:40:18]1012 (4) - 26.10.2024 04:13 [10:40:18]1206 (1) - 0 [10:40:18]OFD Sender: Remove packet 156213 [10:40:18]ProducePacketName [10:40:18]name=ofd_packets/00156213 [10:40:18]NVStorageDeleteData [10:40:18]Write to MH i2c: 01 00 00 FE 27 25 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 FE 27 00 00 00 00 00 0C 0D 45 [10:40:18]RasterBufferAndPrint [10:40:18]line [10:40:18]line [10:40:18]line [10:40:18]line [10:40:18]line [10:40:18]written 0, free lines is 3350 [10:40:18]process_action close_receipt done [10:40:18]requested_data is exist [10:40:18]produce_requested_data [10:40:18]requested_item fm.sn is exist - process it [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 11 00 00 [10:40:18]Write to MH i2c: E2 08 00 05 28 80 11 00 00 00 00 00 00 A7 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 05 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FC [10:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:40:18]wFMCommunicate OK [10:40:18]requested_item fd.num is exist - process it [10:40:18]SAM_PROTO_GetFieldsCounters [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 13 00 00 [10:40:18]Write to MH i2c: E2 08 00 06 28 80 13 00 00 00 00 00 00 AA [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 62 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 62 00 06 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 35 62 02 00 0E 04 04 00 18 02 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 D9 [10:40: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 35 62 02 00 0E 04 04 00 18 02 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 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_GetFieldsCounters done [10:40:18]requested_item shift.num is exist - process it [10:40:18]requested_item shift.opened is exist - process it [10:40:18]req_shift_opened [10:40:18]FM_GetShiftState [10:40:18]SAM_PROTO_GetShiftState [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 13 01 00 [10:40:18]Write to MH i2c: E2 08 00 07 28 80 13 01 00 00 00 00 00 AC [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0E 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0E 00 07 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E1 [10:40:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_GetShiftState done [10:40:18]FM_GetShiftState done [10:40:18]req_shift_opened done [10:40:18]requested_item shift.open_date is exist - process it [10:40:18]req_shift_open_date [10:40:18]req_shift_open_date done [10:40:18]produce_requested_data done [10:40:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156213,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:40:18]process_action_free close_receipt [10:40:18]json_value_free [10:40:18]json_value_free done [10:40:18]process_json_proto returns [10:40:18]Send response to host [10:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156213,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:40:18]free response buf [10:40:18]execute_script done [10:40:18]execute_script returns [10:40:18]free content buf [10:40:18]Sock 9.Close socket [10:40:18]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:14]accept exits with 7 [10:42:14]New connection [10:42:14]New thread 3066613092 created [10:42:14]Thread 3066469732 joined [10:42:14]Waiting for new connection... [10:42:14] Sock 7.Parse request [10:42:14]Sock 7.Check first char [10:42:14]Sock 7.First char is OK [10:42:14]request: POST /json_proto HTTP/1.0 [10:42:14]Method: POST [10:42:14]URL: /json_proto [10:42:14]Method is POST - this is cgi request [10:42:14]url: /json_proto [10:42:14]query_string will be loaded in cgi processing [10:42:14]execute_cgi json_proto POST (null) [10:42:14]execute_cgi path=json_proto method=POST [10:42:14]POST find Content-Length [10:42:14]Host: 172.17.63.3:8080 [10:42:14]Content-Length: 676 [10:42:14]Content-Type: application/json [10:42:14] [10:42:14]POST finish read [10:42:14]Found Content-Length = 676 [10:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:14]execute_script... [10:42:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:14]POST & json_proto [10:42:14]process_json_proto [10:42:14]json parsed OK: [10:42:14]protocol is kg_v1.0 [10:42:14]action value=close_receipt [10:42:14]process_action close_receipt [10:42:14]cmd_close_receipt [10:42:14]MH_GetDate [10:42:14]Write to MH i2c: F0 00 00 08 28 1F [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: F0 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: F0 09 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: F0 09 00 08 28 00 8A C7 1C 67 50 D1 6C 64 ED [10:42:14]GetLastDocTimeStamp 1729939220 [10:42:14]current date 1729939338 [10:42:14]FM_GetShiftState [10:42:14]SAM_PROTO_GetShiftState [10:42:14]wFMCommunicate request_size=4 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 13 01 00 [10:42:14]Write to MH i2c: E2 08 00 09 28 80 13 01 00 00 00 00 00 AE [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 09 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E3 [10:42:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:42:15]wFMCommunicate OK [10:42:15]SAM_PROTO_GetShiftState done [10:42:15]FM_GetShiftState done [10:42:15]opened in 1729902702 [10:42:15]opened+sec_in_day 1729989102 [10:42:15]quantity*price = 50041 [10:42:15]sum+1 = 50042 [10:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 115 26.10.2024 10:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156214 ФПД: 20169966665072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104218&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156214&fm=20169966665072&tin=02508201610067®Number=0000000000091693&sum=50000 [10:42:16]StoreToDocumentArchive [10:42:16]shift 536 fd 156214 [10:42:16]save to /storage/0536/doc_00156214 [10:42:16]save last doc name /storage/0536/doc_00156214 to /storage/kkm_last_doc_name [10:42:16]save OK [10:42:16]Clear old archive folders... [10:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:16]tlvbuf is 00D1EA60 [10:42:16]SAM_PROTO_ClearQueue [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 09 00 00 [10:42:16]Write to MH i2c: E2 08 00 16 28 80 09 00 00 00 00 00 00 B0 [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 16 28 00 90 00 B2 [10:42:16]RAPDU: 90 00 [10:42:16]wFMCommunicate OK [10:42:16]SAM_PROTO_ClearQueue done [10:42:16]KKMCreateOFDPacket [10:42:16]OFDProtocolAddRootSTLVToBuf [10:42:16]FM_MakeSignedData [10:42:16]FM_MakeSignedData [10:42:16]SAM_PROTO_SignData [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 0D 01 02 [10:42:16]Write to MH i2c: E2 08 00 17 28 80 0D 01 02 00 00 00 00 B8 [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 17 28 00 90 00 B3 [10:42:16]RAPDU: 90 00 [10:42:16]wFMCommunicate OK [10:42:16]wFMCommunicate request_size=255 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 62 02 00 35 04 06 00 12 [10:42:16]Write to MH i2c: E2 02 01 18 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 62 02 00 35 04 06 00 12 00 00 59 [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 18 28 00 90 00 B4 [10:42:16]RAPDU: 90 00 [10:42:16]wFMCommunicate OK [10:42:16]wFMCommunicate request_size=10 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 0D 02 02 05 58 2F B2 BD 70 [10:42:16]Write to MH i2c: E2 0D 00 19 28 80 0D 02 02 05 00 58 2F B2 BD 70 00 00 2B [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 19 28 00 90 00 B5 [10:42:16]RAPDU: 90 00 [10:42:16]wFMCommunicate OK [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 0D 03 02 [10:42:16]Write to MH i2c: E2 08 00 1A 28 80 0D 03 02 00 00 00 00 BD [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 0B 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 0B 00 1A 28 00 28 1F 5A 74 7D BE B6 5A 90 00 1E [10:42:16]RAPDU: 28 1F 5A 74 7D BE B6 5A 90 00 [10:42:16]wFMCommunicate OK [10:42:16]SAM_PROTO_SignData done [10:42:16]FM_MakeSignedData done [10:42:16]CreateOFDProtocolMessage [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 11 00 00 [10:42:16]Write to MH i2c: E2 08 00 1B 28 80 11 00 00 00 00 00 00 BD [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 17 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 17 00 1B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 12 [10:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:42:16]wFMCommunicate OK [10:42:16]CreateOFDProtocolMessage done [10:42:16]OFDSenderStorePacket 156214 [10:42:16]StoreOFDPacket docnum=156214 [10:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E4 83 07 01 82 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8A C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 62 02 00 35 04 06 00 12 58 2F B2 BD 70 28 1F 5A 74 7D BE B6 5A [10:42:16]CheckFolder [10:42:16]dirname=/storage/ofd_packets [10:42:16]CheckFolder done [10:42:16]ProducePacketName [10:42:16]name=ofd_packets/00156214 [10:42:16]NVStorageSaveData ofd_packets/00156214 [10:42:16]File name is /storage/ofd_packets/00156214 [10:42:16]Write 301 bytes [10:42:16]NVStorageSaveData done [10:42:16]OFDSenderStorePacket done [10:42:16]KKMCreateOFDPacket done [10:42:16]NVStorageSaveData kkm_last_timestamp [10:42:16]File name is /storage/kkm_last_timestamp [10:42:16]Write 4 bytes [10:42:16]NVStorageSaveData done [10:42:16]ExternCall_PrintAddStr [10:42:16]wPrintStart [10:42:16]Write to MH i2c: 01 00 00 1C 28 44 [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: 01 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: 01 07 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: 01 07 00 1C 28 00 00 00 00 00 FF 0F 59 [10:42:16]RasterBufferAndPrint [10:42:16]line Счет N : (1)99030 [10:42:16]line ИНН: 02508201610067 [10:42:16]line Контрольно-Кассовый Чек [10:42:16]line ПРОДАЖА [10:42:16]line ТРК (МРК, ГНК) : 11 [10:42:16]line Товар: 2710124130 [10:42:16]line Аи-92-К-5 [10:42:16]line 7.480 * 66.90 [10:42:16]line = 500.41 [10:42:16]line НДС 12% НСП 1% [10:42:16]line > о реализуемом товаре [10:42:16]line ОКРУГЛЕНИЕ: -0.41 [10:42:16]line ИТОГО: 500.00 [10:42:16]line Внесено: 500.00 [10:42:16]line СДАЧА: 0.00 [10:42:16]line НСП 1% : 4.43 [10:42:16]line НДС 12% : 53.14 [10:42:16]line Наличными: 500.00 [10:42:16]line Безнал.: 0.00 [10:42:16]line Место: АЗС № 143 "Партнер Нефть" [10:42:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:42:16]line СНО: Общий режим [10:42:16]line Чек 115 26.10.2024 10:42 [10:42:16]line Смена: 536 ФФД: 1.0 [10:42:16]line ЗНМ: 0300000096 [10:42:16]line РНМ: 0000000000091693 [10:42:16]line Версия ККМ: 001 [10:42:16]line ФМ: 0000000000871792 [10:42:16]line ФД: 156214 [10:42:16]line ФПД: 20169966665072 [10:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104218&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156214&fm=20169966665072&tin=02508201610067®Number=0000000000091693&sum=50000 [10:42:17]OFD Sender: Processing packet 156214 [packets to send 31, broken 30] [10:42:17]ProducePacketName [10:42:17]name=ofd_packets/00156214 [10:42:17]OFD Sender: To server: pG, [10:42:17]CommunicateWithHost lk.salyk.kg:30040 [10:42:17]ConnectInit lk.salyk.kg [10:42:17]written 0, free lines is 4095 [10:42:17]Connected sock=11 [10:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E4 83 07 01 82 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8A C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 62 02 00 35 04 06 00 12 58 2F B2 BD 70 28 1F 5A 74 7D BE B6 5A [10:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 71 01 47 00 3E 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 62 02 00 F4 03 04 00 FD 6C 1C 67 B6 04 01 00 00 67 A6 5C 08 58 03 A1 43 [10:42:17]CommunicateWithHost err = 0 [10:42:17]CheckOFDResponse [10:42:17]1017 (14) - 77093643461234 [10:42:17]1041 (16) - 0000000000871792 [10:42:17]1040 (4) - 156214 [10:42:17]1012 (4) - 26.10.2024 04:15 [10:42:17]1206 (1) - 0 [10:42:17]OFD Sender: Remove packet 156214 [10:42:17]ProducePacketName [10:42:17]name=ofd_packets/00156214 [10:42:17]NVStorageDeleteData [10:42:17]Write to MH i2c: 01 00 00 47 28 6F [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 07 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 07 00 47 28 00 00 00 00 00 E9 0C 6B [10:42:17]RasterBufferAndPrint [10:42:17]line [10:42:17]line [10:42:17]line [10:42:17]line [10:42:17]line [10:42:17]written 0, free lines is 3311 [10:42:17]process_action close_receipt done [10:42:17]requested_data is exist [10:42:17]produce_requested_data [10:42:17]requested_item fm.sn is exist - process it [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 11 00 00 [10:42:17]Write to MH i2c: E2 08 00 4E 28 80 11 00 00 00 00 00 00 F0 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 17 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 17 00 4E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 45 [10:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:42:17]wFMCommunicate OK [10:42:17]requested_item fd.num is exist - process it [10:42:17]SAM_PROTO_GetFieldsCounters [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 13 00 00 [10:42:17]Write to MH i2c: E2 08 00 4F 28 80 13 00 00 00 00 00 00 F3 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 62 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 62 00 4F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 36 62 02 00 0E 04 04 00 18 02 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 26 [10:42:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 36 62 02 00 0E 04 04 00 18 02 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 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_GetFieldsCounters done [10:42:17]requested_item shift.num is exist - process it [10:42:17]requested_item shift.opened is exist - process it [10:42:17]req_shift_opened [10:42:17]FM_GetShiftState [10:42:17]SAM_PROTO_GetShiftState [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 13 01 00 [10:42:17]Write to MH i2c: E2 08 00 50 28 80 13 01 00 00 00 00 00 F5 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 0E 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 0E 00 50 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2A [10:42:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_GetShiftState done [10:42:17]FM_GetShiftState done [10:42:17]req_shift_opened done [10:42:17]requested_item shift.open_date is exist - process it [10:42:17]req_shift_open_date [10:42:17]req_shift_open_date done [10:42:17]produce_requested_data done [10:42:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156214,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:42:17]process_action_free close_receipt [10:42:17]json_value_free [10:42:17]json_value_free done [10:42:17]process_json_proto returns [10:42:17]Send response to host [10:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156214,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:42:17]free response buf [10:42:17]execute_script done [10:42:17]execute_script returns [10:42:17]free content buf [10:42:17]Sock 7.Close socket [10:42:17]Sock 7.Thread stoped [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:13]accept exits with 9 [10:43:13]New connection [10:43:13]New thread 3066469732 created [10:43:13]Thread 3066613092 joined [10:43:13]Waiting for new connection... [10:43:13] Sock 9.Parse request [10:43:13]Sock 9.Check first char [10:43:13]Sock 9.First char is OK [10:43:13]request: POST /json_proto HTTP/1.0 [10:43:13]Method: POST [10:43:13]URL: /json_proto [10:43:13]Method is POST - this is cgi request [10:43:13]url: /json_proto [10:43:13]query_string will be loaded in cgi processing [10:43:13]execute_cgi json_proto POST (null) [10:43:13]execute_cgi path=json_proto method=POST [10:43:13]POST find Content-Length [10:43:13]Host: 172.17.63.3:8080 [10:43:13]Content-Length: 681 [10:43:13]Content-Type: application/json [10:43:13] [10:43:13]POST finish read [10:43:13]Found Content-Length = 681 [10:43:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:13]execute_script... [10:43:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:13]POST & json_proto [10:43:13]process_json_proto [10:43:13]json parsed OK: [10:43:13]protocol is kg_v1.0 [10:43:13]action value=close_receipt [10:43:13]process_action close_receipt [10:43:13]cmd_close_receipt [10:43:13]MH_GetDate [10:43:13]Write to MH i2c: F0 00 00 51 28 68 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: F0 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: F0 09 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: F0 09 00 51 28 00 C5 C7 1C 67 50 D1 6C 64 71 [10:43:13]GetLastDocTimeStamp 1729939338 [10:43:13]current date 1729939397 [10:43:13]FM_GetShiftState [10:43:13]SAM_PROTO_GetShiftState [10:43:13]wFMCommunicate request_size=4 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 13 01 00 [10:43:13]Write to MH i2c: E2 08 00 52 28 80 13 01 00 00 00 00 00 F7 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0E 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0E 00 52 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2C [10:43:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:43:14]wFMCommunicate OK [10:43:14]SAM_PROTO_GetShiftState done [10:43:14]FM_GetShiftState done [10:43:14]opened in 1729902702 [10:43:14]opened+sec_in_day 1729989102 [10:43:14]quantity*price = 140021 [10:43:14]sum+1 = 140023 [10:43:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 116 26.10.2024 10:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156215 ФПД: 235237391061434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104317&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156215&fm=235237391061434&tin=02508201610067®Number=0000000000091693&sum=140000 [10:43:15]StoreToDocumentArchive [10:43:15]shift 536 fd 156215 [10:43:15]save to /storage/0536/doc_00156215 [10:43:15]save last doc name /storage/0536/doc_00156215 to /storage/kkm_last_doc_name [10:43:15]save OK [10:43:15]Clear old archive folders... [10:43:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:15]tlvbuf is 00D361A0 [10:43:15]SAM_PROTO_ClearQueue [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 09 00 00 [10:43:15]Write to MH i2c: E2 08 00 5F 28 80 09 00 00 00 00 00 00 F9 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]SAM_PROTO_ClearQueue done [10:43:15]KKMCreateOFDPacket [10:43:15]OFDProtocolAddRootSTLVToBuf [10:43:15]FM_MakeSignedData [10:43:15]FM_MakeSignedData [10:43:15]SAM_PROTO_SignData [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 01 02 [10:43:15]Write to MH i2c: E2 08 00 60 28 80 0D 01 02 00 00 00 00 01 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 60 28 00 90 00 FC [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]wFMCommunicate request_size=255 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C5 C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 62 02 00 35 04 06 00 D5 [10:43:15]Write to MH i2c: E2 02 01 61 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C5 C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 62 02 00 35 04 06 00 D5 00 00 B9 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 61 28 00 90 00 FD [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]wFMCommunicate request_size=10 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 02 02 05 F2 79 21 D1 BA [10:43:15]Write to MH i2c: E2 0D 00 62 28 80 0D 02 02 05 00 F2 79 21 D1 BA 00 00 25 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 62 28 00 90 00 FE [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 03 02 [10:43:15]Write to MH i2c: E2 08 00 63 28 80 0D 03 02 00 00 00 00 06 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0B 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0B 00 63 28 00 A2 20 4A E2 29 0A B6 A9 90 00 87 [10:43:15]RAPDU: A2 20 4A E2 29 0A B6 A9 90 00 [10:43:15]wFMCommunicate OK [10:43:15]SAM_PROTO_SignData done [10:43:15]FM_MakeSignedData done [10:43:15]CreateOFDProtocolMessage [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 11 00 00 [10:43:15]Write to MH i2c: E2 08 00 64 28 80 11 00 00 00 00 00 00 06 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 17 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 17 00 64 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5B [10:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:43:15]wFMCommunicate OK [10:43:15]CreateOFDProtocolMessage done [10:43:15]OFDSenderStorePacket 156215 [10:43:15]StoreOFDPacket docnum=156215 [10:43:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 2B 07 01 62 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C5 C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 62 02 00 35 04 06 00 D5 F2 79 21 D1 BA A2 20 4A E2 29 0A B6 A9 [10:43:15]CheckFolder [10:43:15]dirname=/storage/ofd_packets [10:43:15]CheckFolder done [10:43:15]ProducePacketName [10:43:15]name=ofd_packets/00156215 [10:43:15]NVStorageSaveData ofd_packets/00156215 [10:43:15]File name is /storage/ofd_packets/00156215 [10:43:15]Write 301 bytes [10:43:15]NVStorageSaveData done [10:43:15]OFDSenderStorePacket done [10:43:15]KKMCreateOFDPacket done [10:43:15]NVStorageSaveData kkm_last_timestamp [10:43:15]File name is /storage/kkm_last_timestamp [10:43:15]Write 4 bytes [10:43:15]NVStorageSaveData done [10:43:15]ExternCall_PrintAddStr [10:43:15]wPrintStart [10:43:15]Write to MH i2c: 01 00 00 65 28 8D [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 65 28 00 00 00 00 00 FF 0F A2 [10:43:15]RasterBufferAndPrint [10:43:15]line Счет N : (1)99029 [10:43:15]line ИНН: 02508201610067 [10:43:15]line Контрольно-Кассовый Чек [10:43:15]line ПРОДАЖА [10:43:15]line ТРК (МРК, ГНК) : 21 [10:43:15]line Товар: 2710124130 [10:43:15]line Аи-92-К-5 [10:43:15]line 20.930 * 66.90 [10:43:15]line = 1400.22 [10:43:15]line НДС 12% НСП 1% [10:43:15]line > о реализуемом товаре [10:43:15]line ОКРУГЛЕНИЕ: -0.22 [10:43:15]line ИТОГО: 1400.00 [10:43:15]line Внесено: 1400.00 [10:43:15]line СДАЧА: 0.00 [10:43:15]line НСП 1% : 12.39 [10:43:15]line НДС 12% : 148.70 [10:43:15]line Наличными: 1400.00 [10:43:15]line Безнал.: 0.00 [10:43:15]line Место: АЗС № 143 "Партнер Нефть" [10:43:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:43:15]line СНО: Общий режим [10:43:15]line Чек 116 26.10.2024 10:43 [10:43:15]line Смена: 536 ФФД: 1.0 [10:43:15]line ЗНМ: 0300000096 [10:43:15]line РНМ: 0000000000091693 [10:43:15]line Версия ККМ: 001 [10:43:15]line ФМ: 0000000000871792 [10:43:15]line ФД: 156215 [10:43:15]line ФПД: 235237391061434 [10:43:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104317&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156215&fm=235237391061434&tin=02508201610067®Number=0000000000091693&sum=140000 [10:43:15]OFD Sender: Processing packet 156215 [packets to send 31, broken 30] [10:43:15]ProducePacketName [10:43:15]name=ofd_packets/00156215 [10:43:15]OFD Sender: To server: pG, [10:43:15]CommunicateWithHost lk.salyk.kg:30040 [10:43:15]ConnectInit lk.salyk.kg [10:43:15]written 0, free lines is 4095 [10:43:16]Connected sock=10 [10:43:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 2B 07 01 62 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C5 C7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 62 02 00 35 04 06 00 D5 F2 79 21 D1 BA A2 20 4A E2 29 0A B6 A9 [10:43:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A6 7F 47 00 BC 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 31 37 39 32 10 04 04 00 37 62 02 00 F4 03 04 00 38 6D 1C 67 B6 04 01 00 00 08 8D C3 A8 0F D9 5A A1 [10:43:16]CommunicateWithHost err = 0 [10:43:16]CheckOFDResponse [10:43:16]1017 (14) - 77093643461234 [10:43:16]1041 (16) - 0000000000871792 [10:43:16]1040 (4) - 156215 [10:43:16]1012 (4) - 26.10.2024 04:16 [10:43:16]1206 (1) - 0 [10:43:16]OFD Sender: Remove packet 156215 [10:43:16]ProducePacketName [10:43:16]name=ofd_packets/00156215 [10:43:16]NVStorageDeleteData [10:43:16]Write to MH i2c: 01 00 00 90 28 B8 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 07 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 07 00 90 28 00 00 00 00 00 EF 0C BA [10:43:16]RasterBufferAndPrint [10:43:16]line [10:43:16]line [10:43:16]line [10:43:16]line [10:43:16]line [10:43:16]written 0, free lines is 3317 [10:43:16]process_action close_receipt done [10:43:16]requested_data is exist [10:43:16]produce_requested_data [10:43:16]requested_item fm.sn is exist - process it [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 11 00 00 [10:43:16]Write to MH i2c: E2 08 00 97 28 80 11 00 00 00 00 00 00 39 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 17 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 17 00 97 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8E [10:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:43:16]wFMCommunicate OK [10:43:16]requested_item fd.num is exist - process it [10:43:16]SAM_PROTO_GetFieldsCounters [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 13 00 00 [10:43:16]Write to MH i2c: E2 08 00 98 28 80 13 00 00 00 00 00 00 3C [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 62 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 62 00 98 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 37 62 02 00 0E 04 04 00 18 02 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 73 [10:43: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 37 62 02 00 0E 04 04 00 18 02 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 [10:43:16]wFMCommunicate OK [10:43:16]SAM_PROTO_GetFieldsCounters done [10:43:16]requested_item shift.num is exist - process it [10:43:16]requested_item shift.opened is exist - process it [10:43:16]req_shift_opened [10:43:16]FM_GetShiftState [10:43:16]SAM_PROTO_GetShiftState [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 13 01 00 [10:43:16]Write to MH i2c: E2 08 00 99 28 80 13 01 00 00 00 00 00 3E [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 0E 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 0E 00 99 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 73 [10:43:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:43:16]wFMCommunicate OK [10:43:16]SAM_PROTO_GetShiftState done [10:43:16]FM_GetShiftState done [10:43:16]req_shift_opened done [10:43:16]requested_item shift.open_date is exist - process it [10:43:16]req_shift_open_date [10:43:16]req_shift_open_date done [10:43:16]produce_requested_data done [10:43:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156215,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:43:16]process_action_free close_receipt [10:43:16]json_value_free [10:43:16]json_value_free done [10:43:16]process_json_proto returns [10:43:16]Send response to host [10:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156215,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:43:16]free response buf [10:43:16]execute_script done [10:43:16]execute_script returns [10:43:16]free content buf [10:43:16]Sock 9.Close socket [10:43:16]Sock 9.Thread stoped [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:06]accept exits with 7 [10:47:06]New connection [10:47:06]New thread 3066613092 created [10:47:06]Thread 3066469732 joined [10:47:06]Waiting for new connection... [10:47:06] Sock 7.Parse request [10:47:06]Sock 7.Check first char [10:47:06]Sock 7.First char is OK [10:47:06]request: POST /json_proto HTTP/1.0 [10:47:06]Method: POST [10:47:06]URL: /json_proto [10:47:06]Method is POST - this is cgi request [10:47:06]url: /json_proto [10:47:06]query_string will be loaded in cgi processing [10:47:06]execute_cgi json_proto POST (null) [10:47:06]execute_cgi path=json_proto method=POST [10:47:06]POST find Content-Length [10:47:06]Host: 172.17.63.3:8080 [10:47:06]Content-Length: 677 [10:47:06]Content-Type: application/json [10:47:06] [10:47:06]POST finish read [10:47:06]Found Content-Length = 677 [10:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:06]execute_script... [10:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:06]POST & json_proto [10:47:06]process_json_proto [10:47:06]json parsed OK: [10:47:06]protocol is kg_v1.0 [10:47:06]action value=close_receipt [10:47:06]process_action close_receipt [10:47:06]cmd_close_receipt [10:47:06]MH_GetDate [10:47:06]Write to MH i2c: F0 00 00 9A 28 B1 [10:47:06]Write i2c OK [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: F0 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: F0 09 00 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: F0 09 00 9A 28 00 AE C8 1C 67 50 D1 6C 64 A4 [10:47:06]GetLastDocTimeStamp 1729939397 [10:47:06]current date 1729939630 [10:47:06]FM_GetShiftState [10:47:06]SAM_PROTO_GetShiftState [10:47:06]wFMCommunicate request_size=4 [10:47:06]MH_SAM_APDU [10:47:06]CAPDU: 80 13 01 00 [10:47:06]Write to MH i2c: E2 08 00 9B 28 80 13 01 00 00 00 00 00 40 [10:47:06]Write i2c OK [10:47:06]MH_I2C_Read... [10:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:06]Read from MH i2c: E2 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 0E 00 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 0E 00 9B 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 75 [10:47:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:47:06]wFMCommunicate OK [10:47:06]SAM_PROTO_GetShiftState done [10:47:06]FM_GetShiftState done [10:47:06]opened in 1729902702 [10:47:06]opened+sec_in_day 1729989102 [10:47:06]quantity*price = 70044 [10:47:06]sum+1 = 70045 [10:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 117 26.10.2024 10:47 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156216 ФПД: 136003049655614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104710&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156216&fm=136003049655614&tin=02508201610067®Number=0000000000091693&sum=70000 [10:47:07]StoreToDocumentArchive [10:47:07]shift 536 fd 156216 [10:47:07]save to /storage/0536/doc_00156216 [10:47:07]save last doc name /storage/0536/doc_00156216 to /storage/kkm_last_doc_name [10:47:07]save OK [10:47:07]Clear old archive folders... [10:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:08]tlvbuf is 00DE5C30 [10:47:08]SAM_PROTO_ClearQueue [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 09 00 00 [10:47:08]Write to MH i2c: E2 08 00 A8 28 80 09 00 00 00 00 00 00 42 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]SAM_PROTO_ClearQueue done [10:47:08]KKMCreateOFDPacket [10:47:08]OFDProtocolAddRootSTLVToBuf [10:47:08]FM_MakeSignedData [10:47:08]FM_MakeSignedData [10:47:08]SAM_PROTO_SignData [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 01 02 [10:47:08]Write to MH i2c: E2 08 00 A9 28 80 0D 01 02 00 00 00 00 4A [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=255 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 AE C8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 62 02 00 35 04 06 00 7B [10:47:08]Write to MH i2c: E2 02 01 AA 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 AE C8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 62 02 00 35 04 06 00 7B 00 00 8D [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 AA 28 00 90 00 46 [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=10 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 02 02 05 B1 AD 76 8D 3E [10:47:08]Write to MH i2c: E2 0D 00 AB 28 80 0D 02 02 05 00 B1 AD 76 8D 3E 00 00 F6 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 AB 28 00 90 00 47 [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 03 02 [10:47:08]Write to MH i2c: E2 08 00 AC 28 80 0D 03 02 00 00 00 00 4F [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 0B 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 0B 00 AC 28 00 08 24 BB FE 3A 5A 06 1E 90 00 ED [10:47:08]RAPDU: 08 24 BB FE 3A 5A 06 1E 90 00 [10:47:08]wFMCommunicate OK [10:47:08]SAM_PROTO_SignData done [10:47:08]FM_MakeSignedData done [10:47:08]CreateOFDProtocolMessage [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 11 00 00 [10:47:08]Write to MH i2c: E2 08 00 AD 28 80 11 00 00 00 00 00 00 4F [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 17 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 17 00 AD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A4 [10:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:47:08]wFMCommunicate OK [10:47:08]CreateOFDProtocolMessage done [10:47:08]OFDSenderStorePacket 156216 [10:47:08]StoreOFDPacket docnum=156216 [10:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F DC 07 01 52 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 AE C8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 62 02 00 35 04 06 00 7B B1 AD 76 8D 3E 08 24 BB FE 3A 5A 06 1E [10:47:08]CheckFolder [10:47:08]dirname=/storage/ofd_packets [10:47:08]CheckFolder done [10:47:08]ProducePacketName [10:47:08]name=ofd_packets/00156216 [10:47:08]NVStorageSaveData ofd_packets/00156216 [10:47:08]File name is /storage/ofd_packets/00156216 [10:47:08]Write 301 bytes [10:47:08]NVStorageSaveData done [10:47:08]OFDSenderStorePacket done [10:47:08]KKMCreateOFDPacket done [10:47:08]NVStorageSaveData kkm_last_timestamp [10:47:08]File name is /storage/kkm_last_timestamp [10:47:08]Write 4 bytes [10:47:08]NVStorageSaveData done [10:47:08]ExternCall_PrintAddStr [10:47:08]wPrintStart [10:47:08]Write to MH i2c: 01 00 00 AE 28 D6 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 07 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 07 00 AE 28 00 00 00 00 00 FF 0F EB [10:47:08]RasterBufferAndPrint [10:47:08]line Счет N : (1)99031 [10:47:08]line ИНН: 02508201610067 [10:47:08]line Контрольно-Кассовый Чек [10:47:08]line ПРОДАЖА [10:47:08]line ТРК (МРК, ГНК) : 11 [10:47:08]line Товар: 2710124130 [10:47:08]line Аи-92-К-5 [10:47:08]line 10.470 * 66.90 [10:47:08]line = 700.44 [10:47:08]line НДС 12% НСП 1% [10:47:08]line > о реализуемом товаре [10:47:08]line ОКРУГЛЕНИЕ: -0.44 [10:47:08]line ИТОГО: 700.00 [10:47:08]line Внесено: 700.00 [10:47:08]line СДАЧА: 0.00 [10:47:08]line НСП 1% : 6.20 [10:47:08]line НДС 12% : 74.38 [10:47:08]line Наличными: 700.00 [10:47:08]line Безнал.: 0.00 [10:47:08]line Место: АЗС № 143 "Партнер Нефть" [10:47:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:47:08]line СНО: Общий режим [10:47:08]line Чек 117 26.10.2024 10:47 [10:47:08]line Смена: 536 ФФД: 1.0 [10:47:08]line ЗНМ: 0300000096 [10:47:08]line РНМ: 0000000000091693 [10:47:08]line Версия ККМ: 001 [10:47:08]line ФМ: 0000000000871792 [10:47:08]line ФД: 156216 [10:47:08]line ФПД: 136003049655614 [10:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104710&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156216&fm=136003049655614&tin=02508201610067®Number=0000000000091693&sum=70000 [10:47:08]OFD Sender: Processing packet 156216 [packets to send 31, broken 30] [10:47:08]ProducePacketName [10:47:08]name=ofd_packets/00156216 [10:47:08]OFD Sender: To server: pG, [10:47:08]CommunicateWithHost lk.salyk.kg:30040 [10:47:08]ConnectInit lk.salyk.kg [10:47:08]written 0, free lines is 4095 [10:47:08]Connected sock=10 [10:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F DC 07 01 52 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 AE C8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 62 02 00 35 04 06 00 7B B1 AD 76 8D 3E 08 24 BB FE 3A 5A 06 1E [10:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 93 7F 47 00 2D 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 62 02 00 F4 03 04 00 21 6E 1C 67 B6 04 01 00 00 18 86 D1 65 B8 79 91 7F [10:47:09]CommunicateWithHost err = 0 [10:47:09]CheckOFDResponse [10:47:09]1017 (14) - 77093643461234 [10:47:09]1041 (16) - 0000000000871792 [10:47:09]1040 (4) - 156216 [10:47:09]1012 (4) - 26.10.2024 04:20 [10:47:09]1206 (1) - 0 [10:47:09]OFD Sender: Remove packet 156216 [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00156216 [10:47:09]NVStorageDeleteData [10:47:09]Write to MH i2c: 01 00 00 D9 28 01 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 D9 28 00 00 00 00 00 D7 0C EB [10:47:09]RasterBufferAndPrint [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]written 0, free lines is 3294 [10:47:09]process_action close_receipt done [10:47:09]requested_data is exist [10:47:09]produce_requested_data [10:47:09]requested_item fm.sn is exist - process it [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 11 00 00 [10:47:09]Write to MH i2c: E2 08 00 E0 28 80 11 00 00 00 00 00 00 82 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 17 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 17 00 E0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [10:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:47:09]wFMCommunicate OK [10:47:09]requested_item fd.num is exist - process it [10:47:09]SAM_PROTO_GetFieldsCounters [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 13 00 00 [10:47:09]Write to MH i2c: E2 08 00 E1 28 80 13 00 00 00 00 00 00 85 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 62 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 62 00 E1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 38 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [10:47: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 38 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:09]wFMCommunicate OK [10:47:09]SAM_PROTO_GetFieldsCounters done [10:47:09]requested_item shift.num is exist - process it [10:47:09]requested_item shift.opened is exist - process it [10:47:09]req_shift_opened [10:47:09]FM_GetShiftState [10:47:09]SAM_PROTO_GetShiftState [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 13 01 00 [10:47:09]Write to MH i2c: E2 08 00 E2 28 80 13 01 00 00 00 00 00 87 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0E 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0E 00 E2 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BC [10:47:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:47:09]wFMCommunicate OK [10:47:09]SAM_PROTO_GetShiftState done [10:47:09]FM_GetShiftState done [10:47:09]req_shift_opened done [10:47:09]requested_item shift.open_date is exist - process it [10:47:09]req_shift_open_date [10:47:09]req_shift_open_date done [10:47:09]produce_requested_data done [10:47:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156216,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:47:09]process_action_free close_receipt [10:47:09]json_value_free [10:47:09]json_value_free done [10:47:09]process_json_proto returns [10:47:09]Send response to host [10:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156216,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:47:09]free response buf [10:47:09]execute_script done [10:47:09]execute_script returns [10:47:09]free content buf [10:47:09]Sock 7.Close socket [10:47:09]Sock 7.Thread stoped [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]accept exits with 9 [10:47:59]New connection [10:47:59]New thread 3066469732 created [10:47:59]Thread 3066613092 joined [10:47:59]Waiting for new connection... [10:47:59] Sock 9.Parse request [10:47:59]Sock 9.Check first char [10:47:59]Sock 9.First char is OK [10:47:59]request: POST /json_proto HTTP/1.0 [10:47:59]Method: POST [10:47:59]URL: /json_proto [10:47:59]Method is POST - this is cgi request [10:47:59]url: /json_proto [10:47:59]query_string will be loaded in cgi processing [10:47:59]execute_cgi json_proto POST (null) [10:47:59]execute_cgi path=json_proto method=POST [10:47:59]POST find Content-Length [10:47:59]Host: 172.17.63.3:8080 [10:47:59]Content-Length: 676 [10:47:59]Content-Type: application/json [10:47:59] [10:47:59]POST finish read [10:47:59]Found Content-Length = 676 [10:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:59]execute_script... [10:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:59]POST & json_proto [10:47:59]process_json_proto [10:47:59]json parsed OK: [10:47:59]protocol is kg_v1.0 [10:47:59]action value=close_receipt [10:47:59]process_action close_receipt [10:47:59]cmd_close_receipt [10:47:59]MH_GetDate [10:47:59]Write to MH i2c: F0 00 00 E3 28 FA [10:47:59]Write i2c OK [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: F0 [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: F0 09 00 [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: F0 09 00 E3 28 00 E3 C8 1C 67 50 D1 6C 64 22 [10:47:59]GetLastDocTimeStamp 1729939630 [10:47:59]current date 1729939683 [10:47:59]FM_GetShiftState [10:47:59]SAM_PROTO_GetShiftState [10:47:59]wFMCommunicate request_size=4 [10:47:59]MH_SAM_APDU [10:47:59]CAPDU: 80 13 01 00 [10:47:59]Write to MH i2c: E2 08 00 E4 28 80 13 01 00 00 00 00 00 89 [10:47:59]Write i2c OK [10:47:59]MH_I2C_Read... [10:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:59]Read from MH i2c: E2 [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: E2 0E 00 [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: E2 0E 00 E4 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BE [10:47:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:47:59]wFMCommunicate OK [10:47:59]SAM_PROTO_GetShiftState done [10:47:59]FM_GetShiftState done [10:47:59]opened in 1729902702 [10:47:59]opened+sec_in_day 1729989102 [10:47:59]quantity*price = 50041 [10:47:59]sum+1 = 50042 [10:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 118 26.10.2024 10:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156217 ФПД: 38980922517002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104803&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156217&fm=38980922517002&tin=02508201610067®Number=0000000000091693&sum=50000 [10:48:00]StoreToDocumentArchive [10:48:00]shift 536 fd 156217 [10:48:00]save to /storage/0536/doc_00156217 [10:48:00]save last doc name /storage/0536/doc_00156217 to /storage/kkm_last_doc_name [10:48:00]save OK [10:48:00]Clear old archive folders... [10:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:00]tlvbuf is 00D1E9E0 [10:48:00]SAM_PROTO_ClearQueue [10:48:00]wFMCommunicate request_size=4 [10:48:00]MH_SAM_APDU [10:48:00]CAPDU: 80 09 00 00 [10:48:00]Write to MH i2c: E2 08 00 F1 28 80 09 00 00 00 00 00 00 8B [10:48:00]Write i2c OK [10:48:00]MH_I2C_Read... [10:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:00]Read from MH i2c: E2 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 03 00 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [10:48:00]RAPDU: 90 00 [10:48:00]wFMCommunicate OK [10:48:00]SAM_PROTO_ClearQueue done [10:48:00]KKMCreateOFDPacket [10:48:00]OFDProtocolAddRootSTLVToBuf [10:48:00]FM_MakeSignedData [10:48:00]FM_MakeSignedData [10:48:00]SAM_PROTO_SignData [10:48:00]wFMCommunicate request_size=4 [10:48:00]MH_SAM_APDU [10:48:00]CAPDU: 80 0D 01 02 [10:48:00]Write to MH i2c: E2 08 00 F2 28 80 0D 01 02 00 00 00 00 93 [10:48:00]Write i2c OK [10:48:00]MH_I2C_Read... [10:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:00]Read from MH i2c: E2 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 03 00 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [10:48:00]RAPDU: 90 00 [10:48:00]wFMCommunicate OK [10:48:00]wFMCommunicate request_size=255 [10:48:00]MH_SAM_APDU [10:48:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E3 C8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 62 02 00 35 04 06 00 23 [10:48:00]Write to MH i2c: E2 02 01 F3 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E3 C8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 62 02 00 35 04 06 00 23 00 00 A5 [10:48:00]Write i2c OK [10:48:00]MH_I2C_Read... [10:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:00]Read from MH i2c: E2 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 03 00 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [10:48:00]RAPDU: 90 00 [10:48:00]wFMCommunicate OK [10:48:00]wFMCommunicate request_size=10 [10:48:00]MH_SAM_APDU [10:48:00]CAPDU: 80 0D 02 02 05 73 F4 0A 26 0A [10:48:00]Write to MH i2c: E2 0D 00 F4 28 80 0D 02 02 05 00 73 F4 0A 26 0A 00 00 41 [10:48:00]Write i2c OK [10:48:00]MH_I2C_Read... [10:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:00]Read from MH i2c: E2 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 03 00 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [10:48:00]RAPDU: 90 00 [10:48:00]wFMCommunicate OK [10:48:00]wFMCommunicate request_size=4 [10:48:00]MH_SAM_APDU [10:48:00]CAPDU: 80 0D 03 02 [10:48:00]Write to MH i2c: E2 08 00 F5 28 80 0D 03 02 00 00 00 00 98 [10:48:00]Write i2c OK [10:48:00]MH_I2C_Read... [10:48:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:01]Read from MH i2c: E2 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: E2 0B 00 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: E2 0B 00 F5 28 00 47 9D E1 6C 58 54 E4 19 90 00 73 [10:48:01]RAPDU: 47 9D E1 6C 58 54 E4 19 90 00 [10:48:01]wFMCommunicate OK [10:48:01]SAM_PROTO_SignData done [10:48:01]FM_MakeSignedData done [10:48:01]CreateOFDProtocolMessage [10:48:01]wFMCommunicate request_size=4 [10:48:01]MH_SAM_APDU [10:48:01]CAPDU: 80 11 00 00 [10:48:01]Write to MH i2c: E2 08 00 F6 28 80 11 00 00 00 00 00 00 98 [10:48:01]Write i2c OK [10:48:01]MH_I2C_Read... [10:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:01]Read from MH i2c: E2 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: E2 17 00 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: E2 17 00 F6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [10:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:48:01]wFMCommunicate OK [10:48:01]CreateOFDProtocolMessage done [10:48:01]OFDSenderStorePacket 156217 [10:48:01]StoreOFDPacket docnum=156217 [10:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 88 07 01 7A C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E3 C8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 62 02 00 35 04 06 00 23 73 F4 0A 26 0A 47 9D E1 6C 58 54 E4 19 [10:48:01]CheckFolder [10:48:01]dirname=/storage/ofd_packets [10:48:01]CheckFolder done [10:48:01]ProducePacketName [10:48:01]name=ofd_packets/00156217 [10:48:01]NVStorageSaveData ofd_packets/00156217 [10:48:01]File name is /storage/ofd_packets/00156217 [10:48:01]Write 301 bytes [10:48:01]NVStorageSaveData done [10:48:01]OFDSenderStorePacket done [10:48:01]KKMCreateOFDPacket done [10:48:01]NVStorageSaveData kkm_last_timestamp [10:48:01]File name is /storage/kkm_last_timestamp [10:48:01]Write 4 bytes [10:48:01]NVStorageSaveData done [10:48:01]ExternCall_PrintAddStr [10:48:01]wPrintStart [10:48:01]Write to MH i2c: 01 00 00 F7 28 1F [10:48:01]Write i2c OK [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: 01 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: 01 07 00 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 FF 0F 34 [10:48:01]RasterBufferAndPrint [10:48:01]line Счет N : (1)99032 [10:48:01]line ИНН: 02508201610067 [10:48:01]line Контрольно-Кассовый Чек [10:48:01]line ПРОДАЖА [10:48:01]line ТРК (МРК, ГНК) : 31 [10:48:01]line Товар: 2710124130 [10:48:01]line Аи-92-К-5 [10:48:01]line 7.480 * 66.90 [10:48:01]line = 500.41 [10:48:01]line НДС 12% НСП 1% [10:48:01]line > о реализуемом товаре [10:48:01]line ОКРУГЛЕНИЕ: -0.41 [10:48:01]line ИТОГО: 500.00 [10:48:01]line Внесено: 500.00 [10:48:01]line СДАЧА: 0.00 [10:48:01]line НСП 1% : 4.43 [10:48:01]line НДС 12% : 53.14 [10:48:01]line Наличными: 500.00 [10:48:01]line Безнал.: 0.00 [10:48:01]line Место: АЗС № 143 "Партнер Нефть" [10:48:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:48:01]line СНО: Общий режим [10:48:01]line Чек 118 26.10.2024 10:48 [10:48:01]line Смена: 536 ФФД: 1.0 [10:48:01]line ЗНМ: 0300000096 [10:48:01]line РНМ: 0000000000091693 [10:48:01]line Версия ККМ: 001 [10:48:01]line ФМ: 0000000000871792 [10:48:01]line ФД: 156217 [10:48:01]line ФПД: 38980922517002 [10:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104803&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156217&fm=38980922517002&tin=02508201610067®Number=0000000000091693&sum=50000 [10:48:01]OFD Sender: Processing packet 156217 [packets to send 31, broken 30] [10:48:01]ProducePacketName [10:48:01]name=ofd_packets/00156217 [10:48:01]OFD Sender: To server: pG, [10:48:01]CommunicateWithHost lk.salyk.kg:30040 [10:48:01]ConnectInit lk.salyk.kg [10:48:01]written 0, free lines is 4095 [10:48:01]Connected sock=10 [10:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 88 07 01 7A C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E3 C8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 62 02 00 35 04 06 00 23 73 F4 0A 26 0A 47 9D E1 6C 58 54 E4 19 [10:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B1 F4 47 00 85 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 31 37 39 32 10 04 04 00 39 62 02 00 F4 03 04 00 56 6E 1C 67 B6 04 01 00 00 34 ED 58 8E C1 8B 2D 8E [10:48:01]CommunicateWithHost err = 0 [10:48:01]CheckOFDResponse [10:48:01]1017 (14) - 77093643461234 [10:48:01]1041 (16) - 0000000000871792 [10:48:01]1040 (4) - 156217 [10:48:01]1012 (4) - 26.10.2024 04:21 [10:48:01]1206 (1) - 0 [10:48:01]OFD Sender: Remove packet 156217 [10:48:01]ProducePacketName [10:48:01]name=ofd_packets/00156217 [10:48:01]NVStorageDeleteData [10:48:01]Write to MH i2c: 01 00 00 22 29 4B [10:48:01]Write i2c OK [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: 01 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: 01 07 00 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 EB 0C 49 [10:48:01]RasterBufferAndPrint [10:48:01]line [10:48:01]line [10:48:01]line [10:48:01]line [10:48:01]line [10:48:01]written 0, free lines is 3313 [10:48:01]process_action close_receipt done [10:48:01]requested_data is exist [10:48:01]produce_requested_data [10:48:01]requested_item fm.sn is exist - process it [10:48:01]wFMCommunicate request_size=4 [10:48:01]MH_SAM_APDU [10:48:01]CAPDU: 80 11 00 00 [10:48:01]Write to MH i2c: E2 08 00 29 29 80 11 00 00 00 00 00 00 CC [10:48:01]Write i2c OK [10:48:01]MH_I2C_Read... [10:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:01]Read from MH i2c: E2 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: E2 17 00 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: E2 17 00 29 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 21 [10:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:48:01]wFMCommunicate OK [10:48:01]requested_item fd.num is exist - process it [10:48:01]SAM_PROTO_GetFieldsCounters [10:48:01]wFMCommunicate request_size=4 [10:48:01]MH_SAM_APDU [10:48:01]CAPDU: 80 13 00 00 [10:48:01]Write to MH i2c: E2 08 00 2A 29 80 13 00 00 00 00 00 00 CF [10:48:01]Write i2c OK [10:48:01]MH_I2C_Read... [10:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:02]Read from MH i2c: E2 [10:48:02]MH_I2C_Read... [10:48:02]Read from MH i2c: E2 62 00 [10:48:02]MH_I2C_Read... [10:48:02]Read from MH i2c: E2 62 00 2A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 39 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [10:48:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 39 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:02]wFMCommunicate OK [10:48:02]SAM_PROTO_GetFieldsCounters done [10:48:02]requested_item shift.num is exist - process it [10:48:02]requested_item shift.opened is exist - process it [10:48:02]req_shift_opened [10:48:02]FM_GetShiftState [10:48:02]SAM_PROTO_GetShiftState [10:48:02]wFMCommunicate request_size=4 [10:48:02]MH_SAM_APDU [10:48:02]CAPDU: 80 13 01 00 [10:48:02]Write to MH i2c: E2 08 00 2B 29 80 13 01 00 00 00 00 00 D1 [10:48:02]Write i2c OK [10:48:02]MH_I2C_Read... [10:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:02]Read from MH i2c: E2 [10:48:02]MH_I2C_Read... [10:48:02]Read from MH i2c: E2 0E 00 [10:48:02]MH_I2C_Read... [10:48:02]Read from MH i2c: E2 0E 00 2B 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 06 [10:48:02]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:48:02]wFMCommunicate OK [10:48:02]SAM_PROTO_GetShiftState done [10:48:02]FM_GetShiftState done [10:48:02]req_shift_opened done [10:48:02]requested_item shift.open_date is exist - process it [10:48:02]req_shift_open_date [10:48:02]req_shift_open_date done [10:48:02]produce_requested_data done [10:48:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156217,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:48:02]process_action_free close_receipt [10:48:02]json_value_free [10:48:02]json_value_free done [10:48:02]process_json_proto returns [10:48:02]Send response to host [10:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156217,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:48:02]free response buf [10:48:02]execute_script done [10:48:02]execute_script returns [10:48:02]free content buf [10:48:02]Sock 9.Close socket [10:48:02]Sock 9.Thread stoped [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:57:58]accept exits with 7 [10:57:58]New connection [10:57:58]New thread 3066613092 created [10:57:58]Thread 3066469732 joined [10:57:58]Waiting for new connection... [10:57:58] Sock 7.Parse request [10:57:58]Sock 7.Check first char [10:57:58]Sock 7.First char is OK [10:57:58]request: POST /json_proto HTTP/1.0 [10:57:58]Method: POST [10:57:58]URL: /json_proto [10:57:58]Method is POST - this is cgi request [10:57:58]url: /json_proto [10:57:58]query_string will be loaded in cgi processing [10:57:58]execute_cgi json_proto POST (null) [10:57:58]execute_cgi path=json_proto method=POST [10:57:58]POST find Content-Length [10:57:58]Host: 172.17.63.3:8080 [10:57:58]Content-Length: 677 [10:57:58]Content-Type: application/json [10:57:58] [10:57:58]POST finish read [10:57:58]Found Content-Length = 677 [10:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:58]execute_script... [10:57:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:58]POST & json_proto [10:57:58]process_json_proto [10:57:58]json parsed OK: [10:57:58]protocol is kg_v1.0 [10:57:58]action value=close_receipt [10:57:58]process_action close_receipt [10:57:58]cmd_close_receipt [10:57:58]MH_GetDate [10:57:58]Write to MH i2c: F0 00 00 2C 29 44 [10:57:58]Write i2c OK [10:57:58]MH_I2C_Read... [10:57:58]Read from MH i2c: F0 [10:57:58]MH_I2C_Read... [10:57:58]Read from MH i2c: F0 09 00 [10:57:58]MH_I2C_Read... [10:57:58]Read from MH i2c: F0 09 00 2C 29 00 3A CB 1C 67 50 D1 6C 64 C6 [10:57:58]GetLastDocTimeStamp 1729939683 [10:57:58]current date 1729940282 [10:57:58]FM_GetShiftState [10:57:58]SAM_PROTO_GetShiftState [10:57:58]wFMCommunicate request_size=4 [10:57:58]MH_SAM_APDU [10:57:58]CAPDU: 80 13 01 00 [10:57:58]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [10:57:58]Write i2c OK [10:57:58]MH_I2C_Read... [10:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:58]Read from MH i2c: E2 [10:57:58]MH_I2C_Read... [10:57:58]Read from MH i2c: E2 0E 00 [10:57:58]MH_I2C_Read... [10:57:58]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 08 [10:57:58]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:57:58]wFMCommunicate OK [10:57:58]SAM_PROTO_GetShiftState done [10:57:58]FM_GetShiftState done [10:57:58]opened in 1729902702 [10:57:58]opened+sec_in_day 1729989102 [10:57:58]quantity*price = 70044 [10:57:58]sum+1 = 70045 [10:57:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 119 26.10.2024 10:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156218 ФПД: 56035280527862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105802&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156218&fm=56035280527862&tin=02508201610067®Number=0000000000091693&sum=70000 [10:58:00]StoreToDocumentArchive [10:58:00]shift 536 fd 156218 [10:58:00]save to /storage/0536/doc_00156218 [10:58:00]save last doc name /storage/0536/doc_00156218 to /storage/kkm_last_doc_name [10:58:00]save OK [10:58:00]Clear old archive folders... [10:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:00]tlvbuf is 00D91ED0 [10:58:00]SAM_PROTO_ClearQueue [10:58:00]wFMCommunicate request_size=4 [10:58:00]MH_SAM_APDU [10:58:00]CAPDU: 80 09 00 00 [10:58:00]Write to MH i2c: E2 08 00 3A 29 80 09 00 00 00 00 00 00 D5 [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:00]Read from MH i2c: E2 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 03 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 03 00 3A 29 00 90 00 D7 [10:58:00]RAPDU: 90 00 [10:58:00]wFMCommunicate OK [10:58:00]SAM_PROTO_ClearQueue done [10:58:00]KKMCreateOFDPacket [10:58:00]OFDProtocolAddRootSTLVToBuf [10:58:00]FM_MakeSignedData [10:58:00]FM_MakeSignedData [10:58:00]SAM_PROTO_SignData [10:58:00]wFMCommunicate request_size=4 [10:58:00]MH_SAM_APDU [10:58:00]CAPDU: 80 0D 01 02 [10:58:00]Write to MH i2c: E2 08 00 3B 29 80 0D 01 02 00 00 00 00 DD [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:00]Read from MH i2c: E2 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 03 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [10:58:00]RAPDU: 90 00 [10:58:00]wFMCommunicate OK [10:58:00]wFMCommunicate request_size=255 [10:58:00]MH_SAM_APDU [10:58:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3A CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 62 02 00 35 04 06 00 32 [10:58:00]Write to MH i2c: E2 02 01 3C 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3A CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 62 02 00 35 04 06 00 32 00 00 6A [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:00]Read from MH i2c: E2 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 03 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [10:58:00]RAPDU: 90 00 [10:58:00]wFMCommunicate OK [10:58:00]wFMCommunicate request_size=10 [10:58:00]MH_SAM_APDU [10:58:00]CAPDU: 80 0D 02 02 05 F6 BA FD A1 F6 [10:58:00]Write to MH i2c: E2 0D 00 3D 29 80 0D 02 02 05 00 F6 BA FD A1 F6 00 00 2E [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:00]Read from MH i2c: E2 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 03 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [10:58:00]RAPDU: 90 00 [10:58:00]wFMCommunicate OK [10:58:00]wFMCommunicate request_size=4 [10:58:00]MH_SAM_APDU [10:58:00]CAPDU: 80 0D 03 02 [10:58:00]Write to MH i2c: E2 08 00 3E 29 80 0D 03 02 00 00 00 00 E2 [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:00]Read from MH i2c: E2 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 0B 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 0B 00 3E 29 00 8C 10 AA 5D BD 9B 58 96 90 00 CC [10:58:00]RAPDU: 8C 10 AA 5D BD 9B 58 96 90 00 [10:58:00]wFMCommunicate OK [10:58:00]SAM_PROTO_SignData done [10:58:00]FM_MakeSignedData done [10:58:00]CreateOFDProtocolMessage [10:58:00]wFMCommunicate request_size=4 [10:58:00]MH_SAM_APDU [10:58:00]CAPDU: 80 11 00 00 [10:58:00]Write to MH i2c: E2 08 00 3F 29 80 11 00 00 00 00 00 00 E2 [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:00]Read from MH i2c: E2 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 17 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 17 00 3F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [10:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:58:00]wFMCommunicate OK [10:58:00]CreateOFDProtocolMessage done [10:58:00]OFDSenderStorePacket 156218 [10:58:00]StoreOFDPacket docnum=156218 [10:58:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE 69 07 01 28 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3A CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 62 02 00 35 04 06 00 32 F6 BA FD A1 F6 8C 10 AA 5D BD 9B 58 96 [10:58:00]CheckFolder [10:58:00]dirname=/storage/ofd_packets [10:58:00]CheckFolder done [10:58:00]ProducePacketName [10:58:00]name=ofd_packets/00156218 [10:58:00]NVStorageSaveData ofd_packets/00156218 [10:58:00]File name is /storage/ofd_packets/00156218 [10:58:00]Write 301 bytes [10:58:00]NVStorageSaveData done [10:58:00]OFDSenderStorePacket done [10:58:00]KKMCreateOFDPacket done [10:58:00]NVStorageSaveData kkm_last_timestamp [10:58:00]File name is /storage/kkm_last_timestamp [10:58:00]Write 4 bytes [10:58:00]NVStorageSaveData done [10:58:00]ExternCall_PrintAddStr [10:58:00]wPrintStart [10:58:00]Write to MH i2c: 01 00 00 40 29 69 [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: 01 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: 01 07 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: 01 07 00 40 29 00 00 00 00 00 FF 0F 7E [10:58:00]RasterBufferAndPrint [10:58:00]line Счет N : (1)99033 [10:58:00]line ИНН: 02508201610067 [10:58:00]line Контрольно-Кассовый Чек [10:58:00]line ПРОДАЖА [10:58:00]line ТРК (МРК, ГНК) : 11 [10:58:00]line Товар: 2710124130 [10:58:00]line Аи-92-К-5 [10:58:00]line 10.470 * 66.90 [10:58:00]line = 700.44 [10:58:00]line НДС 12% НСП 1% [10:58:00]line > о реализуемом товаре [10:58:00]line ОКРУГЛЕНИЕ: -0.44 [10:58:00]line ИТОГО: 700.00 [10:58:00]line Внесено: 700.00 [10:58:00]line СДАЧА: 0.00 [10:58:00]line НСП 1% : 6.20 [10:58:00]line НДС 12% : 74.38 [10:58:00]line Наличными: 700.00 [10:58:00]line Безнал.: 0.00 [10:58:00]line Место: АЗС № 143 "Партнер Нефть" [10:58:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:58:00]line СНО: Общий режим [10:58:00]line Чек 119 26.10.2024 10:58 [10:58:00]line Смена: 536 ФФД: 1.0 [10:58:00]line ЗНМ: 0300000096 [10:58:00]line РНМ: 0000000000091693 [10:58:00]line Версия ККМ: 001 [10:58:00]line ФМ: 0000000000871792 [10:58:00]line ФД: 156218 [10:58:00]line ФПД: 56035280527862 [10:58:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105802&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156218&fm=56035280527862&tin=02508201610067®Number=0000000000091693&sum=70000 [10:58:00]OFD Sender: Processing packet 156218 [packets to send 31, broken 30] [10:58:00]ProducePacketName [10:58:00]name=ofd_packets/00156218 [10:58:00]OFD Sender: To server: pG, [10:58:00]CommunicateWithHost lk.salyk.kg:30040 [10:58:00]ConnectInit lk.salyk.kg [10:58:00]written 0, free lines is 4095 [10:58:00]Connected sock=10 [10:58:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE 69 07 01 28 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3A CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 62 02 00 35 04 06 00 32 F6 BA FD A1 F6 8C 10 AA 5D BD 9B 58 96 [10:58:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FD 3A 47 00 2F A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 62 02 00 F4 03 04 00 AD 70 1C 67 B6 04 01 00 00 6C 94 50 0D 39 D7 DA 3A [10:58:01]CommunicateWithHost err = 0 [10:58:01]CheckOFDResponse [10:58:01]1017 (14) - 77093643461234 [10:58:01]1041 (16) - 0000000000871792 [10:58:01]1040 (4) - 156218 [10:58:01]1012 (4) - 26.10.2024 04:31 [10:58:01]1206 (1) - 0 [10:58:01]OFD Sender: Remove packet 156218 [10:58:01]ProducePacketName [10:58:01]name=ofd_packets/00156218 [10:58:01]NVStorageDeleteData [10:58:01]Write to MH i2c: 01 00 00 6B 29 94 [10:58:01]Write i2c OK [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: 01 [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: 01 07 00 [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 E8 0C 8F [10:58:01]RasterBufferAndPrint [10:58:01]line [10:58:01]line [10:58:01]line [10:58:01]line [10:58:01]line [10:58:01]written 0, free lines is 3310 [10:58:01]process_action close_receipt done [10:58:01]requested_data is exist [10:58:01]produce_requested_data [10:58:01]requested_item fm.sn is exist - process it [10:58:01]wFMCommunicate request_size=4 [10:58:01]MH_SAM_APDU [10:58:01]CAPDU: 80 11 00 00 [10:58:01]Write to MH i2c: E2 08 00 72 29 80 11 00 00 00 00 00 00 15 [10:58:01]Write i2c OK [10:58:01]MH_I2C_Read... [10:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:01]Read from MH i2c: E2 [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: E2 17 00 [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: E2 17 00 72 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6A [10:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:58:01]wFMCommunicate OK [10:58:01]requested_item fd.num is exist - process it [10:58:01]SAM_PROTO_GetFieldsCounters [10:58:01]wFMCommunicate request_size=4 [10:58:01]MH_SAM_APDU [10:58:01]CAPDU: 80 13 00 00 [10:58:01]Write to MH i2c: E2 08 00 73 29 80 13 00 00 00 00 00 00 18 [10:58:01]Write i2c OK [10:58:01]MH_I2C_Read... [10:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:01]Read from MH i2c: E2 [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: E2 62 00 [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: E2 62 00 73 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:58: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:01]wFMCommunicate OK [10:58:01]SAM_PROTO_GetFieldsCounters done [10:58:01]requested_item shift.num is exist - process it [10:58:01]requested_item shift.opened is exist - process it [10:58:01]req_shift_opened [10:58:01]FM_GetShiftState [10:58:01]SAM_PROTO_GetShiftState [10:58:01]wFMCommunicate request_size=4 [10:58:01]MH_SAM_APDU [10:58:01]CAPDU: 80 13 01 00 [10:58:01]Write to MH i2c: E2 08 00 74 29 80 13 01 00 00 00 00 00 1A [10:58:01]Write i2c OK [10:58:01]MH_I2C_Read... [10:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:01]Read from MH i2c: E2 [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: E2 0E 00 [10:58:01]MH_I2C_Read... [10:58:01]Read from MH i2c: E2 0E 00 74 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4F [10:58:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:58:01]wFMCommunicate OK [10:58:01]SAM_PROTO_GetShiftState done [10:58:01]FM_GetShiftState done [10:58:01]req_shift_opened done [10:58:01]requested_item shift.open_date is exist - process it [10:58:01]req_shift_open_date [10:58:01]req_shift_open_date done [10:58:01]produce_requested_data done [10:58:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156218,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:58:01]process_action_free close_receipt [10:58:01]json_value_free [10:58:01]json_value_free done [10:58:01]process_json_proto returns [10:58:01]Send response to host [10:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156218,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:58:01]free response buf [10:58:01]execute_script done [10:58:01]execute_script returns [10:58:01]free content buf [10:58:01]Sock 7.Close socket [10:58:01]Sock 7.Thread stoped [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:29]accept exits with 9 [10:58:29]New connection [10:58:29]New thread 3066469732 created [10:58:29]Thread 3066613092 joined [10:58:29]Waiting for new connection... [10:58:29] Sock 9.Parse request [10:58:29]Sock 9.Check first char [10:58:29]Sock 9.First char is OK [10:58:29]request: POST /json_proto HTTP/1.0 [10:58:29]Method: POST [10:58:29]URL: /json_proto [10:58:29]Method is POST - this is cgi request [10:58:29]url: /json_proto [10:58:29]query_string will be loaded in cgi processing [10:58:29]execute_cgi json_proto POST (null) [10:58:29]execute_cgi path=json_proto method=POST [10:58:29]POST find Content-Length [10:58:29]Host: 172.17.63.3:8080 [10:58:29]Content-Length: 681 [10:58:29]Content-Type: application/json [10:58:29] [10:58:29]POST finish read [10:58:29]Found Content-Length = 681 [10:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:29]execute_script... [10:58:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:29]POST & json_proto [10:58:29]process_json_proto [10:58:29]json parsed OK: [10:58:29]protocol is kg_v1.0 [10:58:29]action value=close_receipt [10:58:29]process_action close_receipt [10:58:29]cmd_close_receipt [10:58:29]MH_GetDate [10:58:29]Write to MH i2c: F0 00 00 75 29 8D [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: F0 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: F0 09 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: F0 09 00 75 29 00 59 CB 1C 67 50 D1 6C 64 2E [10:58:29]GetLastDocTimeStamp 1729940282 [10:58:29]current date 1729940313 [10:58:29]FM_GetShiftState [10:58:29]SAM_PROTO_GetShiftState [10:58:29]wFMCommunicate request_size=4 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 13 01 00 [10:58:29]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 0E 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 51 [10:58:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:58:29]wFMCommunicate OK [10:58:29]SAM_PROTO_GetShiftState done [10:58:29]FM_GetShiftState done [10:58:29]opened in 1729902702 [10:58:29]opened+sec_in_day 1729989102 [10:58:29]quantity*price = 200031 [10:58:29]sum+1 = 200032 [10:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 120 26.10.2024 10:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156219 ФПД: 105757134617384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105833&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156219&fm=105757134617384&tin=02508201610067®Number=0000000000091693&sum=200000 [10:58:30]StoreToDocumentArchive [10:58:30]shift 536 fd 156219 [10:58:30]save to /storage/0536/doc_00156219 [10:58:30]save last doc name /storage/0536/doc_00156219 to /storage/kkm_last_doc_name [10:58:30]save OK [10:58:30]Clear old archive folders... [10:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:30]tlvbuf is 00D5DE60 [10:58:30]SAM_PROTO_ClearQueue [10:58:30]wFMCommunicate request_size=4 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 09 00 00 [10:58:30]Write to MH i2c: E2 08 00 83 29 80 09 00 00 00 00 00 00 1E [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [10:58:30]RAPDU: 90 00 [10:58:30]wFMCommunicate OK [10:58:30]SAM_PROTO_ClearQueue done [10:58:30]KKMCreateOFDPacket [10:58:30]OFDProtocolAddRootSTLVToBuf [10:58:30]FM_MakeSignedData [10:58:30]FM_MakeSignedData [10:58:30]SAM_PROTO_SignData [10:58:30]wFMCommunicate request_size=4 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 0D 01 02 [10:58:30]Write to MH i2c: E2 08 00 84 29 80 0D 01 02 00 00 00 00 26 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [10:58:30]RAPDU: 90 00 [10:58:30]wFMCommunicate OK [10:58:30]wFMCommunicate request_size=255 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 59 CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 62 02 00 35 04 06 00 60 [10:58:30]Write to MH i2c: E2 02 01 85 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 59 CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 62 02 00 35 04 06 00 60 00 00 34 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [10:58:30]RAPDU: 90 00 [10:58:30]wFMCommunicate OK [10:58:30]wFMCommunicate request_size=10 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 0D 02 02 05 2F 80 70 FB 28 [10:58:30]Write to MH i2c: E2 0D 00 86 29 80 0D 02 02 05 00 2F 80 70 FB 28 00 00 75 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [10:58:30]RAPDU: 90 00 [10:58:30]wFMCommunicate OK [10:58:30]wFMCommunicate request_size=4 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 0D 03 02 [10:58:30]Write to MH i2c: E2 08 00 87 29 80 0D 03 02 00 00 00 00 2B [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 0B 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 0B 00 87 29 00 07 50 75 82 CD 0B BA FF 90 00 0B [10:58:30]RAPDU: 07 50 75 82 CD 0B BA FF 90 00 [10:58:30]wFMCommunicate OK [10:58:30]SAM_PROTO_SignData done [10:58:30]FM_MakeSignedData done [10:58:30]CreateOFDProtocolMessage [10:58:30]wFMCommunicate request_size=4 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 11 00 00 [10:58:30]Write to MH i2c: E2 08 00 88 29 80 11 00 00 00 00 00 00 2B [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 17 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 17 00 88 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [10:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:58:30]wFMCommunicate OK [10:58:30]CreateOFDProtocolMessage done [10:58:30]OFDSenderStorePacket 156219 [10:58:30]StoreOFDPacket docnum=156219 [10:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5F F2 07 01 61 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 59 CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 62 02 00 35 04 06 00 60 2F 80 70 FB 28 07 50 75 82 CD 0B BA FF [10:58:30]CheckFolder [10:58:30]dirname=/storage/ofd_packets [10:58:30]CheckFolder done [10:58:30]ProducePacketName [10:58:30]name=ofd_packets/00156219 [10:58:30]NVStorageSaveData ofd_packets/00156219 [10:58:30]File name is /storage/ofd_packets/00156219 [10:58:30]Write 301 bytes [10:58:30]NVStorageSaveData done [10:58:30]OFDSenderStorePacket done [10:58:30]KKMCreateOFDPacket done [10:58:30]NVStorageSaveData kkm_last_timestamp [10:58:30]File name is /storage/kkm_last_timestamp [10:58:30]Write 4 bytes [10:58:30]NVStorageSaveData done [10:58:30]ExternCall_PrintAddStr [10:58:30]wPrintStart [10:58:30]Write to MH i2c: 01 00 00 89 29 B2 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 07 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 07 00 89 29 00 00 00 00 00 FF 0F C7 [10:58:30]RasterBufferAndPrint [10:58:30]line Счет N : (1)99034 [10:58:30]line ИНН: 02508201610067 [10:58:30]line Контрольно-Кассовый Чек [10:58:30]line ПРОДАЖА [10:58:30]line ТРК (МРК, ГНК) : 21 [10:58:30]line Товар: 2710124130 [10:58:30]line Аи-92-К-5 [10:58:30]line 29.900 * 66.90 [10:58:30]line = 2000.31 [10:58:30]line НДС 12% НСП 1% [10:58:30]line > о реализуемом товаре [10:58:30]line ОКРУГЛЕНИЕ: -0.31 [10:58:30]line ИТОГО: 2000.00 [10:58:30]line Внесено: 2000.00 [10:58:30]line СДАЧА: 0.00 [10:58:30]line НСП 1% : 17.70 [10:58:30]line НДС 12% : 212.42 [10:58:30]line Наличными: 2000.00 [10:58:30]line Безнал.: 0.00 [10:58:30]line Место: АЗС № 143 "Партнер Нефть" [10:58:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:58:30]line СНО: Общий режим [10:58:30]line Чек 120 26.10.2024 10:58 [10:58:30]line Смена: 536 ФФД: 1.0 [10:58:30]line ЗНМ: 0300000096 [10:58:30]line РНМ: 0000000000091693 [10:58:30]line Версия ККМ: 001 [10:58:30]line ФМ: 0000000000871792 [10:58:30]line ФД: 156219 [10:58:30]line ФПД: 105757134617384 [10:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105833&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156219&fm=105757134617384&tin=02508201610067®Number=0000000000091693&sum=200000 [10:58:31]OFD Sender: Processing packet 156219 [packets to send 31, broken 30] [10:58:31]ProducePacketName [10:58:31]name=ofd_packets/00156219 [10:58:31]OFD Sender: To server: pG, [10:58:31]CommunicateWithHost lk.salyk.kg:30040 [10:58:31]ConnectInit lk.salyk.kg [10:58:31]written 0, free lines is 4095 [10:58:31]Connected sock=10 [10:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5F F2 07 01 61 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 59 CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 62 02 00 35 04 06 00 60 2F 80 70 FB 28 07 50 75 82 CD 0B BA FF [10:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 91 35 47 00 EC 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 31 37 39 32 10 04 04 00 3B 62 02 00 F4 03 04 00 CC 70 1C 67 B6 04 01 00 00 78 3A 12 EA 1F 5B 41 89 [10:58:31]CommunicateWithHost err = 0 [10:58:31]CheckOFDResponse [10:58:31]1017 (14) - 77093643461234 [10:58:31]1041 (16) - 0000000000871792 [10:58:31]1040 (4) - 156219 [10:58:31]1012 (4) - 26.10.2024 04:32 [10:58:31]1206 (1) - 0 [10:58:31]OFD Sender: Remove packet 156219 [10:58:31]ProducePacketName [10:58:31]name=ofd_packets/00156219 [10:58:31]NVStorageDeleteData [10:58:31]Write to MH i2c: 01 00 00 B4 29 DD [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 07 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 07 00 B4 29 00 00 00 00 00 E6 0C D6 [10:58:31]RasterBufferAndPrint [10:58:31]line [10:58:31]line [10:58:31]line [10:58:31]line [10:58:31]line [10:58:31]written 0, free lines is 3308 [10:58:31]process_action close_receipt done [10:58:31]requested_data is exist [10:58:31]produce_requested_data [10:58:31]requested_item fm.sn is exist - process it [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 11 00 00 [10:58:31]Write to MH i2c: E2 08 00 BB 29 80 11 00 00 00 00 00 00 5E [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 17 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 17 00 BB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B3 [10:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:58:31]wFMCommunicate OK [10:58:31]requested_item fd.num is exist - process it [10:58:31]SAM_PROTO_GetFieldsCounters [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 13 00 00 [10:58:31]Write to MH i2c: E2 08 00 BC 29 80 13 00 00 00 00 00 00 61 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 62 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 62 00 BC 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [10:58: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:31]wFMCommunicate OK [10:58:31]SAM_PROTO_GetFieldsCounters done [10:58:31]requested_item shift.num is exist - process it [10:58:31]requested_item shift.opened is exist - process it [10:58:31]req_shift_opened [10:58:31]FM_GetShiftState [10:58:31]SAM_PROTO_GetShiftState [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 13 01 00 [10:58:31]Write to MH i2c: E2 08 00 BD 29 80 13 01 00 00 00 00 00 63 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:32]Read from MH i2c: E2 [10:58:32]MH_I2C_Read... [10:58:32]Read from MH i2c: E2 0E 00 [10:58:32]MH_I2C_Read... [10:58:32]Read from MH i2c: E2 0E 00 BD 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 98 [10:58:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:58:32]wFMCommunicate OK [10:58:32]SAM_PROTO_GetShiftState done [10:58:32]FM_GetShiftState done [10:58:32]req_shift_opened done [10:58:32]requested_item shift.open_date is exist - process it [10:58:32]req_shift_open_date [10:58:32]req_shift_open_date done [10:58:32]produce_requested_data done [10:58:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156219,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:58:32]process_action_free close_receipt [10:58:32]json_value_free [10:58:32]json_value_free done [10:58:32]process_json_proto returns [10:58:32]Send response to host [10:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156219,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:58:32]free response buf [10:58:32]execute_script done [10:58:32]execute_script returns [10:58:32]free content buf [10:58:32]Sock 9.Close socket [10:58:32]Sock 9.Thread stoped [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:56]int [10:58:56]Write to MH i2c: 01 00 00 BE 29 E7 [10:58:56]*** FLAG_PRN_KEY set [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 BE 29 00 08 00 00 00 FF 0F 04 [10:58:56]state=0 [10:58:56]Key pressed [10:58:56]Feed [10:58:56]Write to MH i2c: D8 00 00 BF 29 BF [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: D8 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: D8 01 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: D8 01 00 BF 29 00 C0 [10:58:56]int [10:58:56]Write to MH i2c: 01 00 00 C0 29 E9 [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 C0 29 00 48 00 00 00 3D 00 75 [10:58:56]state=2 [10:58:56]Key pressed [10:58:56]int [10:58:56]Write to MH i2c: 01 00 00 C1 29 EA [10:58:56]*** FLAG_PRN_KEY reset [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 C1 29 00 00 00 00 00 F6 0F F6 [10:58:56]state=2 [10:58:56]Stop feed [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]accept exits with 7 [10:59:47]New connection [10:59:47]New thread 3066613092 created [10:59:47]Thread 3066469732 joined [10:59:47]Waiting for new connection... [10:59:47] Sock 7.Parse request [10:59:47]Sock 7.Check first char [10:59:47]Sock 7.First char is OK [10:59:47]request: POST /json_proto HTTP/1.0 [10:59:47]Method: POST [10:59:47]URL: /json_proto [10:59:47]Method is POST - this is cgi request [10:59:47]url: /json_proto [10:59:47]query_string will be loaded in cgi processing [10:59:47]execute_cgi json_proto POST (null) [10:59:47]execute_cgi path=json_proto method=POST [10:59:47]POST find Content-Length [10:59:47]Host: 172.17.63.3:8080 [10:59:47]Content-Length: 677 [10:59:47]Content-Type: application/json [10:59:47] [10:59:47]POST finish read [10:59:47]Found Content-Length = 677 [10:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:47]execute_script... [10:59:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:47]POST & json_proto [10:59:47]process_json_proto [10:59:47]json parsed OK: [10:59:47]protocol is kg_v1.0 [10:59:47]action value=close_receipt [10:59:47]process_action close_receipt [10:59:47]cmd_close_receipt [10:59:47]MH_GetDate [10:59:47]Write to MH i2c: F0 00 00 C2 29 DA [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: F0 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: F0 09 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: F0 09 00 C2 29 00 A7 CB 1C 67 50 D1 6C 64 C9 [10:59:47]GetLastDocTimeStamp 1729940313 [10:59:47]current date 1729940391 [10:59:47]FM_GetShiftState [10:59:47]SAM_PROTO_GetShiftState [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 13 01 00 [10:59:47]Write to MH i2c: E2 08 00 C3 29 80 13 01 00 00 00 00 00 69 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0E 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0E 00 C3 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9E [10:59:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_GetShiftState done [10:59:47]FM_GetShiftState done [10:59:47]opened in 1729902702 [10:59:47]opened+sec_in_day 1729989102 [10:59:47]quantity*price = 70044 [10:59:47]sum+1 = 70045 [10:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 121 26.10.2024 10:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156220 ФПД: 81704019663639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105951&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156220&fm=81704019663639&tin=02508201610067®Number=0000000000091693&sum=70000 [10:59:48]StoreToDocumentArchive [10:59:48]shift 536 fd 156220 [10:59:48]save to /storage/0536/doc_00156220 [10:59:48]save last doc name /storage/0536/doc_00156220 to /storage/kkm_last_doc_name [10:59:48]save OK [10:59:48]Clear old archive folders... [10:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:48]tlvbuf is B6E87350 [10:59:48]SAM_PROTO_ClearQueue [10:59:48]wFMCommunicate request_size=4 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 09 00 00 [10:59:48]Write to MH i2c: E2 08 00 D0 29 80 09 00 00 00 00 00 00 6B [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [10:59:48]RAPDU: 90 00 [10:59:48]wFMCommunicate OK [10:59:48]SAM_PROTO_ClearQueue done [10:59:48]KKMCreateOFDPacket [10:59:48]OFDProtocolAddRootSTLVToBuf [10:59:48]FM_MakeSignedData [10:59:48]FM_MakeSignedData [10:59:48]SAM_PROTO_SignData [10:59:48]wFMCommunicate request_size=4 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 0D 01 02 [10:59:48]Write to MH i2c: E2 08 00 D1 29 80 0D 01 02 00 00 00 00 73 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 D1 29 00 90 00 6E [10:59:48]RAPDU: 90 00 [10:59:48]wFMCommunicate OK [10:59:48]wFMCommunicate request_size=255 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A7 CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 62 02 00 35 04 06 00 4A [10:59:48]Write to MH i2c: E2 02 01 D2 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A7 CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 62 02 00 35 04 06 00 4A 00 00 89 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 D2 29 00 90 00 6F [10:59:48]RAPDU: 90 00 [10:59:48]wFMCommunicate OK [10:59:48]wFMCommunicate request_size=10 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 0D 02 02 05 4F 33 11 9B 17 [10:59:48]Write to MH i2c: E2 0D 00 D3 29 80 0D 02 02 05 00 4F 33 11 9B 17 00 00 C5 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 D3 29 00 90 00 70 [10:59:48]RAPDU: 90 00 [10:59:48]wFMCommunicate OK [10:59:48]wFMCommunicate request_size=4 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 0D 03 02 [10:59:48]Write to MH i2c: E2 08 00 D4 29 80 0D 03 02 00 00 00 00 78 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 0B 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 0B 00 D4 29 00 FC 27 06 66 39 77 B3 C9 90 00 34 [10:59:48]RAPDU: FC 27 06 66 39 77 B3 C9 90 00 [10:59:48]wFMCommunicate OK [10:59:48]SAM_PROTO_SignData done [10:59:48]FM_MakeSignedData done [10:59:48]CreateOFDProtocolMessage [10:59:48]wFMCommunicate request_size=4 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 11 00 00 [10:59:48]Write to MH i2c: E2 08 00 D5 29 80 11 00 00 00 00 00 00 78 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 17 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 17 00 D5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [10:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:59:48]wFMCommunicate OK [10:59:48]CreateOFDProtocolMessage done [10:59:48]OFDSenderStorePacket 156220 [10:59:48]StoreOFDPacket docnum=156220 [10:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 18 E5 07 01 1C 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A7 CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 62 02 00 35 04 06 00 4A 4F 33 11 9B 17 FC 27 06 66 39 77 B3 C9 [10:59:48]CheckFolder [10:59:48]dirname=/storage/ofd_packets [10:59:48]CheckFolder done [10:59:48]ProducePacketName [10:59:48]name=ofd_packets/00156220 [10:59:48]NVStorageSaveData ofd_packets/00156220 [10:59:48]File name is /storage/ofd_packets/00156220 [10:59:48]Write 301 bytes [10:59:48]NVStorageSaveData done [10:59:48]OFDSenderStorePacket done [10:59:48]KKMCreateOFDPacket done [10:59:48]NVStorageSaveData kkm_last_timestamp [10:59:48]File name is /storage/kkm_last_timestamp [10:59:48]Write 4 bytes [10:59:48]NVStorageSaveData done [10:59:48]ExternCall_PrintAddStr [10:59:48]wPrintStart [10:59:48]Write to MH i2c: 01 00 00 D6 29 FF [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 07 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 07 00 D6 29 00 00 00 00 00 FF 0F 14 [10:59:48]RasterBufferAndPrint [10:59:48]line Счет N : (1)99035 [10:59:48]line ИНН: 02508201610067 [10:59:48]line Контрольно-Кассовый Чек [10:59:48]line ПРОДАЖА [10:59:48]line ТРК (МРК, ГНК) : 31 [10:59:48]line Товар: 2710124130 [10:59:48]line Аи-92-К-5 [10:59:48]line 10.470 * 66.90 [10:59:48]line = 700.44 [10:59:48]line НДС 12% НСП 1% [10:59:48]line > о реализуемом товаре [10:59:48]line ОКРУГЛЕНИЕ: -0.44 [10:59:48]line ИТОГО: 700.00 [10:59:48]line Внесено: 700.00 [10:59:48]line СДАЧА: 0.00 [10:59:48]line НСП 1% : 6.20 [10:59:48]line НДС 12% : 74.38 [10:59:48]line Наличными: 700.00 [10:59:48]line Безнал.: 0.00 [10:59:48]line Место: АЗС № 143 "Партнер Нефть" [10:59:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:59:48]line СНО: Общий режим [10:59:48]line Чек 121 26.10.2024 10:59 [10:59:48]line Смена: 536 ФФД: 1.0 [10:59:48]line ЗНМ: 0300000096 [10:59:48]line РНМ: 0000000000091693 [10:59:48]line Версия ККМ: 001 [10:59:48]line ФМ: 0000000000871792 [10:59:48]line ФД: 156220 [10:59:48]line ФПД: 81704019663639 [10:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105951&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156220&fm=81704019663639&tin=02508201610067®Number=0000000000091693&sum=70000 [10:59:49]OFD Sender: Processing packet 156220 [packets to send 31, broken 30] [10:59:49]ProducePacketName [10:59:49]name=ofd_packets/00156220 [10:59:49]OFD Sender: To server: pG, [10:59:49]CommunicateWithHost lk.salyk.kg:30040 [10:59:49]ConnectInit lk.salyk.kg [10:59:49]written 0, free lines is 4095 [10:59:49]Connected sock=10 [10: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 31 37 39 32 0F 01 00 00 18 E5 07 01 1C 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A7 CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 62 02 00 35 04 06 00 4A 4F 33 11 9B 17 FC 27 06 66 39 77 B3 C9 [10:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 40 D4 47 00 A8 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 31 37 39 32 10 04 04 00 3C 62 02 00 F4 03 04 00 1A 71 1C 67 B6 04 01 00 00 18 35 06 41 53 A7 78 9B [10:59:49]CommunicateWithHost err = 0 [10:59:49]CheckOFDResponse [10:59:49]1017 (14) - 77093643461234 [10:59:49]1041 (16) - 0000000000871792 [10:59:49]1040 (4) - 156220 [10:59:49]1012 (4) - 26.10.2024 04:33 [10:59:49]1206 (1) - 0 [10:59:49]OFD Sender: Remove packet 156220 [10:59:49]ProducePacketName [10:59:49]name=ofd_packets/00156220 [10:59:49]NVStorageDeleteData [10:59:49]Write to MH i2c: 01 00 00 01 2A 2B [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 07 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 07 00 01 2A 00 00 00 00 00 F4 0C 32 [10:59:49]RasterBufferAndPrint [10:59:49]line [10:59:49]line [10:59:49]line [10:59:49]line [10:59:49]line [10:59:49]written 0, free lines is 3322 [10:59:49]process_action close_receipt done [10:59:49]requested_data is exist [10:59:49]produce_requested_data [10:59:49]requested_item fm.sn is exist - process it [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 11 00 00 [10:59:49]Write to MH i2c: E2 08 00 08 2A 80 11 00 00 00 00 00 00 AC [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:49]Read from MH i2c: E2 17 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 17 00 08 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 01 [10:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:59:49]wFMCommunicate OK [10:59:49]requested_item fd.num is exist - process it [10:59:49]SAM_PROTO_GetFieldsCounters [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 13 00 00 [10:59:49]Write to MH i2c: E2 08 00 09 2A 80 13 00 00 00 00 00 00 AF [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 62 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 62 00 09 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10:59: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:49]wFMCommunicate OK [10:59:49]SAM_PROTO_GetFieldsCounters done [10:59:49]requested_item shift.num is exist - process it [10:59:49]requested_item shift.opened is exist - process it [10:59:49]req_shift_opened [10:59:49]FM_GetShiftState [10:59:49]SAM_PROTO_GetShiftState [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 13 01 00 [10:59:49]Write to MH i2c: E2 08 00 0A 2A 80 13 01 00 00 00 00 00 B1 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 0E 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 0E 00 0A 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E6 [10:59:49]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [10:59:49]wFMCommunicate OK [10:59:49]SAM_PROTO_GetShiftState done [10:59:49]FM_GetShiftState done [10:59:49]req_shift_opened done [10:59:49]requested_item shift.open_date is exist - process it [10:59:49]req_shift_open_date [10:59:49]req_shift_open_date done [10:59:49]produce_requested_data done [10:59:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156220,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [10:59:49]process_action_free close_receipt [10:59:49]json_value_free [10:59:49]json_value_free done [10:59:49]process_json_proto returns [10:59:49]Send response to host [10:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156220,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [10:59:49]free response buf [10:59:49]execute_script done [10:59:49]execute_script returns [10:59:49]free content buf [10:59:49]Sock 7.Close socket [10:59:49]Sock 7.Thread stoped [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:24]accept exits with 9 [11:00:24]New connection [11:00:24]New thread 3066469732 created [11:00:24]Thread 3066613092 joined [11:00:24]Waiting for new connection... [11:00:24] Sock 9.Parse request [11:00:24]Sock 9.Check first char [11:00:24]Sock 9.First char is OK [11:00:24]request: POST /json_proto HTTP/1.0 [11:00:24]Method: POST [11:00:24]URL: /json_proto [11:00:24]Method is POST - this is cgi request [11:00:24]url: /json_proto [11:00:24]query_string will be loaded in cgi processing [11:00:24]execute_cgi json_proto POST (null) [11:00:24]execute_cgi path=json_proto method=POST [11:00:24]POST find Content-Length [11:00:24]Host: 172.17.63.3:8080 [11:00:24]Content-Length: 676 [11:00:24]Content-Type: application/json [11:00:24] [11:00:24]POST finish read [11:00:24]Found Content-Length = 676 [11:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:24]execute_script... [11:00:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:24]POST & json_proto [11:00:24]process_json_proto [11:00:24]json parsed OK: [11:00:24]protocol is kg_v1.0 [11:00:24]action value=close_receipt [11:00:24]process_action close_receipt [11:00:24]cmd_close_receipt [11:00:24]MH_GetDate [11:00:24]Write to MH i2c: F0 00 00 0B 2A 24 [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: F0 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: F0 09 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: F0 09 00 0B 2A 00 CC CB 1C 67 50 D1 6C 64 38 [11:00:24]GetLastDocTimeStamp 1729940391 [11:00:24]current date 1729940428 [11:00:24]FM_GetShiftState [11:00:24]SAM_PROTO_GetShiftState [11:00:24]wFMCommunicate request_size=4 [11:00:24]MH_SAM_APDU [11:00:24]CAPDU: 80 13 01 00 [11:00:24]Write to MH i2c: E2 08 00 0C 2A 80 13 01 00 00 00 00 00 B3 [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 0C 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E8 [11:00:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetShiftState done [11:00:25]FM_GetShiftState done [11:00:25]opened in 1729902702 [11:00:25]opened+sec_in_day 1729989102 [11:00:25]quantity*price = 50041 [11:00:25]sum+1 = 50042 [11:00:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 122 26.10.2024 11:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156221 ФПД: 259852793874621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156221&fm=259852793874621&tin=02508201610067®Number=0000000000091693&sum=50000 [11:00:26]StoreToDocumentArchive [11:00:26]shift 536 fd 156221 [11:00:26]save to /storage/0536/doc_00156221 [11:00:26]save last doc name /storage/0536/doc_00156221 to /storage/kkm_last_doc_name [11:00:26]save OK [11:00:26]Clear old archive folders... [11:00:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:26]tlvbuf is 00DD22B0 [11:00:26]SAM_PROTO_ClearQueue [11:00:26]wFMCommunicate request_size=4 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 09 00 00 [11:00:26]Write to MH i2c: E2 08 00 19 2A 80 09 00 00 00 00 00 00 B5 [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 03 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [11:00:26]RAPDU: 90 00 [11:00:26]wFMCommunicate OK [11:00:26]SAM_PROTO_ClearQueue done [11:00:26]KKMCreateOFDPacket [11:00:26]OFDProtocolAddRootSTLVToBuf [11:00:26]FM_MakeSignedData [11:00:26]FM_MakeSignedData [11:00:26]SAM_PROTO_SignData [11:00:26]wFMCommunicate request_size=4 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 0D 01 02 [11:00:26]Write to MH i2c: E2 08 00 1A 2A 80 0D 01 02 00 00 00 00 BD [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 03 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [11:00:26]RAPDU: 90 00 [11:00:26]wFMCommunicate OK [11:00:26]wFMCommunicate request_size=255 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CC CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 62 02 00 35 04 06 00 EC [11:00:26]Write to MH i2c: E2 02 01 1B 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CC CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 62 02 00 35 04 06 00 EC 00 00 8C [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 03 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 03 00 1B 2A 00 90 00 B9 [11:00:26]RAPDU: 90 00 [11:00:26]wFMCommunicate OK [11:00:26]wFMCommunicate request_size=10 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 0D 02 02 05 55 B1 79 08 BD [11:00:26]Write to MH i2c: E2 0D 00 1C 2A 80 0D 02 02 05 00 55 B1 79 08 BD 00 00 0E [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 03 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 03 00 1C 2A 00 90 00 BA [11:00:26]RAPDU: 90 00 [11:00:26]wFMCommunicate OK [11:00:26]wFMCommunicate request_size=4 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 0D 03 02 [11:00:26]Write to MH i2c: E2 08 00 1D 2A 80 0D 03 02 00 00 00 00 C2 [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 0B 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 0B 00 1D 2A 00 6C 92 23 41 FF 78 77 7B 90 00 8E [11:00:26]RAPDU: 6C 92 23 41 FF 78 77 7B 90 00 [11:00:26]wFMCommunicate OK [11:00:26]SAM_PROTO_SignData done [11:00:26]FM_MakeSignedData done [11:00:26]CreateOFDProtocolMessage [11:00:26]wFMCommunicate request_size=4 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 11 00 00 [11:00:26]Write to MH i2c: E2 08 00 1E 2A 80 11 00 00 00 00 00 00 C2 [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 17 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 17 00 1E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 17 [11:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:00:26]wFMCommunicate OK [11:00:26]CreateOFDProtocolMessage done [11:00:26]OFDSenderStorePacket 156221 [11:00:26]StoreOFDPacket docnum=156221 [11:00:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 74 15 07 01 0B 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CC CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 62 02 00 35 04 06 00 EC 55 B1 79 08 BD 6C 92 23 41 FF 78 77 7B [11:00:26]CheckFolder [11:00:26]dirname=/storage/ofd_packets [11:00:26]CheckFolder done [11:00:26]ProducePacketName [11:00:26]name=ofd_packets/00156221 [11:00:26]NVStorageSaveData ofd_packets/00156221 [11:00:26]File name is /storage/ofd_packets/00156221 [11:00:26]Write 301 bytes [11:00:26]NVStorageSaveData done [11:00:26]OFDSenderStorePacket done [11:00:26]KKMCreateOFDPacket done [11:00:26]NVStorageSaveData kkm_last_timestamp [11:00:26]File name is /storage/kkm_last_timestamp [11:00:26]Write 4 bytes [11:00:26]NVStorageSaveData done [11:00:26]ExternCall_PrintAddStr [11:00:26]wPrintStart [11:00:26]Write to MH i2c: 01 00 00 1F 2A 49 [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 07 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 07 00 1F 2A 00 00 00 00 00 FF 0F 5E [11:00:26]RasterBufferAndPrint [11:00:26]line Счет N : (1)99036 [11:00:26]line ИНН: 02508201610067 [11:00:26]line Контрольно-Кассовый Чек [11:00:26]line ПРОДАЖА [11:00:26]line ТРК (МРК, ГНК) : 21 [11:00:26]line Товар: 2710124130 [11:00:26]line Аи-92-К-5 [11:00:26]line 7.480 * 66.90 [11:00:26]line = 500.41 [11:00:26]line НДС 12% НСП 1% [11:00:26]line > о реализуемом товаре [11:00:26]line ОКРУГЛЕНИЕ: -0.41 [11:00:26]line ИТОГО: 500.00 [11:00:26]line Внесено: 500.00 [11:00:26]line СДАЧА: 0.00 [11:00:26]line НСП 1% : 4.43 [11:00:26]line НДС 12% : 53.14 [11:00:26]line Наличными: 500.00 [11:00:26]line Безнал.: 0.00 [11:00:26]line Место: АЗС № 143 "Партнер Нефть" [11:00:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:00:26]line СНО: Общий режим [11:00:26]line Чек 122 26.10.2024 11:00 [11:00:26]line Смена: 536 ФФД: 1.0 [11:00:26]line ЗНМ: 0300000096 [11:00:26]line РНМ: 0000000000091693 [11:00:26]line Версия ККМ: 001 [11:00:26]line ФМ: 0000000000871792 [11:00:26]line ФД: 156221 [11:00:26]line ФПД: 259852793874621 [11:00:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156221&fm=259852793874621&tin=02508201610067®Number=0000000000091693&sum=50000 [11:00:27]OFD Sender: Processing packet 156221 [packets to send 31, broken 30] [11:00:27]ProducePacketName [11:00:27]name=ofd_packets/00156221 [11:00:27]OFD Sender: To server: pG, [11:00:27]CommunicateWithHost lk.salyk.kg:30040 [11:00:27]ConnectInit lk.salyk.kg [11:00:27]written 0, free lines is 4095 [11:00:27]Connected sock=10 [11:00:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 74 15 07 01 0B 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CC CB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 62 02 00 35 04 06 00 EC 55 B1 79 08 BD 6C 92 23 41 FF 78 77 7B [11:00:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D2 57 47 00 46 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 62 02 00 F4 03 04 00 3F 71 1C 67 B6 04 01 00 00 94 32 64 DE 47 70 20 58 [11:00:27]CommunicateWithHost err = 0 [11:00:27]CheckOFDResponse [11:00:27]1017 (14) - 77093643461234 [11:00:27]1041 (16) - 0000000000871792 [11:00:27]1040 (4) - 156221 [11:00:27]1012 (4) - 26.10.2024 04:34 [11:00:27]1206 (1) - 0 [11:00:27]OFD Sender: Remove packet 156221 [11:00:27]ProducePacketName [11:00:27]name=ofd_packets/00156221 [11:00:27]NVStorageDeleteData [11:00:27]Write to MH i2c: 01 00 00 4A 2A 74 [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: 01 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: 01 07 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: 01 07 00 4A 2A 00 00 00 00 00 EB 0C 72 [11:00:27]RasterBufferAndPrint [11:00:27]line [11:00:27]line [11:00:27]line [11:00:27]line [11:00:27]line [11:00:27]written 0, free lines is 3313 [11:00:27]process_action close_receipt done [11:00:27]requested_data is exist [11:00:27]produce_requested_data [11:00:27]requested_item fm.sn is exist - process it [11:00:27]wFMCommunicate request_size=4 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 11 00 00 [11:00:27]Write to MH i2c: E2 08 00 51 2A 80 11 00 00 00 00 00 00 F5 [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:27]Read from MH i2c: E2 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 17 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 17 00 51 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4A [11:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:00:27]wFMCommunicate OK [11:00:27]requested_item fd.num is exist - process it [11:00:27]SAM_PROTO_GetFieldsCounters [11:00:27]wFMCommunicate request_size=4 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 13 00 00 [11:00:27]Write to MH i2c: E2 08 00 52 2A 80 13 00 00 00 00 00 00 F8 [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:27]Read from MH i2c: E2 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 62 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 62 00 52 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [11:00: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:27]wFMCommunicate OK [11:00:27]SAM_PROTO_GetFieldsCounters done [11:00:27]requested_item shift.num is exist - process it [11:00:27]requested_item shift.opened is exist - process it [11:00:27]req_shift_opened [11:00:27]FM_GetShiftState [11:00:27]SAM_PROTO_GetShiftState [11:00:27]wFMCommunicate request_size=4 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 13 01 00 [11:00:27]Write to MH i2c: E2 08 00 53 2A 80 13 01 00 00 00 00 00 FA [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:27]Read from MH i2c: E2 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 0E 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 0E 00 53 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2F [11:00:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:00:27]wFMCommunicate OK [11:00:27]SAM_PROTO_GetShiftState done [11:00:27]FM_GetShiftState done [11:00:27]req_shift_opened done [11:00:27]requested_item shift.open_date is exist - process it [11:00:27]req_shift_open_date [11:00:27]req_shift_open_date done [11:00:27]produce_requested_data done [11:00:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156221,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:00:27]process_action_free close_receipt [11:00:27]json_value_free [11:00:27]json_value_free done [11:00:27]process_json_proto returns [11:00:27]Send response to host [11:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156221,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:00:27]free response buf [11:00:27]execute_script done [11:00:27]execute_script returns [11:00:27]free content buf [11:00:27]Sock 9.Close socket [11:00:27]Sock 9.Thread stoped [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:44]accept exits with 7 [11:02:44]New connection [11:02:44]New thread 3066613092 created [11:02:44]Thread 3066469732 joined [11:02:44]Waiting for new connection... [11:02:44] Sock 7.Parse request [11:02:44]Sock 7.Check first char [11:02:44]Sock 7.First char is OK [11:02:44]request: POST /json_proto HTTP/1.0 [11:02:44]Method: POST [11:02:44]URL: /json_proto [11:02:44]Method is POST - this is cgi request [11:02:44]url: /json_proto [11:02:44]query_string will be loaded in cgi processing [11:02:44]execute_cgi json_proto POST (null) [11:02:44]execute_cgi path=json_proto method=POST [11:02:44]POST find Content-Length [11:02:44]Host: 172.17.63.3:8080 [11:02:44]Content-Length: 641 [11:02:44]Content-Type: application/json [11:02:44] [11:02:44]POST finish read [11:02:44]Found Content-Length = 641 [11:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:44]execute_script... [11:02:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:44]POST & json_proto [11:02:44]process_json_proto [11:02:44]json parsed OK: [11:02:44]protocol is kg_v1.0 [11:02:44]action value=close_receipt [11:02:44]process_action close_receipt [11:02:44]cmd_close_receipt [11:02:44]MH_GetDate [11:02:44]Write to MH i2c: F0 00 00 54 2A 6D [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 09 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 09 00 54 2A 00 58 CC 1C 67 50 D1 6C 64 0E [11:02:44]GetLastDocTimeStamp 1729940428 [11:02:44]current date 1729940568 [11:02:44]FM_GetShiftState [11:02:44]SAM_PROTO_GetShiftState [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 13 01 00 [11:02:44]Write to MH i2c: E2 08 00 55 2A 80 13 01 00 00 00 00 00 FC [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0E 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0E 00 55 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 31 [11:02:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:02:44]wFMCommunicate OK [11:02:44]SAM_PROTO_GetShiftState done [11:02:44]FM_GetShiftState done [11:02:44]opened in 1729902702 [11:02:44]opened+sec_in_day 1729989102 [11:02:44]quantity*price = 133800 [11:02:44]sum+1 = 133801 [11:02:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 123 26.10.2024 11:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156222 ФПД: 119784815110981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110248&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156222&fm=119784815110981&tin=02508201610067®Number=0000000000091693&sum=133800 [11:02:45]StoreToDocumentArchive [11:02:45]shift 536 fd 156222 [11:02:45]save to /storage/0536/doc_00156222 [11:02:45]save last doc name /storage/0536/doc_00156222 to /storage/kkm_last_doc_name [11:02:45]save OK [11:02:45]Clear old archive folders... [11:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:45]tlvbuf is 00D1C830 [11:02:45]SAM_PROTO_ClearQueue [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 09 00 00 [11:02:45]Write to MH i2c: E2 08 00 62 2A 80 09 00 00 00 00 00 00 FE [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 62 2A 00 90 00 00 [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]SAM_PROTO_ClearQueue done [11:02:45]KKMCreateOFDPacket [11:02:45]OFDProtocolAddRootSTLVToBuf [11:02:45]FM_MakeSignedData [11:02:45]FM_MakeSignedData [11:02:45]SAM_PROTO_SignData [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 01 02 [11:02:45]Write to MH i2c: E2 08 00 63 2A 80 0D 01 02 00 00 00 00 06 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]wFMCommunicate request_size=255 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 58 CC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 62 02 00 35 04 06 00 6C [11:02:45]Write to MH i2c: E2 02 01 64 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 58 CC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 62 02 00 35 04 06 00 6C 00 00 81 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [11:02:46]RAPDU: 90 00 [11:02:46]wFMCommunicate OK [11:02:46]wFMCommunicate request_size=10 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 0D 02 02 05 F1 93 5A AB 45 [11:02:46]Write to MH i2c: E2 0D 00 65 2A 80 0D 02 02 05 00 F1 93 5A AB 45 00 00 E1 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [11:02:46]RAPDU: 90 00 [11:02:46]wFMCommunicate OK [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 0D 03 02 [11:02:46]Write to MH i2c: E2 08 00 66 2A 80 0D 03 02 00 00 00 00 0B [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 0B 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 0B 00 66 2A 00 6C AE F9 79 6A 70 66 1D 90 00 F5 [11:02:46]RAPDU: 6C AE F9 79 6A 70 66 1D 90 00 [11:02:46]wFMCommunicate OK [11:02:46]SAM_PROTO_SignData done [11:02:46]FM_MakeSignedData done [11:02:46]CreateOFDProtocolMessage [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 11 00 00 [11:02:46]Write to MH i2c: E2 08 00 67 2A 80 11 00 00 00 00 00 00 0B [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 17 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 17 00 67 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [11:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:02:46]wFMCommunicate OK [11:02:46]CreateOFDProtocolMessage done [11:02:46]OFDSenderStorePacket 156222 [11:02:46]StoreOFDPacket docnum=156222 [11:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E6 77 07 01 A1 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 58 CC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 62 02 00 35 04 06 00 6C F1 93 5A AB 45 6C AE F9 79 6A 70 66 1D [11:02:46]CheckFolder [11:02:46]dirname=/storage/ofd_packets [11:02:46]CheckFolder done [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00156222 [11:02:46]NVStorageSaveData ofd_packets/00156222 [11:02:46]File name is /storage/ofd_packets/00156222 [11:02:46]Write 301 bytes [11:02:46]NVStorageSaveData done [11:02:46]OFDSenderStorePacket done [11:02:46]KKMCreateOFDPacket done [11:02:46]NVStorageSaveData kkm_last_timestamp [11:02:46]File name is /storage/kkm_last_timestamp [11:02:46]Write 4 bytes [11:02:46]NVStorageSaveData done [11:02:46]ExternCall_PrintAddStr [11:02:46]wPrintStart [11:02:46]Write to MH i2c: 01 00 00 68 2A 92 [11:02:46]OFD Sender: Processing packet 156222 [packets to send 31, broken 30] [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00156222 [11:02:46]OFD Sender: To server: pG, [11:02:46]CommunicateWithHost lk.salyk.kg:30040 [11:02:46]ConnectInit lk.salyk.kg [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 68 2A 00 00 00 00 00 FF 0F A7 [11:02:46]RasterBufferAndPrint [11:02:46]line Счет N : (1)99037 [11:02:46]line ИНН: 02508201610067 [11:02:46]line Контрольно-Кассовый Чек [11:02:46]line ПРОДАЖА [11:02:46]line ТРК (МРК, ГНК) : 11 [11:02:46]line Товар: 2710124130 [11:02:46]line Аи-92-К-5 [11:02:46]line 20.000 * 66.90 [11:02:46]line = 1338.00 [11:02:46]line НДС 12% НСП 1% [11:02:46]line > о реализуемом товаре [11:02:46]line ИТОГО: 1338.00 [11:02:46]line НСП 1% : 11.84 [11:02:46]line НДС 12% : 142.09 [11:02:46]line Наличными: 1338.00 [11:02:46]line Безнал.: 0.00 [11:02:46]line Место: АЗС № 143 "Партнер Нефть" [11:02:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:02:46]line СНО: Общий режим [11:02:46]line Чек 123 26.10.2024 11:02 [11:02:46]line Смена: 536 ФФД: 1.0 [11:02:46]line ЗНМ: 0300000096 [11:02:46]line РНМ: 0000000000091693 [11:02:46]line Версия ККМ: 001 [11:02:46]line ФМ: 0000000000871792 [11:02:46]line ФД: 156222 [11:02:46]line ФПД: 119784815110981 [11:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110248&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156222&fm=119784815110981&tin=02508201610067®Number=0000000000091693&sum=133800 [11:02:46]Connected sock=10 [11:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E6 77 07 01 A1 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 58 CC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 62 02 00 35 04 06 00 6C F1 93 5A AB 45 6C AE F9 79 6A 70 66 1D [11:02:46]written 0, free lines is 4095 [11:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D6 1B 47 00 61 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 62 02 00 F4 03 04 00 CB 71 1C 67 B6 04 01 00 00 73 B9 5C 4F 54 B8 93 11 [11:02:46]CommunicateWithHost err = 0 [11:02:46]CheckOFDResponse [11:02:46]1017 (14) - 77093643461234 [11:02:46]1041 (16) - 0000000000871792 [11:02:46]1040 (4) - 156222 [11:02:46]1012 (4) - 26.10.2024 04:36 [11:02:46]1206 (1) - 0 [11:02:46]OFD Sender: Remove packet 156222 [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00156222 [11:02:46]NVStorageDeleteData [11:02:47]Write to MH i2c: 01 00 00 90 2A BA [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 07 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 07 00 90 2A 00 00 00 00 00 18 0D E6 [11:02:47]RasterBufferAndPrint [11:02:47]line [11:02:47]line [11:02:47]line [11:02:47]line [11:02:47]line [11:02:47]written 0, free lines is 3361 [11:02:47]process_action close_receipt done [11:02:47]requested_data is exist [11:02:47]produce_requested_data [11:02:47]requested_item fm.sn is exist - process it [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 11 00 00 [11:02:47]Write to MH i2c: E2 08 00 97 2A 80 11 00 00 00 00 00 00 3B [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 17 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 17 00 97 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 90 [11:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:02:47]wFMCommunicate OK [11:02:47]requested_item fd.num is exist - process it [11:02:47]SAM_PROTO_GetFieldsCounters [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 13 00 00 [11:02:47]Write to MH i2c: E2 08 00 98 2A 80 13 00 00 00 00 00 00 3E [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 62 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 62 00 98 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [11:02:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:47]wFMCommunicate OK [11:02:47]SAM_PROTO_GetFieldsCounters done [11:02:47]requested_item shift.num is exist - process it [11:02:47]requested_item shift.opened is exist - process it [11:02:47]req_shift_opened [11:02:47]FM_GetShiftState [11:02:47]SAM_PROTO_GetShiftState [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 13 01 00 [11:02:47]Write to MH i2c: E2 08 00 99 2A 80 13 01 00 00 00 00 00 40 [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]OFD Sender: No OFD packet to send [11:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 99 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 75 [11:02:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:02:47]wFMCommunicate OK [11:02:47]SAM_PROTO_GetShiftState done [11:02:47]FM_GetShiftState done [11:02:47]req_shift_opened done [11:02:47]requested_item shift.open_date is exist - process it [11:02:47]req_shift_open_date [11:02:47]req_shift_open_date done [11:02:47]produce_requested_data done [11:02:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156222,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:02:47]process_action_free close_receipt [11:02:47]json_value_free [11:02:47]json_value_free done [11:02:47]process_json_proto returns [11:02:47]Send response to host [11:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156222,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:02:47]free response buf [11:02:47]execute_script done [11:02:47]execute_script returns [11:02:47]free content buf [11:02:47]Sock 7.Close socket [11:02:47]Sock 7.Thread stoped [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:21]accept exits with 9 [11:05:21]New connection [11:05:21]New thread 3066469732 created [11:05:21]Thread 3066613092 joined [11:05:21]Waiting for new connection... [11:05:21] Sock 9.Parse request [11:05:21]Sock 9.Check first char [11:05:21]Sock 9.First char is OK [11:05:21]request: POST /json_proto HTTP/1.0 [11:05:21]Method: POST [11:05:21]URL: /json_proto [11:05:21]Method is POST - this is cgi request [11:05:21]url: /json_proto [11:05:21]query_string will be loaded in cgi processing [11:05:21]execute_cgi json_proto POST (null) [11:05:21]execute_cgi path=json_proto method=POST [11:05:21]POST find Content-Length [11:05:21]Host: 172.17.63.3:8080 [11:05:21]Content-Length: 768 [11:05:21]Content-Type: application/json [11:05:21] [11:05:21]POST finish read [11:05:21]Found Content-Length = 768 [11:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:21]execute_script... [11:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:21]POST & json_proto [11:05:21]process_json_proto [11:05:21]json parsed OK: [11:05:21]protocol is kg_v1.0 [11:05:21]action value=close_receipt [11:05:21]process_action close_receipt [11:05:21]cmd_close_receipt [11:05:21]MH_GetDate [11:05:21]Write to MH i2c: F0 00 00 9A 2A B3 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: F0 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: F0 09 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: F0 09 00 9A 2A 00 F5 CC 1C 67 50 D1 6C 64 F1 [11:05:21]GetLastDocTimeStamp 1729940568 [11:05:21]current date 1729940725 [11:05:21]FM_GetShiftState [11:05:21]SAM_PROTO_GetShiftState [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 01 00 [11:05:21]Write to MH i2c: E2 08 00 9B 2A 80 13 01 00 00 00 00 00 42 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 9B 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 77 [11:05:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetShiftState done [11:05:21]FM_GetShiftState done [11:05:21]opened in 1729902702 [11:05:21]opened+sec_in_day 1729989102 [11:05:21]quantity*price = 200031 [11:05:21]sum+1 = 200032 [11:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 124 26.10.2024 11:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156223 ФПД: 268406614693655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110525&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156223&fm=268406614693655&tin=02508201610067®Number=0000000000091693&sum=200031 [11:05:23]StoreToDocumentArchive [11:05:23]shift 536 fd 156223 [11:05:23]save to /storage/0536/doc_00156223 [11:05:23]save last doc name /storage/0536/doc_00156223 to /storage/kkm_last_doc_name [11:05:23]save OK [11:05:23]Clear old archive folders... [11:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:23]tlvbuf is 00D81000 [11:05:23]SAM_PROTO_ClearQueue [11:05:23]wFMCommunicate request_size=4 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 09 00 00 [11:05:23]Write to MH i2c: E2 08 00 A8 2A 80 09 00 00 00 00 00 00 44 [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:23]Read from MH i2c: E2 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [11:05:23]RAPDU: 90 00 [11:05:23]wFMCommunicate OK [11:05:23]SAM_PROTO_ClearQueue done [11:05:23]KKMCreateOFDPacket [11:05:23]OFDProtocolAddRootSTLVToBuf [11:05:23]FM_MakeSignedData [11:05:23]FM_MakeSignedData [11:05:23]SAM_PROTO_SignData [11:05:23]wFMCommunicate request_size=4 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 0D 01 02 [11:05:23]Write to MH i2c: E2 08 00 A9 2A 80 0D 01 02 00 00 00 00 4C [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:23]Read from MH i2c: E2 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [11:05:23]RAPDU: 90 00 [11:05:23]wFMCommunicate OK [11:05:23]wFMCommunicate request_size=255 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F5 CC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 62 02 00 35 04 06 00 F4 [11:05:23]Write to MH i2c: E2 02 01 AA 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F5 CC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 62 02 00 35 04 06 00 F4 00 00 D1 [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:23]Read from MH i2c: E2 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [11:05:23]RAPDU: 90 00 [11:05:23]wFMCommunicate OK [11:05:23]wFMCommunicate request_size=10 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 0D 02 02 05 1D 48 EC 97 17 [11:05:23]Write to MH i2c: E2 0D 00 AB 2A 80 0D 02 02 05 00 1D 48 EC 97 17 00 00 58 [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:23]Read from MH i2c: E2 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 AB 2A 00 90 00 49 [11:05:23]RAPDU: 90 00 [11:05:23]wFMCommunicate OK [11:05:23]wFMCommunicate request_size=4 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 0D 03 02 [11:05:23]Write to MH i2c: E2 08 00 AC 2A 80 0D 03 02 00 00 00 00 51 [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:23]Read from MH i2c: E2 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 0B 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 0B 00 AC 2A 00 EC 8E 33 86 4B FF 18 27 90 00 0E [11:05:23]RAPDU: EC 8E 33 86 4B FF 18 27 90 00 [11:05:23]wFMCommunicate OK [11:05:23]SAM_PROTO_SignData done [11:05:23]FM_MakeSignedData done [11:05:23]CreateOFDProtocolMessage [11:05:23]wFMCommunicate request_size=4 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 11 00 00 [11:05:23]Write to MH i2c: E2 08 00 AD 2A 80 11 00 00 00 00 00 00 51 [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:23]Read from MH i2c: E2 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 17 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 17 00 AD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [11:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:05:23]wFMCommunicate OK [11:05:23]CreateOFDProtocolMessage done [11:05:23]OFDSenderStorePacket 156223 [11:05:23]StoreOFDPacket docnum=156223 [11:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B BC 07 01 6A 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F5 CC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 62 02 00 35 04 06 00 F4 1D 48 EC 97 17 EC 8E 33 86 4B FF 18 27 [11:05:23]CheckFolder [11:05:23]dirname=/storage/ofd_packets [11:05:23]CheckFolder done [11:05:23]ProducePacketName [11:05:23]name=ofd_packets/00156223 [11:05:23]NVStorageSaveData ofd_packets/00156223 [11:05:23]File name is /storage/ofd_packets/00156223 [11:05:23]Write 301 bytes [11:05:23]NVStorageSaveData done [11:05:23]OFDSenderStorePacket done [11:05:23]KKMCreateOFDPacket done [11:05:23]NVStorageSaveData kkm_last_timestamp [11:05:23]File name is /storage/kkm_last_timestamp [11:05:23]Write 4 bytes [11:05:23]NVStorageSaveData done [11:05:23]ExternCall_PrintAddStr [11:05:23]wPrintStart [11:05:23]Write to MH i2c: 01 00 00 AE 2A D8 [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: 01 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: 01 07 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: 01 07 00 AE 2A 00 00 00 00 00 FF 0F ED [11:05:23]RasterBufferAndPrint [11:05:23]line Счет N : (1)99038 [11:05:23]line ИНН: 02508201610067 [11:05:23]line Контрольно-Кассовый Чек [11:05:23]line ПРОДАЖА [11:05:23]line ТРК (МРК, ГНК) : 31 [11:05:23]line Товар: 2710124130 [11:05:23]line Аи-92-К-5 [11:05:23]line 29.900 * 66.90 [11:05:23]line = 2000.31 [11:05:23]line НДС 12% НСП 1% [11:05:23]line > о реализуемом товаре [11:05:23]line ИТОГО: 2000.31 [11:05:23]line НСП 1% : 17.70 [11:05:23]line НДС 12% : 212.42 [11:05:23]line Наличными: 0.00 [11:05:23]line Безнал.: 2000.31 [11:05:23]line Место: АЗС № 143 "Партнер Нефть" [11:05:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:05:23]line СНО: Общий режим [11:05:23]line Чек 124 26.10.2024 11:05 [11:05:23]line Смена: 536 ФФД: 1.0 [11:05:23]line ЗНМ: 0300000096 [11:05:23]line РНМ: 0000000000091693 [11:05:23]line Версия ККМ: 001 [11:05:23]line Платежная система: Mbank [11:05:23]line ФМ: 0000000000871792 [11:05:23]line ФД: 156223 [11:05:23]line ФПД: 268406614693655 [11:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110525&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156223&fm=268406614693655&tin=02508201610067®Number=0000000000091693&sum=200031 [11:05:23]OFD Sender: Processing packet 156223 [packets to send 31, broken 30] [11:05:23]ProducePacketName [11:05:23]name=ofd_packets/00156223 [11:05:23]OFD Sender: To server: pG, [11:05:23]CommunicateWithHost lk.salyk.kg:30040 [11:05:23]ConnectInit lk.salyk.kg [11:05:23]written 0, free lines is 4095 [11:05:24]Connected sock=7 [11: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 31 37 39 32 0F 01 00 00 2B BC 07 01 6A 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F5 CC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 62 02 00 35 04 06 00 F4 1D 48 EC 97 17 EC 8E 33 86 4B FF 18 27 [11:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 19 C3 47 00 CC 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 62 02 00 F4 03 04 00 68 72 1C 67 B6 04 01 00 00 71 D5 72 86 ED 9B 14 0F [11:05:24]CommunicateWithHost err = 0 [11:05:24]CheckOFDResponse [11:05:24]1017 (14) - 77093643461234 [11:05:24]1041 (16) - 0000000000871792 [11:05:24]1040 (4) - 156223 [11:05:24]1012 (4) - 26.10.2024 04:39 [11:05:24]1206 (1) - 0 [11:05:24]OFD Sender: Remove packet 156223 [11:05:24]ProducePacketName [11:05:24]name=ofd_packets/00156223 [11:05:24]NVStorageDeleteData [11:05:24]Write to MH i2c: 01 00 00 D7 2A 01 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 07 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 07 00 D7 2A 00 00 00 00 00 20 0D 35 [11:05:24]RasterBufferAndPrint [11:05:24]line [11:05:24]line [11:05:24]line [11:05:24]line [11:05:24]line [11:05:24]written 0, free lines is 3369 [11:05:24]process_action close_receipt done [11:05:24]requested_data is exist [11:05:24]produce_requested_data [11:05:24]requested_item fm.sn is exist - process it [11:05:24]wFMCommunicate request_size=4 [11:05:24]MH_SAM_APDU [11:05:24]CAPDU: 80 11 00 00 [11:05:24]Write to MH i2c: E2 08 00 DE 2A 80 11 00 00 00 00 00 00 82 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:24]Read from MH i2c: E2 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 17 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 17 00 DE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [11:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:05:24]wFMCommunicate OK [11:05:24]requested_item fd.num is exist - process it [11:05:24]SAM_PROTO_GetFieldsCounters [11:05:24]wFMCommunicate request_size=4 [11:05:24]MH_SAM_APDU [11:05:24]CAPDU: 80 13 00 00 [11:05:24]Write to MH i2c: E2 08 00 DF 2A 80 13 00 00 00 00 00 00 85 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:24]Read from MH i2c: E2 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 62 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 62 00 DF 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11:05: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:24]wFMCommunicate OK [11:05:24]SAM_PROTO_GetFieldsCounters done [11:05:24]requested_item shift.num is exist - process it [11:05:24]requested_item shift.opened is exist - process it [11:05:24]req_shift_opened [11:05:24]FM_GetShiftState [11:05:24]SAM_PROTO_GetShiftState [11:05:24]wFMCommunicate request_size=4 [11:05:24]MH_SAM_APDU [11:05:24]CAPDU: 80 13 01 00 [11:05:24]Write to MH i2c: E2 08 00 E0 2A 80 13 01 00 00 00 00 00 87 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:24]Read from MH i2c: E2 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 0E 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 0E 00 E0 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BC [11:05:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:05:24]wFMCommunicate OK [11:05:24]SAM_PROTO_GetShiftState done [11:05:24]FM_GetShiftState done [11:05:24]req_shift_opened done [11:05:24]requested_item shift.open_date is exist - process it [11:05:24]req_shift_open_date [11:05:24]req_shift_open_date done [11:05:24]produce_requested_data done [11:05:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156223,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:05:24]process_action_free close_receipt [11:05:24]json_value_free [11:05:24]json_value_free done [11:05:24]process_json_proto returns [11:05:24]Send response to host [11:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156223,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:05:24]free response buf [11:05:24]execute_script done [11:05:24]execute_script returns [11:05:24]free content buf [11:05:24]Sock 9.Close socket [11:05:24]Sock 9.Thread stoped [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:50]accept exits with 10 [11:05:50]New connection [11:05:50]New thread 3066613092 created [11:05:50]Thread 3066469732 joined [11:05:50]Waiting for new connection... [11:05:50] Sock 10.Parse request [11:05:50]Sock 10.Check first char [11:05:50]Sock 10.First char is OK [11:05:50]request: POST /json_proto HTTP/1.0 [11:05:50]Method: POST [11:05:50]URL: /json_proto [11:05:50]Method is POST - this is cgi request [11:05:50]url: /json_proto [11:05:50]query_string will be loaded in cgi processing [11:05:50]execute_cgi json_proto POST (null) [11:05:50]execute_cgi path=json_proto method=POST [11:05:50]POST find Content-Length [11:05:50]Host: 172.17.63.3:8080 [11:05:50]Content-Length: 681 [11:05:50]Content-Type: application/json [11:05:50] [11:05:50]POST finish read [11:05:50]Found Content-Length = 681 [11:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "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" ] } } [11:05:50]execute_script... [11:05:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "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" ] } } [11:05:50]POST & json_proto [11:05:50]process_json_proto [11:05:50]json parsed OK: [11:05:50]protocol is kg_v1.0 [11:05:50]action value=close_receipt [11:05:50]process_action close_receipt [11:05:50]cmd_close_receipt [11:05:50]MH_GetDate [11:05:50]Write to MH i2c: F0 00 00 E1 2A FA [11:05:50]Write i2c OK [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: F0 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: F0 09 00 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: F0 09 00 E1 2A 00 12 CD 1C 67 50 D1 6C 64 56 [11:05:50]GetLastDocTimeStamp 1729940725 [11:05:50]current date 1729940754 [11:05:50]FM_GetShiftState [11:05:50]SAM_PROTO_GetShiftState [11:05:50]wFMCommunicate request_size=4 [11:05:50]MH_SAM_APDU [11:05:50]CAPDU: 80 13 01 00 [11:05:50]Write to MH i2c: E2 08 00 E2 2A 80 13 01 00 00 00 00 00 89 [11:05:50]Write i2c OK [11:05:50]MH_I2C_Read... [11:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:50]Read from MH i2c: E2 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 0E 00 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 0E 00 E2 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BE [11:05:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:05:50]wFMCommunicate OK [11:05:50]SAM_PROTO_GetShiftState done [11:05:50]FM_GetShiftState done [11:05:50]opened in 1729902702 [11:05:50]opened+sec_in_day 1729989102 [11:05:50]quantity*price = 300046 [11:05:50]sum+1 = 300048 [11:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 125 26.10.2024 11:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156224 ФПД: 204065651889246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110554&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156224&fm=204065651889246&tin=02508201610067®Number=0000000000091693&sum=300000 [11:05:51]StoreToDocumentArchive [11:05:51]shift 536 fd 156224 [11:05:51]save to /storage/0536/doc_00156224 [11:05:51]save last doc name /storage/0536/doc_00156224 to /storage/kkm_last_doc_name [11:05:51]save OK [11:05:51]Clear old archive folders... [11:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:51]tlvbuf is 00DE5910 [11:05:51]SAM_PROTO_ClearQueue [11:05:51]wFMCommunicate request_size=4 [11:05:51]MH_SAM_APDU [11:05:51]CAPDU: 80 09 00 00 [11:05:51]Write to MH i2c: E2 08 00 EF 2A 80 09 00 00 00 00 00 00 8B [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:51]Read from MH i2c: E2 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 03 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 03 00 EF 2A 00 90 00 8D [11:05:51]RAPDU: 90 00 [11:05:51]wFMCommunicate OK [11:05:51]SAM_PROTO_ClearQueue done [11:05:51]KKMCreateOFDPacket [11:05:51]OFDProtocolAddRootSTLVToBuf [11:05:51]FM_MakeSignedData [11:05:51]FM_MakeSignedData [11:05:51]SAM_PROTO_SignData [11:05:51]wFMCommunicate request_size=4 [11:05:51]MH_SAM_APDU [11:05:51]CAPDU: 80 0D 01 02 [11:05:51]Write to MH i2c: E2 08 00 F0 2A 80 0D 01 02 00 00 00 00 93 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:51]Read from MH i2c: E2 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 03 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [11:05:51]RAPDU: 90 00 [11:05:51]wFMCommunicate OK [11:05:51]wFMCommunicate request_size=255 [11:05:51]MH_SAM_APDU [11:05:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 12 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 62 02 00 35 04 06 00 B9 [11:05:51]Write to MH i2c: E2 02 01 F1 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 12 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 62 02 00 35 04 06 00 B9 00 00 06 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:51]Read from MH i2c: E2 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 03 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [11:05:51]RAPDU: 90 00 [11:05:51]wFMCommunicate OK [11:05:51]wFMCommunicate request_size=10 [11:05:51]MH_SAM_APDU [11:05:51]CAPDU: 80 0D 02 02 05 98 BC B1 14 5E [11:05:51]Write to MH i2c: E2 0D 00 F2 2A 80 0D 02 02 05 00 98 BC B1 14 5E 00 00 17 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:51]Read from MH i2c: E2 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 03 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 03 00 F2 2A 00 90 00 90 [11:05:51]RAPDU: 90 00 [11:05:51]wFMCommunicate OK [11:05:51]wFMCommunicate request_size=4 [11:05:51]MH_SAM_APDU [11:05:51]CAPDU: 80 0D 03 02 [11:05:51]Write to MH i2c: E2 08 00 F3 2A 80 0D 03 02 00 00 00 00 98 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:51]Read from MH i2c: E2 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 0B 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 0B 00 F3 2A 00 AB 08 B9 76 3E 53 5D 29 90 00 92 [11:05:51]RAPDU: AB 08 B9 76 3E 53 5D 29 90 00 [11:05:51]wFMCommunicate OK [11:05:51]SAM_PROTO_SignData done [11:05:51]FM_MakeSignedData done [11:05:51]CreateOFDProtocolMessage [11:05:51]wFMCommunicate request_size=4 [11:05:51]MH_SAM_APDU [11:05:51]CAPDU: 80 11 00 00 [11:05:51]Write to MH i2c: E2 08 00 F4 2A 80 11 00 00 00 00 00 00 98 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:51]Read from MH i2c: E2 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 17 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 17 00 F4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [11:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:05:51]wFMCommunicate OK [11:05:51]CreateOFDProtocolMessage done [11:05:51]OFDSenderStorePacket 156224 [11:05:51]StoreOFDPacket docnum=156224 [11:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C1 21 07 01 16 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 12 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 62 02 00 35 04 06 00 B9 98 BC B1 14 5E AB 08 B9 76 3E 53 5D 29 [11:05:51]CheckFolder [11:05:51]dirname=/storage/ofd_packets [11:05:51]CheckFolder done [11:05:51]ProducePacketName [11:05:51]name=ofd_packets/00156224 [11:05:51]NVStorageSaveData ofd_packets/00156224 [11:05:51]File name is /storage/ofd_packets/00156224 [11:05:51]Write 301 bytes [11:05:51]NVStorageSaveData done [11:05:51]OFDSenderStorePacket done [11:05:51]KKMCreateOFDPacket done [11:05:51]NVStorageSaveData kkm_last_timestamp [11:05:51]File name is /storage/kkm_last_timestamp [11:05:51]Write 4 bytes [11:05:51]NVStorageSaveData done [11:05:51]ExternCall_PrintAddStr [11:05:51]wPrintStart [11:05:51]Write to MH i2c: 01 00 00 F5 2A 1F [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: 01 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: 01 07 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: 01 07 00 F5 2A 00 00 00 00 00 FF 0F 34 [11:05:51]RasterBufferAndPrint [11:05:51]line Счет N : (1)99039 [11:05:51]line ИНН: 02508201610067 [11:05:51]line Контрольно-Кассовый Чек [11:05:51]line ПРОДАЖА [11:05:51]line ТРК (МРК, ГНК) : 21 [11:05:51]line Товар: 2710124130 [11:05:51]line Аи-92-К-5 [11:05:51]line 44.850 * 66.90 [11:05:51]line = 3000.47 [11:05:51]line НДС 12% НСП 1% [11:05:51]line > о реализуемом товаре [11:05:51]line ОКРУГЛЕНИЕ: -0.47 [11:05:51]line ИТОГО: 3000.00 [11:05:51]line Внесено: 3000.00 [11:05:51]line СДАЧА: 0.00 [11:05:51]line НСП 1% : 26.55 [11:05:51]line НДС 12% : 318.63 [11:05:51]line Наличными: 3000.00 [11:05:51]line Безнал.: 0.00 [11:05:51]line Место: АЗС № 143 "Партнер Нефть" [11:05:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:05:51]line СНО: Общий режим [11:05:51]line Чек 125 26.10.2024 11:05 [11:05:51]line Смена: 536 ФФД: 1.0 [11:05:51]line ЗНМ: 0300000096 [11:05:51]line РНМ: 0000000000091693 [11:05:51]line Версия ККМ: 001 [11:05:51]line ФМ: 0000000000871792 [11:05:51]line ФД: 156224 [11:05:51]line ФПД: 204065651889246 [11:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110554&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156224&fm=204065651889246&tin=02508201610067®Number=0000000000091693&sum=300000 [11:05:52]OFD Sender: Processing packet 156224 [packets to send 31, broken 30] [11:05:52]ProducePacketName [11:05:52]name=ofd_packets/00156224 [11:05:52]OFD Sender: To server: pG, [11:05:52]CommunicateWithHost lk.salyk.kg:30040 [11:05:52]ConnectInit lk.salyk.kg [11:05:52]written 0, free lines is 4095 [11:05:52]Connected sock=9 [11:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C1 21 07 01 16 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 12 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 62 02 00 35 04 06 00 B9 98 BC B1 14 5E AB 08 B9 76 3E 53 5D 29 [11:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3E A0 47 00 62 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 62 02 00 F4 03 04 00 85 72 1C 67 B6 04 01 00 00 85 6C 92 88 4E 55 5B CC [11:05:52]CommunicateWithHost err = 0 [11:05:52]CheckOFDResponse [11:05:52]1017 (14) - 77093643461234 [11:05:52]1041 (16) - 0000000000871792 [11:05:52]1040 (4) - 156224 [11:05:52]1012 (4) - 26.10.2024 04:39 [11:05:52]1206 (1) - 0 [11:05:52]OFD Sender: Remove packet 156224 [11:05:52]ProducePacketName [11:05:52]name=ofd_packets/00156224 [11:05:52]NVStorageDeleteData [11:05:52]Write to MH i2c: 01 00 00 20 2B 4B [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: 01 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: 01 07 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: 01 07 00 20 2B 00 00 00 00 00 01 0D 60 [11:05:52]RasterBufferAndPrint [11:05:52]line [11:05:52]line [11:05:52]line [11:05:52]line [11:05:52]line [11:05:52]written 0, free lines is 3335 [11:05:52]process_action close_receipt done [11:05:52]requested_data is exist [11:05:52]produce_requested_data [11:05:52]requested_item fm.sn is exist - process it [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 11 00 00 [11:05:52]Write to MH i2c: E2 08 00 27 2B 80 11 00 00 00 00 00 00 CC [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:52]Read from MH i2c: E2 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 17 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 17 00 27 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 21 [11:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:05:52]wFMCommunicate OK [11:05:52]requested_item fd.num is exist - process it [11:05:52]SAM_PROTO_GetFieldsCounters [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 13 00 00 [11:05:52]Write to MH i2c: E2 08 00 28 2B 80 13 00 00 00 00 00 00 CF [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:52]Read from MH i2c: E2 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 62 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 62 00 28 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 40 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 40 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:52]wFMCommunicate OK [11:05:52]SAM_PROTO_GetFieldsCounters done [11:05:52]requested_item shift.num is exist - process it [11:05:52]requested_item shift.opened is exist - process it [11:05:52]req_shift_opened [11:05:52]FM_GetShiftState [11:05:52]SAM_PROTO_GetShiftState [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 13 01 00 [11:05:52]Write to MH i2c: E2 08 00 29 2B 80 13 01 00 00 00 00 00 D1 [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:53]Read from MH i2c: E2 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 0E 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 0E 00 29 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 06 [11:05:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:05:53]wFMCommunicate OK [11:05:53]SAM_PROTO_GetShiftState done [11:05:53]FM_GetShiftState done [11:05:53]req_shift_opened done [11:05:53]requested_item shift.open_date is exist - process it [11:05:53]req_shift_open_date [11:05:53]req_shift_open_date done [11:05:53]produce_requested_data done [11:05:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156224,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:05:53]process_action_free close_receipt [11:05:53]json_value_free [11:05:53]json_value_free done [11:05:53]process_json_proto returns [11:05:53]Send response to host [11:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156224,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:05:53]free response buf [11:05:53]execute_script done [11:05:53]execute_script returns [11:05:53]free content buf [11:05:53]Sock 10.Close socket [11:05:53]Sock 10.Thread stoped [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:05:59]accept exits with 7 [11:05:59]New connection [11:05:59]New thread 3066469732 created [11:05:59]Thread 3066613092 joined [11:05:59]Waiting for new connection... [11:05:59] Sock 7.Parse request [11:05:59]Sock 7.Check first char [11:05:59]Sock 7.First char is OK [11:05:59]request: POST /json_proto HTTP/1.0 [11:05:59]Method: POST [11:05:59]URL: /json_proto [11:05:59]Method is POST - this is cgi request [11:05:59]url: /json_proto [11:05:59]query_string will be loaded in cgi processing [11:05:59]execute_cgi json_proto POST (null) [11:05:59]execute_cgi path=json_proto method=POST [11:05:59]POST find Content-Length [11:05:59]Host: 172.17.63.3:8080 [11:05:59]Content-Length: 673 [11:05:59]Content-Type: application/json [11:05:59] [11:05:59]POST finish read [11:05:59]Found Content-Length = 673 [11:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.910, "sum" : 450.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:59]execute_script... [11:05:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.910, "sum" : 450.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:59]POST & json_proto [11:05:59]process_json_proto [11:05:59]json parsed OK: [11:05:59]protocol is kg_v1.0 [11:05:59]action value=close_receipt [11:05:59]process_action close_receipt [11:05:59]cmd_close_receipt [11:05:59]MH_GetDate [11:05:59]Write to MH i2c: F0 00 00 2A 2B 44 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 09 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 09 00 2A 2B 00 1B CD 1C 67 50 D1 6C 64 A9 [11:05:59]GetLastDocTimeStamp 1729940754 [11:05:59]current date 1729940763 [11:05:59]FM_GetShiftState [11:05:59]SAM_PROTO_GetShiftState [11:05:59]wFMCommunicate request_size=4 [11:05:59]MH_SAM_APDU [11:05:59]CAPDU: 80 13 01 00 [11:05:59]Write to MH i2c: E2 08 00 2B 2B 80 13 01 00 00 00 00 00 D3 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:59]Read from MH i2c: E2 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 0E 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 0E 00 2B 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 08 [11:05:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:05:59]wFMCommunicate OK [11:05:59]SAM_PROTO_GetShiftState done [11:05:59]FM_GetShiftState done [11:05:59]opened in 1729902702 [11:05:59]opened+sec_in_day 1729989102 [11:05:59]quantity*price = 45034 [11:05:59]sum+1 = 45035 [11:05:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.82 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 126 26.10.2024 11:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156225 ФПД: 268819901935620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110603&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156225&fm=268819901935620&tin=02508201610067®Number=0000000000091693&sum=45000 [11:06:00]StoreToDocumentArchive [11:06:00]shift 536 fd 156225 [11:06:00]save to /storage/0536/doc_00156225 [11:06:00]save last doc name /storage/0536/doc_00156225 to /storage/kkm_last_doc_name [11:06:00]save OK [11:06:00]Clear old archive folders... [11:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:06:00]tlvbuf is 00D1C6C0 [11:06:00]SAM_PROTO_ClearQueue [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 09 00 00 [11:06:00]Write to MH i2c: E2 08 00 38 2B 80 09 00 00 00 00 00 00 D5 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 38 2B 00 90 00 D7 [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_ClearQueue done [11:06:00]KKMCreateOFDPacket [11:06:00]OFDProtocolAddRootSTLVToBuf [11:06:00]FM_MakeSignedData [11:06:00]FM_MakeSignedData [11:06:00]SAM_PROTO_SignData [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 0D 01 02 [11:06:00]Write to MH i2c: E2 08 00 39 2B 80 0D 01 02 00 00 00 00 DD [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 39 2B 00 90 00 D8 [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]wFMCommunicate request_size=255 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1B CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 62 02 00 35 04 06 00 F4 7D 82 C3 [11:06:00]Write to MH i2c: E2 02 01 3A 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1B CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 62 02 00 35 04 06 00 F4 7D 82 C3 00 00 81 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 3A 2B 00 90 00 D9 [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]wFMCommunicate request_size=7 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 0D 02 02 02 70 04 [11:06:00]Write to MH i2c: E2 0A 00 3B 2B 80 0D 02 02 02 00 70 04 00 00 58 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 3B 2B 00 90 00 DA [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 0D 03 02 [11:06:00]Write to MH i2c: E2 08 00 3C 2B 80 0D 03 02 00 00 00 00 E2 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 0B 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 0B 00 3C 2B 00 62 DB 4C 12 79 97 9D 5D 90 00 88 [11:06:00]RAPDU: 62 DB 4C 12 79 97 9D 5D 90 00 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_SignData done [11:06:00]FM_MakeSignedData done [11:06:00]CreateOFDProtocolMessage [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 11 00 00 [11:06:00]Write to MH i2c: E2 08 00 3D 2B 80 11 00 00 00 00 00 00 E2 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 17 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 17 00 3D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [11:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:06:00]wFMCommunicate OK [11:06:00]CreateOFDProtocolMessage done [11:06:00]OFDSenderStorePacket 156225 [11:06:00]StoreOFDPacket docnum=156225 [11:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 32 42 04 01 FB B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1B CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 62 02 00 35 04 06 00 F4 7D 82 C3 70 04 62 DB 4C 12 79 97 9D 5D [11:06:00]CheckFolder [11:06:00]dirname=/storage/ofd_packets [11:06:00]CheckFolder done [11:06:00]ProducePacketName [11:06:00]name=ofd_packets/00156225 [11:06:00]NVStorageSaveData ofd_packets/00156225 [11:06:00]File name is /storage/ofd_packets/00156225 [11:06:00]Write 298 bytes [11:06:00]NVStorageSaveData done [11:06:00]OFDSenderStorePacket done [11:06:00]KKMCreateOFDPacket done [11:06:00]NVStorageSaveData kkm_last_timestamp [11:06:00]File name is /storage/kkm_last_timestamp [11:06:00]Write 4 bytes [11:06:00]NVStorageSaveData done [11:06:00]ExternCall_PrintAddStr [11:06:00]wPrintStart [11:06:00]Write to MH i2c: 01 00 00 3E 2B 69 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 3E 2B 00 00 00 00 00 FF 0F 7E [11:06:00]RasterBufferAndPrint [11:06:00]line Счет N : (1)99040 [11:06:00]line ИНН: 02508201610067 [11:06:00]line Контрольно-Кассовый Чек [11:06:00]line ПРОДАЖА [11:06:00]line ТРК (МРК, ГНК) : 32 [11:06:00]line Товар: 2710194210 [11:06:00]line ДТ-К-5 [11:06:00]line 5.910 * 76.20 [11:06:00]line = 450.34 [11:06:00]line НДС 12% НСП 1% [11:06:00]line > о реализуемом товаре [11:06:00]line ОКРУГЛЕНИЕ: -0.34 [11:06:00]line ИТОГО: 450.00 [11:06:00]line Внесено: 450.00 [11:06:00]line СДАЧА: 0.00 [11:06:00]line НСП 1% : 3.98 [11:06:00]line НДС 12% : 47.82 [11:06:00]line Наличными: 450.00 [11:06:00]line Безнал.: 0.00 [11:06:00]line Место: АЗС № 143 "Партнер Нефть" [11:06:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:06:00]line СНО: Общий режим [11:06:00]line Чек 126 26.10.2024 11:06 [11:06:00]line Смена: 536 ФФД: 1.0 [11:06:00]line ЗНМ: 0300000096 [11:06:00]line РНМ: 0000000000091693 [11:06:00]line Версия ККМ: 001 [11:06:00]line ФМ: 0000000000871792 [11:06:00]line ФД: 156225 [11:06:00]line ФПД: 268819901935620 [11:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110603&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156225&fm=268819901935620&tin=02508201610067®Number=0000000000091693&sum=45000 [11:06:00]written 0, free lines is 4095 [11:06:00]OFD Sender: Processing packet 156225 [packets to send 31, broken 30] [11:06:00]ProducePacketName [11:06:00]name=ofd_packets/00156225 [11:06:00]OFD Sender: To server: pG, [11:06:00]CommunicateWithHost lk.salyk.kg:30040 [11:06:00]ConnectInit lk.salyk.kg [11:06:00]Connected sock=10 [11:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 32 42 04 01 FB B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1B CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 62 02 00 35 04 06 00 F4 7D 82 C3 70 04 62 DB 4C 12 79 97 9D 5D [11:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 52 22 47 00 EA 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 62 02 00 F4 03 04 00 8D 72 1C 67 B6 04 01 00 00 01 BC E3 13 5F A2 DE F4 [11:06:01]CommunicateWithHost err = 0 [11:06:01]CheckOFDResponse [11:06:01]1017 (14) - 77093643461234 [11:06:01]1041 (16) - 0000000000871792 [11:06:01]1040 (4) - 156225 [11:06:01]1012 (4) - 26.10.2024 04:39 [11:06:01]1206 (1) - 0 [11:06:01]OFD Sender: Remove packet 156225 [11:06:01]ProducePacketName [11:06:01]name=ofd_packets/00156225 [11:06:01]NVStorageDeleteData [11:06:01]Write to MH i2c: 01 00 00 69 2B 94 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 69 2B 00 00 00 00 00 F5 0C 9C [11:06:01]RasterBufferAndPrint [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]written 0, free lines is 3329 [11:06:01]process_action close_receipt done [11:06:01]requested_data is exist [11:06:01]produce_requested_data [11:06:01]requested_item fm.sn is exist - process it [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 11 00 00 [11:06:01]Write to MH i2c: E2 08 00 70 2B 80 11 00 00 00 00 00 00 15 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 70 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6A [11:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:06:01]wFMCommunicate OK [11:06:01]requested_item fd.num is exist - process it [11:06:01]SAM_PROTO_GetFieldsCounters [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 13 00 00 [11:06:01]Write to MH i2c: E2 08 00 71 2B 80 13 00 00 00 00 00 00 18 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 62 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 62 00 71 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 41 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11:06:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 41 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_GetFieldsCounters done [11:06:01]requested_item shift.num is exist - process it [11:06:01]requested_item shift.opened is exist - process it [11:06:01]req_shift_opened [11:06:01]FM_GetShiftState [11:06:01]SAM_PROTO_GetShiftState [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 13 01 00 [11:06:01]Write to MH i2c: E2 08 00 72 2B 80 13 01 00 00 00 00 00 1A [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0E 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0E 00 72 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4F [11:06:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_GetShiftState done [11:06:01]FM_GetShiftState done [11:06:01]req_shift_opened done [11:06:01]requested_item shift.open_date is exist - process it [11:06:01]req_shift_open_date [11:06:01]req_shift_open_date done [11:06:01]produce_requested_data done [11:06:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156225,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:06:01]process_action_free close_receipt [11:06:01]json_value_free [11:06:01]json_value_free done [11:06:01]process_json_proto returns [11:06:01]Send response to host [11:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156225,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:06:01]free response buf [11:06:01]execute_script done [11:06:01]execute_script returns [11:06:01]free content buf [11:06:01]Sock 7.Close socket [11:06:01]Sock 7.Thread stoped [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:50]accept exits with 9 [11:06:50]New connection [11:06:50]New thread 3066613092 created [11:06:50]Thread 3066469732 joined [11:06:50]Waiting for new connection... [11:06:50] Sock 9.Parse request [11:06:50]Sock 9.Check first char [11:06:50]Sock 9.First char is OK [11:06:50]request: POST /json_proto HTTP/1.0 [11:06:50]Method: POST [11:06:50]URL: /json_proto [11:06:50]Method is POST - this is cgi request [11:06:50]url: /json_proto [11:06:50]query_string will be loaded in cgi processing [11:06:50]execute_cgi json_proto POST (null) [11:06:50]execute_cgi path=json_proto method=POST [11:06:50]POST find Content-Length [11:06:50]Host: 172.17.63.3:8080 [11:06:50]Content-Length: 676 [11:06:50]Content-Type: application/json [11:06:50] [11:06:50]POST finish read [11:06:50]Found Content-Length = 676 [11:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:50]execute_script... [11:06:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:50]POST & json_proto [11:06:50]process_json_proto [11:06:50]json parsed OK: [11:06:50]protocol is kg_v1.0 [11:06:50]action value=close_receipt [11:06:50]process_action close_receipt [11:06:50]cmd_close_receipt [11:06:50]MH_GetDate [11:06:50]Write to MH i2c: F0 00 00 73 2B 8D [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 09 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 09 00 73 2B 00 4E CD 1C 67 50 D1 6C 64 25 [11:06:50]GetLastDocTimeStamp 1729940763 [11:06:50]current date 1729940814 [11:06:50]FM_GetShiftState [11:06:50]SAM_PROTO_GetShiftState [11:06:50]wFMCommunicate request_size=4 [11:06:50]MH_SAM_APDU [11:06:50]CAPDU: 80 13 01 00 [11:06:50]Write to MH i2c: E2 08 00 74 2B 80 13 01 00 00 00 00 00 1C [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:50]Read from MH i2c: E2 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 74 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 51 [11:06:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:06:50]wFMCommunicate OK [11:06:50]SAM_PROTO_GetShiftState done [11:06:50]FM_GetShiftState done [11:06:50]opened in 1729902702 [11:06:50]opened+sec_in_day 1729989102 [11:06:50]quantity*price = 50041 [11:06:50]sum+1 = 50042 [11:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 127 26.10.2024 11:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156226 ФПД: 83629568676762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110654&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156226&fm=83629568676762&tin=02508201610067®Number=0000000000091693&sum=50000 [11:06:51]StoreToDocumentArchive [11:06:51]shift 536 fd 156226 [11:06:51]save to /storage/0536/doc_00156226 [11:06:51]save last doc name /storage/0536/doc_00156226 to /storage/kkm_last_doc_name [11:06:51]save OK [11:06:51]Clear old archive folders... [11:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:51]tlvbuf is 00051440 [11:06:51]SAM_PROTO_ClearQueue [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 09 00 00 [11:06:51]Write to MH i2c: E2 08 00 81 2B 80 09 00 00 00 00 00 00 1E [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 81 2B 00 90 00 20 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]SAM_PROTO_ClearQueue done [11:06:51]KKMCreateOFDPacket [11:06:51]OFDProtocolAddRootSTLVToBuf [11:06:51]FM_MakeSignedData [11:06:51]FM_MakeSignedData [11:06:51]SAM_PROTO_SignData [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 01 02 [11:06:51]Write to MH i2c: E2 08 00 82 2B 80 0D 01 02 00 00 00 00 26 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:51]OFD Sender: No OFD packet to send [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 82 2B 00 90 00 21 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]wFMCommunicate request_size=255 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 4E CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 62 02 00 35 04 06 00 4C [11:06:51]Write to MH i2c: E2 02 01 83 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 4E CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 62 02 00 35 04 06 00 4C 00 00 E3 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 83 2B 00 90 00 22 [11:06:52]RAPDU: 90 00 [11:06:52]wFMCommunicate OK [11:06:52]wFMCommunicate request_size=10 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 0D 02 02 05 0F 86 BB D3 9A [11:06:52]Write to MH i2c: E2 0D 00 84 2B 80 0D 02 02 05 00 0F 86 BB D3 9A 00 00 F0 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 84 2B 00 90 00 23 [11:06:52]RAPDU: 90 00 [11:06:52]wFMCommunicate OK [11:06:52]wFMCommunicate request_size=4 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 0D 03 02 [11:06:52]Write to MH i2c: E2 08 00 85 2B 80 0D 03 02 00 00 00 00 2B [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 0B 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 0B 00 85 2B 00 E6 FA 00 C0 6A FF F9 66 90 00 94 [11:06:52]RAPDU: E6 FA 00 C0 6A FF F9 66 90 00 [11:06:52]wFMCommunicate OK [11:06:52]SAM_PROTO_SignData done [11:06:52]FM_MakeSignedData done [11:06:52]CreateOFDProtocolMessage [11:06:52]wFMCommunicate request_size=4 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 11 00 00 [11:06:52]Write to MH i2c: E2 08 00 86 2B 80 11 00 00 00 00 00 00 2B [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 17 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 17 00 86 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [11:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:06:52]wFMCommunicate OK [11:06:52]CreateOFDProtocolMessage done [11:06:52]OFDSenderStorePacket 156226 [11:06:52]StoreOFDPacket docnum=156226 [11:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BD 40 07 01 BB 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 4E CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 62 02 00 35 04 06 00 4C 0F 86 BB D3 9A E6 FA 00 C0 6A FF F9 66 [11:06:52]CheckFolder [11:06:52]dirname=/storage/ofd_packets [11:06:52]CheckFolder done [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00156226 [11:06:52]NVStorageSaveData ofd_packets/00156226 [11:06:52]File name is /storage/ofd_packets/00156226 [11:06:52]Write 301 bytes [11:06:52]NVStorageSaveData done [11:06:52]OFDSenderStorePacket done [11:06:52]KKMCreateOFDPacket done [11:06:52]NVStorageSaveData kkm_last_timestamp [11:06:52]File name is /storage/kkm_last_timestamp [11:06:52]Write 4 bytes [11:06:52]NVStorageSaveData done [11:06:52]ExternCall_PrintAddStr [11:06:52]wPrintStart [11:06:52]Write to MH i2c: 01 00 00 87 2B B2 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 87 2B 00 00 00 00 00 FF 0F C7 [11:06:52]RasterBufferAndPrint [11:06:52]line Счет N : (1)99041 [11:06:52]line ИНН: 02508201610067 [11:06:52]line Контрольно-Кассовый Чек [11:06:52]line ПРОДАЖА [11:06:52]line ТРК (МРК, ГНК) : 21 [11:06:52]line Товар: 2710124130 [11:06:52]line Аи-92-К-5 [11:06:52]line 7.480 * 66.90 [11:06:52]line = 500.41 [11:06:52]line НДС 12% НСП 1% [11:06:52]line > о реализуемом товаре [11:06:52]line ОКРУГЛЕНИЕ: -0.41 [11:06:52]line ИТОГО: 500.00 [11:06:52]line Внесено: 500.00 [11:06:52]line СДАЧА: 0.00 [11:06:52]line НСП 1% : 4.43 [11:06:52]line НДС 12% : 53.14 [11:06:52]line Наличными: 500.00 [11:06:52]line Безнал.: 0.00 [11:06:52]line Место: АЗС № 143 "Партнер Нефть" [11:06:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:06:52]line СНО: Общий режим [11:06:52]line Чек 127 26.10.2024 11:06 [11:06:52]line Смена: 536 ФФД: 1.0 [11:06:52]line ЗНМ: 0300000096 [11:06:52]line РНМ: 0000000000091693 [11:06:52]line Версия ККМ: 001 [11:06:52]line ФМ: 0000000000871792 [11:06:52]line ФД: 156226 [11:06:52]line ФПД: 83629568676762 [11:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110654&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156226&fm=83629568676762&tin=02508201610067®Number=0000000000091693&sum=50000 [11:06:52]OFD Sender: Processing packet 156226 [packets to send 31, broken 30] [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00156226 [11:06:52]OFD Sender: To server: pG, [11:06:52]CommunicateWithHost lk.salyk.kg:30040 [11:06:52]ConnectInit lk.salyk.kg [11:06:52]written 0, free lines is 4095 [11:06:52]Connected sock=10 [11:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BD 40 07 01 BB 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 4E CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 62 02 00 35 04 06 00 4C 0F 86 BB D3 9A E6 FA 00 C0 6A FF F9 66 [11:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0F 3D 47 00 13 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 31 37 39 32 10 04 04 00 42 62 02 00 F4 03 04 00 C1 72 1C 67 B6 04 01 00 00 2A C9 A4 E0 44 B2 6A 62 [11:06:52]CommunicateWithHost err = 0 [11:06:52]CheckOFDResponse [11:06:52]1017 (14) - 77093643461234 [11:06:52]1041 (16) - 0000000000871792 [11:06:52]1040 (4) - 156226 [11:06:52]1012 (4) - 26.10.2024 04:40 [11:06:52]1206 (1) - 0 [11:06:52]OFD Sender: Remove packet 156226 [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00156226 [11:06:52]NVStorageDeleteData [11:06:52]Write to MH i2c: 01 00 00 B2 2B DD [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 B2 2B 00 00 00 00 00 E4 0C D4 [11:06:52]RasterBufferAndPrint [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]written 0, free lines is 3306 [11:06:52]process_action close_receipt done [11:06:52]requested_data is exist [11:06:52]produce_requested_data [11:06:52]requested_item fm.sn is exist - process it [11:06:52]wFMCommunicate request_size=4 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 11 00 00 [11:06:52]Write to MH i2c: E2 08 00 B9 2B 80 11 00 00 00 00 00 00 5E [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 17 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 17 00 B9 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B3 [11:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:06:53]wFMCommunicate OK [11:06:53]requested_item fd.num is exist - process it [11:06:53]SAM_PROTO_GetFieldsCounters [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 13 00 00 [11:06:53]Write to MH i2c: E2 08 00 BA 2B 80 13 00 00 00 00 00 00 61 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 62 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 62 00 BA 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 42 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:06: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 42 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:53]wFMCommunicate OK [11:06:53]SAM_PROTO_GetFieldsCounters done [11:06:53]requested_item shift.num is exist - process it [11:06:53]requested_item shift.opened is exist - process it [11:06:53]req_shift_opened [11:06:53]FM_GetShiftState [11:06:53]SAM_PROTO_GetShiftState [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 13 01 00 [11:06:53]Write to MH i2c: E2 08 00 BB 2B 80 13 01 00 00 00 00 00 63 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 0E 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 0E 00 BB 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 98 [11:06:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:06:53]wFMCommunicate OK [11:06:53]SAM_PROTO_GetShiftState done [11:06:53]FM_GetShiftState done [11:06:53]req_shift_opened done [11:06:53]requested_item shift.open_date is exist - process it [11:06:53]req_shift_open_date [11:06:53]req_shift_open_date done [11:06:53]produce_requested_data done [11:06:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156226,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:06:53]process_action_free close_receipt [11:06:53]json_value_free [11:06:53]json_value_free done [11:06:53]process_json_proto returns [11:06:53]Send response to host [11:06:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156226,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:06:53]free response buf [11:06:53]execute_script done [11:06:53]execute_script returns [11:06:53]free content buf [11:06:53]Sock 9.Close socket [11:06:53]Sock 9.Thread stoped [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:10]accept exits with 7 [11:07:10]New connection [11:07:10]New thread 3066469732 created [11:07:10]Thread 3066613092 joined [11:07:10]Waiting for new connection... [11:07:10] Sock 7.Parse request [11:07:10]Sock 7.Check first char [11:07:10]Sock 7.First char is OK [11:07:10]request: POST /json_proto HTTP/1.0 [11:07:10]Method: POST [11:07:10]URL: /json_proto [11:07:10]Method is POST - this is cgi request [11:07:10]url: /json_proto [11:07:10]query_string will be loaded in cgi processing [11:07:10]execute_cgi json_proto POST (null) [11:07:10]execute_cgi path=json_proto method=POST [11:07:10]POST find Content-Length [11:07:10]Host: 172.17.63.3:8080 [11:07:10]Content-Length: 676 [11:07:10]Content-Type: application/json [11:07:10] [11:07:10]POST finish read [11:07:10]Found Content-Length = 676 [11:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:10]execute_script... [11:07:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:10]POST & json_proto [11:07:10]process_json_proto [11:07:10]json parsed OK: [11:07:10]protocol is kg_v1.0 [11:07:10]action value=close_receipt [11:07:10]process_action close_receipt [11:07:10]cmd_close_receipt [11:07:10]MH_GetDate [11:07:10]Write to MH i2c: F0 00 00 BC 2B D6 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: F0 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: F0 09 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: F0 09 00 BC 2B 00 62 CD 1C 67 50 D1 6C 64 82 [11:07:10]GetLastDocTimeStamp 1729940814 [11:07:10]current date 1729940834 [11:07:10]FM_GetShiftState [11:07:10]SAM_PROTO_GetShiftState [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 13 01 00 [11:07:10]Write to MH i2c: E2 08 00 BD 2B 80 13 01 00 00 00 00 00 65 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0E 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0E 00 BD 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9A [11:07:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:07:10]wFMCommunicate OK [11:07:10]SAM_PROTO_GetShiftState done [11:07:10]FM_GetShiftState done [11:07:10]opened in 1729902702 [11:07:10]opened+sec_in_day 1729989102 [11:07:10]quantity*price = 40006 [11:07:10]sum+1 = 40007 [11:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 128 26.10.2024 11:07 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156227 ФПД: 18121975350780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110714&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156227&fm=18121975350780&tin=02508201610067®Number=0000000000091693&sum=40000 [11:07:11]StoreToDocumentArchive [11:07:11]shift 536 fd 156227 [11:07:11]save to /storage/0536/doc_00156227 [11:07:11]save last doc name /storage/0536/doc_00156227 to /storage/kkm_last_doc_name [11:07:11]save OK [11:07:11]Clear old archive folders... [11:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:11]tlvbuf is 00D18870 [11:07:11]SAM_PROTO_ClearQueue [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 09 00 00 [11:07:11]Write to MH i2c: E2 08 00 CA 2B 80 09 00 00 00 00 00 00 67 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 CA 2B 00 90 00 69 [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]SAM_PROTO_ClearQueue done [11:07:11]KKMCreateOFDPacket [11:07:11]OFDProtocolAddRootSTLVToBuf [11:07:11]FM_MakeSignedData [11:07:11]FM_MakeSignedData [11:07:11]SAM_PROTO_SignData [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 01 02 [11:07:11]Write to MH i2c: E2 08 00 CB 2B 80 0D 01 02 00 00 00 00 6F [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 CB 2B 00 90 00 6A [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]wFMCommunicate request_size=255 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 62 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 62 02 00 35 04 06 00 10 [11:07:11]Write to MH i2c: E2 02 01 CC 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 62 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 62 02 00 35 04 06 00 10 00 00 D5 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 03 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 03 00 CC 2B 00 90 00 6B [11:07:12]RAPDU: 90 00 [11:07:12]wFMCommunicate OK [11:07:12]wFMCommunicate request_size=10 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 0D 02 02 05 7B 59 E7 45 FC [11:07:12]Write to MH i2c: E2 0D 00 CD 2B 80 0D 02 02 05 00 7B 59 E7 45 FC 00 00 78 [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 03 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 03 00 CD 2B 00 90 00 6C [11:07:12]RAPDU: 90 00 [11:07:12]wFMCommunicate OK [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 0D 03 02 [11:07:12]Write to MH i2c: E2 08 00 CE 2B 80 0D 03 02 00 00 00 00 74 [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 0B 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 0B 00 CE 2B 00 41 87 8A E9 0D EB 17 8B 90 00 4A [11:07:12]RAPDU: 41 87 8A E9 0D EB 17 8B 90 00 [11:07:12]wFMCommunicate OK [11:07:12]SAM_PROTO_SignData done [11:07:12]FM_MakeSignedData done [11:07:12]CreateOFDProtocolMessage [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 11 00 00 [11:07:12]Write to MH i2c: E2 08 00 CF 2B 80 11 00 00 00 00 00 00 74 [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 17 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 17 00 CF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C9 [11:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:07:12]wFMCommunicate OK [11:07:12]CreateOFDProtocolMessage done [11:07:12]OFDSenderStorePacket 156227 [11:07:12]StoreOFDPacket docnum=156227 [11:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 35 07 01 40 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 62 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 62 02 00 35 04 06 00 10 7B 59 E7 45 FC 41 87 8A E9 0D EB 17 8B [11:07:12]CheckFolder [11:07:12]dirname=/storage/ofd_packets [11:07:12]CheckFolder done [11:07:12]ProducePacketName [11:07:12]name=ofd_packets/00156227 [11:07:12]NVStorageSaveData ofd_packets/00156227 [11:07:12]File name is /storage/ofd_packets/00156227 [11:07:12]Write 301 bytes [11:07:12]NVStorageSaveData done [11:07:12]OFDSenderStorePacket done [11:07:12]KKMCreateOFDPacket done [11:07:12]NVStorageSaveData kkm_last_timestamp [11:07:12]File name is /storage/kkm_last_timestamp [11:07:12]Write 4 bytes [11:07:12]NVStorageSaveData done [11:07:12]ExternCall_PrintAddStr [11:07:12]wPrintStart [11:07:12]Write to MH i2c: 01 00 00 D0 2B FB [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 07 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 07 00 D0 2B 00 00 00 00 00 FF 0F 10 [11:07:12]RasterBufferAndPrint [11:07:12]line Счет N : (1)99042 [11:07:12]line ИНН: 02508201610067 [11:07:12]line Контрольно-Кассовый Чек [11:07:12]line ПРОДАЖА [11:07:12]line ТРК (МРК, ГНК) : 31 [11:07:12]line Товар: 2710124130 [11:07:12]line Аи-92-К-5 [11:07:12]line 5.980 * 66.90 [11:07:12]line = 400.06 [11:07:12]line НДС 12% НСП 1% [11:07:12]line > о реализуемом товаре [11:07:12]line ОКРУГЛЕНИЕ: -0.06 [11:07:12]line ИТОГО: 400.00 [11:07:12]line Внесено: 400.00 [11:07:12]line СДАЧА: 0.00 [11:07:12]line НСП 1% : 3.54 [11:07:12]line НДС 12% : 42.48 [11:07:12]line Наличными: 400.00 [11:07:12]line Безнал.: 0.00 [11:07:12]line Место: АЗС № 143 "Партнер Нефть" [11:07:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:07:12]line СНО: Общий режим [11:07:12]line Чек 128 26.10.2024 11:07 [11:07:12]line Смена: 536 ФФД: 1.0 [11:07:12]line ЗНМ: 0300000096 [11:07:12]line РНМ: 0000000000091693 [11:07:12]line Версия ККМ: 001 [11:07:12]line ФМ: 0000000000871792 [11:07:12]line ФД: 156227 [11:07:12]line ФПД: 18121975350780 [11:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110714&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156227&fm=18121975350780&tin=02508201610067®Number=0000000000091693&sum=40000 [11:07:12]OFD Sender: Processing packet 156227 [packets to send 31, broken 30] [11:07:12]ProducePacketName [11:07:12]name=ofd_packets/00156227 [11:07:12]OFD Sender: To server: pG, [11:07:12]CommunicateWithHost lk.salyk.kg:30040 [11:07:12]ConnectInit lk.salyk.kg [11:07:12]written 0, free lines is 4095 [11:07:12]Connected sock=10 [11:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 35 07 01 40 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 62 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 62 02 00 35 04 06 00 10 7B 59 E7 45 FC 41 87 8A E9 0D EB 17 8B [11:07:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 33 61 47 00 73 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 62 02 00 F4 03 04 00 D5 72 1C 67 B6 04 01 00 00 46 9B 5B 6C FC D1 EC BA [11:07:12]CommunicateWithHost err = 0 [11:07:12]CheckOFDResponse [11:07:12]1017 (14) - 77093643461234 [11:07:12]1041 (16) - 0000000000871792 [11:07:12]1040 (4) - 156227 [11:07:12]1012 (4) - 26.10.2024 04:40 [11:07:12]1206 (1) - 0 [11:07:12]OFD Sender: Remove packet 156227 [11:07:12]ProducePacketName [11:07:12]name=ofd_packets/00156227 [11:07:12]NVStorageDeleteData [11:07:13]Write to MH i2c: 01 00 00 FB 2B 26 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 07 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 07 00 FB 2B 00 00 00 00 00 FE 0C 37 [11:07:13]RasterBufferAndPrint [11:07:13]line [11:07:13]line [11:07:13]line [11:07:13]line [11:07:13]line [11:07:13]written 0, free lines is 3332 [11:07:13]process_action close_receipt done [11:07:13]requested_data is exist [11:07:13]produce_requested_data [11:07:13]requested_item fm.sn is exist - process it [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 11 00 00 [11:07:13]Write to MH i2c: E2 08 00 02 2C 80 11 00 00 00 00 00 00 A8 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 17 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 17 00 02 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FD [11:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:07:13]wFMCommunicate OK [11:07:13]requested_item fd.num is exist - process it [11:07:13]SAM_PROTO_GetFieldsCounters [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 13 00 00 [11:07:13]Write to MH i2c: E2 08 00 03 2C 80 13 00 00 00 00 00 00 AB [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 62 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 62 00 03 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 43 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:07: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 43 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:13]wFMCommunicate OK [11:07:13]SAM_PROTO_GetFieldsCounters done [11:07:13]requested_item shift.num is exist - process it [11:07:13]requested_item shift.opened is exist - process it [11:07:13]req_shift_opened [11:07:13]FM_GetShiftState [11:07:13]SAM_PROTO_GetShiftState [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 13 01 00 [11:07:13]Write to MH i2c: E2 08 00 04 2C 80 13 01 00 00 00 00 00 AD [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 0E 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 0E 00 04 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E2 [11:07:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:07:13]wFMCommunicate OK [11:07:13]SAM_PROTO_GetShiftState done [11:07:13]FM_GetShiftState done [11:07:13]req_shift_opened done [11:07:13]requested_item shift.open_date is exist - process it [11:07:13]req_shift_open_date [11:07:13]req_shift_open_date done [11:07:13]produce_requested_data done [11:07:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156227,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:07:13]process_action_free close_receipt [11:07:13]json_value_free [11:07:13]json_value_free done [11:07:13]process_json_proto returns [11:07:13]Send response to host [11:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156227,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:07:13]free response buf [11:07:13]execute_script done [11:07:13]execute_script returns [11:07:13]free content buf [11:07:13]Sock 7.Close socket [11:07:13]Sock 7.Thread stoped [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]accept exits with 9 [11:08:33]New connection [11:08:33]New thread 3066613092 created [11:08:33]Thread 3066469732 joined [11:08:33]Waiting for new connection... [11:08:33] Sock 9.Parse request [11:08:33]Sock 9.Check first char [11:08:33]Sock 9.First char is OK [11:08:33]request: POST /json_proto HTTP/1.0 [11:08:33]Method: POST [11:08:33]URL: /json_proto [11:08:33]Method is POST - this is cgi request [11:08:33]url: /json_proto [11:08:33]query_string will be loaded in cgi processing [11:08:33]execute_cgi json_proto POST (null) [11:08:33]execute_cgi path=json_proto method=POST [11:08:33]POST find Content-Length [11:08:33]Host: 172.17.63.3:8080 [11:08:33]Content-Length: 676 [11:08:33]Content-Type: application/json [11:08:33] [11:08:33]POST finish read [11:08:33]Found Content-Length = 676 [11:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:33]execute_script... [11:08:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:33]POST & json_proto [11:08:33]process_json_proto [11:08:33]json parsed OK: [11:08:33]protocol is kg_v1.0 [11:08:33]action value=close_receipt [11:08:33]process_action close_receipt [11:08:33]cmd_close_receipt [11:08:33]MH_GetDate [11:08:33]Write to MH i2c: F0 00 00 05 2C 20 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 09 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 09 00 05 2C 00 B5 CD 1C 67 50 D1 6C 64 1F [11:08:33]GetLastDocTimeStamp 1729940834 [11:08:33]current date 1729940917 [11:08:33]FM_GetShiftState [11:08:33]SAM_PROTO_GetShiftState [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 13 01 00 [11:08:33]Write to MH i2c: E2 08 00 06 2C 80 13 01 00 00 00 00 00 AF [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 0E 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 0E 00 06 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E4 [11:08:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:08:33]wFMCommunicate OK [11:08:33]SAM_PROTO_GetShiftState done [11:08:33]FM_GetShiftState done [11:08:33]opened in 1729902702 [11:08:33]opened+sec_in_day 1729989102 [11:08:33]quantity*price = 30038 [11:08:33]sum+1 = 30039 [11:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 129 26.10.2024 11:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156228 ФПД: 148224352742779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156228&fm=148224352742779&tin=02508201610067®Number=0000000000091693&sum=30000 [11:08:34]StoreToDocumentArchive [11:08:34]shift 536 fd 156228 [11:08:34]save to /storage/0536/doc_00156228 [11:08:34]save last doc name /storage/0536/doc_00156228 to /storage/kkm_last_doc_name [11:08:34]save OK [11:08:34]Clear old archive folders... [11:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:34]tlvbuf is 00D91FF0 [11:08:34]SAM_PROTO_ClearQueue [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 09 00 00 [11:08:34]Write to MH i2c: E2 08 00 13 2C 80 09 00 00 00 00 00 00 B1 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 13 2C 00 90 00 B3 [11:08:34]RAPDU: 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_ClearQueue done [11:08:34]KKMCreateOFDPacket [11:08:34]OFDProtocolAddRootSTLVToBuf [11:08:34]FM_MakeSignedData [11:08:34]FM_MakeSignedData [11:08:34]SAM_PROTO_SignData [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 0D 01 02 [11:08:34]Write to MH i2c: E2 08 00 14 2C 80 0D 01 02 00 00 00 00 B9 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 14 2C 00 90 00 B4 [11:08:34]RAPDU: 90 00 [11:08:34]wFMCommunicate OK [11:08:34]wFMCommunicate request_size=255 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B5 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 62 02 00 35 04 06 00 86 [11:08:34]Write to MH i2c: E2 02 01 15 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B5 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 62 02 00 35 04 06 00 86 00 00 0F [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 15 2C 00 90 00 B5 [11:08:34]RAPDU: 90 00 [11:08:34]wFMCommunicate OK [11:08:34]wFMCommunicate request_size=10 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 0D 02 02 05 CF 2B E4 6D 7B [11:08:34]Write to MH i2c: E2 0D 00 16 2C 80 0D 02 02 05 00 CF 2B E4 6D 7B 00 00 8C [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 16 2C 00 90 00 B6 [11:08:34]RAPDU: 90 00 [11:08:34]wFMCommunicate OK [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 0D 03 02 [11:08:34]Write to MH i2c: E2 08 00 17 2C 80 0D 03 02 00 00 00 00 BE [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0B 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0B 00 17 2C 00 0A AC 31 B2 13 68 C6 F1 90 00 8A [11:08:34]RAPDU: 0A AC 31 B2 13 68 C6 F1 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_SignData done [11:08:34]FM_MakeSignedData done [11:08:34]CreateOFDProtocolMessage [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 11 00 00 [11:08:34]Write to MH i2c: E2 08 00 18 2C 80 11 00 00 00 00 00 00 BE [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 17 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 17 00 18 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [11:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:08:34]wFMCommunicate OK [11:08:34]CreateOFDProtocolMessage done [11:08:34]OFDSenderStorePacket 156228 [11:08:34]StoreOFDPacket docnum=156228 [11:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CE 22 07 01 0D EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B5 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 62 02 00 35 04 06 00 86 CF 2B E4 6D 7B 0A AC 31 B2 13 68 C6 F1 [11:08:34]CheckFolder [11:08:34]dirname=/storage/ofd_packets [11:08:34]CheckFolder done [11:08:34]ProducePacketName [11:08:34]name=ofd_packets/00156228 [11:08:34]NVStorageSaveData ofd_packets/00156228 [11:08:34]File name is /storage/ofd_packets/00156228 [11:08:34]Write 301 bytes [11:08:34]NVStorageSaveData done [11:08:34]OFDSenderStorePacket done [11:08:34]KKMCreateOFDPacket done [11:08:34]NVStorageSaveData kkm_last_timestamp [11:08:34]File name is /storage/kkm_last_timestamp [11:08:34]Write 4 bytes [11:08:34]NVStorageSaveData done [11:08:34]ExternCall_PrintAddStr [11:08:34]wPrintStart [11:08:34]Write to MH i2c: 01 00 00 19 2C 45 [11:08:34]OFD Sender: Processing packet 156228 [packets to send 31, broken 30] [11:08:34]ProducePacketName [11:08:34]name=ofd_packets/00156228 [11:08:34]OFD Sender: To server: pG, [11:08:34]CommunicateWithHost lk.salyk.kg:30040 [11:08:34]ConnectInit lk.salyk.kg [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: 01 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: 01 07 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: 01 07 00 19 2C 00 00 00 00 00 FF 0F 5A [11:08:34]RasterBufferAndPrint [11:08:34]line Счет N : (1)99043 [11:08:34]line ИНН: 02508201610067 [11:08:34]line Контрольно-Кассовый Чек [11:08:34]line ПРОДАЖА [11:08:34]line ТРК (МРК, ГНК) : 31 [11:08:34]line Товар: 2710124130 [11:08:34]line Аи-92-К-5 [11:08:34]line 4.490 * 66.90 [11:08:34]line = 300.38 [11:08:34]line НДС 12% НСП 1% [11:08:34]line > о реализуемом товаре [11:08:34]line ОКРУГЛЕНИЕ: -0.38 [11:08:34]line ИТОГО: 300.00 [11:08:34]line Внесено: 300.00 [11:08:34]line СДАЧА: 0.00 [11:08:34]line НСП 1% : 2.66 [11:08:34]line НДС 12% : 31.90 [11:08:34]line Наличными: 300.00 [11:08:34]line Безнал.: 0.00 [11:08:34]line Место: АЗС № 143 "Партнер Нефть" [11:08:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:08:34]line СНО: Общий режим [11:08:34]line Чек 129 26.10.2024 11:08 [11:08:34]line Смена: 536 ФФД: 1.0 [11:08:34]line ЗНМ: 0300000096 [11:08:34]line РНМ: 0000000000091693 [11:08:34]line Версия ККМ: 001 [11:08:34]line ФМ: 0000000000871792 [11:08:34]line ФД: 156228 [11:08:34]line ФПД: 148224352742779 [11:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156228&fm=148224352742779&tin=02508201610067®Number=0000000000091693&sum=30000 [11:08:34]written 0, free lines is 4095 [11:08:35]Connected sock=10 [11:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CE 22 07 01 0D EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B5 CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 62 02 00 35 04 06 00 86 CF 2B E4 6D 7B 0A AC 31 B2 13 68 C6 F1 [11:08:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EB 29 47 00 63 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 62 02 00 F4 03 04 00 27 73 1C 67 B6 04 01 00 00 96 EC 7D 31 68 F4 E6 98 [11:08:35]CommunicateWithHost err = 0 [11:08:35]CheckOFDResponse [11:08:35]1017 (14) - 77093643461234 [11:08:35]1041 (16) - 0000000000871792 [11:08:35]1040 (4) - 156228 [11:08:35]1012 (4) - 26.10.2024 04:42 [11:08:35]1206 (1) - 0 [11:08:35]OFD Sender: Remove packet 156228 [11:08:35]ProducePacketName [11:08:35]name=ofd_packets/00156228 [11:08:35]NVStorageDeleteData [11:08:35]Write to MH i2c: 01 00 00 44 2C 70 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 07 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 07 00 44 2C 00 00 00 00 00 04 0D 88 [11:08:35]RasterBufferAndPrint [11:08:35]line [11:08:35]line [11:08:35]line [11:08:35]line [11:08:35]line [11:08:35]written 0, free lines is 3341 [11:08:35]process_action close_receipt done [11:08:35]requested_data is exist [11:08:35]produce_requested_data [11:08:35]requested_item fm.sn is exist - process it [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 11 00 00 [11:08:35]Write to MH i2c: E2 08 00 4B 2C 80 11 00 00 00 00 00 00 F1 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 17 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 17 00 4B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 46 [11:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:08:35]wFMCommunicate OK [11:08:35]requested_item fd.num is exist - process it [11:08:35]SAM_PROTO_GetFieldsCounters [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 13 00 00 [11:08:35]Write to MH i2c: E2 08 00 4C 2C 80 13 00 00 00 00 00 00 F4 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 62 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 62 00 4C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 44 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:08: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 44 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_GetFieldsCounters done [11:08:35]requested_item shift.num is exist - process it [11:08:35]requested_item shift.opened is exist - process it [11:08:35]req_shift_opened [11:08:35]FM_GetShiftState [11:08:35]SAM_PROTO_GetShiftState [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 13 01 00 [11:08:35]Write to MH i2c: E2 08 00 4D 2C 80 13 01 00 00 00 00 00 F6 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 0E 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 0E 00 4D 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2B [11:08:35]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_GetShiftState done [11:08:35]FM_GetShiftState done [11:08:35]req_shift_opened done [11:08:35]requested_item shift.open_date is exist - process it [11:08:35]req_shift_open_date [11:08:35]req_shift_open_date done [11:08:35]produce_requested_data done [11:08:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156228,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:08:35]process_action_free close_receipt [11:08:35]json_value_free [11:08:35]json_value_free done [11:08:35]process_json_proto returns [11:08:35]Send response to host [11:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156228,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:08:35]free response buf [11:08:35]execute_script done [11:08:35]execute_script returns [11:08:35]free content buf [11:08:35]Sock 9.Close socket [11:08:35]Sock 9.Thread stoped [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]accept exits with 7 [11:09:10]New connection [11:09:10]New thread 3066469732 created [11:09:10]Thread 3066613092 joined [11:09:10]Waiting for new connection... [11:09:10] Sock 7.Parse request [11:09:10]Sock 7.Check first char [11:09:10]Sock 7.First char is OK [11:09:10]request: POST /json_proto HTTP/1.0 [11:09:10]Method: POST [11:09:10]URL: /json_proto [11:09:10]Method is POST - this is cgi request [11:09:10]url: /json_proto [11:09:10]query_string will be loaded in cgi processing [11:09:10]execute_cgi json_proto POST (null) [11:09:10]execute_cgi path=json_proto method=POST [11:09:10]POST find Content-Length [11:09:10]Host: 172.17.63.3:8080 [11:09:10]Content-Length: 681 [11:09:10]Content-Type: application/json [11:09:10] [11:09:10]POST finish read [11:09:10]Found Content-Length = 681 [11:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:10]execute_script... [11:09:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:10]POST & json_proto [11:09:10]process_json_proto [11:09:10]json parsed OK: [11:09:10]protocol is kg_v1.0 [11:09:10]action value=close_receipt [11:09:10]process_action close_receipt [11:09:10]cmd_close_receipt [11:09:10]MH_GetDate [11:09:10]Write to MH i2c: F0 00 00 4E 2C 69 [11:09:10]Write i2c OK [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: F0 [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: F0 09 00 [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: F0 09 00 4E 2C 00 DA CD 1C 67 50 D1 6C 64 8D [11:09:10]GetLastDocTimeStamp 1729940917 [11:09:10]current date 1729940954 [11:09:10]FM_GetShiftState [11:09:10]SAM_PROTO_GetShiftState [11:09:10]wFMCommunicate request_size=4 [11:09:10]MH_SAM_APDU [11:09:10]CAPDU: 80 13 01 00 [11:09:10]Write to MH i2c: E2 08 00 4F 2C 80 13 01 00 00 00 00 00 F8 [11:09:10]Write i2c OK [11:09:10]MH_I2C_Read... [11:09:10]OFD Sender: No OFD packet to send [11:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:10]Read from MH i2c: E2 [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: E2 0E 00 [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: E2 0E 00 4F 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2D [11:09:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:09:10]wFMCommunicate OK [11:09:10]SAM_PROTO_GetShiftState done [11:09:10]FM_GetShiftState done [11:09:10]opened in 1729902702 [11:09:10]opened+sec_in_day 1729989102 [11:09:10]quantity*price = 100015 [11:09:10]sum+1 = 100017 [11:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 130 26.10.2024 11:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156229 ФПД: 36835100368539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110914&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156229&fm=36835100368539&tin=02508201610067®Number=0000000000091693&sum=100000 [11:09:11]StoreToDocumentArchive [11:09:11]shift 536 fd 156229 [11:09:11]save to /storage/0536/doc_00156229 [11:09:11]save last doc name /storage/0536/doc_00156229 to /storage/kkm_last_doc_name [11:09:11]save OK [11:09:11]Clear old archive folders... [11:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:11]tlvbuf is 00D3F550 [11:09:11]SAM_PROTO_ClearQueue [11:09:11]wFMCommunicate request_size=4 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 09 00 00 [11:09:11]Write to MH i2c: E2 08 00 5C 2C 80 09 00 00 00 00 00 00 FA [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 03 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 03 00 5C 2C 00 90 00 FC [11:09:11]RAPDU: 90 00 [11:09:11]wFMCommunicate OK [11:09:11]SAM_PROTO_ClearQueue done [11:09:11]KKMCreateOFDPacket [11:09:11]OFDProtocolAddRootSTLVToBuf [11:09:11]FM_MakeSignedData [11:09:11]FM_MakeSignedData [11:09:11]SAM_PROTO_SignData [11:09:11]wFMCommunicate request_size=4 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 0D 01 02 [11:09:11]Write to MH i2c: E2 08 00 5D 2C 80 0D 01 02 00 00 00 00 02 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 03 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 03 00 5D 2C 00 90 00 FD [11:09:11]RAPDU: 90 00 [11:09:11]wFMCommunicate OK [11:09:11]wFMCommunicate request_size=255 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DA CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 62 02 00 35 04 06 00 21 [11:09:11]Write to MH i2c: E2 02 01 5E 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DA CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 62 02 00 35 04 06 00 21 00 00 20 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:12]Read from MH i2c: E2 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: E2 03 00 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: E2 03 00 5E 2C 00 90 00 FE [11:09:12]RAPDU: 90 00 [11:09:12]wFMCommunicate OK [11:09:12]wFMCommunicate request_size=10 [11:09:12]MH_SAM_APDU [11:09:12]CAPDU: 80 0D 02 02 05 80 57 12 9E 9B [11:09:12]Write to MH i2c: E2 0D 00 5F 2C 80 0D 02 02 05 00 80 57 12 9E 9B 00 00 31 [11:09:12]Write i2c OK [11:09:12]MH_I2C_Read... [11:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:12]Read from MH i2c: E2 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: E2 03 00 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: E2 03 00 5F 2C 00 90 00 FF [11:09:12]RAPDU: 90 00 [11:09:12]wFMCommunicate OK [11:09:12]wFMCommunicate request_size=4 [11:09:12]MH_SAM_APDU [11:09:12]CAPDU: 80 0D 03 02 [11:09:12]Write to MH i2c: E2 08 00 60 2C 80 0D 03 02 00 00 00 00 07 [11:09:12]Write i2c OK [11:09:12]MH_I2C_Read... [11:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:12]Read from MH i2c: E2 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: E2 0B 00 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: E2 0B 00 60 2C 00 5C 1F BE 40 90 DA 3E 1F 90 00 48 [11:09:12]RAPDU: 5C 1F BE 40 90 DA 3E 1F 90 00 [11:09:12]wFMCommunicate OK [11:09:12]SAM_PROTO_SignData done [11:09:12]FM_MakeSignedData done [11:09:12]CreateOFDProtocolMessage [11:09:12]wFMCommunicate request_size=4 [11:09:12]MH_SAM_APDU [11:09:12]CAPDU: 80 11 00 00 [11:09:12]Write to MH i2c: E2 08 00 61 2C 80 11 00 00 00 00 00 00 07 [11:09:12]Write i2c OK [11:09:12]MH_I2C_Read... [11:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:12]Read from MH i2c: E2 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: E2 17 00 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: E2 17 00 61 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5C [11:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:09:12]wFMCommunicate OK [11:09:12]CreateOFDProtocolMessage done [11:09:12]OFDSenderStorePacket 156229 [11:09:12]StoreOFDPacket docnum=156229 [11:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 10 07 01 45 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DA CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 62 02 00 35 04 06 00 21 80 57 12 9E 9B 5C 1F BE 40 90 DA 3E 1F [11:09:12]CheckFolder [11:09:12]dirname=/storage/ofd_packets [11:09:12]CheckFolder done [11:09:12]ProducePacketName [11:09:12]name=ofd_packets/00156229 [11:09:12]NVStorageSaveData ofd_packets/00156229 [11:09:12]File name is /storage/ofd_packets/00156229 [11:09:12]Write 301 bytes [11:09:12]NVStorageSaveData done [11:09:12]OFDSenderStorePacket done [11:09:12]KKMCreateOFDPacket done [11:09:12]NVStorageSaveData kkm_last_timestamp [11:09:12]File name is /storage/kkm_last_timestamp [11:09:12]Write 4 bytes [11:09:12]NVStorageSaveData done [11:09:12]ExternCall_PrintAddStr [11:09:12]wPrintStart [11:09:12]Write to MH i2c: 01 00 00 62 2C 8E [11:09:12]Write i2c OK [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: 01 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: 01 07 00 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: 01 07 00 62 2C 00 00 00 00 00 FF 0F A3 [11:09:12]RasterBufferAndPrint [11:09:12]line Счет N : (1)99044 [11:09:12]line ИНН: 02508201610067 [11:09:12]line Контрольно-Кассовый Чек [11:09:12]line ПРОДАЖА [11:09:12]line ТРК (МРК, ГНК) : 21 [11:09:12]line Товар: 2710124130 [11:09:12]line Аи-92-К-5 [11:09:12]line 14.950 * 66.90 [11:09:12]line = 1000.16 [11:09:12]line НДС 12% НСП 1% [11:09:12]line > о реализуемом товаре [11:09:12]line ОКРУГЛЕНИЕ: -0.16 [11:09:12]line ИТОГО: 1000.00 [11:09:12]line Внесено: 1000.00 [11:09:12]line СДАЧА: 0.00 [11:09:12]line НСП 1% : 8.85 [11:09:12]line НДС 12% : 106.21 [11:09:12]line Наличными: 1000.00 [11:09:12]line Безнал.: 0.00 [11:09:12]line Место: АЗС № 143 "Партнер Нефть" [11:09:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:09:12]line СНО: Общий режим [11:09:12]line Чек 130 26.10.2024 11:09 [11:09:12]line Смена: 536 ФФД: 1.0 [11:09:12]line ЗНМ: 0300000096 [11:09:12]line РНМ: 0000000000091693 [11:09:12]line Версия ККМ: 001 [11:09:12]line ФМ: 0000000000871792 [11:09:12]line ФД: 156229 [11:09:12]line ФПД: 36835100368539 [11:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110914&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156229&fm=36835100368539&tin=02508201610067®Number=0000000000091693&sum=100000 [11:09:12]OFD Sender: Processing packet 156229 [packets to send 31, broken 30] [11:09:12]ProducePacketName [11:09:12]name=ofd_packets/00156229 [11:09:12]OFD Sender: To server: pG, [11:09:12]CommunicateWithHost lk.salyk.kg:30040 [11:09:12]ConnectInit lk.salyk.kg [11:09:12]written 0, free lines is 4095 [11:09:12]Connected sock=10 [11:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 10 07 01 45 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DA CD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 62 02 00 35 04 06 00 21 80 57 12 9E 9B 5C 1F BE 40 90 DA 3E 1F [11:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 59 67 47 00 FF 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 62 02 00 F4 03 04 00 4D 73 1C 67 B6 04 01 00 00 4F 44 5C 49 12 D7 D6 B0 [11:09:12]CommunicateWithHost err = 0 [11:09:12]CheckOFDResponse [11:09:12]1017 (14) - 77093643461234 [11:09:12]1041 (16) - 0000000000871792 [11:09:12]1040 (4) - 156229 [11:09:12]1012 (4) - 26.10.2024 04:42 [11:09:12]1206 (1) - 0 [11:09:12]OFD Sender: Remove packet 156229 [11:09:12]ProducePacketName [11:09:12]name=ofd_packets/00156229 [11:09:12]NVStorageDeleteData [11:09:13]Write to MH i2c: 01 00 00 8D 2C B9 [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: 01 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: 01 07 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: 01 07 00 8D 2C 00 00 00 00 00 FD 0C C9 [11:09:13]RasterBufferAndPrint [11:09:13]line [11:09:13]line [11:09:13]line [11:09:13]line [11:09:13]line [11:09:13]written 0, free lines is 3334 [11:09:13]process_action close_receipt done [11:09:13]requested_data is exist [11:09:13]produce_requested_data [11:09:13]requested_item fm.sn is exist - process it [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 11 00 00 [11:09:13]Write to MH i2c: E2 08 00 94 2C 80 11 00 00 00 00 00 00 3A [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 17 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 17 00 94 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8F [11:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:09:13]wFMCommunicate OK [11:09:13]requested_item fd.num is exist - process it [11:09:13]SAM_PROTO_GetFieldsCounters [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 13 00 00 [11:09:13]Write to MH i2c: E2 08 00 95 2C 80 13 00 00 00 00 00 00 3D [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 62 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 62 00 95 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 45 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [11:09: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 45 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:13]wFMCommunicate OK [11:09:13]SAM_PROTO_GetFieldsCounters done [11:09:13]requested_item shift.num is exist - process it [11:09:13]requested_item shift.opened is exist - process it [11:09:13]req_shift_opened [11:09:13]FM_GetShiftState [11:09:13]SAM_PROTO_GetShiftState [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 13 01 00 [11:09:13]Write to MH i2c: E2 08 00 96 2C 80 13 01 00 00 00 00 00 3F [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 0E 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 0E 00 96 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 74 [11:09:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:09:13]wFMCommunicate OK [11:09:13]SAM_PROTO_GetShiftState done [11:09:13]FM_GetShiftState done [11:09:13]req_shift_opened done [11:09:13]requested_item shift.open_date is exist - process it [11:09:13]req_shift_open_date [11:09:13]req_shift_open_date done [11:09:13]produce_requested_data done [11:09:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156229,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:09:13]process_action_free close_receipt [11:09:13]json_value_free [11:09:13]json_value_free done [11:09:13]process_json_proto returns [11:09:13]Send response to host [11:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156229,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:09:13]free response buf [11:09:13]execute_script done [11:09:13]execute_script returns [11:09:13]free content buf [11:09:13]Sock 7.Close socket [11:09:13]Sock 7.Thread stoped [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:05]accept exits with 9 [11:10:05]New connection [11:10:05]New thread 3066613092 created [11:10:05]Thread 3066469732 joined [11:10:05]Waiting for new connection... [11:10:05] Sock 9.Parse request [11:10:05]Sock 9.Check first char [11:10:05]Sock 9.First char is OK [11:10:05]request: POST /json_proto HTTP/1.0 [11:10:05]Method: POST [11:10:05]URL: /json_proto [11:10:05]Method is POST - this is cgi request [11:10:05]url: /json_proto [11:10:05]query_string will be loaded in cgi processing [11:10:05]execute_cgi json_proto POST (null) [11:10:05]execute_cgi path=json_proto method=POST [11:10:05]POST find Content-Length [11:10:05]Host: 172.17.63.3:8080 [11:10:05]Content-Length: 671 [11:10:05]Content-Type: application/json [11:10:05] [11:10:05]POST finish read [11:10:05]Found Content-Length = 671 [11:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:05]execute_script... [11:10:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:05]POST & json_proto [11:10:05]process_json_proto [11:10:05]json parsed OK: [11:10:05]protocol is kg_v1.0 [11:10:05]action value=close_receipt [11:10:05]process_action close_receipt [11:10:05]cmd_close_receipt [11:10:05]MH_GetDate [11:10:05]Write to MH i2c: F0 00 00 97 2C B2 [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: F0 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: F0 09 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: F0 09 00 97 2C 00 11 CE 1C 67 50 D1 6C 64 0E [11:10:05]GetLastDocTimeStamp 1729940954 [11:10:05]current date 1729941009 [11:10:05]FM_GetShiftState [11:10:05]SAM_PROTO_GetShiftState [11:10:05]wFMCommunicate request_size=4 [11:10:05]MH_SAM_APDU [11:10:05]CAPDU: 80 13 01 00 [11:10:05]Write to MH i2c: E2 08 00 98 2C 80 13 01 00 00 00 00 00 41 [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:05]Read from MH i2c: E2 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: E2 0E 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: E2 0E 00 98 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 76 [11:10:05]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:10:05]wFMCommunicate OK [11:10:05]SAM_PROTO_GetShiftState done [11:10:05]FM_GetShiftState done [11:10:05]opened in 1729902702 [11:10:05]opened+sec_in_day 1729989102 [11:10:05]quantity*price = 66 [11:10:05]sum+1 = 68 [11:10:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 1000.00 СДАЧА: 1000.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 131 26.10.2024 11:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156230 ФПД: 12050463704539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156230&fm=12050463704539&tin=02508201610067®Number=0000000000091693&sum=0 [11:10:06]StoreToDocumentArchive [11:10:06]shift 536 fd 156230 [11:10:06]save to /storage/0536/doc_00156230 [11:10:06]save last doc name /storage/0536/doc_00156230 to /storage/kkm_last_doc_name [11:10:06]save OK [11:10:06]Clear old archive folders... [11:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:06]tlvbuf is 00DFBC10 [11:10:06]SAM_PROTO_ClearQueue [11:10:06]wFMCommunicate request_size=4 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 09 00 00 [11:10:06]Write to MH i2c: E2 08 00 A5 2C 80 09 00 00 00 00 00 00 43 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 A5 2C 00 90 00 45 [11:10:06]RAPDU: 90 00 [11:10:06]wFMCommunicate OK [11:10:06]SAM_PROTO_ClearQueue done [11:10:06]KKMCreateOFDPacket [11:10:06]OFDProtocolAddRootSTLVToBuf [11:10:06]FM_MakeSignedData [11:10:06]FM_MakeSignedData [11:10:06]SAM_PROTO_SignData [11:10:06]wFMCommunicate request_size=4 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 0D 01 02 [11:10:06]Write to MH i2c: E2 08 00 A6 2C 80 0D 01 02 00 00 00 00 4B [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 A6 2C 00 90 00 46 [11:10:06]RAPDU: 90 00 [11:10:06]wFMCommunicate OK [11:10:06]wFMCommunicate request_size=255 [11:10:06]MH_SAM_APDU [11:10: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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 11 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 62 02 00 35 04 06 00 0A [11:10:06]Write to MH i2c: E2 02 01 A7 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 11 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 62 02 00 35 04 06 00 0A 00 00 9E [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 A7 2C 00 90 00 47 [11:10:06]RAPDU: 90 00 [11:10:06]wFMCommunicate OK [11:10:06]wFMCommunicate request_size=10 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 0D 02 02 05 F5 B7 9B C5 DB [11:10:06]Write to MH i2c: E2 0D 00 A8 2C 80 0D 02 02 05 00 F5 B7 9B C5 DB 00 00 3F [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 A8 2C 00 90 00 48 [11:10:06]RAPDU: 90 00 [11:10:06]wFMCommunicate OK [11:10:06]wFMCommunicate request_size=4 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 0D 03 02 [11:10:06]Write to MH i2c: E2 08 00 A9 2C 80 0D 03 02 00 00 00 00 50 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 0B 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 0B 00 A9 2C 00 02 CC 34 55 AC FE C3 49 90 00 5E [11:10:06]RAPDU: 02 CC 34 55 AC FE C3 49 90 00 [11:10:06]wFMCommunicate OK [11:10:06]SAM_PROTO_SignData done [11:10:06]FM_MakeSignedData done [11:10:06]CreateOFDProtocolMessage [11:10:06]wFMCommunicate request_size=4 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 11 00 00 [11:10:06]Write to MH i2c: E2 08 00 AA 2C 80 11 00 00 00 00 00 00 50 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 17 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 17 00 AA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [11:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:10:06]wFMCommunicate OK [11:10:06]CreateOFDProtocolMessage done [11:10:06]OFDSenderStorePacket 156230 [11:10:06]StoreOFDPacket docnum=156230 [11:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1B E3 07 01 5C CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 11 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 62 02 00 35 04 06 00 0A F5 B7 9B C5 DB 02 CC 34 55 AC FE C3 49 [11:10:06]CheckFolder [11:10:06]dirname=/storage/ofd_packets [11:10:06]CheckFolder done [11:10:06]ProducePacketName [11:10:06]name=ofd_packets/00156230 [11:10:06]NVStorageSaveData ofd_packets/00156230 [11:10:06]File name is /storage/ofd_packets/00156230 [11:10:06]Write 301 bytes [11:10:06]NVStorageSaveData done [11:10:06]OFDSenderStorePacket done [11:10:06]KKMCreateOFDPacket done [11:10:06]NVStorageSaveData kkm_last_timestamp [11:10:06]File name is /storage/kkm_last_timestamp [11:10:06]Write 4 bytes [11:10:06]NVStorageSaveData done [11:10:06]ExternCall_PrintAddStr [11:10:06]wPrintStart [11:10:06]Write to MH i2c: 01 00 00 AB 2C D7 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 07 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 07 00 AB 2C 00 00 00 00 00 FF 0F EC [11:10:06]RasterBufferAndPrint [11:10:06]line Счет N : (1)99045 [11:10:06]line ИНН: 02508201610067 [11:10:06]line Контрольно-Кассовый Чек [11:10:06]line ПРОДАЖА [11:10:06]line ТРК (МРК, ГНК) : 31 [11:10:06]line Товар: 2710124130 [11:10:06]line Аи-92-К-5 [11:10:06]line 0.010 * 66.90 [11:10:06]line = 0.67 [11:10:06]line НДС 12% НСП 1% [11:10:06]line > о реализуемом товаре [11:10:06]line ОКРУГЛЕНИЕ: -0.67 [11:10:06]line ИТОГО: 0.00 [11:10:06]line Внесено: 1000.00 [11:10:06]line СДАЧА: 1000.00 [11:10:06]line НСП 1% : 0.01 [11:10:06]line НДС 12% : 0.07 [11:10:06]line Наличными: 0.00 [11:10:06]line Безнал.: 0.00 [11:10:06]line Место: АЗС № 143 "Партнер Нефть" [11:10:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:10:06]line СНО: Общий режим [11:10:06]line Чек 131 26.10.2024 11:10 [11:10:06]line Смена: 536 ФФД: 1.0 [11:10:06]line ЗНМ: 0300000096 [11:10:06]line РНМ: 0000000000091693 [11:10:06]line Версия ККМ: 001 [11:10:06]line ФМ: 0000000000871792 [11:10:06]line ФД: 156230 [11:10:06]line ФПД: 12050463704539 [11:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156230&fm=12050463704539&tin=02508201610067®Number=0000000000091693&sum=0 [11:10:07]written 0, free lines is 4095 [11:10:07]OFD Sender: Processing packet 156230 [packets to send 31, broken 30] [11:10:07]ProducePacketName [11:10:07]name=ofd_packets/00156230 [11:10:07]OFD Sender: To server: pG, [11:10:07]CommunicateWithHost lk.salyk.kg:30040 [11:10:07]ConnectInit lk.salyk.kg [11:10:07]Connected sock=10 [11:10:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1B E3 07 01 5C CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 11 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 62 02 00 35 04 06 00 0A F5 B7 9B C5 DB 02 CC 34 55 AC FE C3 49 [11:10:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C3 57 47 00 94 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 31 37 39 32 10 04 04 00 46 62 02 00 F4 03 04 00 84 73 1C 67 B6 04 01 00 00 5E 92 44 31 1F BC E0 7B [11:10:07]CommunicateWithHost err = 0 [11:10:07]CheckOFDResponse [11:10:07]1017 (14) - 77093643461234 [11:10:07]1041 (16) - 0000000000871792 [11:10:07]1040 (4) - 156230 [11:10:07]1012 (4) - 26.10.2024 04:43 [11:10:07]1206 (1) - 0 [11:10:07]OFD Sender: Remove packet 156230 [11:10:07]ProducePacketName [11:10:07]name=ofd_packets/00156230 [11:10:07]NVStorageDeleteData [11:10:07]Write to MH i2c: 01 00 00 D6 2C 02 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: 01 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: 01 07 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: 01 07 00 D6 2C 00 00 00 00 00 F2 0C 07 [11:10:07]RasterBufferAndPrint [11:10:07]line [11:10:07]line [11:10:07]line [11:10:07]line [11:10:07]line [11:10:07]written 0, free lines is 3320 [11:10:07]process_action close_receipt done [11:10:07]requested_data is exist [11:10:07]produce_requested_data [11:10:07]requested_item fm.sn is exist - process it [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 11 00 00 [11:10:07]Write to MH i2c: E2 08 00 DD 2C 80 11 00 00 00 00 00 00 83 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 17 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 17 00 DD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D8 [11:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:10:07]wFMCommunicate OK [11:10:07]requested_item fd.num is exist - process it [11:10:07]SAM_PROTO_GetFieldsCounters [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 13 00 00 [11:10:07]Write to MH i2c: E2 08 00 DE 2C 80 13 00 00 00 00 00 00 86 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 62 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 62 00 DE 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 46 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [11:10: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 46 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:07]wFMCommunicate OK [11:10:07]SAM_PROTO_GetFieldsCounters done [11:10:07]requested_item shift.num is exist - process it [11:10:07]requested_item shift.opened is exist - process it [11:10:07]req_shift_opened [11:10:07]FM_GetShiftState [11:10:07]SAM_PROTO_GetShiftState [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 13 01 00 [11:10:07]Write to MH i2c: E2 08 00 DF 2C 80 13 01 00 00 00 00 00 88 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 0E 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 0E 00 DF 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BD [11:10:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:10:07]wFMCommunicate OK [11:10:07]SAM_PROTO_GetShiftState done [11:10:07]FM_GetShiftState done [11:10:07]req_shift_opened done [11:10:07]requested_item shift.open_date is exist - process it [11:10:07]req_shift_open_date [11:10:07]req_shift_open_date done [11:10:07]produce_requested_data done [11:10:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156230,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:10:07]process_action_free close_receipt [11:10:07]json_value_free [11:10:07]json_value_free done [11:10:07]process_json_proto returns [11:10:07]Send response to host [11:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156230,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:10:07]free response buf [11:10:07]execute_script done [11:10:07]execute_script returns [11:10:07]free content buf [11:10:07]Sock 9.Close socket [11:10:07]Sock 9.Thread stoped [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:01]accept exits with 7 [11:12:01]New connection [11:12:01]New thread 3066469732 created [11:12:01]Thread 3066613092 joined [11:12:01]Waiting for new connection... [11:12:01] Sock 7.Parse request [11:12:01]Sock 7.Check first char [11:12:01]Sock 7.First char is OK [11:12:01]request: POST /json_proto HTTP/1.0 [11:12:01]Method: POST [11:12:01]URL: /json_proto [11:12:01]Method is POST - this is cgi request [11:12:01]url: /json_proto [11:12:01]query_string will be loaded in cgi processing [11:12:01]execute_cgi json_proto POST (null) [11:12:01]execute_cgi path=json_proto method=POST [11:12:01]POST find Content-Length [11:12:01]Host: 172.17.63.3:8080 [11:12:01]Content-Length: 681 [11:12:01]Content-Type: application/json [11:12:01] [11:12:01]POST finish read [11:12:01]Found Content-Length = 681 [11:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:01]execute_script... [11:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:01]POST & json_proto [11:12:01]process_json_proto [11:12:01]json parsed OK: [11:12:01]protocol is kg_v1.0 [11:12:01]action value=close_receipt [11:12:01]process_action close_receipt [11:12:01]cmd_close_receipt [11:12:01]MH_GetDate [11:12:01]Write to MH i2c: F0 00 00 E0 2C FB [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: F0 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: F0 09 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: F0 09 00 E0 2C 00 85 CE 1C 67 50 D1 6C 64 CB [11:12:01]GetLastDocTimeStamp 1729941009 [11:12:01]current date 1729941125 [11:12:01]FM_GetShiftState [11:12:01]SAM_PROTO_GetShiftState [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 13 01 00 [11:12:01]Write to MH i2c: E2 08 00 E1 2C 80 13 01 00 00 00 00 00 8A [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0E 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0E 00 E1 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BF [11:12:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_GetShiftState done [11:12:01]FM_GetShiftState done [11:12:01]opened in 1729902702 [11:12:01]opened+sec_in_day 1729989102 [11:12:01]quantity*price = 100015 [11:12:01]sum+1 = 100017 [11:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 132 26.10.2024 11:12 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156231 ФПД: 85910145113534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111205&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156231&fm=85910145113534&tin=02508201610067®Number=0000000000091693&sum=100000 [11:12:02]StoreToDocumentArchive [11:12:02]shift 536 fd 156231 [11:12:02]save to /storage/0536/doc_00156231 [11:12:02]save last doc name /storage/0536/doc_00156231 to /storage/kkm_last_doc_name [11:12:02]save OK [11:12:02]Clear old archive folders... [11:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:02]tlvbuf is 00DD2A00 [11:12:02]SAM_PROTO_ClearQueue [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 09 00 00 [11:12:02]Write to MH i2c: E2 08 00 EE 2C 80 09 00 00 00 00 00 00 8C [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]SAM_PROTO_ClearQueue done [11:12:02]KKMCreateOFDPacket [11:12:02]OFDProtocolAddRootSTLVToBuf [11:12:02]FM_MakeSignedData [11:12:02]FM_MakeSignedData [11:12:02]SAM_PROTO_SignData [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 01 02 [11:12:02]Write to MH i2c: E2 08 00 EF 2C 80 0D 01 02 00 00 00 00 94 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 EF 2C 00 90 00 8F [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]wFMCommunicate request_size=255 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 85 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 62 02 00 35 04 06 00 4E [11:12:02]Write to MH i2c: E2 02 01 F0 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 85 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 62 02 00 35 04 06 00 4E 00 00 8F [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 F0 2C 00 90 00 90 [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]wFMCommunicate request_size=10 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 02 02 05 22 83 AE 9D BE [11:12:02]Write to MH i2c: E2 0D 00 F1 2C 80 0D 02 02 05 00 22 83 AE 9D BE 00 00 4F [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 F1 2C 00 90 00 91 [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 03 02 [11:12:02]Write to MH i2c: E2 08 00 F2 2C 80 0D 03 02 00 00 00 00 99 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0B 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0B 00 F2 2C 00 3F 9A 8E 80 F8 83 1C 6B 90 00 83 [11:12:02]RAPDU: 3F 9A 8E 80 F8 83 1C 6B 90 00 [11:12:02]wFMCommunicate OK [11:12:02]SAM_PROTO_SignData done [11:12:02]FM_MakeSignedData done [11:12:02]CreateOFDProtocolMessage [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 11 00 00 [11:12:02]Write to MH i2c: E2 08 00 F3 2C 80 11 00 00 00 00 00 00 99 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 17 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 17 00 F3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [11:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:12:02]wFMCommunicate OK [11:12:02]CreateOFDProtocolMessage done [11:12:02]OFDSenderStorePacket 156231 [11:12:02]StoreOFDPacket docnum=156231 [11:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 09 49 07 01 3D 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 85 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 62 02 00 35 04 06 00 4E 22 83 AE 9D BE 3F 9A 8E 80 F8 83 1C 6B [11:12:02]CheckFolder [11:12:02]dirname=/storage/ofd_packets [11:12:02]CheckFolder done [11:12:02]ProducePacketName [11:12:02]name=ofd_packets/00156231 [11:12:02]NVStorageSaveData ofd_packets/00156231 [11:12:02]File name is /storage/ofd_packets/00156231 [11:12:02]Write 301 bytes [11:12:02]NVStorageSaveData done [11:12:02]OFDSenderStorePacket done [11:12:02]KKMCreateOFDPacket done [11:12:02]NVStorageSaveData kkm_last_timestamp [11:12:02]File name is /storage/kkm_last_timestamp [11:12:02]Write 4 bytes [11:12:02]NVStorageSaveData done [11:12:02]ExternCall_PrintAddStr [11:12:02]wPrintStart [11:12:02]Write to MH i2c: 01 00 00 F4 2C 20 [11:12:02]OFD Sender: Processing packet 156231 [packets to send 31, broken 30] [11:12:02]ProducePacketName [11:12:02]name=ofd_packets/00156231 [11:12:02]OFD Sender: To server: pG, [11:12:02]CommunicateWithHost lk.salyk.kg:30040 [11:12:02]ConnectInit lk.salyk.kg [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 F4 2C 00 00 00 00 00 FF 0F 35 [11:12:02]RasterBufferAndPrint [11:12:02]line Счет N : (1)99046 [11:12:02]line ИНН: 02508201610067 [11:12:02]line Контрольно-Кассовый Чек [11:12:02]line ПРОДАЖА [11:12:02]line ТРК (МРК, ГНК) : 31 [11:12:02]line Товар: 2710124130 [11:12:02]line Аи-92-К-5 [11:12:02]line 14.950 * 66.90 [11:12:02]line = 1000.16 [11:12:02]line НДС 12% НСП 1% [11:12:02]line > о реализуемом товаре [11:12:02]line ОКРУГЛЕНИЕ: -0.16 [11:12:02]line ИТОГО: 1000.00 [11:12:02]line Внесено: 1000.00 [11:12:02]line СДАЧА: 0.00 [11:12:02]line НСП 1% : 8.85 [11:12:02]line НДС 12% : 106.21 [11:12:02]line Наличными: 1000.00 [11:12:02]line Безнал.: 0.00 [11:12:02]line Место: АЗС № 143 "Партнер Нефть" [11:12:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:12:02]line СНО: Общий режим [11:12:02]line Чек 132 26.10.2024 11:12 [11:12:02]line Смена: 536 ФФД: 1.0 [11:12:02]line ЗНМ: 0300000096 [11:12:02]line РНМ: 0000000000091693 [11:12:02]line Версия ККМ: 001 [11:12:02]line ФМ: 0000000000871792 [11:12:02]line ФД: 156231 [11:12:02]line ФПД: 85910145113534 [11:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111205&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156231&fm=85910145113534&tin=02508201610067®Number=0000000000091693&sum=100000 [11:12:03]Connected sock=10 [11: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 31 37 39 32 0F 01 00 00 09 49 07 01 3D 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 85 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 62 02 00 35 04 06 00 4E 22 83 AE 9D BE 3F 9A 8E 80 F8 83 1C 6B [11:12:03]written 0, free lines is 4095 [11:12:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A1 F5 47 00 67 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 62 02 00 F4 03 04 00 F7 73 1C 67 B6 04 01 00 00 B3 44 44 40 AA 6F 3F 57 [11:12:03]CommunicateWithHost err = 0 [11:12:03]CheckOFDResponse [11:12:03]1017 (14) - 77093643461234 [11:12:03]1041 (16) - 0000000000871792 [11:12:03]1040 (4) - 156231 [11:12:03]1012 (4) - 26.10.2024 04:45 [11:12:03]1206 (1) - 0 [11:12:03]OFD Sender: Remove packet 156231 [11:12:03]ProducePacketName [11:12:03]name=ofd_packets/00156231 [11:12:03]NVStorageDeleteData [11:12:03]Write to MH i2c: 01 00 00 1F 2D 4C [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 07 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 07 00 1F 2D 00 00 00 00 00 EC 0C 4B [11:12:03]RasterBufferAndPrint [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]written 0, free lines is 3317 [11:12:03]process_action close_receipt done [11:12:03]requested_data is exist [11:12:03]produce_requested_data [11:12:03]requested_item fm.sn is exist - process it [11:12:03]wFMCommunicate request_size=4 [11:12:03]MH_SAM_APDU [11:12:03]CAPDU: 80 11 00 00 [11:12:03]Write to MH i2c: E2 08 00 26 2D 80 11 00 00 00 00 00 00 CD [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:03]Read from MH i2c: E2 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 17 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 17 00 26 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 22 [11:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:12:03]wFMCommunicate OK [11:12:03]requested_item fd.num is exist - process it [11:12:03]SAM_PROTO_GetFieldsCounters [11:12:03]wFMCommunicate request_size=4 [11:12:03]MH_SAM_APDU [11:12:03]CAPDU: 80 13 00 00 [11:12:03]Write to MH i2c: E2 08 00 27 2D 80 13 00 00 00 00 00 00 D0 [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:03]OFD Sender: No OFD packet to send [11:12:03]Read from MH i2c: E2 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 62 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 62 00 27 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 47 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [11:12: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 47 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:03]wFMCommunicate OK [11:12:03]SAM_PROTO_GetFieldsCounters done [11:12:03]requested_item shift.num is exist - process it [11:12:03]requested_item shift.opened is exist - process it [11:12:03]req_shift_opened [11:12:03]FM_GetShiftState [11:12:03]SAM_PROTO_GetShiftState [11:12:03]wFMCommunicate request_size=4 [11:12:03]MH_SAM_APDU [11:12:03]CAPDU: 80 13 01 00 [11:12:03]Write to MH i2c: E2 08 00 28 2D 80 13 01 00 00 00 00 00 D2 [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:03]Read from MH i2c: E2 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 0E 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 0E 00 28 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 07 [11:12:03]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:12:03]wFMCommunicate OK [11:12:03]SAM_PROTO_GetShiftState done [11:12:03]FM_GetShiftState done [11:12:03]req_shift_opened done [11:12:03]requested_item shift.open_date is exist - process it [11:12:03]req_shift_open_date [11:12:03]req_shift_open_date done [11:12:03]produce_requested_data done [11:12:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156231,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:12:03]process_action_free close_receipt [11:12:03]json_value_free [11:12:03]json_value_free done [11:12:03]process_json_proto returns [11:12:03]Send response to host [11:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156231,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:12:03]free response buf [11:12:03]execute_script done [11:12:03]execute_script returns [11:12:03]free content buf [11:12:03]Sock 7.Close socket [11:12:03]Sock 7.Thread stoped [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:22]accept exits with 9 [11:13:22]New connection [11:13:22]New thread 3066613092 created [11:13:22]Thread 3066469732 joined [11:13:22]Waiting for new connection... [11:13:22] Sock 9.Parse request [11:13:22]Sock 9.Check first char [11:13:22]Sock 9.First char is OK [11:13:22]request: POST /json_proto HTTP/1.0 [11:13:22]Method: POST [11:13:22]URL: /json_proto [11:13:22]Method is POST - this is cgi request [11:13:22]url: /json_proto [11:13:22]query_string will be loaded in cgi processing [11:13:22]execute_cgi json_proto POST (null) [11:13:22]execute_cgi path=json_proto method=POST [11:13:22]POST find Content-Length [11:13:22]Host: 172.17.63.3:8080 [11:13:22]Content-Length: 766 [11:13:22]Content-Type: application/json [11:13:22] [11:13:22]POST finish read [11:13:22]Found Content-Length = 766 [11:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:22]execute_script... [11:13:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:22]POST & json_proto [11:13:22]process_json_proto [11:13:22]json parsed OK: [11:13:22]protocol is kg_v1.0 [11:13:22]action value=close_receipt [11:13:22]process_action close_receipt [11:13:22]cmd_close_receipt [11:13:22]MH_GetDate [11:13:22]Write to MH i2c: F0 00 00 29 2D 45 [11:13:22]Write i2c OK [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: F0 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: F0 09 00 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: F0 09 00 29 2D 00 D6 CE 1C 67 50 D1 6C 64 66 [11:13:22]GetLastDocTimeStamp 1729941125 [11:13:22]current date 1729941206 [11:13:22]FM_GetShiftState [11:13:22]SAM_PROTO_GetShiftState [11:13:22]wFMCommunicate request_size=4 [11:13:22]MH_SAM_APDU [11:13:22]CAPDU: 80 13 01 00 [11:13:22]Write to MH i2c: E2 08 00 2A 2D 80 13 01 00 00 00 00 00 D4 [11:13:22]Write i2c OK [11:13:22]MH_I2C_Read... [11:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:22]Read from MH i2c: E2 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: E2 0E 00 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: E2 0E 00 2A 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 09 [11:13:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:13:22]wFMCommunicate OK [11:13:22]SAM_PROTO_GetShiftState done [11:13:22]FM_GetShiftState done [11:13:22]opened in 1729902702 [11:13:22]opened+sec_in_day 1729989102 [11:13:22]quantity*price = 80012 [11:13:22]sum+1 = 80013 [11:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 133 26.10.2024 11:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156232 ФПД: 7138150157538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111326&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156232&fm=7138150157538&tin=02508201610067®Number=0000000000091693&sum=80012 [11:13:23]StoreToDocumentArchive [11:13:23]shift 536 fd 156232 [11:13:23]save to /storage/0536/doc_00156232 [11:13:23]save last doc name /storage/0536/doc_00156232 to /storage/kkm_last_doc_name [11:13:23]save OK [11:13:23]Clear old archive folders... [11:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:23]tlvbuf is 00DFB300 [11:13:23]SAM_PROTO_ClearQueue [11:13:23]wFMCommunicate request_size=4 [11:13:23]MH_SAM_APDU [11:13:23]CAPDU: 80 09 00 00 [11:13:23]Write to MH i2c: E2 08 00 37 2D 80 09 00 00 00 00 00 00 D6 [11:13:23]Write i2c OK [11:13:23]MH_I2C_Read... [11:13:23]OFD Sender: No OFD packet to send [11:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:23]Read from MH i2c: E2 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 03 00 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 03 00 37 2D 00 90 00 D8 [11:13:23]RAPDU: 90 00 [11:13:23]wFMCommunicate OK [11:13:23]SAM_PROTO_ClearQueue done [11:13:23]KKMCreateOFDPacket [11:13:23]OFDProtocolAddRootSTLVToBuf [11:13:23]FM_MakeSignedData [11:13:23]FM_MakeSignedData [11:13:23]SAM_PROTO_SignData [11:13:23]wFMCommunicate request_size=4 [11:13:23]MH_SAM_APDU [11:13:23]CAPDU: 80 0D 01 02 [11:13:23]Write to MH i2c: E2 08 00 38 2D 80 0D 01 02 00 00 00 00 DE [11:13:23]Write i2c OK [11:13:23]MH_I2C_Read... [11:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 38 2D 00 90 00 D9 [11:13:24]RAPDU: 90 00 [11:13:24]wFMCommunicate OK [11:13:24]wFMCommunicate request_size=255 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 D6 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 62 02 00 35 04 06 00 06 [11:13:24]Write to MH i2c: E2 02 01 39 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 D6 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 62 02 00 35 04 06 00 06 00 00 EE [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 39 2D 00 90 00 DA [11:13:24]RAPDU: 90 00 [11:13:24]wFMCommunicate OK [11:13:24]wFMCommunicate request_size=10 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 0D 02 02 05 7D FA E7 8C E2 [11:13:24]Write to MH i2c: E2 0D 00 3A 2D 80 0D 02 02 05 00 7D FA E7 8C E2 00 00 B7 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 3A 2D 00 90 00 DB [11:13:24]RAPDU: 90 00 [11:13:24]wFMCommunicate OK [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 0D 03 02 [11:13:24]Write to MH i2c: E2 08 00 3B 2D 80 0D 03 02 00 00 00 00 E3 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0B 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0B 00 3B 2D 00 77 DB A3 FB 99 74 3F 70 90 00 90 [11:13:24]RAPDU: 77 DB A3 FB 99 74 3F 70 90 00 [11:13:24]wFMCommunicate OK [11:13:24]SAM_PROTO_SignData done [11:13:24]FM_MakeSignedData done [11:13:24]CreateOFDProtocolMessage [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 11 00 00 [11:13:24]Write to MH i2c: E2 08 00 3C 2D 80 11 00 00 00 00 00 00 E3 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 17 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 17 00 3C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 38 [11:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:13:24]wFMCommunicate OK [11:13:24]CreateOFDProtocolMessage done [11:13:24]OFDSenderStorePacket 156232 [11:13:24]StoreOFDPacket docnum=156232 [11:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 F9 07 01 00 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 D6 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 62 02 00 35 04 06 00 06 7D FA E7 8C E2 77 DB A3 FB 99 74 3F 70 [11:13:24]CheckFolder [11:13:24]dirname=/storage/ofd_packets [11:13:24]CheckFolder done [11:13:24]ProducePacketName [11:13:24]name=ofd_packets/00156232 [11:13:24]NVStorageSaveData ofd_packets/00156232 [11:13:24]File name is /storage/ofd_packets/00156232 [11:13:24]Write 301 bytes [11:13:24]NVStorageSaveData done [11:13:24]OFDSenderStorePacket done [11:13:24]KKMCreateOFDPacket done [11:13:24]NVStorageSaveData kkm_last_timestamp [11:13:24]File name is /storage/kkm_last_timestamp [11:13:24]Write 4 bytes [11:13:24]NVStorageSaveData done [11:13:24]ExternCall_PrintAddStr [11:13:24]wPrintStart [11:13:24]Write to MH i2c: 01 00 00 3D 2D 6A [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: 01 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: 01 07 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: 01 07 00 3D 2D 00 00 00 00 00 FF 0F 7F [11:13:24]RasterBufferAndPrint [11:13:24]line Счет N : (1)99047 [11:13:24]line ИНН: 02508201610067 [11:13:24]line Контрольно-Кассовый Чек [11:13:24]line ПРОДАЖА [11:13:24]line ТРК (МРК, ГНК) : 21 [11:13:24]line Товар: 2710124130 [11:13:24]line Аи-92-К-5 [11:13:24]line 11.960 * 66.90 [11:13:24]line = 800.12 [11:13:24]line НДС 12% НСП 1% [11:13:24]line > о реализуемом товаре [11:13:24]line ИТОГО: 800.12 [11:13:24]line НСП 1% : 7.08 [11:13:24]line НДС 12% : 84.97 [11:13:24]line Наличными: 0.00 [11:13:24]line Безнал.: 800.12 [11:13:24]line Место: АЗС № 143 "Партнер Нефть" [11:13:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:13:24]line СНО: Общий режим [11:13:24]line Чек 133 26.10.2024 11:13 [11:13:24]line Смена: 536 ФФД: 1.0 [11:13:24]line ЗНМ: 0300000096 [11:13:24]line РНМ: 0000000000091693 [11:13:24]line Версия ККМ: 001 [11:13:24]line Платежная система: Mbank [11:13:24]line ФМ: 0000000000871792 [11:13:24]line ФД: 156232 [11:13:24]line ФПД: 7138150157538 [11:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111326&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156232&fm=7138150157538&tin=02508201610067®Number=0000000000091693&sum=80012 [11:13:24]OFD Sender: Processing packet 156232 [packets to send 31, broken 30] [11:13:24]ProducePacketName [11:13:24]name=ofd_packets/00156232 [11:13:24]OFD Sender: To server: pG, [11:13:24]CommunicateWithHost lk.salyk.kg:30040 [11:13:24]ConnectInit lk.salyk.kg [11:13:24]written 0, free lines is 4095 [11:13:24]Connected sock=10 [11:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 F9 07 01 00 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 D6 CE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 62 02 00 35 04 06 00 06 7D FA E7 8C E2 77 DB A3 FB 99 74 3F 70 [11:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 14 61 47 00 F1 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 62 02 00 F4 03 04 00 49 74 1C 67 B6 04 01 00 00 99 BE 27 D1 DC A7 A7 D7 [11:13:25]CommunicateWithHost err = 0 [11:13:25]CheckOFDResponse [11:13:25]1017 (14) - 77093643461234 [11:13:25]1041 (16) - 0000000000871792 [11:13:25]1040 (4) - 156232 [11:13:25]1012 (4) - 26.10.2024 04:47 [11:13:25]1206 (1) - 0 [11:13:25]OFD Sender: Remove packet 156232 [11:13:25]ProducePacketName [11:13:25]name=ofd_packets/00156232 [11:13:25]NVStorageDeleteData [11:13:25]Write to MH i2c: 01 00 00 66 2D 93 [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 07 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 07 00 66 2D 00 00 00 00 00 17 0D BE [11:13:25]RasterBufferAndPrint [11:13:25]line [11:13:25]line [11:13:25]line [11:13:25]line [11:13:25]line [11:13:25]written 0, free lines is 3358 [11:13:25]process_action close_receipt done [11:13:25]requested_data is exist [11:13:25]produce_requested_data [11:13:25]requested_item fm.sn is exist - process it [11:13:25]wFMCommunicate request_size=4 [11:13:25]MH_SAM_APDU [11:13:25]CAPDU: 80 11 00 00 [11:13:25]Write to MH i2c: E2 08 00 6D 2D 80 11 00 00 00 00 00 00 14 [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:25]Read from MH i2c: E2 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 17 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 17 00 6D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [11:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:13:25]wFMCommunicate OK [11:13:25]requested_item fd.num is exist - process it [11:13:25]SAM_PROTO_GetFieldsCounters [11:13:25]wFMCommunicate request_size=4 [11:13:25]MH_SAM_APDU [11:13:25]CAPDU: 80 13 00 00 [11:13:25]Write to MH i2c: E2 08 00 6E 2D 80 13 00 00 00 00 00 00 17 [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:25]Read from MH i2c: E2 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 62 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 62 00 6E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 48 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [11:13: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 48 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:25]wFMCommunicate OK [11:13:25]SAM_PROTO_GetFieldsCounters done [11:13:25]requested_item shift.num is exist - process it [11:13:25]requested_item shift.opened is exist - process it [11:13:25]req_shift_opened [11:13:25]FM_GetShiftState [11:13:25]SAM_PROTO_GetShiftState [11:13:25]wFMCommunicate request_size=4 [11:13:25]MH_SAM_APDU [11:13:25]CAPDU: 80 13 01 00 [11:13:25]Write to MH i2c: E2 08 00 6F 2D 80 13 01 00 00 00 00 00 19 [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:25]Read from MH i2c: E2 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 0E 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 0E 00 6F 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4E [11:13:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:13:25]wFMCommunicate OK [11:13:25]SAM_PROTO_GetShiftState done [11:13:25]FM_GetShiftState done [11:13:25]req_shift_opened done [11:13:25]requested_item shift.open_date is exist - process it [11:13:25]req_shift_open_date [11:13:25]req_shift_open_date done [11:13:25]produce_requested_data done [11:13:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156232,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:13:25]process_action_free close_receipt [11:13:25]json_value_free [11:13:25]json_value_free done [11:13:25]process_json_proto returns [11:13:25]Send response to host [11:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156232,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:13:25]free response buf [11:13:25]execute_script done [11:13:25]execute_script returns [11:13:25]free content buf [11:13:25]Sock 9.Close socket [11:13:25]Sock 9.Thread stoped [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:36]accept exits with 7 [11:14:36]New connection [11:14:36]New thread 3066469732 created [11:14:36]Thread 3066613092 joined [11:14:36]Waiting for new connection... [11:14:36] Sock 7.Parse request [11:14:36]Sock 7.Check first char [11:14:36]Sock 7.First char is OK [11:14:36]request: POST /json_proto HTTP/1.0 [11:14:36]Method: POST [11:14:36]URL: /json_proto [11:14:36]Method is POST - this is cgi request [11:14:36]url: /json_proto [11:14:36]query_string will be loaded in cgi processing [11:14:36]execute_cgi json_proto POST (null) [11:14:36]execute_cgi path=json_proto method=POST [11:14:36]POST find Content-Length [11:14:36]Host: 172.17.63.3:8080 [11:14:36]Content-Length: 765 [11:14:36]Content-Type: application/json [11:14:36] [11:14:36]POST finish read [11:14:36]Found Content-Length = 765 [11:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:36]execute_script... [11:14:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:36]POST & json_proto [11:14:36]process_json_proto [11:14:36]json parsed OK: [11:14:36]protocol is kg_v1.0 [11:14:36]action value=close_receipt [11:14:36]process_action close_receipt [11:14:36]cmd_close_receipt [11:14:36]MH_GetDate [11:14:36]Write to MH i2c: F0 00 00 70 2D 8C [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: F0 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: F0 09 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: F0 09 00 70 2D 00 20 CF 1C 67 50 D1 6C 64 F8 [11:14:36]GetLastDocTimeStamp 1729941206 [11:14:36]current date 1729941280 [11:14:36]FM_GetShiftState [11:14:36]SAM_PROTO_GetShiftState [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 13 01 00 [11:14:36]Write to MH i2c: E2 08 00 71 2D 80 13 01 00 00 00 00 00 1B [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 0E 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 0E 00 71 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [11:14:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:14:36]wFMCommunicate OK [11:14:36]SAM_PROTO_GetShiftState done [11:14:36]FM_GetShiftState done [11:14:36]opened in 1729902702 [11:14:36]opened+sec_in_day 1729989102 [11:14:36]quantity*price = 50041 [11:14:36]sum+1 = 50042 [11:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 134 26.10.2024 11:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156233 ФПД: 179174932533348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111440&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156233&fm=179174932533348&tin=02508201610067®Number=0000000000091693&sum=50041 [11:14:38]StoreToDocumentArchive [11:14:38]shift 536 fd 156233 [11:14:38]save to /storage/0536/doc_00156233 [11:14:38]save last doc name /storage/0536/doc_00156233 to /storage/kkm_last_doc_name [11:14:38]save OK [11:14:38]Clear old archive folders... [11:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:38]tlvbuf is 00D1EAA0 [11:14:38]SAM_PROTO_ClearQueue [11:14:38]wFMCommunicate request_size=4 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 09 00 00 [11:14:38]Write to MH i2c: E2 08 00 7E 2D 80 09 00 00 00 00 00 00 1D [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:38]Read from MH i2c: E2 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 03 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 03 00 7E 2D 00 90 00 1F [11:14:38]RAPDU: 90 00 [11:14:38]wFMCommunicate OK [11:14:38]SAM_PROTO_ClearQueue done [11:14:38]KKMCreateOFDPacket [11:14:38]OFDProtocolAddRootSTLVToBuf [11:14:38]FM_MakeSignedData [11:14:38]FM_MakeSignedData [11:14:38]SAM_PROTO_SignData [11:14:38]wFMCommunicate request_size=4 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 0D 01 02 [11:14:38]Write to MH i2c: E2 08 00 7F 2D 80 0D 01 02 00 00 00 00 25 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:38]Read from MH i2c: E2 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 03 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 03 00 7F 2D 00 90 00 20 [11:14:38]RAPDU: 90 00 [11:14:38]wFMCommunicate OK [11:14:38]wFMCommunicate request_size=255 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 20 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 62 02 00 35 04 06 00 A2 [11:14:38]Write to MH i2c: E2 02 01 80 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 20 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 62 02 00 35 04 06 00 A2 00 00 6C [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:38]Read from MH i2c: E2 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 03 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 03 00 80 2D 00 90 00 21 [11:14:38]RAPDU: 90 00 [11:14:38]wFMCommunicate OK [11:14:38]wFMCommunicate request_size=10 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 0D 02 02 05 F5 6A 34 D0 64 [11:14:38]Write to MH i2c: E2 0D 00 81 2D 80 0D 02 02 05 00 F5 6A 34 D0 64 00 00 F9 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:38]Read from MH i2c: E2 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 03 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 03 00 81 2D 00 90 00 22 [11:14:38]RAPDU: 90 00 [11:14:38]wFMCommunicate OK [11:14:38]wFMCommunicate request_size=4 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 0D 03 02 [11:14:38]Write to MH i2c: E2 08 00 82 2D 80 0D 03 02 00 00 00 00 2A [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:38]Read from MH i2c: E2 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 0B 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 0B 00 82 2D 00 A3 74 E4 3E D6 61 27 31 90 00 F3 [11:14:38]RAPDU: A3 74 E4 3E D6 61 27 31 90 00 [11:14:38]wFMCommunicate OK [11:14:38]SAM_PROTO_SignData done [11:14:38]FM_MakeSignedData done [11:14:38]CreateOFDProtocolMessage [11:14:38]wFMCommunicate request_size=4 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 11 00 00 [11:14:38]Write to MH i2c: E2 08 00 83 2D 80 11 00 00 00 00 00 00 2A [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:38]Read from MH i2c: E2 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 17 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 17 00 83 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [11:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:14:38]wFMCommunicate OK [11:14:38]CreateOFDProtocolMessage done [11:14:38]OFDSenderStorePacket 156233 [11:14:38]StoreOFDPacket docnum=156233 [11:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 70 5A 07 01 1C C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 20 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 62 02 00 35 04 06 00 A2 F5 6A 34 D0 64 A3 74 E4 3E D6 61 27 31 [11:14:38]CheckFolder [11:14:38]dirname=/storage/ofd_packets [11:14:38]CheckFolder done [11:14:38]ProducePacketName [11:14:38]name=ofd_packets/00156233 [11:14:38]NVStorageSaveData ofd_packets/00156233 [11:14:38]File name is /storage/ofd_packets/00156233 [11:14:38]Write 301 bytes [11:14:38]NVStorageSaveData done [11:14:38]OFDSenderStorePacket done [11:14:38]KKMCreateOFDPacket done [11:14:38]NVStorageSaveData kkm_last_timestamp [11:14:38]File name is /storage/kkm_last_timestamp [11:14:38]Write 4 bytes [11:14:38]NVStorageSaveData done [11:14:38]ExternCall_PrintAddStr [11:14:38]wPrintStart [11:14:38]Write to MH i2c: 01 00 00 84 2D B1 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: 01 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: 01 07 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: 01 07 00 84 2D 00 00 00 00 00 FF 0F C6 [11:14:38]RasterBufferAndPrint [11:14:38]line Счет N : (1)99048 [11:14:38]line ИНН: 02508201610067 [11:14:38]line Контрольно-Кассовый Чек [11:14:38]line ПРОДАЖА [11:14:38]line ТРК (МРК, ГНК) : 11 [11:14:38]line Товар: 2710124130 [11:14:38]line Аи-92-К-5 [11:14:38]line 7.480 * 66.90 [11:14:38]line = 500.41 [11:14:38]line НДС 12% НСП 1% [11:14:38]line > о реализуемом товаре [11:14:38]line ИТОГО: 500.41 [11:14:38]line НСП 1% : 4.43 [11:14:38]line НДС 12% : 53.14 [11:14:38]line Наличными: 0.00 [11:14:38]line Безнал.: 500.41 [11:14:38]line Место: АЗС № 143 "Партнер Нефть" [11:14:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:14:38]line СНО: Общий режим [11:14:38]line Чек 134 26.10.2024 11:14 [11:14:38]line Смена: 536 ФФД: 1.0 [11:14:38]line ЗНМ: 0300000096 [11:14:38]line РНМ: 0000000000091693 [11:14:38]line Версия ККМ: 001 [11:14:38]line Платежная система: Mbank [11:14:38]line ФМ: 0000000000871792 [11:14:38]line ФД: 156233 [11:14:38]line ФПД: 179174932533348 [11:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111440&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156233&fm=179174932533348&tin=02508201610067®Number=0000000000091693&sum=50041 [11:14:38]OFD Sender: Processing packet 156233 [packets to send 31, broken 30] [11:14:38]ProducePacketName [11:14:38]name=ofd_packets/00156233 [11:14:38]OFD Sender: To server: pG, [11:14:38]CommunicateWithHost lk.salyk.kg:30040 [11:14:38]ConnectInit lk.salyk.kg [11:14:38]written 0, free lines is 4095 [11:14:39]Connected sock=10 [11:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 70 5A 07 01 1C C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 20 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 62 02 00 35 04 06 00 A2 F5 6A 34 D0 64 A3 74 E4 3E D6 61 27 31 [11:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9E 5F 47 00 97 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 62 02 00 F4 03 04 00 93 74 1C 67 B6 04 01 00 00 09 4B 4B 71 3D 7A B4 5A [11:14:39]CommunicateWithHost err = 0 [11:14:39]CheckOFDResponse [11:14:39]1017 (14) - 77093643461234 [11:14:39]1041 (16) - 0000000000871792 [11:14:39]1040 (4) - 156233 [11:14:39]1012 (4) - 26.10.2024 04:48 [11:14:39]1206 (1) - 0 [11:14:39]OFD Sender: Remove packet 156233 [11:14:39]ProducePacketName [11:14:39]name=ofd_packets/00156233 [11:14:39]NVStorageDeleteData [11:14:39]Write to MH i2c: 01 00 00 AD 2D DA [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: 01 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: 01 07 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: 01 07 00 AD 2D 00 00 00 00 00 12 0D 00 [11:14:39]RasterBufferAndPrint [11:14:39]line [11:14:39]line [11:14:39]line [11:14:39]line [11:14:39]line [11:14:39]written 0, free lines is 3353 [11:14:39]process_action close_receipt done [11:14:39]requested_data is exist [11:14:39]produce_requested_data [11:14:39]requested_item fm.sn is exist - process it [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 11 00 00 [11:14:39]Write to MH i2c: E2 08 00 B4 2D 80 11 00 00 00 00 00 00 5B [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 17 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 17 00 B4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [11:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:14:39]wFMCommunicate OK [11:14:39]requested_item fd.num is exist - process it [11:14:39]SAM_PROTO_GetFieldsCounters [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 13 00 00 [11:14:39]Write to MH i2c: E2 08 00 B5 2D 80 13 00 00 00 00 00 00 5E [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 62 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 62 00 B5 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 49 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [11:14:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 49 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:39]wFMCommunicate OK [11:14:39]SAM_PROTO_GetFieldsCounters done [11:14:39]requested_item shift.num is exist - process it [11:14:39]requested_item shift.opened is exist - process it [11:14:39]req_shift_opened [11:14:39]FM_GetShiftState [11:14:39]SAM_PROTO_GetShiftState [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 13 01 00 [11:14:39]Write to MH i2c: E2 08 00 B6 2D 80 13 01 00 00 00 00 00 60 [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 0E 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 0E 00 B6 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 95 [11:14:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:14:39]wFMCommunicate OK [11:14:39]SAM_PROTO_GetShiftState done [11:14:39]FM_GetShiftState done [11:14:39]req_shift_opened done [11:14:39]requested_item shift.open_date is exist - process it [11:14:39]req_shift_open_date [11:14:39]req_shift_open_date done [11:14:39]produce_requested_data done [11:14:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156233,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:14:39]process_action_free close_receipt [11:14:39]json_value_free [11:14:39]json_value_free done [11:14:39]process_json_proto returns [11:14:39]Send response to host [11:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156233,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:14:39]free response buf [11:14:39]execute_script done [11:14:39]execute_script returns [11:14:39]free content buf [11:14:39]Sock 7.Close socket [11:14:39]Sock 7.Thread stoped [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:37]accept exits with 9 [11:15:37]New connection [11:15:37]New thread 3066613092 created [11:15:37]Thread 3066469732 joined [11:15:37]Waiting for new connection... [11:15:37] Sock 9.Parse request [11:15:37]Sock 9.Check first char [11:15:37]Sock 9.First char is OK [11:15:37]request: POST /json_proto HTTP/1.0 [11:15:37]Method: POST [11:15:37]URL: /json_proto [11:15:37]Method is POST - this is cgi request [11:15:37]url: /json_proto [11:15:37]query_string will be loaded in cgi processing [11:15:37]execute_cgi json_proto POST (null) [11:15:37]execute_cgi path=json_proto method=POST [11:15:37]POST find Content-Length [11:15:37]Host: 172.17.63.3:8080 [11:15:37]Content-Length: 676 [11:15:37]Content-Type: application/json [11:15:37] [11:15:37]POST finish read [11:15:37]Found Content-Length = 676 [11:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:37]execute_script... [11:15:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:37]POST & json_proto [11:15:37]process_json_proto [11:15:37]json parsed OK: [11:15:37]protocol is kg_v1.0 [11:15:37]action value=close_receipt [11:15:37]process_action close_receipt [11:15:37]cmd_close_receipt [11:15:37]MH_GetDate [11:15:37]Write to MH i2c: F0 00 00 B7 2D D3 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 09 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 09 00 B7 2D 00 5D CF 1C 67 50 D1 6C 64 7C [11:15:37]GetLastDocTimeStamp 1729941280 [11:15:37]current date 1729941341 [11:15:37]FM_GetShiftState [11:15:37]SAM_PROTO_GetShiftState [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 13 01 00 [11:15:37]Write to MH i2c: E2 08 00 B8 2D 80 13 01 00 00 00 00 00 62 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0E 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0E 00 B8 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 97 [11:15:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:15:37]wFMCommunicate OK [11:15:37]SAM_PROTO_GetShiftState done [11:15:37]FM_GetShiftState done [11:15:37]opened in 1729902702 [11:15:37]opened+sec_in_day 1729989102 [11:15:37]quantity*price = 30038 [11:15:37]sum+1 = 30039 [11:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 135 26.10.2024 11:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156234 ФПД: 250423121924448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111541&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156234&fm=250423121924448&tin=02508201610067®Number=0000000000091693&sum=30000 [11:15:38]StoreToDocumentArchive [11:15:38]shift 536 fd 156234 [11:15:38]save to /storage/0536/doc_00156234 [11:15:38]save last doc name /storage/0536/doc_00156234 to /storage/kkm_last_doc_name [11:15:38]save OK [11:15:38]Clear old archive folders... [11:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:38]tlvbuf is 00DD23C0 [11:15:38]SAM_PROTO_ClearQueue [11:15:38]wFMCommunicate request_size=4 [11:15:38]MH_SAM_APDU [11:15:38]CAPDU: 80 09 00 00 [11:15:38]Write to MH i2c: E2 08 00 C5 2D 80 09 00 00 00 00 00 00 64 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:38]Read from MH i2c: E2 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 C5 2D 00 90 00 66 [11:15:38]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_ClearQueue done [11:15:39]KKMCreateOFDPacket [11:15:39]OFDProtocolAddRootSTLVToBuf [11:15:39]FM_MakeSignedData [11:15:39]FM_MakeSignedData [11:15:39]SAM_PROTO_SignData [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 01 02 [11:15:39]Write to MH i2c: E2 08 00 C6 2D 80 0D 01 02 00 00 00 00 6C [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 C6 2D 00 90 00 67 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=255 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 5D CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 62 02 00 35 04 06 00 E3 [11:15:39]Write to MH i2c: E2 02 01 C7 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 5D CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 62 02 00 35 04 06 00 E3 00 00 D5 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 C7 2D 00 90 00 68 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=10 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 02 02 05 C2 2D 39 D1 60 [11:15:39]Write to MH i2c: E2 0D 00 C8 2D 80 0D 02 02 05 00 C2 2D 39 D1 60 00 00 D2 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 C8 2D 00 90 00 69 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 03 02 [11:15:39]Write to MH i2c: E2 08 00 C9 2D 80 0D 03 02 00 00 00 00 71 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0B 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0B 00 C9 2D 00 F0 62 CF A0 1E 1E E1 B9 90 00 09 [11:15:39]RAPDU: F0 62 CF A0 1E 1E E1 B9 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_SignData done [11:15:39]FM_MakeSignedData done [11:15:39]CreateOFDProtocolMessage [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 11 00 00 [11:15:39]Write to MH i2c: E2 08 00 CA 2D 80 11 00 00 00 00 00 00 71 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 17 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 17 00 CA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [11:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:15:39]wFMCommunicate OK [11:15:39]CreateOFDProtocolMessage done [11:15:39]OFDSenderStorePacket 156234 [11:15:39]StoreOFDPacket docnum=156234 [11:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0A AE 07 01 63 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 5D CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 62 02 00 35 04 06 00 E3 C2 2D 39 D1 60 F0 62 CF A0 1E 1E E1 B9 [11:15:39]CheckFolder [11:15:39]dirname=/storage/ofd_packets [11:15:39]CheckFolder done [11:15:39]ProducePacketName [11:15:39]name=ofd_packets/00156234 [11:15:39]NVStorageSaveData ofd_packets/00156234 [11:15:39]File name is /storage/ofd_packets/00156234 [11:15:39]Write 301 bytes [11:15:39]NVStorageSaveData done [11:15:39]OFDSenderStorePacket done [11:15:39]KKMCreateOFDPacket done [11:15:39]NVStorageSaveData kkm_last_timestamp [11:15:39]File name is /storage/kkm_last_timestamp [11:15:39]Write 4 bytes [11:15:39]NVStorageSaveData done [11:15:39]ExternCall_PrintAddStr [11:15:39]wPrintStart [11:15:39]Write to MH i2c: 01 00 00 CB 2D F8 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 07 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 07 00 CB 2D 00 00 00 00 00 FF 0F 0D [11:15:39]RasterBufferAndPrint [11:15:39]line Счет N : (1)99049 [11:15:39]line ИНН: 02508201610067 [11:15:39]line Контрольно-Кассовый Чек [11:15:39]line ПРОДАЖА [11:15:39]line ТРК (МРК, ГНК) : 21 [11:15:39]line Товар: 2710124130 [11:15:39]line Аи-92-К-5 [11:15:39]line 4.490 * 66.90 [11:15:39]line = 300.38 [11:15:39]line НДС 12% НСП 1% [11:15:39]line > о реализуемом товаре [11:15:39]line ОКРУГЛЕНИЕ: -0.38 [11:15:39]line ИТОГО: 300.00 [11:15:39]line Внесено: 300.00 [11:15:39]line СДАЧА: 0.00 [11:15:39]line НСП 1% : 2.66 [11:15:39]line НДС 12% : 31.90 [11:15:39]line Наличными: 300.00 [11:15:39]line Безнал.: 0.00 [11:15:39]line Место: АЗС № 143 "Партнер Нефть" [11:15:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:15:39]line СНО: Общий режим [11:15:39]line Чек 135 26.10.2024 11:15 [11:15:39]line Смена: 536 ФФД: 1.0 [11:15:39]line ЗНМ: 0300000096 [11:15:39]line РНМ: 0000000000091693 [11:15:39]line Версия ККМ: 001 [11:15:39]line ФМ: 0000000000871792 [11:15:39]line ФД: 156234 [11:15:39]line ФПД: 250423121924448 [11:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111541&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156234&fm=250423121924448&tin=02508201610067®Number=0000000000091693&sum=30000 [11:15:39]OFD Sender: Processing packet 156234 [packets to send 31, broken 30] [11:15:39]ProducePacketName [11:15:39]name=ofd_packets/00156234 [11:15:39]OFD Sender: To server: pG, [11:15:39]CommunicateWithHost lk.salyk.kg:30040 [11:15:39]ConnectInit lk.salyk.kg [11:15:39]written 0, free lines is 4095 [11:15:39]Connected sock=10 [11:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0A AE 07 01 63 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 5D CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 62 02 00 35 04 06 00 E3 C2 2D 39 D1 60 F0 62 CF A0 1E 1E E1 B9 [11:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 29 47 47 00 DE 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 31 37 39 32 10 04 04 00 4A 62 02 00 F4 03 04 00 D0 74 1C 67 B6 04 01 00 00 DF E8 4F AC E6 4D C7 98 [11:15:40]CommunicateWithHost err = 0 [11:15:40]CheckOFDResponse [11:15:40]1017 (14) - 77093643461234 [11:15:40]1041 (16) - 0000000000871792 [11:15:40]1040 (4) - 156234 [11:15:40]1012 (4) - 26.10.2024 04:49 [11:15:40]1206 (1) - 0 [11:15:40]OFD Sender: Remove packet 156234 [11:15:40]ProducePacketName [11:15:40]name=ofd_packets/00156234 [11:15:40]NVStorageDeleteData [11:15:40]Write to MH i2c: 01 00 00 F6 2D 23 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 F6 2D 00 00 00 00 00 EA 0C 20 [11:15:40]RasterBufferAndPrint [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]written 0, free lines is 3315 [11:15:40]process_action close_receipt done [11:15:40]requested_data is exist [11:15:40]produce_requested_data [11:15:40]requested_item fm.sn is exist - process it [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 11 00 00 [11:15:40]Write to MH i2c: E2 08 00 FD 2D 80 11 00 00 00 00 00 00 A4 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 FD 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [11:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:15:40]wFMCommunicate OK [11:15:40]requested_item fd.num is exist - process it [11:15:40]SAM_PROTO_GetFieldsCounters [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 13 00 00 [11:15:40]Write to MH i2c: E2 08 00 FE 2D 80 13 00 00 00 00 00 00 A7 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 62 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 62 00 FE 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:15: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:40]wFMCommunicate OK [11:15:40]SAM_PROTO_GetFieldsCounters done [11:15:40]requested_item shift.num is exist - process it [11:15:40]requested_item shift.opened is exist - process it [11:15:40]req_shift_opened [11:15:40]FM_GetShiftState [11:15:40]SAM_PROTO_GetShiftState [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 13 01 00 [11:15:40]Write to MH i2c: E2 08 00 FF 2D 80 13 01 00 00 00 00 00 A9 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 0E 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 0E 00 FF 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DE [11:15:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:15:40]wFMCommunicate OK [11:15:40]SAM_PROTO_GetShiftState done [11:15:40]FM_GetShiftState done [11:15:40]req_shift_opened done [11:15:40]requested_item shift.open_date is exist - process it [11:15:40]req_shift_open_date [11:15:40]req_shift_open_date done [11:15:40]produce_requested_data done [11:15:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156234,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:15:40]process_action_free close_receipt [11:15:40]json_value_free [11:15:40]json_value_free done [11:15:40]process_json_proto returns [11:15:40]Send response to host [11:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156234,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:15:40]free response buf [11:15:40]execute_script done [11:15:40]execute_script returns [11:15:40]free content buf [11:15:40]Sock 9.Close socket [11:15:40]Sock 9.Thread stoped [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:14]accept exits with 7 [11:16:14]New connection [11:16:14]New thread 3066469732 created [11:16:14]Thread 3066613092 joined [11:16:14]Waiting for new connection... [11:16:14] Sock 7.Parse request [11:16:14]Sock 7.Check first char [11:16:14]Sock 7.First char is OK [11:16:14]request: POST /json_proto HTTP/1.0 [11:16:14]Method: POST [11:16:14]URL: /json_proto [11:16:14]Method is POST - this is cgi request [11:16:14]url: /json_proto [11:16:14]query_string will be loaded in cgi processing [11:16:14]execute_cgi json_proto POST (null) [11:16:14]execute_cgi path=json_proto method=POST [11:16:14]POST find Content-Length [11:16:14]Host: 172.17.63.3:8080 [11:16:14]Content-Length: 676 [11:16:14]Content-Type: application/json [11:16:14] [11:16:14]POST finish read [11:16:14]Found Content-Length = 676 [11:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:14]execute_script... [11:16:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:14]POST & json_proto [11:16:14]process_json_proto [11:16:14]json parsed OK: [11:16:14]protocol is kg_v1.0 [11:16:14]action value=close_receipt [11:16:14]process_action close_receipt [11:16:14]cmd_close_receipt [11:16:14]MH_GetDate [11:16:14]Write to MH i2c: F0 00 00 00 2E 1D [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: F0 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: F0 09 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: F0 09 00 00 2E 00 82 CF 1C 67 50 D1 6C 64 EB [11:16:14]GetLastDocTimeStamp 1729941341 [11:16:14]current date 1729941378 [11:16:14]FM_GetShiftState [11:16:14]SAM_PROTO_GetShiftState [11:16:14]wFMCommunicate request_size=4 [11:16:14]MH_SAM_APDU [11:16:14]CAPDU: 80 13 01 00 [11:16:14]Write to MH i2c: E2 08 00 01 2E 80 13 01 00 00 00 00 00 AC [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:14]Read from MH i2c: E2 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 0E 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 0E 00 01 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E1 [11:16:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:16:14]wFMCommunicate OK [11:16:14]SAM_PROTO_GetShiftState done [11:16:14]FM_GetShiftState done [11:16:14]opened in 1729902702 [11:16:14]opened+sec_in_day 1729989102 [11:16:14]quantity*price = 40006 [11:16:14]sum+1 = 40007 [11:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 136 26.10.2024 11:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156235 ФПД: 155401780015077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111618&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156235&fm=155401780015077&tin=02508201610067®Number=0000000000091693&sum=40000 [11:16:15]StoreToDocumentArchive [11:16:15]shift 536 fd 156235 [11:16:15]save to /storage/0536/doc_00156235 [11:16:15]save last doc name /storage/0536/doc_00156235 to /storage/kkm_last_doc_name [11:16:15]save OK [11:16:15]Clear old archive folders... [11:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:15]tlvbuf is 00DE5AB0 [11:16:15]SAM_PROTO_ClearQueue [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 09 00 00 [11:16:15]Write to MH i2c: E2 08 00 0E 2E 80 09 00 00 00 00 00 00 AE [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 0E 2E 00 90 00 B0 [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]SAM_PROTO_ClearQueue done [11:16:15]KKMCreateOFDPacket [11:16:15]OFDProtocolAddRootSTLVToBuf [11:16:15]FM_MakeSignedData [11:16:15]FM_MakeSignedData [11:16:15]SAM_PROTO_SignData [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 01 02 [11:16:15]Write to MH i2c: E2 08 00 0F 2E 80 0D 01 02 00 00 00 00 B6 [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 0F 2E 00 90 00 B1 [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]wFMCommunicate request_size=255 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 82 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 62 02 00 35 04 06 00 8D [11:16:15]Write to MH i2c: E2 02 01 10 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 82 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 62 02 00 35 04 06 00 8D 00 00 CB [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]OFD Sender: No OFD packet to send [11:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 10 2E 00 90 00 B2 [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]wFMCommunicate request_size=10 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 02 02 05 56 4B E5 2F E5 [11:16:15]Write to MH i2c: E2 0D 00 11 2E 80 0D 02 02 05 00 56 4B E5 2F E5 00 00 5D [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 11 2E 00 90 00 B3 [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 03 02 [11:16:15]Write to MH i2c: E2 08 00 12 2E 80 0D 03 02 00 00 00 00 BB [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 0B 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 0B 00 12 2E 00 E2 45 AA FE 26 21 CB AB 90 00 48 [11:16:15]RAPDU: E2 45 AA FE 26 21 CB AB 90 00 [11:16:15]wFMCommunicate OK [11:16:15]SAM_PROTO_SignData done [11:16:15]FM_MakeSignedData done [11:16:15]CreateOFDProtocolMessage [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 11 00 00 [11:16:15]Write to MH i2c: E2 08 00 13 2E 80 11 00 00 00 00 00 00 BB [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 17 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 17 00 13 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [11:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:16:15]wFMCommunicate OK [11:16:15]CreateOFDProtocolMessage done [11:16:15]OFDSenderStorePacket 156235 [11:16:15]StoreOFDPacket docnum=156235 [11:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F 04 07 01 48 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 82 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 62 02 00 35 04 06 00 8D 56 4B E5 2F E5 E2 45 AA FE 26 21 CB AB [11:16:16]CheckFolder [11:16:16]dirname=/storage/ofd_packets [11:16:16]CheckFolder done [11:16:16]ProducePacketName [11:16:16]name=ofd_packets/00156235 [11:16:16]NVStorageSaveData ofd_packets/00156235 [11:16:16]File name is /storage/ofd_packets/00156235 [11:16:16]Write 301 bytes [11:16:16]NVStorageSaveData done [11:16:16]OFDSenderStorePacket done [11:16:16]KKMCreateOFDPacket done [11:16:16]NVStorageSaveData kkm_last_timestamp [11:16:16]File name is /storage/kkm_last_timestamp [11:16:16]Write 4 bytes [11:16:16]NVStorageSaveData done [11:16:16]ExternCall_PrintAddStr [11:16:16]wPrintStart [11:16:16]Write to MH i2c: 01 00 00 14 2E 42 [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 07 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 07 00 14 2E 00 00 00 00 00 FF 0F 57 [11:16:16]RasterBufferAndPrint [11:16:16]line Счет N : (1)99050 [11:16:16]line ИНН: 02508201610067 [11:16:16]line Контрольно-Кассовый Чек [11:16:16]line ПРОДАЖА [11:16:16]line ТРК (МРК, ГНК) : 31 [11:16:16]line Товар: 2710124130 [11:16:16]line Аи-92-К-5 [11:16:16]line 5.980 * 66.90 [11:16:16]line = 400.06 [11:16:16]line НДС 12% НСП 1% [11:16:16]line > о реализуемом товаре [11:16:16]line ОКРУГЛЕНИЕ: -0.06 [11:16:16]line ИТОГО: 400.00 [11:16:16]line Внесено: 400.00 [11:16:16]line СДАЧА: 0.00 [11:16:16]line НСП 1% : 3.54 [11:16:16]line НДС 12% : 42.48 [11:16:16]line Наличными: 400.00 [11:16:16]line Безнал.: 0.00 [11:16:16]line Место: АЗС № 143 "Партнер Нефть" [11:16:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:16:16]line СНО: Общий режим [11:16:16]line Чек 136 26.10.2024 11:16 [11:16:16]line Смена: 536 ФФД: 1.0 [11:16:16]line ЗНМ: 0300000096 [11:16:16]line РНМ: 0000000000091693 [11:16:16]line Версия ККМ: 001 [11:16:16]line ФМ: 0000000000871792 [11:16:16]line ФД: 156235 [11:16:16]line ФПД: 155401780015077 [11:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111618&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156235&fm=155401780015077&tin=02508201610067®Number=0000000000091693&sum=40000 [11:16:16]OFD Sender: Processing packet 156235 [packets to send 31, broken 30] [11:16:16]ProducePacketName [11:16:16]name=ofd_packets/00156235 [11:16:16]OFD Sender: To server: pG, [11:16:16]CommunicateWithHost lk.salyk.kg:30040 [11:16:16]ConnectInit lk.salyk.kg [11:16:16]written 0, free lines is 4095 [11:16:16]Connected sock=10 [11:16:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F 04 07 01 48 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 82 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 62 02 00 35 04 06 00 8D 56 4B E5 2F E5 E2 45 AA FE 26 21 CB AB [11:16:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0E D2 47 00 02 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 62 02 00 F4 03 04 00 F5 74 1C 67 B6 04 01 00 00 69 CA 4F 4A 8D 1E 24 2B [11:16:16]CommunicateWithHost err = 0 [11:16:16]CheckOFDResponse [11:16:16]1017 (14) - 77093643461234 [11:16:16]1041 (16) - 0000000000871792 [11:16:16]1040 (4) - 156235 [11:16:16]1012 (4) - 26.10.2024 04:49 [11:16:16]1206 (1) - 0 [11:16:16]OFD Sender: Remove packet 156235 [11:16:16]ProducePacketName [11:16:16]name=ofd_packets/00156235 [11:16:16]NVStorageDeleteData [11:16:16]Write to MH i2c: 01 00 00 3F 2E 6D [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 07 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 07 00 3F 2E 00 00 00 00 00 EF 0C 6F [11:16:16]RasterBufferAndPrint [11:16:16]line [11:16:16]line [11:16:16]line [11:16:16]line [11:16:16]line [11:16:16]written 0, free lines is 3320 [11:16:16]process_action close_receipt done [11:16:16]requested_data is exist [11:16:16]produce_requested_data [11:16:16]requested_item fm.sn is exist - process it [11:16:16]wFMCommunicate request_size=4 [11:16:16]MH_SAM_APDU [11:16:16]CAPDU: 80 11 00 00 [11:16:16]Write to MH i2c: E2 08 00 46 2E 80 11 00 00 00 00 00 00 EE [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:16]Read from MH i2c: E2 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 17 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 17 00 46 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [11:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:16:16]wFMCommunicate OK [11:16:16]requested_item fd.num is exist - process it [11:16:16]SAM_PROTO_GetFieldsCounters [11:16:16]wFMCommunicate request_size=4 [11:16:16]MH_SAM_APDU [11:16:16]CAPDU: 80 13 00 00 [11:16:16]Write to MH i2c: E2 08 00 47 2E 80 13 00 00 00 00 00 00 F1 [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 62 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 62 00 47 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:17]wFMCommunicate OK [11:16:17]SAM_PROTO_GetFieldsCounters done [11:16:17]requested_item shift.num is exist - process it [11:16:17]requested_item shift.opened is exist - process it [11:16:17]req_shift_opened [11:16:17]FM_GetShiftState [11:16:17]SAM_PROTO_GetShiftState [11:16:17]wFMCommunicate request_size=4 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 13 01 00 [11:16:17]Write to MH i2c: E2 08 00 48 2E 80 13 01 00 00 00 00 00 F3 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 0E 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 0E 00 48 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 28 [11:16:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:16:17]wFMCommunicate OK [11:16:17]SAM_PROTO_GetShiftState done [11:16:17]FM_GetShiftState done [11:16:17]req_shift_opened done [11:16:17]requested_item shift.open_date is exist - process it [11:16:17]req_shift_open_date [11:16:17]req_shift_open_date done [11:16:17]produce_requested_data done [11:16:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156235,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:16:17]process_action_free close_receipt [11:16:17]json_value_free [11:16:17]json_value_free done [11:16:17]process_json_proto returns [11:16:17]Send response to host [11:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156235,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:16:17]free response buf [11:16:17]execute_script done [11:16:17]execute_script returns [11:16:17]free content buf [11:16:17]Sock 7.Close socket [11:16:17]Sock 7.Thread stoped [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:48]accept exits with 9 [11:17:48]New connection [11:17:48]New thread 3066613092 created [11:17:48]Thread 3066469732 joined [11:17:48]Waiting for new connection... [11:17:48] Sock 9.Parse request [11:17:48]Sock 9.Check first char [11:17:48]Sock 9.First char is OK [11:17:48]request: POST /json_proto HTTP/1.0 [11:17:48]Method: POST [11:17:48]URL: /json_proto [11:17:48]Method is POST - this is cgi request [11:17:48]url: /json_proto [11:17:48]query_string will be loaded in cgi processing [11:17:48]execute_cgi json_proto POST (null) [11:17:48]execute_cgi path=json_proto method=POST [11:17:48]POST find Content-Length [11:17:48]Host: 172.17.63.3:8080 [11:17:48]Content-Length: 676 [11:17:48]Content-Type: application/json [11:17:48] [11:17:48]POST finish read [11:17:48]Found Content-Length = 676 [11:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:48]execute_script... [11:17:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:48]POST & json_proto [11:17:48]process_json_proto [11:17:48]json parsed OK: [11:17:48]protocol is kg_v1.0 [11:17:48]action value=close_receipt [11:17:48]process_action close_receipt [11:17:48]cmd_close_receipt [11:17:48]MH_GetDate [11:17:48]Write to MH i2c: F0 00 00 49 2E 66 [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 09 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 09 00 49 2E 00 E0 CF 1C 67 50 D1 6C 64 92 [11:17:48]GetLastDocTimeStamp 1729941378 [11:17:48]current date 1729941472 [11:17:48]FM_GetShiftState [11:17:48]SAM_PROTO_GetShiftState [11:17:48]wFMCommunicate request_size=4 [11:17:48]MH_SAM_APDU [11:17:48]CAPDU: 80 13 01 00 [11:17:48]Write to MH i2c: E2 08 00 4A 2E 80 13 01 00 00 00 00 00 F5 [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:48]Read from MH i2c: E2 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 4A 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2A [11:17:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:17:48]wFMCommunicate OK [11:17:48]SAM_PROTO_GetShiftState done [11:17:48]FM_GetShiftState done [11:17:48]opened in 1729902702 [11:17:48]opened+sec_in_day 1729989102 [11:17:48]quantity*price = 50041 [11:17:48]sum+1 = 50042 [11:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 137 26.10.2024 11:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156236 ФПД: 121922978559725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111752&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156236&fm=121922978559725&tin=02508201610067®Number=0000000000091693&sum=50000 [11:17:49]StoreToDocumentArchive [11:17:49]shift 536 fd 156236 [11:17:49]save to /storage/0536/doc_00156236 [11:17:49]save last doc name /storage/0536/doc_00156236 to /storage/kkm_last_doc_name [11:17:49]save OK [11:17:49]Clear old archive folders... [11:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:49]tlvbuf is 00D05FA0 [11:17:49]SAM_PROTO_ClearQueue [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 09 00 00 [11:17:49]Write to MH i2c: E2 08 00 57 2E 80 09 00 00 00 00 00 00 F7 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 57 2E 00 90 00 F9 [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]SAM_PROTO_ClearQueue done [11:17:49]KKMCreateOFDPacket [11:17:49]OFDProtocolAddRootSTLVToBuf [11:17:49]FM_MakeSignedData [11:17:49]FM_MakeSignedData [11:17:49]SAM_PROTO_SignData [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 01 02 [11:17:49]Write to MH i2c: E2 08 00 58 2E 80 0D 01 02 00 00 00 00 FF [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 58 2E 00 90 00 FA [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]wFMCommunicate request_size=255 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E0 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 62 02 00 35 04 06 00 6E [11:17:49]Write to MH i2c: E2 02 01 59 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E0 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 62 02 00 35 04 06 00 6E 00 00 86 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 59 2E 00 90 00 FB [11:17:50]RAPDU: 90 00 [11:17:50]wFMCommunicate OK [11:17:50]wFMCommunicate request_size=10 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 0D 02 02 05 E3 67 D3 B6 ED [11:17:50]Write to MH i2c: E2 0D 00 5A 2E 80 0D 02 02 05 00 E3 67 D3 B6 ED 00 00 CC [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 5A 2E 00 90 00 FC [11:17:50]RAPDU: 90 00 [11:17:50]wFMCommunicate OK [11:17:50]wFMCommunicate request_size=4 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 0D 03 02 [11:17:50]Write to MH i2c: E2 08 00 5B 2E 80 0D 03 02 00 00 00 00 04 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 0B 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 0B 00 5B 2E 00 80 7F 72 18 75 ED ED 82 90 00 5F [11:17:50]RAPDU: 80 7F 72 18 75 ED ED 82 90 00 [11:17:50]wFMCommunicate OK [11:17:50]SAM_PROTO_SignData done [11:17:50]FM_MakeSignedData done [11:17:50]CreateOFDProtocolMessage [11:17:50]wFMCommunicate request_size=4 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 11 00 00 [11:17:50]Write to MH i2c: E2 08 00 5C 2E 80 11 00 00 00 00 00 00 04 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 17 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 17 00 5C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [11:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:17:50]wFMCommunicate OK [11:17:50]CreateOFDProtocolMessage done [11:17:50]OFDSenderStorePacket 156236 [11:17:50]StoreOFDPacket docnum=156236 [11:17:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AC 26 07 01 40 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E0 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 62 02 00 35 04 06 00 6E E3 67 D3 B6 ED 80 7F 72 18 75 ED ED 82 [11:17:50]CheckFolder [11:17:50]dirname=/storage/ofd_packets [11:17:50]CheckFolder done [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00156236 [11:17:50]NVStorageSaveData ofd_packets/00156236 [11:17:50]File name is /storage/ofd_packets/00156236 [11:17:50]Write 301 bytes [11:17:50]NVStorageSaveData done [11:17:50]OFDSenderStorePacket done [11:17:50]KKMCreateOFDPacket done [11:17:50]NVStorageSaveData kkm_last_timestamp [11:17:50]File name is /storage/kkm_last_timestamp [11:17:50]Write 4 bytes [11:17:50]NVStorageSaveData done [11:17:50]ExternCall_PrintAddStr [11:17:50]wPrintStart [11:17:50]Write to MH i2c: 01 00 00 5D 2E 8B [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 5D 2E 00 00 00 00 00 FF 0F A0 [11:17:50]RasterBufferAndPrint [11:17:50]line Счет N : (1)99051 [11:17:50]line ИНН: 02508201610067 [11:17:50]line Контрольно-Кассовый Чек [11:17:50]line ПРОДАЖА [11:17:50]line ТРК (МРК, ГНК) : 31 [11:17:50]line Товар: 2710124130 [11:17:50]line Аи-92-К-5 [11:17:50]line 7.480 * 66.90 [11:17:50]line = 500.41 [11:17:50]line НДС 12% НСП 1% [11:17:50]line > о реализуемом товаре [11:17:50]line ОКРУГЛЕНИЕ: -0.41 [11:17:50]line ИТОГО: 500.00 [11:17:50]line Внесено: 500.00 [11:17:50]line СДАЧА: 0.00 [11:17:50]line НСП 1% : 4.43 [11:17:50]line НДС 12% : 53.14 [11:17:50]line Наличными: 500.00 [11:17:50]line Безнал.: 0.00 [11:17:50]line Место: АЗС № 143 "Партнер Нефть" [11:17:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:17:50]line СНО: Общий режим [11:17:50]line Чек 137 26.10.2024 11:17 [11:17:50]line Смена: 536 ФФД: 1.0 [11:17:50]line ЗНМ: 0300000096 [11:17:50]line РНМ: 0000000000091693 [11:17:50]line Версия ККМ: 001 [11:17:50]line ФМ: 0000000000871792 [11:17:50]line ФД: 156236 [11:17:50]line ФПД: 121922978559725 [11:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111752&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156236&fm=121922978559725&tin=02508201610067®Number=0000000000091693&sum=50000 [11:17:50]OFD Sender: Processing packet 156236 [packets to send 31, broken 30] [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00156236 [11:17:50]OFD Sender: To server: pG, [11:17:50]CommunicateWithHost lk.salyk.kg:30040 [11:17:50]ConnectInit lk.salyk.kg [11:17:50]written 0, free lines is 4095 [11:17:50]Connected sock=10 [11:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AC 26 07 01 40 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E0 CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 62 02 00 35 04 06 00 6E E3 67 D3 B6 ED 80 7F 72 18 75 ED ED 82 [11:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4D DF 47 00 BC 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 62 02 00 F4 03 04 00 53 75 1C 67 B6 04 01 00 00 59 93 FE E4 BD 7C 97 65 [11:17:50]CommunicateWithHost err = 0 [11:17:50]CheckOFDResponse [11:17:50]1017 (14) - 77093643461234 [11:17:50]1041 (16) - 0000000000871792 [11:17:50]1040 (4) - 156236 [11:17:50]1012 (4) - 26.10.2024 04:51 [11:17:50]1206 (1) - 0 [11:17:50]OFD Sender: Remove packet 156236 [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00156236 [11:17:50]NVStorageDeleteData [11:17:51]Write to MH i2c: 01 00 00 88 2E B6 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 88 2E 00 00 00 00 00 F4 0C BD [11:17:51]RasterBufferAndPrint [11:17:51]line [11:17:51]line [11:17:51]line [11:17:51]line [11:17:51]line [11:17:51]written 0, free lines is 3323 [11:17:51]process_action close_receipt done [11:17:51]requested_data is exist [11:17:51]produce_requested_data [11:17:51]requested_item fm.sn is exist - process it [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 11 00 00 [11:17:51]Write to MH i2c: E2 08 00 8F 2E 80 11 00 00 00 00 00 00 37 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 8F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [11:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:17:51]wFMCommunicate OK [11:17:51]requested_item fd.num is exist - process it [11:17:51]SAM_PROTO_GetFieldsCounters [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 13 00 00 [11:17:51]Write to MH i2c: E2 08 00 90 2E 80 13 00 00 00 00 00 00 3A [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 62 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 62 00 90 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [11:17: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_GetFieldsCounters done [11:17:51]requested_item shift.num is exist - process it [11:17:51]requested_item shift.opened is exist - process it [11:17:51]req_shift_opened [11:17:51]FM_GetShiftState [11:17:51]SAM_PROTO_GetShiftState [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 13 01 00 [11:17:51]Write to MH i2c: E2 08 00 91 2E 80 13 01 00 00 00 00 00 3C [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0E 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0E 00 91 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 71 [11:17:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_GetShiftState done [11:17:51]FM_GetShiftState done [11:17:51]req_shift_opened done [11:17:51]requested_item shift.open_date is exist - process it [11:17:51]req_shift_open_date [11:17:51]req_shift_open_date done [11:17:51]produce_requested_data done [11:17:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156236,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:17:51]process_action_free close_receipt [11:17:51]json_value_free [11:17:51]json_value_free done [11:17:51]process_json_proto returns [11:17:51]Send response to host [11:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156236,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:17:51]free response buf [11:17:51]execute_script done [11:17:51]execute_script returns [11:17:51]free content buf [11:17:51]Sock 9.Close socket [11:17:51]Sock 9.Thread stoped [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]accept exits with 7 [11:18:01]New connection [11:18:01]New thread 3066469732 created [11:18:01]Thread 3066613092 joined [11:18:01]Waiting for new connection... [11:18:01] Sock 7.Parse request [11:18:01]Sock 7.Check first char [11:18:01]Sock 7.First char is OK [11:18:01]request: POST /json_proto HTTP/1.0 [11:18:01]Method: POST [11:18:01]URL: /json_proto [11:18:01]Method is POST - this is cgi request [11:18:01]url: /json_proto [11:18:01]query_string will be loaded in cgi processing [11:18:01]execute_cgi json_proto POST (null) [11:18:01]execute_cgi path=json_proto method=POST [11:18:01]POST find Content-Length [11:18:01]Host: 172.17.63.3:8080 [11:18:01]Content-Length: 676 [11:18:01]Content-Type: application/json [11:18:01] [11:18:01]POST finish read [11:18:01]Found Content-Length = 676 [11:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:01]execute_script... [11:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:01]POST & json_proto [11:18:01]process_json_proto [11:18:01]json parsed OK: [11:18:01]protocol is kg_v1.0 [11:18:01]action value=close_receipt [11:18:01]process_action close_receipt [11:18:01]cmd_close_receipt [11:18:01]MH_GetDate [11:18:01]Write to MH i2c: F0 00 00 92 2E AF [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: F0 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: F0 09 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: F0 09 00 92 2E 00 ED CF 1C 67 50 D1 6C 64 E8 [11:18:01]GetLastDocTimeStamp 1729941472 [11:18:01]current date 1729941485 [11:18:01]FM_GetShiftState [11:18:01]SAM_PROTO_GetShiftState [11:18:01]wFMCommunicate request_size=4 [11:18:01]MH_SAM_APDU [11:18:01]CAPDU: 80 13 01 00 [11:18:01]Write to MH i2c: E2 08 00 93 2E 80 13 01 00 00 00 00 00 3E [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:01]Read from MH i2c: E2 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 0E 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 0E 00 93 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 73 [11:18:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:18:01]wFMCommunicate OK [11:18:01]SAM_PROTO_GetShiftState done [11:18:01]FM_GetShiftState done [11:18:01]opened in 1729902702 [11:18:01]opened+sec_in_day 1729989102 [11:18:01]quantity*price = 40006 [11:18:01]sum+1 = 40007 [11:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 138 26.10.2024 11:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156237 ФПД: 147007318517348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111805&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156237&fm=147007318517348&tin=02508201610067®Number=0000000000091693&sum=40000 [11:18:02]StoreToDocumentArchive [11:18:02]shift 536 fd 156237 [11:18:02]save to /storage/0536/doc_00156237 [11:18:02]save last doc name /storage/0536/doc_00156237 to /storage/kkm_last_doc_name [11:18:02]save OK [11:18:02]Clear old archive folders... [11:18:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:02]tlvbuf is 00E09DC0 [11:18:02]SAM_PROTO_ClearQueue [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 09 00 00 [11:18:02]Write to MH i2c: E2 08 00 A0 2E 80 09 00 00 00 00 00 00 40 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 A0 2E 00 90 00 42 [11:18:02]RAPDU: 90 00 [11:18:02]wFMCommunicate OK [11:18:02]SAM_PROTO_ClearQueue done [11:18:02]KKMCreateOFDPacket [11:18:02]OFDProtocolAddRootSTLVToBuf [11:18:02]FM_MakeSignedData [11:18:02]FM_MakeSignedData [11:18:02]SAM_PROTO_SignData [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 0D 01 02 [11:18:02]Write to MH i2c: E2 08 00 A1 2E 80 0D 01 02 00 00 00 00 48 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 A1 2E 00 90 00 43 [11:18:02]RAPDU: 90 00 [11:18:02]wFMCommunicate OK [11:18:02]wFMCommunicate request_size=255 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 ED CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 62 02 00 35 04 06 00 85 [11:18:02]Write to MH i2c: E2 02 01 A2 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 ED CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 62 02 00 35 04 06 00 85 00 00 C4 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 A2 2E 00 90 00 44 [11:18:02]RAPDU: 90 00 [11:18:02]wFMCommunicate OK [11:18:02]wFMCommunicate request_size=10 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 0D 02 02 05 B3 CE FF E6 64 [11:18:02]Write to MH i2c: E2 0D 00 A3 2E 80 0D 02 02 05 00 B3 CE FF E6 64 00 00 1F [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 A3 2E 00 90 00 45 [11:18:02]RAPDU: 90 00 [11:18:02]wFMCommunicate OK [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 0D 03 02 [11:18:02]Write to MH i2c: E2 08 00 A4 2E 80 0D 03 02 00 00 00 00 4D [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 0B 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 0B 00 A4 2E 00 63 5B C8 04 FF B4 F1 FA 90 00 76 [11:18:02]RAPDU: 63 5B C8 04 FF B4 F1 FA 90 00 [11:18:02]wFMCommunicate OK [11:18:02]SAM_PROTO_SignData done [11:18:02]FM_MakeSignedData done [11:18:02]CreateOFDProtocolMessage [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 11 00 00 [11:18:02]Write to MH i2c: E2 08 00 A5 2E 80 11 00 00 00 00 00 00 4D [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 17 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 17 00 A5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [11:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:18:02]wFMCommunicate OK [11:18:02]CreateOFDProtocolMessage done [11:18:02]OFDSenderStorePacket 156237 [11:18:02]StoreOFDPacket docnum=156237 [11:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AF 3D 07 01 0D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 ED CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 62 02 00 35 04 06 00 85 B3 CE FF E6 64 63 5B C8 04 FF B4 F1 FA [11:18:02]CheckFolder [11:18:02]dirname=/storage/ofd_packets [11:18:02]CheckFolder done [11:18:02]ProducePacketName [11:18:02]name=ofd_packets/00156237 [11:18:02]NVStorageSaveData ofd_packets/00156237 [11:18:02]File name is /storage/ofd_packets/00156237 [11:18:02]Write 301 bytes [11:18:02]NVStorageSaveData done [11:18:02]OFDSenderStorePacket done [11:18:02]KKMCreateOFDPacket done [11:18:02]NVStorageSaveData kkm_last_timestamp [11:18:02]File name is /storage/kkm_last_timestamp [11:18:02]Write 4 bytes [11:18:02]NVStorageSaveData done [11:18:02]ExternCall_PrintAddStr [11:18:02]wPrintStart [11:18:02]Write to MH i2c: 01 00 00 A6 2E D4 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: 01 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: 01 07 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: 01 07 00 A6 2E 00 00 00 00 00 FF 0F E9 [11:18:02]RasterBufferAndPrint [11:18:02]line Счет N : (1)99052 [11:18:02]line ИНН: 02508201610067 [11:18:02]line Контрольно-Кассовый Чек [11:18:02]line ПРОДАЖА [11:18:02]line ТРК (МРК, ГНК) : 21 [11:18:02]line Товар: 2710124130 [11:18:02]line Аи-92-К-5 [11:18:02]line 5.980 * 66.90 [11:18:02]line = 400.06 [11:18:02]line НДС 12% НСП 1% [11:18:02]line > о реализуемом товаре [11:18:02]line ОКРУГЛЕНИЕ: -0.06 [11:18:02]line ИТОГО: 400.00 [11:18:02]line Внесено: 400.00 [11:18:02]line СДАЧА: 0.00 [11:18:02]line НСП 1% : 3.54 [11:18:02]line НДС 12% : 42.48 [11:18:02]line Наличными: 400.00 [11:18:02]line Безнал.: 0.00 [11:18:02]line Место: АЗС № 143 "Партнер Нефть" [11:18:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:18:02]line СНО: Общий режим [11:18:02]line Чек 138 26.10.2024 11:18 [11:18:02]line Смена: 536 ФФД: 1.0 [11:18:02]line ЗНМ: 0300000096 [11:18:02]line РНМ: 0000000000091693 [11:18:02]line Версия ККМ: 001 [11:18:02]line ФМ: 0000000000871792 [11:18:02]line ФД: 156237 [11:18:02]line ФПД: 147007318517348 [11:18:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111805&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156237&fm=147007318517348&tin=02508201610067®Number=0000000000091693&sum=40000 [11:18:03]OFD Sender: Processing packet 156237 [packets to send 31, broken 30] [11:18:03]ProducePacketName [11:18:03]name=ofd_packets/00156237 [11:18:03]OFD Sender: To server: pG, [11:18:03]CommunicateWithHost lk.salyk.kg:30040 [11:18:03]ConnectInit lk.salyk.kg [11:18:03]written 0, free lines is 4095 [11:18:03]Connected sock=10 [11:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AF 3D 07 01 0D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 ED CF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 62 02 00 35 04 06 00 85 B3 CE FF E6 64 63 5B C8 04 FF B4 F1 FA [11:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F7 D7 47 00 46 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 62 02 00 F4 03 04 00 60 75 1C 67 B6 04 01 00 00 30 39 6F 60 7B 91 9F 79 [11:18:03]CommunicateWithHost err = 0 [11:18:03]CheckOFDResponse [11:18:03]1017 (14) - 77093643461234 [11:18:03]1041 (16) - 0000000000871792 [11:18:03]1040 (4) - 156237 [11:18:03]1012 (4) - 26.10.2024 04:51 [11:18:03]1206 (1) - 0 [11:18:03]OFD Sender: Remove packet 156237 [11:18:03]ProducePacketName [11:18:03]name=ofd_packets/00156237 [11:18:03]NVStorageDeleteData [11:18:03]Write to MH i2c: 01 00 00 D1 2E FF [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: 01 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: 01 07 00 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: 01 07 00 D1 2E 00 00 00 00 00 F6 0C 08 [11:18:03]RasterBufferAndPrint [11:18:03]line [11:18:03]line [11:18:03]line [11:18:03]line [11:18:03]line [11:18:03]written 0, free lines is 3328 [11:18:03]process_action close_receipt done [11:18:03]requested_data is exist [11:18:03]produce_requested_data [11:18:03]requested_item fm.sn is exist - process it [11:18:03]wFMCommunicate request_size=4 [11:18:03]MH_SAM_APDU [11:18:03]CAPDU: 80 11 00 00 [11:18:03]Write to MH i2c: E2 08 00 D8 2E 80 11 00 00 00 00 00 00 80 [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:03]Read from MH i2c: E2 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: E2 17 00 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: E2 17 00 D8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [11:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:18:03]wFMCommunicate OK [11:18:03]requested_item fd.num is exist - process it [11:18:03]SAM_PROTO_GetFieldsCounters [11:18:03]wFMCommunicate request_size=4 [11:18:03]MH_SAM_APDU [11:18:03]CAPDU: 80 13 00 00 [11:18:03]Write to MH i2c: E2 08 00 D9 2E 80 13 00 00 00 00 00 00 83 [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:03]Read from MH i2c: E2 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: E2 62 00 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: E2 62 00 D9 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:18: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:03]wFMCommunicate OK [11:18:03]SAM_PROTO_GetFieldsCounters done [11:18:03]requested_item shift.num is exist - process it [11:18:03]requested_item shift.opened is exist - process it [11:18:03]req_shift_opened [11:18:03]FM_GetShiftState [11:18:03]SAM_PROTO_GetShiftState [11:18:03]wFMCommunicate request_size=4 [11:18:03]MH_SAM_APDU [11:18:03]CAPDU: 80 13 01 00 [11:18:03]Write to MH i2c: E2 08 00 DA 2E 80 13 01 00 00 00 00 00 85 [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:04]Read from MH i2c: E2 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 DA 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BA [11:18:04]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:18:04]wFMCommunicate OK [11:18:04]SAM_PROTO_GetShiftState done [11:18:04]FM_GetShiftState done [11:18:04]req_shift_opened done [11:18:04]requested_item shift.open_date is exist - process it [11:18:04]req_shift_open_date [11:18:04]req_shift_open_date done [11:18:04]produce_requested_data done [11:18:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156237,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:18:04]process_action_free close_receipt [11:18:04]json_value_free [11:18:04]json_value_free done [11:18:04]process_json_proto returns [11:18:04]Send response to host [11:18:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156237,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:18:04]free response buf [11:18:04]execute_script done [11:18:04]execute_script returns [11:18:04]free content buf [11:18:04]Sock 7.Close socket [11:18:04]Sock 7.Thread stoped [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:48]accept exits with 9 [11:23:48]New connection [11:23:48]New thread 3066613092 created [11:23:48]Thread 3066469732 joined [11:23:48]Waiting for new connection... [11:23:48] Sock 9.Parse request [11:23:48]Sock 9.Check first char [11:23:48]Sock 9.First char is OK [11:23:48]request: POST /json_proto HTTP/1.0 [11:23:48]Method: POST [11:23:48]URL: /json_proto [11:23:48]Method is POST - this is cgi request [11:23:48]url: /json_proto [11:23:48]query_string will be loaded in cgi processing [11:23:48]execute_cgi json_proto POST (null) [11:23:48]execute_cgi path=json_proto method=POST [11:23:48]POST find Content-Length [11:23:48]Host: 172.17.63.3:8080 [11:23:48]Content-Length: 681 [11:23:48]Content-Type: application/json [11:23:48] [11:23:48]POST finish read [11:23:48]Found Content-Length = 681 [11:23:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:48]execute_script... [11:23:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:48]POST & json_proto [11:23:48]process_json_proto [11:23:48]json parsed OK: [11:23:48]protocol is kg_v1.0 [11:23:48]action value=close_receipt [11:23:48]process_action close_receipt [11:23:48]cmd_close_receipt [11:23:48]MH_GetDate [11:23:48]Write to MH i2c: F0 00 00 DB 2E F8 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: F0 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: F0 09 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: F0 09 00 DB 2E 00 48 D1 1C 67 50 D1 6C 64 8E [11:23:48]GetLastDocTimeStamp 1729941485 [11:23:48]current date 1729941832 [11:23:48]FM_GetShiftState [11:23:48]SAM_PROTO_GetShiftState [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 13 01 00 [11:23:48]Write to MH i2c: E2 08 00 DC 2E 80 13 01 00 00 00 00 00 87 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0E 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0E 00 DC 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BC [11:23:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:23:48]wFMCommunicate OK [11:23:48]SAM_PROTO_GetShiftState done [11:23:48]FM_GetShiftState done [11:23:48]opened in 1729902702 [11:23:48]opened+sec_in_day 1729989102 [11:23:48]quantity*price = 150056 [11:23:48]sum+1 = 150058 [11:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 139 26.10.2024 11:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156238 ФПД: 189622962732548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112353&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156238&fm=189622962732548&tin=02508201610067®Number=0000000000091693&sum=150000 [11:23:50]StoreToDocumentArchive [11:23:50]shift 536 fd 156238 [11:23:50]save to /storage/0536/doc_00156238 [11:23:50]save last doc name /storage/0536/doc_00156238 to /storage/kkm_last_doc_name [11:23:50]save OK [11:23:50]Clear old archive folders... [11:23:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:50]tlvbuf is 00D56440 [11:23:50]SAM_PROTO_ClearQueue [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 09 00 00 [11:23:50]Write to MH i2c: E2 08 00 E9 2E 80 09 00 00 00 00 00 00 89 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 E9 2E 00 90 00 8B [11:23:50]RAPDU: 90 00 [11:23:50]wFMCommunicate OK [11:23:50]SAM_PROTO_ClearQueue done [11:23:50]KKMCreateOFDPacket [11:23:50]OFDProtocolAddRootSTLVToBuf [11:23:50]FM_MakeSignedData [11:23:50]FM_MakeSignedData [11:23:50]SAM_PROTO_SignData [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 0D 01 02 [11:23:50]Write to MH i2c: E2 08 00 EA 2E 80 0D 01 02 00 00 00 00 91 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 EA 2E 00 90 00 8C [11:23:50]RAPDU: 90 00 [11:23:50]wFMCommunicate OK [11:23:50]wFMCommunicate request_size=255 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 49 D1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 62 02 00 35 04 06 00 AC [11:23:50]Write to MH i2c: E2 02 01 EB 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 49 D1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 62 02 00 35 04 06 00 AC 00 00 0E [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 EB 2E 00 90 00 8D [11:23:50]RAPDU: 90 00 [11:23:50]wFMCommunicate OK [11:23:50]wFMCommunicate request_size=10 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 0D 02 02 05 76 09 55 BE 04 [11:23:50]Write to MH i2c: E2 0D 00 EC 2E 80 0D 02 02 05 00 76 09 55 BE 04 00 00 34 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 EC 2E 00 90 00 8E [11:23:50]RAPDU: 90 00 [11:23:50]wFMCommunicate OK [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 0D 03 02 [11:23:50]Write to MH i2c: E2 08 00 ED 2E 80 0D 03 02 00 00 00 00 96 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 0B 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 0B 00 ED 2E 00 45 58 B5 0D 3E 42 52 A3 90 00 6B [11:23:50]RAPDU: 45 58 B5 0D 3E 42 52 A3 90 00 [11:23:50]wFMCommunicate OK [11:23:50]SAM_PROTO_SignData done [11:23:50]FM_MakeSignedData done [11:23:50]CreateOFDProtocolMessage [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 11 00 00 [11:23:50]Write to MH i2c: E2 08 00 EE 2E 80 11 00 00 00 00 00 00 96 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 17 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 17 00 EE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EB [11:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:23:50]wFMCommunicate OK [11:23:50]CreateOFDProtocolMessage done [11:23:50]OFDSenderStorePacket 156238 [11:23:50]StoreOFDPacket docnum=156238 [11:23:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF B1 07 01 55 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 49 D1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 62 02 00 35 04 06 00 AC 76 09 55 BE 04 45 58 B5 0D 3E 42 52 A3 [11:23:50]CheckFolder [11:23:50]dirname=/storage/ofd_packets [11:23:50]CheckFolder done [11:23:50]ProducePacketName [11:23:50]name=ofd_packets/00156238 [11:23:50]NVStorageSaveData ofd_packets/00156238 [11:23:50]File name is /storage/ofd_packets/00156238 [11:23:50]Write 301 bytes [11:23:50]NVStorageSaveData done [11:23:50]OFDSenderStorePacket done [11:23:50]KKMCreateOFDPacket done [11:23:50]NVStorageSaveData kkm_last_timestamp [11:23:50]File name is /storage/kkm_last_timestamp [11:23:50]Write 4 bytes [11:23:50]NVStorageSaveData done [11:23:50]ExternCall_PrintAddStr [11:23:50]wPrintStart [11:23:50]Write to MH i2c: 01 00 00 EF 2E 1D [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 07 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 07 00 EF 2E 00 00 00 00 00 FF 0F 32 [11:23:50]RasterBufferAndPrint [11:23:50]line Счет N : (1)99053 [11:23:50]line ИНН: 02508201610067 [11:23:50]line Контрольно-Кассовый Чек [11:23:50]line ПРОДАЖА [11:23:50]line ТРК (МРК, ГНК) : 31 [11:23:50]line Товар: 2710124130 [11:23:50]line Аи-92-К-5 [11:23:50]line 22.430 * 66.90 [11:23:50]line = 1500.57 [11:23:50]line НДС 12% НСП 1% [11:23:50]line > о реализуемом товаре [11:23:50]line ОКРУГЛЕНИЕ: -0.57 [11:23:50]line ИТОГО: 1500.00 [11:23:50]line Внесено: 1500.00 [11:23:50]line СДАЧА: 0.00 [11:23:50]line НСП 1% : 13.28 [11:23:50]line НДС 12% : 159.35 [11:23:50]line Наличными: 1500.00 [11:23:50]line Безнал.: 0.00 [11:23:50]line Место: АЗС № 143 "Партнер Нефть" [11:23:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:23:50]line СНО: Общий режим [11:23:50]line Чек 139 26.10.2024 11:23 [11:23:50]line Смена: 536 ФФД: 1.0 [11:23:50]line ЗНМ: 0300000096 [11:23:50]line РНМ: 0000000000091693 [11:23:50]line Версия ККМ: 001 [11:23:50]line ФМ: 0000000000871792 [11:23:50]line ФД: 156238 [11:23:50]line ФПД: 189622962732548 [11:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112353&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156238&fm=189622962732548&tin=02508201610067®Number=0000000000091693&sum=150000 [11:23:50]OFD Sender: Processing packet 156238 [packets to send 31, broken 30] [11:23:50]ProducePacketName [11:23:50]name=ofd_packets/00156238 [11:23:50]OFD Sender: To server: pG, [11:23:50]CommunicateWithHost lk.salyk.kg:30040 [11:23:50]ConnectInit lk.salyk.kg [11:23:50]written 0, free lines is 4095 [11:23:51]Connected sock=10 [11:23:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF B1 07 01 55 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 49 D1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 62 02 00 35 04 06 00 AC 76 09 55 BE 04 45 58 B5 0D 3E 42 52 A3 [11:23:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2F 90 47 00 DC 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 31 37 39 32 10 04 04 00 4E 62 02 00 F4 03 04 00 BB 76 1C 67 B6 04 01 00 00 AB 37 AD 75 CD 8B F8 71 [11:23:51]CommunicateWithHost err = 0 [11:23:51]CheckOFDResponse [11:23:51]1017 (14) - 77093643461234 [11:23:51]1041 (16) - 0000000000871792 [11:23:51]1040 (4) - 156238 [11:23:51]1012 (4) - 26.10.2024 04:57 [11:23:51]1206 (1) - 0 [11:23:51]OFD Sender: Remove packet 156238 [11:23:51]ProducePacketName [11:23:51]name=ofd_packets/00156238 [11:23:51]NVStorageDeleteData [11:23:51]Write to MH i2c: 01 00 00 1A 2F 49 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: 01 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: 01 07 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: 01 07 00 1A 2F 00 00 00 00 00 EE 0C 4A [11:23:51]RasterBufferAndPrint [11:23:51]line [11:23:51]line [11:23:51]line [11:23:51]line [11:23:51]line [11:23:51]written 0, free lines is 3316 [11:23:51]process_action close_receipt done [11:23:51]requested_data is exist [11:23:51]produce_requested_data [11:23:51]requested_item fm.sn is exist - process it [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 11 00 00 [11:23:51]Write to MH i2c: E2 08 00 21 2F 80 11 00 00 00 00 00 00 CA [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 17 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 17 00 21 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [11:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:23:51]wFMCommunicate OK [11:23:51]requested_item fd.num is exist - process it [11:23:51]SAM_PROTO_GetFieldsCounters [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 13 00 00 [11:23:51]Write to MH i2c: E2 08 00 22 2F 80 13 00 00 00 00 00 00 CD [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 62 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 62 00 22 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [11:23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:51]wFMCommunicate OK [11:23:51]SAM_PROTO_GetFieldsCounters done [11:23:51]requested_item shift.num is exist - process it [11:23:51]requested_item shift.opened is exist - process it [11:23:51]req_shift_opened [11:23:51]FM_GetShiftState [11:23:51]SAM_PROTO_GetShiftState [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 13 01 00 [11:23:51]Write to MH i2c: E2 08 00 23 2F 80 13 01 00 00 00 00 00 CF [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 0E 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 0E 00 23 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 04 [11:23:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:23:51]wFMCommunicate OK [11:23:51]SAM_PROTO_GetShiftState done [11:23:51]FM_GetShiftState done [11:23:51]req_shift_opened done [11:23:51]requested_item shift.open_date is exist - process it [11:23:51]req_shift_open_date [11:23:51]req_shift_open_date done [11:23:51]produce_requested_data done [11:23:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156238,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:23:51]process_action_free close_receipt [11:23:51]json_value_free [11:23:51]json_value_free done [11:23:51]process_json_proto returns [11:23:51]Send response to host [11:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156238,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:23:51]free response buf [11:23:51]execute_script done [11:23:51]execute_script returns [11:23:51]free content buf [11:23:51]Sock 9.Close socket [11:23:51]Sock 9.Thread stoped [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:39]accept exits with 7 [11:24:39]New connection [11:24:39]New thread 3066469732 created [11:24:39]Thread 3066613092 joined [11:24:39]Waiting for new connection... [11:24:39] Sock 7.Parse request [11:24:39]Sock 7.Check first char [11:24:39]Sock 7.First char is OK [11:24:39]request: POST /json_proto HTTP/1.0 [11:24:39]Method: POST [11:24:39]URL: /json_proto [11:24:39]Method is POST - this is cgi request [11:24:39]url: /json_proto [11:24:39]query_string will be loaded in cgi processing [11:24:39]execute_cgi json_proto POST (null) [11:24:39]execute_cgi path=json_proto method=POST [11:24:39]POST find Content-Length [11:24:39]Host: 172.17.63.3:8080 [11:24:39]Content-Length: 676 [11:24:39]Content-Type: application/json [11:24:39] [11:24:39]POST finish read [11:24:39]Found Content-Length = 676 [11:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:39]execute_script... [11:24:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:39]POST & json_proto [11:24:39]process_json_proto [11:24:39]json parsed OK: [11:24:39]protocol is kg_v1.0 [11:24:39]action value=close_receipt [11:24:39]process_action close_receipt [11:24:39]cmd_close_receipt [11:24:39]MH_GetDate [11:24:39]Write to MH i2c: F0 00 00 24 2F 42 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: F0 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: F0 09 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: F0 09 00 24 2F 00 7B D1 1C 67 50 D1 6C 64 0B [11:24:39]GetLastDocTimeStamp 1729941833 [11:24:39]current date 1729941883 [11:24:39]FM_GetShiftState [11:24:39]SAM_PROTO_GetShiftState [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 13 01 00 [11:24:39]Write to MH i2c: E2 08 00 25 2F 80 13 01 00 00 00 00 00 D1 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 0E 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 0E 00 25 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 06 [11:24:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_GetShiftState done [11:24:39]FM_GetShiftState done [11:24:39]opened in 1729902702 [11:24:39]opened+sec_in_day 1729989102 [11:24:39]quantity*price = 30038 [11:24:39]sum+1 = 30039 [11:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 140 26.10.2024 11:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156239 ФПД: 76963226551578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112443&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156239&fm=76963226551578&tin=02508201610067®Number=0000000000091693&sum=30000 [11:24:40]StoreToDocumentArchive [11:24:40]shift 536 fd 156239 [11:24:40]save to /storage/0536/doc_00156239 [11:24:40]save last doc name /storage/0536/doc_00156239 to /storage/kkm_last_doc_name [11:24:40]save OK [11:24:40]Clear old archive folders... [11:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:40]tlvbuf is 00D81120 [11:24:40]SAM_PROTO_ClearQueue [11:24:40]wFMCommunicate request_size=4 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 09 00 00 [11:24:40]Write to MH i2c: E2 08 00 32 2F 80 09 00 00 00 00 00 00 D3 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 32 2F 00 90 00 D5 [11:24:40]RAPDU: 90 00 [11:24:40]wFMCommunicate OK [11:24:40]SAM_PROTO_ClearQueue done [11:24:40]KKMCreateOFDPacket [11:24:40]OFDProtocolAddRootSTLVToBuf [11:24:40]FM_MakeSignedData [11:24:40]FM_MakeSignedData [11:24:40]SAM_PROTO_SignData [11:24:40]wFMCommunicate request_size=4 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 0D 01 02 [11:24:40]Write to MH i2c: E2 08 00 33 2F 80 0D 01 02 00 00 00 00 DB [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 33 2F 00 90 00 D6 [11:24:40]RAPDU: 90 00 [11:24:40]wFMCommunicate OK [11:24:40]wFMCommunicate request_size=255 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 7B D1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 62 02 00 35 04 06 00 45 [11:24:40]Write to MH i2c: E2 02 01 34 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 7B D1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 62 02 00 35 04 06 00 45 00 00 D0 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 34 2F 00 90 00 D7 [11:24:40]RAPDU: 90 00 [11:24:40]wFMCommunicate OK [11:24:40]wFMCommunicate request_size=10 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 0D 02 02 05 FF 65 C7 85 1A [11:24:40]Write to MH i2c: E2 0D 00 35 2F 80 0D 02 02 05 00 FF 65 C7 85 1A 00 00 B2 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 35 2F 00 90 00 D8 [11:24:40]RAPDU: 90 00 [11:24:40]wFMCommunicate OK [11:24:40]wFMCommunicate request_size=4 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 0D 03 02 [11:24:40]Write to MH i2c: E2 08 00 36 2F 80 0D 03 02 00 00 00 00 E0 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 0B 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 0B 00 36 2F 00 BE 7C 18 7A 24 4A 48 BF 90 00 22 [11:24:40]RAPDU: BE 7C 18 7A 24 4A 48 BF 90 00 [11:24:40]wFMCommunicate OK [11:24:40]SAM_PROTO_SignData done [11:24:40]FM_MakeSignedData done [11:24:40]CreateOFDProtocolMessage [11:24:40]wFMCommunicate request_size=4 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 11 00 00 [11:24:40]Write to MH i2c: E2 08 00 37 2F 80 11 00 00 00 00 00 00 E0 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 17 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 17 00 37 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [11:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:24:40]wFMCommunicate OK [11:24:40]CreateOFDProtocolMessage done [11:24:40]OFDSenderStorePacket 156239 [11:24:40]StoreOFDPacket docnum=156239 [11:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 EF 07 01 1C 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 7B D1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 62 02 00 35 04 06 00 45 FF 65 C7 85 1A BE 7C 18 7A 24 4A 48 BF [11:24:40]CheckFolder [11:24:40]dirname=/storage/ofd_packets [11:24:40]CheckFolder done [11:24:40]ProducePacketName [11:24:40]name=ofd_packets/00156239 [11:24:40]NVStorageSaveData ofd_packets/00156239 [11:24:40]File name is /storage/ofd_packets/00156239 [11:24:40]Write 301 bytes [11:24:40]NVStorageSaveData done [11:24:40]OFDSenderStorePacket done [11:24:40]KKMCreateOFDPacket done [11:24:40]NVStorageSaveData kkm_last_timestamp [11:24:40]File name is /storage/kkm_last_timestamp [11:24:40]Write 4 bytes [11:24:40]NVStorageSaveData done [11:24:40]ExternCall_PrintAddStr [11:24:40]wPrintStart [11:24:40]Write to MH i2c: 01 00 00 38 2F 67 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 07 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 07 00 38 2F 00 00 00 00 00 FF 0F 7C [11:24:40]RasterBufferAndPrint [11:24:40]line Счет N : (1)99054 [11:24:40]line ИНН: 02508201610067 [11:24:40]line Контрольно-Кассовый Чек [11:24:40]line ПРОДАЖА [11:24:40]line ТРК (МРК, ГНК) : 21 [11:24:40]line Товар: 2710124130 [11:24:40]line Аи-92-К-5 [11:24:40]line 4.490 * 66.90 [11:24:40]line = 300.38 [11:24:40]line НДС 12% НСП 1% [11:24:40]line > о реализуемом товаре [11:24:40]line ОКРУГЛЕНИЕ: -0.38 [11:24:40]line ИТОГО: 300.00 [11:24:40]line Внесено: 300.00 [11:24:40]line СДАЧА: 0.00 [11:24:40]line НСП 1% : 2.66 [11:24:40]line НДС 12% : 31.90 [11:24:40]line Наличными: 300.00 [11:24:40]line Безнал.: 0.00 [11:24:40]line Место: АЗС № 143 "Партнер Нефть" [11:24:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:24:40]line СНО: Общий режим [11:24:40]line Чек 140 26.10.2024 11:24 [11:24:40]line Смена: 536 ФФД: 1.0 [11:24:40]line ЗНМ: 0300000096 [11:24:40]line РНМ: 0000000000091693 [11:24:40]line Версия ККМ: 001 [11:24:40]line ФМ: 0000000000871792 [11:24:40]line ФД: 156239 [11:24:40]line ФПД: 76963226551578 [11:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112443&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156239&fm=76963226551578&tin=02508201610067®Number=0000000000091693&sum=30000 [11:24:41]OFD Sender: Processing packet 156239 [packets to send 31, broken 30] [11:24:41]ProducePacketName [11:24:41]name=ofd_packets/00156239 [11:24:41]OFD Sender: To server: pG, [11:24:41]CommunicateWithHost lk.salyk.kg:30040 [11:24:41]ConnectInit lk.salyk.kg [11:24:41]written 0, free lines is 4095 [11:24:41]Connected sock=10 [11:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 EF 07 01 1C 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 7B D1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 62 02 00 35 04 06 00 45 FF 65 C7 85 1A BE 7C 18 7A 24 4A 48 BF [11:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E3 24 47 00 16 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 31 37 39 32 10 04 04 00 4F 62 02 00 F4 03 04 00 EE 76 1C 67 B6 04 01 00 00 C4 D7 9A 65 34 8D 72 66 [11:24:41]CommunicateWithHost err = 0 [11:24:41]CheckOFDResponse [11:24:41]1017 (14) - 77093643461234 [11:24:41]1041 (16) - 0000000000871792 [11:24:41]1040 (4) - 156239 [11:24:41]1012 (4) - 26.10.2024 04:58 [11:24:41]1206 (1) - 0 [11:24:41]OFD Sender: Remove packet 156239 [11:24:41]ProducePacketName [11:24:41]name=ofd_packets/00156239 [11:24:41]NVStorageDeleteData [11:24:41]Write to MH i2c: 01 00 00 63 2F 92 [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 07 00 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 07 00 63 2F 00 00 00 00 00 EA 0C 8F [11:24:41]RasterBufferAndPrint [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]written 0, free lines is 3315 [11:24:41]process_action close_receipt done [11:24:41]requested_data is exist [11:24:41]produce_requested_data [11:24:41]requested_item fm.sn is exist - process it [11:24:41]wFMCommunicate request_size=4 [11:24:41]MH_SAM_APDU [11:24:41]CAPDU: 80 11 00 00 [11:24:41]Write to MH i2c: E2 08 00 6A 2F 80 11 00 00 00 00 00 00 13 [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:41]Read from MH i2c: E2 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: E2 17 00 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: E2 17 00 6A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [11:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:24:41]wFMCommunicate OK [11:24:41]requested_item fd.num is exist - process it [11:24:41]SAM_PROTO_GetFieldsCounters [11:24:41]wFMCommunicate request_size=4 [11:24:41]MH_SAM_APDU [11:24:41]CAPDU: 80 13 00 00 [11:24:41]Write to MH i2c: E2 08 00 6B 2F 80 13 00 00 00 00 00 00 16 [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:41]Read from MH i2c: E2 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: E2 62 00 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: E2 62 00 6B 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [11:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:41]wFMCommunicate OK [11:24:41]SAM_PROTO_GetFieldsCounters done [11:24:41]requested_item shift.num is exist - process it [11:24:41]requested_item shift.opened is exist - process it [11:24:41]req_shift_opened [11:24:41]FM_GetShiftState [11:24:41]SAM_PROTO_GetShiftState [11:24:41]wFMCommunicate request_size=4 [11:24:41]MH_SAM_APDU [11:24:41]CAPDU: 80 13 01 00 [11:24:41]Write to MH i2c: E2 08 00 6C 2F 80 13 01 00 00 00 00 00 18 [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:41]Read from MH i2c: E2 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: E2 0E 00 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: E2 0E 00 6C 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4D [11:24:41]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:24:41]wFMCommunicate OK [11:24:41]SAM_PROTO_GetShiftState done [11:24:41]FM_GetShiftState done [11:24:41]req_shift_opened done [11:24:41]requested_item shift.open_date is exist - process it [11:24:41]req_shift_open_date [11:24:41]req_shift_open_date done [11:24:41]produce_requested_data done [11:24:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156239,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:24:41]process_action_free close_receipt [11:24:41]json_value_free [11:24:41]json_value_free done [11:24:41]process_json_proto returns [11:24:41]Send response to host [11:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156239,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:24:41]free response buf [11:24:41]execute_script done [11:24:41]execute_script returns [11:24:41]free content buf [11:24:41]Sock 7.Close socket [11:24:41]Sock 7.Thread stoped [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:32]accept exits with 9 [11:27:32]New connection [11:27:32]New thread 3066613092 created [11:27:32]Thread 3066469732 joined [11:27:32]Waiting for new connection... [11:27:32] Sock 9.Parse request [11:27:32]Sock 9.Check first char [11:27:32]Sock 9.First char is OK [11:27:32]request: POST /json_proto HTTP/1.0 [11:27:32]Method: POST [11:27:32]URL: /json_proto [11:27:32]Method is POST - this is cgi request [11:27:32]url: /json_proto [11:27:32]query_string will be loaded in cgi processing [11:27:32]execute_cgi json_proto POST (null) [11:27:32]execute_cgi path=json_proto method=POST [11:27:32]POST find Content-Length [11:27:32]Host: 172.17.63.3:8080 [11:27:32]Content-Length: 768 [11:27:32]Content-Type: application/json [11:27:32] [11:27:32]POST finish read [11:27:32]Found Content-Length = 768 [11:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:32]execute_script... [11:27:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:32]POST & json_proto [11:27:32]process_json_proto [11:27:32]json parsed OK: [11:27:32]protocol is kg_v1.0 [11:27:32]action value=close_receipt [11:27:32]process_action close_receipt [11:27:32]cmd_close_receipt [11:27:32]MH_GetDate [11:27:32]Write to MH i2c: F0 00 00 6D 2F 8B [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: F0 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: F0 09 00 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: F0 09 00 6D 2F 00 28 D2 1C 67 50 D1 6C 64 02 [11:27:32]GetLastDocTimeStamp 1729941883 [11:27:32]current date 1729942056 [11:27:32]FM_GetShiftState [11:27:32]SAM_PROTO_GetShiftState [11:27:32]wFMCommunicate request_size=4 [11:27:32]MH_SAM_APDU [11:27:32]CAPDU: 80 13 01 00 [11:27:32]Write to MH i2c: E2 08 00 6E 2F 80 13 01 00 00 00 00 00 1A [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:32]Read from MH i2c: E2 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: E2 0E 00 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: E2 0E 00 6E 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4F [11:27:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:27:32]wFMCommunicate OK [11:27:32]SAM_PROTO_GetShiftState done [11:27:32]FM_GetShiftState done [11:27:32]opened in 1729902702 [11:27:32]opened+sec_in_day 1729989102 [11:27:32]quantity*price = 200031 [11:27:32]sum+1 = 200032 [11:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 141 26.10.2024 11:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156240 ФПД: 264176226047908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112736&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156240&fm=264176226047908&tin=02508201610067®Number=0000000000091693&sum=200031 [11:27:33]StoreToDocumentArchive [11:27:33]shift 536 fd 156240 [11:27:33]save to /storage/0536/doc_00156240 [11:27:33]save last doc name /storage/0536/doc_00156240 to /storage/kkm_last_doc_name [11:27:33]save OK [11:27:33]Clear old archive folders... [11:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:33]tlvbuf is 00DE5910 [11:27:33]SAM_PROTO_ClearQueue [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 09 00 00 [11:27:33]Write to MH i2c: E2 08 00 7B 2F 80 09 00 00 00 00 00 00 1C [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 7B 2F 00 90 00 1E [11:27:33]RAPDU: 90 00 [11:27:33]wFMCommunicate OK [11:27:33]SAM_PROTO_ClearQueue done [11:27:33]KKMCreateOFDPacket [11:27:33]OFDProtocolAddRootSTLVToBuf [11:27:33]FM_MakeSignedData [11:27:33]FM_MakeSignedData [11:27:33]SAM_PROTO_SignData [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 0D 01 02 [11:27:33]Write to MH i2c: E2 08 00 7C 2F 80 0D 01 02 00 00 00 00 24 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 7C 2F 00 90 00 1F [11:27:33]RAPDU: 90 00 [11:27:33]wFMCommunicate OK [11:27:33]wFMCommunicate request_size=255 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 28 D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 62 02 00 35 04 06 00 F0 [11:27:33]Write to MH i2c: E2 02 01 7D 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 28 D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 62 02 00 35 04 06 00 F0 00 00 00 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 7D 2F 00 90 00 20 [11:27:33]RAPDU: 90 00 [11:27:33]wFMCommunicate OK [11:27:33]wFMCommunicate request_size=10 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 0D 02 02 05 44 52 1C 97 A4 [11:27:33]Write to MH i2c: E2 0D 00 7E 2F 80 0D 02 02 05 00 44 52 1C 97 A4 00 00 1E [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 7E 2F 00 90 00 21 [11:27:33]RAPDU: 90 00 [11:27:33]wFMCommunicate OK [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 0D 03 02 [11:27:33]Write to MH i2c: E2 08 00 7F 2F 80 0D 03 02 00 00 00 00 29 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 0B 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 0B 00 7F 2F 00 20 77 8B EF 45 4F 60 68 90 00 97 [11:27:34]RAPDU: 20 77 8B EF 45 4F 60 68 90 00 [11:27:34]wFMCommunicate OK [11:27:34]SAM_PROTO_SignData done [11:27:34]FM_MakeSignedData done [11:27:34]CreateOFDProtocolMessage [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 11 00 00 [11:27:34]Write to MH i2c: E2 08 00 80 2F 80 11 00 00 00 00 00 00 29 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 17 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 17 00 80 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [11:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:27:34]wFMCommunicate OK [11:27:34]CreateOFDProtocolMessage done [11:27:34]OFDSenderStorePacket 156240 [11:27:34]StoreOFDPacket docnum=156240 [11:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 09 4A 07 01 23 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 28 D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 62 02 00 35 04 06 00 F0 44 52 1C 97 A4 20 77 8B EF 45 4F 60 68 [11:27:34]CheckFolder [11:27:34]dirname=/storage/ofd_packets [11:27:34]CheckFolder done [11:27:34]ProducePacketName [11:27:34]name=ofd_packets/00156240 [11:27:34]NVStorageSaveData ofd_packets/00156240 [11:27:34]File name is /storage/ofd_packets/00156240 [11:27:34]Write 301 bytes [11:27:34]NVStorageSaveData done [11:27:34]OFDSenderStorePacket done [11:27:34]KKMCreateOFDPacket done [11:27:34]NVStorageSaveData kkm_last_timestamp [11:27:34]File name is /storage/kkm_last_timestamp [11:27:34]Write 4 bytes [11:27:34]NVStorageSaveData done [11:27:34]ExternCall_PrintAddStr [11:27:34]wPrintStart [11:27:34]Write to MH i2c: 01 00 00 81 2F B0 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 81 2F 00 00 00 00 00 FF 0F C5 [11:27:34]RasterBufferAndPrint [11:27:34]line Счет N : (1)99055 [11:27:34]line ИНН: 02508201610067 [11:27:34]line Контрольно-Кассовый Чек [11:27:34]line ПРОДАЖА [11:27:34]line ТРК (МРК, ГНК) : 31 [11:27:34]line Товар: 2710124130 [11:27:34]line Аи-92-К-5 [11:27:34]line 29.900 * 66.90 [11:27:34]line = 2000.31 [11:27:34]line НДС 12% НСП 1% [11:27:34]line > о реализуемом товаре [11:27:34]line ИТОГО: 2000.31 [11:27:34]line НСП 1% : 17.70 [11:27:34]line НДС 12% : 212.42 [11:27:34]line Наличными: 0.00 [11:27:34]line Безнал.: 2000.31 [11:27:34]line Место: АЗС № 143 "Партнер Нефть" [11:27:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:27:34]line СНО: Общий режим [11:27:34]line Чек 141 26.10.2024 11:27 [11:27:34]line Смена: 536 ФФД: 1.0 [11:27:34]line ЗНМ: 0300000096 [11:27:34]line РНМ: 0000000000091693 [11:27:34]line Версия ККМ: 001 [11:27:34]line Платежная система: Mbank [11:27:34]line ФМ: 0000000000871792 [11:27:34]line ФД: 156240 [11:27:34]line ФПД: 264176226047908 [11:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112736&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156240&fm=264176226047908&tin=02508201610067®Number=0000000000091693&sum=200031 [11:27:34]written 0, free lines is 4095 [11:27:34]OFD Sender: Processing packet 156240 [packets to send 31, broken 30] [11:27:34]ProducePacketName [11:27:34]name=ofd_packets/00156240 [11:27:34]OFD Sender: To server: pG, [11:27:34]CommunicateWithHost lk.salyk.kg:30040 [11:27:34]ConnectInit lk.salyk.kg [11:27:34]Connected sock=10 [11:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 09 4A 07 01 23 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 28 D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 62 02 00 35 04 06 00 F0 44 52 1C 97 A4 20 77 8B EF 45 4F 60 68 [11:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 24 E5 47 00 86 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 31 37 39 32 10 04 04 00 50 62 02 00 F4 03 04 00 9B 77 1C 67 B6 04 01 00 00 AE 14 E9 C9 76 42 1A 03 [11:27:34]CommunicateWithHost err = 0 [11:27:34]CheckOFDResponse [11:27:34]1017 (14) - 77093643461234 [11:27:34]1041 (16) - 0000000000871792 [11:27:34]1040 (4) - 156240 [11:27:34]1012 (4) - 26.10.2024 05:01 [11:27:34]1206 (1) - 0 [11:27:34]OFD Sender: Remove packet 156240 [11:27:34]ProducePacketName [11:27:34]name=ofd_packets/00156240 [11:27:34]NVStorageDeleteData [11:27:34]Write to MH i2c: 01 00 00 AA 2F D9 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 AA 2F 00 00 00 00 00 27 0D 14 [11:27:34]RasterBufferAndPrint [11:27:34]line [11:27:34]line [11:27:34]line [11:27:34]line [11:27:34]line [11:27:34]written 0, free lines is 3374 [11:27:34]process_action close_receipt done [11:27:34]requested_data is exist [11:27:34]produce_requested_data [11:27:34]requested_item fm.sn is exist - process it [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 11 00 00 [11:27:34]Write to MH i2c: E2 08 00 B1 2F 80 11 00 00 00 00 00 00 5A [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:34]Read from MH i2c: E2 17 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 17 00 B1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [11:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:27:34]wFMCommunicate OK [11:27:34]requested_item fd.num is exist - process it [11:27:34]SAM_PROTO_GetFieldsCounters [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 13 00 00 [11:27:34]Write to MH i2c: E2 08 00 B2 2F 80 13 00 00 00 00 00 00 5D [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:35]Read from MH i2c: E2 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 62 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 62 00 B2 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 50 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [11:27: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 50 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:35]wFMCommunicate OK [11:27:35]SAM_PROTO_GetFieldsCounters done [11:27:35]requested_item shift.num is exist - process it [11:27:35]requested_item shift.opened is exist - process it [11:27:35]req_shift_opened [11:27:35]FM_GetShiftState [11:27:35]SAM_PROTO_GetShiftState [11:27:35]wFMCommunicate request_size=4 [11:27:35]MH_SAM_APDU [11:27:35]CAPDU: 80 13 01 00 [11:27:35]Write to MH i2c: E2 08 00 B3 2F 80 13 01 00 00 00 00 00 5F [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:35]Read from MH i2c: E2 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 0E 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 0E 00 B3 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 94 [11:27:35]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:27:35]wFMCommunicate OK [11:27:35]SAM_PROTO_GetShiftState done [11:27:35]FM_GetShiftState done [11:27:35]req_shift_opened done [11:27:35]requested_item shift.open_date is exist - process it [11:27:35]req_shift_open_date [11:27:35]req_shift_open_date done [11:27:35]produce_requested_data done [11:27:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156240,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:27:35]process_action_free close_receipt [11:27:35]json_value_free [11:27:35]json_value_free done [11:27:35]process_json_proto returns [11:27:35]Send response to host [11:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156240,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:27:35]free response buf [11:27:35]execute_script done [11:27:35]execute_script returns [11:27:35]free content buf [11:27:35]Sock 9.Close socket [11:27:35]Sock 9.Thread stoped [11:27:35]OFD Sender: No OFD packet to send [11:27:37]accept exits with 7 [11:27:37]New connection [11:27:37]New thread 3066469732 created [11:27:37]Thread 3066613092 joined [11:27:37]Waiting for new connection... [11:27:37] Sock 7.Parse request [11:27:37]Sock 7.Check first char [11:27:37]Sock 7.First char is OK [11:27:37]request: POST /json_proto HTTP/1.0 [11:27:37]Method: POST [11:27:37]URL: /json_proto [11:27:37]Method is POST - this is cgi request [11:27:37]url: /json_proto [11:27:37]query_string will be loaded in cgi processing [11:27:37]execute_cgi json_proto POST (null) [11:27:37]execute_cgi path=json_proto method=POST [11:27:37]POST find Content-Length [11:27:37]Host: 172.17.63.3:8080 [11:27:37]Content-Length: 681 [11:27:37]Content-Type: application/json [11:27:37] [11:27:37]POST finish read [11:27:37]Found Content-Length = 681 [11:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:37]execute_script... [11:27:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:37]POST & json_proto [11:27:37]process_json_proto [11:27:37]json parsed OK: [11:27:37]protocol is kg_v1.0 [11:27:37]action value=close_receipt [11:27:37]process_action close_receipt [11:27:37]cmd_close_receipt [11:27:37]MH_GetDate [11:27:37]Write to MH i2c: F0 00 00 B4 2F D2 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: F0 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: F0 09 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: F0 09 00 B4 2F 00 2D D2 1C 67 50 D1 6C 64 4E [11:27:37]GetLastDocTimeStamp 1729942056 [11:27:37]current date 1729942061 [11:27:37]FM_GetShiftState [11:27:37]SAM_PROTO_GetShiftState [11:27:37]wFMCommunicate request_size=4 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 13 01 00 [11:27:37]Write to MH i2c: E2 08 00 B5 2F 80 13 01 00 00 00 00 00 61 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 0E 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 0E 00 B5 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 96 [11:27:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:27:37]wFMCommunicate OK [11:27:37]SAM_PROTO_GetShiftState done [11:27:37]FM_GetShiftState done [11:27:37]opened in 1729902702 [11:27:37]opened+sec_in_day 1729989102 [11:27:37]quantity*price = 100015 [11:27:37]sum+1 = 100017 [11:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 142 26.10.2024 11:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156241 ФПД: 234522896805466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112741&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156241&fm=234522896805466&tin=02508201610067®Number=0000000000091693&sum=100000 [11:27:38]StoreToDocumentArchive [11:27:38]shift 536 fd 156241 [11:27:38]save to /storage/0536/doc_00156241 [11:27:38]save last doc name /storage/0536/doc_00156241 to /storage/kkm_last_doc_name [11:27:38]save OK [11:27:38]Clear old archive folders... [11:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:38]tlvbuf is 00DCEB70 [11:27:38]SAM_PROTO_ClearQueue [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 09 00 00 [11:27:38]Write to MH i2c: E2 08 00 C2 2F 80 09 00 00 00 00 00 00 63 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 C2 2F 00 90 00 65 [11:27:38]RAPDU: 90 00 [11:27:38]wFMCommunicate OK [11:27:38]SAM_PROTO_ClearQueue done [11:27:38]KKMCreateOFDPacket [11:27:38]OFDProtocolAddRootSTLVToBuf [11:27:38]FM_MakeSignedData [11:27:38]FM_MakeSignedData [11:27:38]SAM_PROTO_SignData [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 0D 01 02 [11:27:38]Write to MH i2c: E2 08 00 C3 2F 80 0D 01 02 00 00 00 00 6B [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 C3 2F 00 90 00 66 [11:27:38]RAPDU: 90 00 [11:27:38]wFMCommunicate OK [11:27:38]wFMCommunicate request_size=255 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 2D D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 62 02 00 35 04 06 00 D5 [11:27:38]Write to MH i2c: E2 02 01 C4 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 2D D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 62 02 00 35 04 06 00 D5 00 00 AD [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 C4 2F 00 90 00 67 [11:27:38]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=10 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 02 02 05 4C 1D F4 AE 5A [11:27:39]Write to MH i2c: E2 0D 00 C5 2F 80 0D 02 02 05 00 4C 1D F4 AE 5A 00 00 DD [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 03 02 [11:27:39]Write to MH i2c: E2 08 00 C6 2F 80 0D 03 02 00 00 00 00 70 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0B 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0B 00 C6 2F 00 9C D3 F0 54 53 17 9F 6C 90 00 99 [11:27:39]RAPDU: 9C D3 F0 54 53 17 9F 6C 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_SignData done [11:27:39]FM_MakeSignedData done [11:27:39]CreateOFDProtocolMessage [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 11 00 00 [11:27:39]Write to MH i2c: E2 08 00 C7 2F 80 11 00 00 00 00 00 00 70 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 C7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [11:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:27:39]wFMCommunicate OK [11:27:39]CreateOFDProtocolMessage done [11:27:39]OFDSenderStorePacket 156241 [11:27:39]StoreOFDPacket docnum=156241 [11:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 FF 07 01 AB 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 2D D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 62 02 00 35 04 06 00 D5 4C 1D F4 AE 5A 9C D3 F0 54 53 17 9F 6C [11:27:39]CheckFolder [11:27:39]dirname=/storage/ofd_packets [11:27:39]CheckFolder done [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00156241 [11:27:39]NVStorageSaveData ofd_packets/00156241 [11:27:39]File name is /storage/ofd_packets/00156241 [11:27:39]Write 301 bytes [11:27:39]NVStorageSaveData done [11:27:39]OFDSenderStorePacket done [11:27:39]KKMCreateOFDPacket done [11:27:39]NVStorageSaveData kkm_last_timestamp [11:27:39]File name is /storage/kkm_last_timestamp [11:27:39]Write 4 bytes [11:27:39]NVStorageSaveData done [11:27:39]ExternCall_PrintAddStr [11:27:39]wPrintStart [11:27:39]Write to MH i2c: 01 00 00 C8 2F F7 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 C8 2F 00 00 00 00 00 FF 0F 0C [11:27:39]RasterBufferAndPrint [11:27:39]line Счет N : (1)99056 [11:27:39]line ИНН: 02508201610067 [11:27:39]line Контрольно-Кассовый Чек [11:27:39]line ПРОДАЖА [11:27:39]line ТРК (МРК, ГНК) : 21 [11:27:39]line Товар: 2710124130 [11:27:39]line Аи-92-К-5 [11:27:39]line 14.950 * 66.90 [11:27:39]line = 1000.16 [11:27:39]line НДС 12% НСП 1% [11:27:39]line > о реализуемом товаре [11:27:39]line ОКРУГЛЕНИЕ: -0.16 [11:27:39]line ИТОГО: 1000.00 [11:27:39]line Внесено: 1000.00 [11:27:39]line СДАЧА: 0.00 [11:27:39]line НСП 1% : 8.85 [11:27:39]line НДС 12% : 106.21 [11:27:39]line Наличными: 1000.00 [11:27:39]line Безнал.: 0.00 [11:27:39]line Место: АЗС № 143 "Партнер Нефть" [11:27:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:27:39]line СНО: Общий режим [11:27:39]line Чек 142 26.10.2024 11:27 [11:27:39]line Смена: 536 ФФД: 1.0 [11:27:39]line ЗНМ: 0300000096 [11:27:39]line РНМ: 0000000000091693 [11:27:39]line Версия ККМ: 001 [11:27:39]line ФМ: 0000000000871792 [11:27:39]line ФД: 156241 [11:27:39]line ФПД: 234522896805466 [11:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112741&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156241&fm=234522896805466&tin=02508201610067®Number=0000000000091693&sum=100000 [11:27:39]written 0, free lines is 4095 [11:27:39]OFD Sender: Processing packet 156241 [packets to send 31, broken 30] [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00156241 [11:27:39]OFD Sender: To server: pG, [11:27:39]CommunicateWithHost lk.salyk.kg:30040 [11:27:39]ConnectInit lk.salyk.kg [11:27:39]Connected sock=10 [11:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 FF 07 01 AB 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 2D D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 62 02 00 35 04 06 00 D5 4C 1D F4 AE 5A 9C D3 F0 54 53 17 9F 6C [11:27:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2C 3A 47 00 E3 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 31 37 39 32 10 04 04 00 51 62 02 00 F4 03 04 00 A0 77 1C 67 B6 04 01 00 00 05 5D A8 A2 48 8A 14 91 [11:27:39]CommunicateWithHost err = 0 [11:27:39]CheckOFDResponse [11:27:39]1017 (14) - 77093643461234 [11:27:39]1041 (16) - 0000000000871792 [11:27:39]1040 (4) - 156241 [11:27:39]1012 (4) - 26.10.2024 05:01 [11:27:39]1206 (1) - 0 [11:27:39]OFD Sender: Remove packet 156241 [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00156241 [11:27:39]NVStorageDeleteData [11:27:39]Write to MH i2c: 01 00 00 F3 2F 22 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 F3 2F 00 00 00 00 00 F5 0C 2A [11:27:39]RasterBufferAndPrint [11:27:39]line [11:27:39]line [11:27:39]line [11:27:39]line [11:27:39]line [11:27:39]written 0, free lines is 3329 [11:27:39]process_action close_receipt done [11:27:39]requested_data is exist [11:27:39]produce_requested_data [11:27:39]requested_item fm.sn is exist - process it [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 11 00 00 [11:27:39]Write to MH i2c: E2 08 00 FA 2F 80 11 00 00 00 00 00 00 A3 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 FA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [11:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:27:39]wFMCommunicate OK [11:27:39]requested_item fd.num is exist - process it [11:27:39]SAM_PROTO_GetFieldsCounters [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 13 00 00 [11:27:39]Write to MH i2c: E2 08 00 FB 2F 80 13 00 00 00 00 00 00 A6 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 62 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 62 00 FB 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 51 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [11:27:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 51 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_GetFieldsCounters done [11:27:39]requested_item shift.num is exist - process it [11:27:39]requested_item shift.opened is exist - process it [11:27:39]req_shift_opened [11:27:39]FM_GetShiftState [11:27:39]SAM_PROTO_GetShiftState [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 13 01 00 [11:27:39]Write to MH i2c: E2 08 00 FC 2F 80 13 01 00 00 00 00 00 A8 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0E 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0E 00 FC 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DD [11:27:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_GetShiftState done [11:27:39]FM_GetShiftState done [11:27:39]req_shift_opened done [11:27:39]requested_item shift.open_date is exist - process it [11:27:39]req_shift_open_date [11:27:39]req_shift_open_date done [11:27:39]produce_requested_data done [11:27:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156241,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:27:39]process_action_free close_receipt [11:27:39]json_value_free [11:27:39]json_value_free done [11:27:39]process_json_proto returns [11:27:39]Send response to host [11:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156241,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:27:39]free response buf [11:27:39]execute_script done [11:27:39]execute_script returns [11:27:39]free content buf [11:27:39]Sock 7.Close socket [11:27:39]Sock 7.Thread stoped [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:29]accept exits with 9 [11:29:29]New connection [11:29:29]New thread 3066613092 created [11:29:29]Thread 3066469732 joined [11:29:29]Waiting for new connection... [11:29:29] Sock 9.Parse request [11:29:29]Sock 9.Check first char [11:29:29]Sock 9.First char is OK [11:29:29]request: POST /json_proto HTTP/1.0 [11:29:29]Method: POST [11:29:29]URL: /json_proto [11:29:29]Method is POST - this is cgi request [11:29:29]url: /json_proto [11:29:29]query_string will be loaded in cgi processing [11:29:29]execute_cgi json_proto POST (null) [11:29:29]execute_cgi path=json_proto method=POST [11:29:29]POST find Content-Length [11:29:29]Host: 172.17.63.3:8080 [11:29:29]Content-Length: 676 [11:29:29]Content-Type: application/json [11:29:29] [11:29:29]POST finish read [11:29:29]Found Content-Length = 676 [11:29:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:29]execute_script... [11:29:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:29]POST & json_proto [11:29:29]process_json_proto [11:29:29]json parsed OK: [11:29:29]protocol is kg_v1.0 [11:29:29]action value=close_receipt [11:29:29]process_action close_receipt [11:29:29]cmd_close_receipt [11:29:29]MH_GetDate [11:29:29]Write to MH i2c: F0 00 00 FD 2F 1B [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: F0 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: F0 09 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: F0 09 00 FD 2F 00 9D D2 1C 67 50 D1 6C 64 07 [11:29:29]GetLastDocTimeStamp 1729942061 [11:29:29]current date 1729942173 [11:29:29]FM_GetShiftState [11:29:29]SAM_PROTO_GetShiftState [11:29:29]wFMCommunicate request_size=4 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 13 01 00 [11:29:29]Write to MH i2c: E2 08 00 FE 2F 80 13 01 00 00 00 00 00 AA [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 0E 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 0E 00 FE 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DF [11:29:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:29:29]wFMCommunicate OK [11:29:29]SAM_PROTO_GetShiftState done [11:29:29]FM_GetShiftState done [11:29:29]opened in 1729902702 [11:29:29]opened+sec_in_day 1729989102 [11:29:29]quantity*price = 40006 [11:29:29]sum+1 = 40007 [11:29:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 143 26.10.2024 11:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156242 ФПД: 23628856663090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112933&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156242&fm=23628856663090&tin=02508201610067®Number=0000000000091693&sum=40000 [11:29:30]StoreToDocumentArchive [11:29:30]shift 536 fd 156242 [11:29:30]save to /storage/0536/doc_00156242 [11:29:30]save last doc name /storage/0536/doc_00156242 to /storage/kkm_last_doc_name [11:29:30]save OK [11:29:30]Clear old archive folders... [11:29:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:30]tlvbuf is 00D3EB80 [11:29:30]SAM_PROTO_ClearQueue [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 09 00 00 [11:29:30]Write to MH i2c: E2 08 00 0B 30 80 09 00 00 00 00 00 00 AD [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 0B 30 00 90 00 AF [11:29:30]RAPDU: 90 00 [11:29:30]wFMCommunicate OK [11:29:30]SAM_PROTO_ClearQueue done [11:29:30]KKMCreateOFDPacket [11:29:30]OFDProtocolAddRootSTLVToBuf [11:29:30]FM_MakeSignedData [11:29:30]FM_MakeSignedData [11:29:30]SAM_PROTO_SignData [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 0D 01 02 [11:29:30]Write to MH i2c: E2 08 00 0C 30 80 0D 01 02 00 00 00 00 B5 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 03 00 0C 30 00 90 00 B0 [11:29:30]RAPDU: 90 00 [11:29:30]wFMCommunicate OK [11:29:30]wFMCommunicate request_size=255 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9D D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 62 02 00 35 04 06 00 15 [11:29:30]Write to MH i2c: E2 02 01 0D 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9D D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 62 02 00 35 04 06 00 15 00 00 7E [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 03 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 03 00 0D 30 00 90 00 B1 [11:29:31]RAPDU: 90 00 [11:29:31]wFMCommunicate OK [11:29:31]wFMCommunicate request_size=10 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 0D 02 02 05 7D 85 9B 9C 32 [11:29:31]Write to MH i2c: E2 0D 00 0E 30 80 0D 02 02 05 00 7D 85 9B 9C 32 00 00 2D [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 03 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 03 00 0E 30 00 90 00 B2 [11:29:31]RAPDU: 90 00 [11:29:31]wFMCommunicate OK [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 0D 03 02 [11:29:31]Write to MH i2c: E2 08 00 0F 30 80 0D 03 02 00 00 00 00 BA [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 0B 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 0B 00 0F 30 00 19 2D FF 48 9F 4F F9 D3 90 00 02 [11:29:31]RAPDU: 19 2D FF 48 9F 4F F9 D3 90 00 [11:29:31]wFMCommunicate OK [11:29:31]SAM_PROTO_SignData done [11:29:31]FM_MakeSignedData done [11:29:31]CreateOFDProtocolMessage [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 11 00 00 [11:29:31]Write to MH i2c: E2 08 00 10 30 80 11 00 00 00 00 00 00 BA [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 17 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 17 00 10 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [11:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:29:31]wFMCommunicate OK [11:29:31]CreateOFDProtocolMessage done [11:29:31]OFDSenderStorePacket 156242 [11:29:31]StoreOFDPacket docnum=156242 [11:29:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 28 CD 07 01 87 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9D D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 62 02 00 35 04 06 00 15 7D 85 9B 9C 32 19 2D FF 48 9F 4F F9 D3 [11:29:31]CheckFolder [11:29:31]dirname=/storage/ofd_packets [11:29:31]CheckFolder done [11:29:31]ProducePacketName [11:29:31]name=ofd_packets/00156242 [11:29:31]NVStorageSaveData ofd_packets/00156242 [11:29:31]File name is /storage/ofd_packets/00156242 [11:29:31]Write 301 bytes [11:29:31]NVStorageSaveData done [11:29:31]OFDSenderStorePacket done [11:29:31]KKMCreateOFDPacket done [11:29:31]NVStorageSaveData kkm_last_timestamp [11:29:31]File name is /storage/kkm_last_timestamp [11:29:31]Write 4 bytes [11:29:31]NVStorageSaveData done [11:29:31]ExternCall_PrintAddStr [11:29:31]wPrintStart [11:29:31]Write to MH i2c: 01 00 00 11 30 41 [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: 01 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: 01 07 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: 01 07 00 11 30 00 00 00 00 00 FF 0F 56 [11:29:31]RasterBufferAndPrint [11:29:31]line Счет N : (1)99057 [11:29:31]line ИНН: 02508201610067 [11:29:31]line Контрольно-Кассовый Чек [11:29:31]line ПРОДАЖА [11:29:31]line ТРК (МРК, ГНК) : 21 [11:29:31]line Товар: 2710124130 [11:29:31]line Аи-92-К-5 [11:29:31]line 5.980 * 66.90 [11:29:31]line = 400.06 [11:29:31]line НДС 12% НСП 1% [11:29:31]line > о реализуемом товаре [11:29:31]line ОКРУГЛЕНИЕ: -0.06 [11:29:31]line ИТОГО: 400.00 [11:29:31]line Внесено: 400.00 [11:29:31]line СДАЧА: 0.00 [11:29:31]line НСП 1% : 3.54 [11:29:31]line НДС 12% : 42.48 [11:29:31]line Наличными: 400.00 [11:29:31]line Безнал.: 0.00 [11:29:31]line Место: АЗС № 143 "Партнер Нефть" [11:29:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:29:31]line СНО: Общий режим [11:29:31]line Чек 143 26.10.2024 11:29 [11:29:31]line Смена: 536 ФФД: 1.0 [11:29:31]line ЗНМ: 0300000096 [11:29:31]line РНМ: 0000000000091693 [11:29:31]line Версия ККМ: 001 [11:29:31]line ФМ: 0000000000871792 [11:29:31]line ФД: 156242 [11:29:31]line ФПД: 23628856663090 [11:29:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112933&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156242&fm=23628856663090&tin=02508201610067®Number=0000000000091693&sum=40000 [11:29:31]OFD Sender: Processing packet 156242 [packets to send 31, broken 30] [11:29:31]ProducePacketName [11:29:31]name=ofd_packets/00156242 [11:29:31]OFD Sender: To server: pG, [11:29:31]CommunicateWithHost lk.salyk.kg:30040 [11:29:31]ConnectInit lk.salyk.kg [11:29:31]written 0, free lines is 4095 [11:29:31]Connected sock=7 [11:29:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 28 CD 07 01 87 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9D D2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 62 02 00 35 04 06 00 15 7D 85 9B 9C 32 19 2D FF 48 9F 4F F9 D3 [11:29:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 35 F1 47 00 79 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 62 02 00 F4 03 04 00 10 78 1C 67 B6 04 01 00 00 1E 7F 2E F4 A6 80 E5 F9 [11:29:31]CommunicateWithHost err = 0 [11:29:31]CheckOFDResponse [11:29:31]1017 (14) - 77093643461234 [11:29:31]1041 (16) - 0000000000871792 [11:29:31]1040 (4) - 156242 [11:29:31]1012 (4) - 26.10.2024 05:03 [11:29:31]1206 (1) - 0 [11:29:31]OFD Sender: Remove packet 156242 [11:29:31]ProducePacketName [11:29:31]name=ofd_packets/00156242 [11:29:31]NVStorageDeleteData [11:29:32]Write to MH i2c: 01 00 00 3C 30 6C [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 07 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 07 00 3C 30 00 00 00 00 00 EE 0C 6D [11:29:32]RasterBufferAndPrint [11:29:32]line [11:29:32]line [11:29:32]line [11:29:32]line [11:29:32]line [11:29:32]written 0, free lines is 3319 [11:29:32]process_action close_receipt done [11:29:32]requested_data is exist [11:29:32]produce_requested_data [11:29:32]requested_item fm.sn is exist - process it [11:29:32]wFMCommunicate request_size=4 [11:29:32]MH_SAM_APDU [11:29:32]CAPDU: 80 11 00 00 [11:29:32]Write to MH i2c: E2 08 00 43 30 80 11 00 00 00 00 00 00 ED [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:32]Read from MH i2c: E2 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 17 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 17 00 43 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [11:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:29:32]wFMCommunicate OK [11:29:32]requested_item fd.num is exist - process it [11:29:32]SAM_PROTO_GetFieldsCounters [11:29:32]wFMCommunicate request_size=4 [11:29:32]MH_SAM_APDU [11:29:32]CAPDU: 80 13 00 00 [11:29:32]Write to MH i2c: E2 08 00 44 30 80 13 00 00 00 00 00 00 F0 [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:32]Read from MH i2c: E2 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 62 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 62 00 44 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 52 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:29: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 52 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:32]wFMCommunicate OK [11:29:32]SAM_PROTO_GetFieldsCounters done [11:29:32]requested_item shift.num is exist - process it [11:29:32]requested_item shift.opened is exist - process it [11:29:32]req_shift_opened [11:29:32]FM_GetShiftState [11:29:32]SAM_PROTO_GetShiftState [11:29:32]wFMCommunicate request_size=4 [11:29:32]MH_SAM_APDU [11:29:32]CAPDU: 80 13 01 00 [11:29:32]Write to MH i2c: E2 08 00 45 30 80 13 01 00 00 00 00 00 F2 [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:32]Read from MH i2c: E2 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 0E 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 0E 00 45 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 27 [11:29:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:29:32]wFMCommunicate OK [11:29:32]SAM_PROTO_GetShiftState done [11:29:32]FM_GetShiftState done [11:29:32]req_shift_opened done [11:29:32]requested_item shift.open_date is exist - process it [11:29:32]req_shift_open_date [11:29:32]req_shift_open_date done [11:29:32]produce_requested_data done [11:29:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156242,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:29:32]process_action_free close_receipt [11:29:32]json_value_free [11:29:32]json_value_free done [11:29:32]process_json_proto returns [11:29:32]Send response to host [11:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156242,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:29:32]free response buf [11:29:32]execute_script done [11:29:32]execute_script returns [11:29:32]free content buf [11:29:32]Sock 9.Close socket [11:29:32]Sock 9.Thread stoped [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:55]accept exits with 10 [11:31:55]New connection [11:31:55]New thread 3066469732 created [11:31:55]Thread 3066613092 joined [11:31:55]Waiting for new connection... [11:31:55] Sock 10.Parse request [11:31:55]Sock 10.Check first char [11:31:55]Sock 10.First char is OK [11:31:55]request: POST /json_proto HTTP/1.0 [11:31:55]Method: POST [11:31:55]URL: /json_proto [11:31:55]Method is POST - this is cgi request [11:31:55]url: /json_proto [11:31:55]query_string will be loaded in cgi processing [11:31:55]execute_cgi json_proto POST (null) [11:31:55]execute_cgi path=json_proto method=POST [11:31:55]POST find Content-Length [11:31:55]Host: 172.17.63.3:8080 [11:31:55]Content-Length: 676 [11:31:55]Content-Type: application/json [11:31:55] [11:31:55]POST finish read [11:31:55]Found Content-Length = 676 [11:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:55]execute_script... [11: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)99058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:55]POST & json_proto [11:31:55]process_json_proto [11:31:55]json parsed OK: [11:31:55]protocol is kg_v1.0 [11:31:55]action value=close_receipt [11:31:55]process_action close_receipt [11:31:55]cmd_close_receipt [11:31:55]MH_GetDate [11:31:55]Write to MH i2c: F0 00 00 46 30 65 [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 09 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 09 00 46 30 00 2F D3 1C 67 50 D1 6C 64 E4 [11:31:55]GetLastDocTimeStamp 1729942173 [11:31:55]current date 1729942319 [11:31:55]FM_GetShiftState [11:31:55]SAM_PROTO_GetShiftState [11:31:55]wFMCommunicate request_size=4 [11:31:55]MH_SAM_APDU [11:31:55]CAPDU: 80 13 01 00 [11:31:55]Write to MH i2c: E2 08 00 47 30 80 13 01 00 00 00 00 00 F4 [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:55]Read from MH i2c: E2 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 0E 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 0E 00 47 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 29 [11:31:55]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:31:55]wFMCommunicate OK [11:31:55]SAM_PROTO_GetShiftState done [11:31:55]FM_GetShiftState done [11:31:55]opened in 1729902702 [11:31:55]opened+sec_in_day 1729989102 [11:31:55]quantity*price = 50041 [11:31:55]sum+1 = 50042 [11:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 144 26.10.2024 11:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156243 ФПД: 183351065067536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113159&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156243&fm=183351065067536&tin=02508201610067®Number=0000000000091693&sum=50000 [11:31:56]StoreToDocumentArchive [11:31:56]shift 536 fd 156243 [11:31:56]save to /storage/0536/doc_00156243 [11:31:56]save last doc name /storage/0536/doc_00156243 to /storage/kkm_last_doc_name [11:31:56]save OK [11:31:56]Clear old archive folders... [11:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:56]tlvbuf is 00D3EBA0 [11:31:56]SAM_PROTO_ClearQueue [11:31:56]wFMCommunicate request_size=4 [11:31:56]MH_SAM_APDU [11:31:56]CAPDU: 80 09 00 00 [11:31:56]Write to MH i2c: E2 08 00 54 30 80 09 00 00 00 00 00 00 F6 [11:31:56]Write i2c OK [11:31:56]MH_I2C_Read... [11:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:56]Read from MH i2c: E2 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 03 00 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 03 00 54 30 00 90 00 F8 [11:31:56]RAPDU: 90 00 [11:31:56]wFMCommunicate OK [11:31:56]SAM_PROTO_ClearQueue done [11:31:56]KKMCreateOFDPacket [11:31:56]OFDProtocolAddRootSTLVToBuf [11:31:56]FM_MakeSignedData [11:31:56]FM_MakeSignedData [11:31:56]SAM_PROTO_SignData [11:31:56]wFMCommunicate request_size=4 [11:31:56]MH_SAM_APDU [11:31:56]CAPDU: 80 0D 01 02 [11:31:56]Write to MH i2c: E2 08 00 55 30 80 0D 01 02 00 00 00 00 FE [11:31:56]Write i2c OK [11:31:56]MH_I2C_Read... [11:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:56]Read from MH i2c: E2 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 03 00 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 03 00 55 30 00 90 00 F9 [11:31:56]RAPDU: 90 00 [11:31:56]wFMCommunicate OK [11:31:56]wFMCommunicate request_size=255 [11:31:56]MH_SAM_APDU [11:31:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2F D3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 62 02 00 35 04 06 00 A6 [11:31:56]Write to MH i2c: E2 02 01 56 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2F D3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 62 02 00 35 04 06 00 A6 00 00 1E [11:31:56]Write i2c OK [11:31:56]MH_I2C_Read... [11:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:56]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 56 30 00 90 00 FA [11:31:57]RAPDU: 90 00 [11:31:57]wFMCommunicate OK [11:31:57]wFMCommunicate request_size=10 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 0D 02 02 05 C1 BF 1A 40 10 [11:31:57]Write to MH i2c: E2 0D 00 57 30 80 0D 02 02 05 00 C1 BF 1A 40 10 00 00 F5 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 57 30 00 90 00 FB [11:31:57]RAPDU: 90 00 [11:31:57]wFMCommunicate OK [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 0D 03 02 [11:31:57]Write to MH i2c: E2 08 00 58 30 80 0D 03 02 00 00 00 00 03 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0B 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0B 00 58 30 00 7F C0 51 14 C3 34 D4 D9 90 00 4C [11:31:57]RAPDU: 7F C0 51 14 C3 34 D4 D9 90 00 [11:31:57]wFMCommunicate OK [11:31:57]SAM_PROTO_SignData done [11:31:57]FM_MakeSignedData done [11:31:57]CreateOFDProtocolMessage [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 11 00 00 [11:31:57]Write to MH i2c: E2 08 00 59 30 80 11 00 00 00 00 00 00 03 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 17 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 17 00 59 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [11:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:31:57]wFMCommunicate OK [11:31:57]CreateOFDProtocolMessage done [11:31:57]OFDSenderStorePacket 156243 [11:31:57]StoreOFDPacket docnum=156243 [11:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4C C0 07 01 C3 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2F D3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 62 02 00 35 04 06 00 A6 C1 BF 1A 40 10 7F C0 51 14 C3 34 D4 D9 [11:31:57]CheckFolder [11:31:57]dirname=/storage/ofd_packets [11:31:57]CheckFolder done [11:31:57]ProducePacketName [11:31:57]name=ofd_packets/00156243 [11:31:57]NVStorageSaveData ofd_packets/00156243 [11:31:57]File name is /storage/ofd_packets/00156243 [11:31:57]Write 301 bytes [11:31:57]NVStorageSaveData done [11:31:57]OFDSenderStorePacket done [11:31:57]KKMCreateOFDPacket done [11:31:57]NVStorageSaveData kkm_last_timestamp [11:31:57]File name is /storage/kkm_last_timestamp [11:31:57]Write 4 bytes [11:31:57]NVStorageSaveData done [11:31:57]ExternCall_PrintAddStr [11:31:57]wPrintStart [11:31:57]Write to MH i2c: 01 00 00 5A 30 8A [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 5A 30 00 00 00 00 00 FF 0F 9F [11:31:57]RasterBufferAndPrint [11:31:57]line Счет N : (1)99058 [11:31:57]line ИНН: 02508201610067 [11:31:57]line Контрольно-Кассовый Чек [11:31:57]line ПРОДАЖА [11:31:57]line ТРК (МРК, ГНК) : 11 [11:31:57]line Товар: 2710124130 [11:31:57]line Аи-92-К-5 [11:31:57]line 7.480 * 66.90 [11:31:57]line = 500.41 [11:31:57]line НДС 12% НСП 1% [11:31:57]line > о реализуемом товаре [11:31:57]line ОКРУГЛЕНИЕ: -0.41 [11:31:57]line ИТОГО: 500.00 [11:31:57]line Внесено: 500.00 [11:31:57]line СДАЧА: 0.00 [11:31:57]line НСП 1% : 4.43 [11:31:57]line НДС 12% : 53.14 [11:31:57]line Наличными: 500.00 [11:31:57]line Безнал.: 0.00 [11:31:57]line Место: АЗС № 143 "Партнер Нефть" [11:31:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:31:57]line СНО: Общий режим [11:31:57]line Чек 144 26.10.2024 11:31 [11:31:57]line Смена: 536 ФФД: 1.0 [11:31:57]line ЗНМ: 0300000096 [11:31:57]line РНМ: 0000000000091693 [11:31:57]line Версия ККМ: 001 [11:31:57]line ФМ: 0000000000871792 [11:31:57]line ФД: 156243 [11:31:57]line ФПД: 183351065067536 [11:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113159&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156243&fm=183351065067536&tin=02508201610067®Number=0000000000091693&sum=50000 [11:31:57]OFD Sender: Processing packet 156243 [packets to send 31, broken 30] [11:31:57]ProducePacketName [11:31:57]name=ofd_packets/00156243 [11:31:57]OFD Sender: To server: pG, [11:31:57]CommunicateWithHost lk.salyk.kg:30040 [11:31:57]ConnectInit lk.salyk.kg [11:31:57]written 0, free lines is 4095 [11:31:57]Connected sock=9 [11:31:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4C C0 07 01 C3 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2F D3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 62 02 00 35 04 06 00 A6 C1 BF 1A 40 10 7F C0 51 14 C3 34 D4 D9 [11:31:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 24 C1 47 00 81 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 62 02 00 F4 03 04 00 A2 78 1C 67 B6 04 01 00 00 74 1A 66 E8 8B EF 04 3D [11:31:57]CommunicateWithHost err = 0 [11:31:57]CheckOFDResponse [11:31:57]1017 (14) - 77093643461234 [11:31:57]1041 (16) - 0000000000871792 [11:31:57]1040 (4) - 156243 [11:31:57]1012 (4) - 26.10.2024 05:05 [11:31:57]1206 (1) - 0 [11:31:57]OFD Sender: Remove packet 156243 [11:31:57]ProducePacketName [11:31:57]name=ofd_packets/00156243 [11:31:57]NVStorageDeleteData [11:31:57]Write to MH i2c: 01 00 00 85 30 B5 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 85 30 00 00 00 00 00 F0 0C B8 [11:31:57]RasterBufferAndPrint [11:31:57]line [11:31:57]line [11:31:57]line [11:31:57]line [11:31:57]line [11:31:57]written 0, free lines is 3323 [11:31:57]process_action close_receipt done [11:31:57]requested_data is exist [11:31:57]produce_requested_data [11:31:57]requested_item fm.sn is exist - process it [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 11 00 00 [11:31:57]Write to MH i2c: E2 08 00 8C 30 80 11 00 00 00 00 00 00 36 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 17 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 17 00 8C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [11:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:31:58]wFMCommunicate OK [11:31:58]requested_item fd.num is exist - process it [11:31:58]SAM_PROTO_GetFieldsCounters [11:31:58]wFMCommunicate request_size=4 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 13 00 00 [11:31:58]Write to MH i2c: E2 08 00 8D 30 80 13 00 00 00 00 00 00 39 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 62 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 62 00 8D 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 53 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:31: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 53 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:58]wFMCommunicate OK [11:31:58]SAM_PROTO_GetFieldsCounters done [11:31:58]requested_item shift.num is exist - process it [11:31:58]requested_item shift.opened is exist - process it [11:31:58]req_shift_opened [11:31:58]FM_GetShiftState [11:31:58]SAM_PROTO_GetShiftState [11:31:58]wFMCommunicate request_size=4 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 13 01 00 [11:31:58]Write to MH i2c: E2 08 00 8E 30 80 13 01 00 00 00 00 00 3B [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 0E 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 0E 00 8E 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 70 [11:31:58]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:31:58]wFMCommunicate OK [11:31:58]SAM_PROTO_GetShiftState done [11:31:58]FM_GetShiftState done [11:31:58]req_shift_opened done [11:31:58]requested_item shift.open_date is exist - process it [11:31:58]req_shift_open_date [11:31:58]req_shift_open_date done [11:31:58]produce_requested_data done [11:31:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156243,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:31:58]process_action_free close_receipt [11:31:58]json_value_free [11:31:58]json_value_free done [11:31:58]process_json_proto returns [11:31:58]Send response to host [11:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156243,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:31:58]free response buf [11:31:58]execute_script done [11:31:58]execute_script returns [11:31:58]free content buf [11:31:58]Sock 10.Close socket [11:31:58]Sock 10.Thread stoped [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:44]accept exits with 7 [11:35:44]New connection [11:35:44]New thread 3066613092 created [11:35:44]Thread 3066469732 joined [11:35:44]Waiting for new connection... [11:35:44] Sock 7.Parse request [11:35:44]Sock 7.Check first char [11:35:44]Sock 7.First char is OK [11:35:44]request: POST /json_proto HTTP/1.0 [11:35:44]Method: POST [11:35:44]URL: /json_proto [11:35:44]Method is POST - this is cgi request [11:35:44]url: /json_proto [11:35:44]query_string will be loaded in cgi processing [11:35:44]execute_cgi json_proto POST (null) [11:35:44]execute_cgi path=json_proto method=POST [11:35:44]POST find Content-Length [11:35:44]Host: 172.17.63.3:8080 [11:35:44]Content-Length: 677 [11:35:44]Content-Type: application/json [11:35:44] [11:35:44]POST finish read [11:35:44]Found Content-Length = 677 [11:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:44]execute_script... [11:35: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)99060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:44]POST & json_proto [11:35:44]process_json_proto [11:35:44]json parsed OK: [11:35:44]protocol is kg_v1.0 [11:35:44]action value=close_receipt [11:35:44]process_action close_receipt [11:35:44]cmd_close_receipt [11:35:44]MH_GetDate [11:35:44]Write to MH i2c: F0 00 00 8F 30 AE [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: F0 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: F0 09 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: F0 09 00 8F 30 00 14 D4 1C 67 50 D1 6C 64 13 [11:35:44]GetLastDocTimeStamp 1729942319 [11:35:44]current date 1729942548 [11:35:44]FM_GetShiftState [11:35:44]SAM_PROTO_GetShiftState [11:35:44]wFMCommunicate request_size=4 [11:35:44]MH_SAM_APDU [11:35:44]CAPDU: 80 13 01 00 [11:35:44]Write to MH i2c: E2 08 00 90 30 80 13 01 00 00 00 00 00 3D [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:44]Read from MH i2c: E2 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 0E 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 0E 00 90 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 72 [11:35:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:35:44]wFMCommunicate OK [11:35:44]SAM_PROTO_GetShiftState done [11:35:44]FM_GetShiftState done [11:35:44]opened in 1729902702 [11:35:44]opened+sec_in_day 1729989102 [11:35:44]quantity*price = 70044 [11:35:44]sum+1 = 70045 [11:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 145 26.10.2024 11:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156244 ФПД: 267778555004602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113548&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156244&fm=267778555004602&tin=02508201610067®Number=0000000000091693&sum=70000 [11:35:45]StoreToDocumentArchive [11:35:45]shift 536 fd 156244 [11:35:45]save to /storage/0536/doc_00156244 [11:35:45]save last doc name /storage/0536/doc_00156244 to /storage/kkm_last_doc_name [11:35:45]save OK [11:35:45]Clear old archive folders... [11:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:45]tlvbuf is 00DFBC70 [11:35:45]SAM_PROTO_ClearQueue [11:35:45]wFMCommunicate request_size=4 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 09 00 00 [11:35:45]Write to MH i2c: E2 08 00 9D 30 80 09 00 00 00 00 00 00 3F [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:45]Read from MH i2c: E2 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 03 00 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [11:35:45]RAPDU: 90 00 [11:35:45]wFMCommunicate OK [11:35:45]SAM_PROTO_ClearQueue done [11:35:45]KKMCreateOFDPacket [11:35:45]OFDProtocolAddRootSTLVToBuf [11:35:45]FM_MakeSignedData [11:35:45]FM_MakeSignedData [11:35:45]SAM_PROTO_SignData [11:35:45]wFMCommunicate request_size=4 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 0D 01 02 [11:35:45]Write to MH i2c: E2 08 00 9E 30 80 0D 01 02 00 00 00 00 47 [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]wFMCommunicate request_size=255 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 14 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 62 02 00 35 04 06 00 F3 [11:35:46]Write to MH i2c: E2 02 01 9F 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 14 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 62 02 00 35 04 06 00 F3 00 00 AC [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 9F 30 00 90 00 43 [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]wFMCommunicate request_size=10 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 02 02 05 8B 0D A6 46 BA [11:35:46]Write to MH i2c: E2 0D 00 A0 30 80 0D 02 02 05 00 8B 0D A6 46 BA 00 00 92 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 A0 30 00 90 00 44 [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 03 02 [11:35:46]Write to MH i2c: E2 08 00 A1 30 80 0D 03 02 00 00 00 00 4C [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0B 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0B 00 A1 30 00 BE D9 FB 80 44 81 75 DE 90 00 77 [11:35:46]RAPDU: BE D9 FB 80 44 81 75 DE 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_SignData done [11:35:46]FM_MakeSignedData done [11:35:46]CreateOFDProtocolMessage [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 11 00 00 [11:35:46]Write to MH i2c: E2 08 00 A2 30 80 11 00 00 00 00 00 00 4C [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 17 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 17 00 A2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [11:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:35:46]wFMCommunicate OK [11:35:46]CreateOFDProtocolMessage done [11:35:46]OFDSenderStorePacket 156244 [11:35:46]StoreOFDPacket docnum=156244 [11:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 63 19 07 01 2F 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 14 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 62 02 00 35 04 06 00 F3 8B 0D A6 46 BA BE D9 FB 80 44 81 75 DE [11:35:46]CheckFolder [11:35:46]dirname=/storage/ofd_packets [11:35:46]CheckFolder done [11:35:46]ProducePacketName [11:35:46]name=ofd_packets/00156244 [11:35:46]NVStorageSaveData ofd_packets/00156244 [11:35:46]File name is /storage/ofd_packets/00156244 [11:35:46]Write 301 bytes [11:35:46]NVStorageSaveData done [11:35:46]OFDSenderStorePacket done [11:35:46]KKMCreateOFDPacket done [11:35:46]NVStorageSaveData kkm_last_timestamp [11:35:46]File name is /storage/kkm_last_timestamp [11:35:46]Write 4 bytes [11:35:46]NVStorageSaveData done [11:35:46]ExternCall_PrintAddStr [11:35:46]wPrintStart [11:35:46]Write to MH i2c: 01 00 00 A3 30 D3 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 07 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 07 00 A3 30 00 00 00 00 00 FF 0F E8 [11:35:46]RasterBufferAndPrint [11:35:46]line Счет N : (1)99060 [11:35:46]line ИНН: 02508201610067 [11:35:46]line Контрольно-Кассовый Чек [11:35:46]line ПРОДАЖА [11:35:46]line ТРК (МРК, ГНК) : 21 [11:35:46]line Товар: 2710124130 [11:35:46]line Аи-92-К-5 [11:35:46]line 10.470 * 66.90 [11:35:46]line = 700.44 [11:35:46]line НДС 12% НСП 1% [11:35:46]line > о реализуемом товаре [11:35:46]line ОКРУГЛЕНИЕ: -0.44 [11:35:46]line ИТОГО: 700.00 [11:35:46]line Внесено: 700.00 [11:35:46]line СДАЧА: 0.00 [11:35:46]line НСП 1% : 6.20 [11:35:46]line НДС 12% : 74.38 [11:35:46]line Наличными: 700.00 [11:35:46]line Безнал.: 0.00 [11:35:46]line Место: АЗС № 143 "Партнер Нефть" [11:35:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:35:46]line СНО: Общий режим [11:35:46]line Чек 145 26.10.2024 11:35 [11:35:46]line Смена: 536 ФФД: 1.0 [11:35:46]line ЗНМ: 0300000096 [11:35:46]line РНМ: 0000000000091693 [11:35:46]line Версия ККМ: 001 [11:35:46]line ФМ: 0000000000871792 [11:35:46]line ФД: 156244 [11:35:46]line ФПД: 267778555004602 [11:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113548&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156244&fm=267778555004602&tin=02508201610067®Number=0000000000091693&sum=70000 [11:35:46]OFD Sender: Processing packet 156244 [packets to send 31, broken 30] [11:35:46]ProducePacketName [11:35:46]name=ofd_packets/00156244 [11:35:46]OFD Sender: To server: pG, [11:35:46]CommunicateWithHost lk.salyk.kg:30040 [11:35:46]ConnectInit lk.salyk.kg [11:35:46]written 0, free lines is 4095 [11:35:46]Connected sock=10 [11:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 63 19 07 01 2F 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 14 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 62 02 00 35 04 06 00 F3 8B 0D A6 46 BA BE D9 FB 80 44 81 75 DE [11:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A4 1D 47 00 61 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 62 02 00 F4 03 04 00 87 79 1C 67 B6 04 01 00 00 F2 2F 76 04 DC B1 64 A5 [11:35:47]CommunicateWithHost err = 0 [11:35:47]CheckOFDResponse [11:35:47]1017 (14) - 77093643461234 [11:35:47]1041 (16) - 0000000000871792 [11:35:47]1040 (4) - 156244 [11:35:47]1012 (4) - 26.10.2024 05:09 [11:35:47]1206 (1) - 0 [11:35:47]OFD Sender: Remove packet 156244 [11:35:47]ProducePacketName [11:35:47]name=ofd_packets/00156244 [11:35:47]NVStorageDeleteData [11:35:47]Write to MH i2c: 01 00 00 CE 30 FE [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 07 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 07 00 CE 30 00 00 00 00 00 E9 0C FA [11:35:47]RasterBufferAndPrint [11:35:47]line [11:35:47]line [11:35:47]line [11:35:47]line [11:35:47]line [11:35:47]written 0, free lines is 3311 [11:35:47]process_action close_receipt done [11:35:47]requested_data is exist [11:35:47]produce_requested_data [11:35:47]requested_item fm.sn is exist - process it [11:35:47]wFMCommunicate request_size=4 [11:35:47]MH_SAM_APDU [11:35:47]CAPDU: 80 11 00 00 [11:35:47]Write to MH i2c: E2 08 00 D5 30 80 11 00 00 00 00 00 00 7F [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:47]Read from MH i2c: E2 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 17 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 17 00 D5 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [11:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:35:47]wFMCommunicate OK [11:35:47]requested_item fd.num is exist - process it [11:35:47]SAM_PROTO_GetFieldsCounters [11:35:47]wFMCommunicate request_size=4 [11:35:47]MH_SAM_APDU [11:35:47]CAPDU: 80 13 00 00 [11:35:47]Write to MH i2c: E2 08 00 D6 30 80 13 00 00 00 00 00 00 82 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:47]Read from MH i2c: E2 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 62 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 62 00 D6 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 54 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [11:35: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 54 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:47]wFMCommunicate OK [11:35:47]SAM_PROTO_GetFieldsCounters done [11:35:47]requested_item shift.num is exist - process it [11:35:47]requested_item shift.opened is exist - process it [11:35:47]req_shift_opened [11:35:47]FM_GetShiftState [11:35:47]SAM_PROTO_GetShiftState [11:35:47]wFMCommunicate request_size=4 [11:35:47]MH_SAM_APDU [11:35:47]CAPDU: 80 13 01 00 [11:35:47]Write to MH i2c: E2 08 00 D7 30 80 13 01 00 00 00 00 00 84 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:47]Read from MH i2c: E2 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 0E 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 0E 00 D7 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B9 [11:35:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:35:47]wFMCommunicate OK [11:35:47]SAM_PROTO_GetShiftState done [11:35:47]FM_GetShiftState done [11:35:47]req_shift_opened done [11:35:47]requested_item shift.open_date is exist - process it [11:35:47]req_shift_open_date [11:35:47]req_shift_open_date done [11:35:47]produce_requested_data done [11:35:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156244,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:35:47]process_action_free close_receipt [11:35:47]json_value_free [11:35:47]json_value_free done [11:35:47]process_json_proto returns [11:35:47]Send response to host [11:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156244,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:35:47]free response buf [11:35:47]execute_script done [11:35:47]execute_script returns [11:35:47]free content buf [11:35:47]Sock 7.Close socket [11:35:47]Sock 7.Thread stoped [11:35:47]OFD Sender: No OFD packet to send [11:35:47]accept exits with 9 [11:35:47]New connection [11:35:47]New thread 3066469732 created [11:35:47]Thread 3066613092 joined [11:35:47]Waiting for new connection... [11:35:47] Sock 9.Parse request [11:35:47]Sock 9.Check first char [11:35:47]Sock 9.First char is OK [11:35:47]request: POST /json_proto HTTP/1.0 [11:35:47]Method: POST [11:35:47]URL: /json_proto [11:35:47]Method is POST - this is cgi request [11:35:47]url: /json_proto [11:35:47]query_string will be loaded in cgi processing [11:35:47]execute_cgi json_proto POST (null) [11:35:47]execute_cgi path=json_proto method=POST [11:35:47]POST find Content-Length [11:35:47]Host: 172.17.63.3:8080 [11:35:47]Content-Length: 799 [11:35:47]Content-Type: application/json [11:35:47] [11:35:47]POST finish read [11:35:47]Found Content-Length = 799 [11:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4195247", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:47]execute_script... [11:35:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4195247", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:47]POST & json_proto [11:35:47]process_json_proto [11:35:47]json parsed OK: [11:35:47]protocol is kg_v1.0 [11:35:47]action value=close_receipt [11:35:47]process_action close_receipt [11:35:47]cmd_close_receipt [11:35:47]MH_GetDate [11:35:47]Write to MH i2c: F0 00 00 D8 30 F7 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: F0 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: F0 09 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: F0 09 00 D8 30 00 17 D4 1C 67 50 D1 6C 64 5F [11:35:47]GetLastDocTimeStamp 1729942548 [11:35:47]current date 1729942551 [11:35:47]FM_GetShiftState [11:35:47]SAM_PROTO_GetShiftState [11:35:47]wFMCommunicate request_size=4 [11:35:47]MH_SAM_APDU [11:35:47]CAPDU: 80 13 01 00 [11:35:47]Write to MH i2c: E2 08 00 D9 30 80 13 01 00 00 00 00 00 86 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:47]Read from MH i2c: E2 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 0E 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 0E 00 D9 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [11:35:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:35:47]wFMCommunicate OK [11:35:47]SAM_PROTO_GetShiftState done [11:35:47]FM_GetShiftState done [11:35:47]opened in 1729902702 [11:35:47]opened+sec_in_day 1729989102 [11:35:47]quantity*price = 0 [11:35:47]sum+1 = 1 [11:35:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 146 26.10.2024 11:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4195247 ФМ: 0000000000871792 ФД: 156245 ФПД: 257264669467571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113552&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156245&fm=257264669467571&tin=02508201610067®Number=0000000000091693&sum=0 [11:35:49]StoreToDocumentArchive [11:35:49]shift 536 fd 156245 [11:35:49]save to /storage/0536/doc_00156245 [11:35:49]save last doc name /storage/0536/doc_00156245 to /storage/kkm_last_doc_name [11:35:49]save OK [11:35:49]Clear old archive folders... [11:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:49]tlvbuf is 00D0F630 [11:35:49]SAM_PROTO_ClearQueue [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 09 00 00 [11:35:49]Write to MH i2c: E2 08 00 E6 30 80 09 00 00 00 00 00 00 88 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 E6 30 00 90 00 8A [11:35:49]RAPDU: 90 00 [11:35:49]wFMCommunicate OK [11:35:49]SAM_PROTO_ClearQueue done [11:35:49]KKMCreateOFDPacket [11:35:49]OFDProtocolAddRootSTLVToBuf [11:35:49]FM_MakeSignedData [11:35:49]FM_MakeSignedData [11:35:49]SAM_PROTO_SignData [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 0D 01 02 [11:35:49]Write to MH i2c: E2 08 00 E7 30 80 0D 01 02 00 00 00 00 90 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 E7 30 00 90 00 8B [11:35:49]RAPDU: 90 00 [11:35:49]wFMCommunicate OK [11:35:49]wFMCommunicate request_size=255 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 18 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 62 02 00 35 04 06 00 E9 [11:35:49]Write to MH i2c: E2 02 01 E8 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 18 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 62 02 00 35 04 06 00 E9 00 00 93 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [11:35:49]RAPDU: 90 00 [11:35:49]wFMCommunicate OK [11:35:49]wFMCommunicate request_size=10 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 0D 02 02 05 FB 19 3C A3 B3 [11:35:49]Write to MH i2c: E2 0D 00 E9 30 80 0D 02 02 05 00 FB 19 3C A3 B3 00 00 43 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 E9 30 00 90 00 8D [11:35:49]RAPDU: 90 00 [11:35:49]wFMCommunicate OK [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 0D 03 02 [11:35:49]Write to MH i2c: E2 08 00 EA 30 80 0D 03 02 00 00 00 00 95 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0B 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0B 00 EA 30 00 B9 AA DA CE C1 D7 FF 6D 90 00 A5 [11:35:49]RAPDU: B9 AA DA CE C1 D7 FF 6D 90 00 [11:35:49]wFMCommunicate OK [11:35:49]SAM_PROTO_SignData done [11:35:49]FM_MakeSignedData done [11:35:49]CreateOFDProtocolMessage [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 11 00 00 [11:35:49]Write to MH i2c: E2 08 00 EB 30 80 11 00 00 00 00 00 00 95 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 17 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 17 00 EB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [11:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:35:50]wFMCommunicate OK [11:35:50]CreateOFDProtocolMessage done [11:35:50]OFDSenderStorePacket 156245 [11:35:50]StoreOFDPacket docnum=156245 [11:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 96 D3 07 01 E5 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 18 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 62 02 00 35 04 06 00 E9 FB 19 3C A3 B3 B9 AA DA CE C1 D7 FF 6D [11:35:50]CheckFolder [11:35:50]dirname=/storage/ofd_packets [11:35:50]CheckFolder done [11:35:50]ProducePacketName [11:35:50]name=ofd_packets/00156245 [11:35:50]NVStorageSaveData ofd_packets/00156245 [11:35:50]File name is /storage/ofd_packets/00156245 [11:35:50]Write 301 bytes [11:35:50]NVStorageSaveData done [11:35:50]OFDSenderStorePacket done [11:35:50]KKMCreateOFDPacket done [11:35:50]NVStorageSaveData kkm_last_timestamp [11:35:50]File name is /storage/kkm_last_timestamp [11:35:50]Write 4 bytes [11:35:50]NVStorageSaveData done [11:35:50]ExternCall_PrintAddStr [11:35:50]wPrintStart [11:35:50]Write to MH i2c: 01 00 00 EC 30 1C [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 07 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 07 00 EC 30 00 00 00 00 00 FF 0F 31 [11:35:50]RasterBufferAndPrint [11:35:50]line Счет N : (1)99059 [11:35:50]line ИНН: 02508201610067 [11:35:50]line Контрольно-Кассовый Чек [11:35:50]line ПРОДАЖА [11:35:50]line ТРК (МРК, ГНК) : 31 [11:35:50]line Товар: 2710124130 [11:35:50]line Аи-92-К-5 [11:35:50]line 10.000 * 0.00 [11:35:50]line = 0.00 [11:35:50]line НДС 12% НСП 1% [11:35:50]line > о реализуемом товаре [11:35:50]line ИТОГО: 0.00 [11:35:50]line НСП 1% : 0.00 [11:35:50]line НДС 12% : 0.00 [11:35:50]line Наличными: 0.00 [11:35:50]line Безнал.: 0.00 [11:35:50]line Место: АЗС № 143 "Партнер Нефть" [11:35:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:35:50]line СНО: Общий режим [11:35:50]line Чек 146 26.10.2024 11:35 [11:35:50]line Смена: 536 ФФД: 1.0 [11:35:50]line ЗНМ: 0300000096 [11:35:50]line РНМ: 0000000000091693 [11:35:50]line Версия ККМ: 001 [11:35:50]line Талоны: Топливные Талоны [11:35:50]line 4195247 [11:35:50]line ФМ: 0000000000871792 [11:35:50]line ФД: 156245 [11:35:50]line ФПД: 257264669467571 [11:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113552&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156245&fm=257264669467571&tin=02508201610067®Number=0000000000091693&sum=0 [11:35:50]OFD Sender: Processing packet 156245 [packets to send 31, broken 30] [11:35:50]ProducePacketName [11:35:50]name=ofd_packets/00156245 [11:35:50]written 0, free lines is 4095 [11:35:50]OFD Sender: To server: pG, [11:35:50]CommunicateWithHost lk.salyk.kg:30040 [11:35:50]ConnectInit lk.salyk.kg [11:35:50]Connected sock=10 [11:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 96 D3 07 01 E5 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 18 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 62 02 00 35 04 06 00 E9 FB 19 3C A3 B3 B9 AA DA CE C1 D7 FF 6D [11:35:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 02 3A 47 00 1C DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 62 02 00 F4 03 04 00 8B 79 1C 67 B6 04 01 00 00 FD 93 6B E0 DD 43 F4 03 [11:35:50]CommunicateWithHost err = 0 [11:35:50]CheckOFDResponse [11:35:50]1017 (14) - 77093643461234 [11:35:50]1041 (16) - 0000000000871792 [11:35:50]1040 (4) - 156245 [11:35:50]1012 (4) - 26.10.2024 05:09 [11:35:50]1206 (1) - 0 [11:35:50]OFD Sender: Remove packet 156245 [11:35:50]ProducePacketName [11:35:50]name=ofd_packets/00156245 [11:35:50]NVStorageDeleteData [11:35:50]Write to MH i2c: 01 00 00 16 31 47 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 07 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 07 00 16 31 00 00 00 00 00 F7 0C 51 [11:35:50]RasterBufferAndPrint [11:35:50]line [11:35:50]line [11:35:50]line [11:35:50]line [11:35:50]line [11:35:50]written 0, free lines is 3332 [11:35:50]process_action close_receipt done [11:35:50]requested_data is exist [11:35:50]produce_requested_data [11:35:50]requested_item fm.sn is exist - process it [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 11 00 00 [11:35:50]Write to MH i2c: E2 08 00 1D 31 80 11 00 00 00 00 00 00 C8 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 17 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 17 00 1D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [11:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:35:50]wFMCommunicate OK [11:35:50]requested_item fd.num is exist - process it [11:35:50]SAM_PROTO_GetFieldsCounters [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 13 00 00 [11:35:50]Write to MH i2c: E2 08 00 1E 31 80 13 00 00 00 00 00 00 CB [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:51]Read from MH i2c: E2 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 62 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 62 00 1E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 55 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:35: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 55 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:51]wFMCommunicate OK [11:35:51]SAM_PROTO_GetFieldsCounters done [11:35:51]requested_item shift.num is exist - process it [11:35:51]requested_item shift.opened is exist - process it [11:35:51]req_shift_opened [11:35:51]FM_GetShiftState [11:35:51]SAM_PROTO_GetShiftState [11:35:51]wFMCommunicate request_size=4 [11:35:51]MH_SAM_APDU [11:35:51]CAPDU: 80 13 01 00 [11:35:51]Write to MH i2c: E2 08 00 1F 31 80 13 01 00 00 00 00 00 CD [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:51]Read from MH i2c: E2 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 0E 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 0E 00 1F 31 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 02 [11:35:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:35:51]wFMCommunicate OK [11:35:51]SAM_PROTO_GetShiftState done [11:35:51]FM_GetShiftState done [11:35:51]req_shift_opened done [11:35:51]requested_item shift.open_date is exist - process it [11:35:51]req_shift_open_date [11:35:51]req_shift_open_date done [11:35:51]produce_requested_data done [11:35:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156245,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:35:51]process_action_free close_receipt [11:35:51]json_value_free [11:35:51]json_value_free done [11:35:51]process_json_proto returns [11:35:51]Send response to host [11:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156245,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:35:51]free response buf [11:35:51]execute_script done [11:35:51]execute_script returns [11:35:51]free content buf [11:35:51]Sock 9.Close socket [11:35:51]Sock 9.Thread stoped [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:29]accept exits with 7 [11:36:29]New connection [11:36:29]New thread 3066613092 created [11:36:29]Thread 3066469732 joined [11:36:29]Waiting for new connection... [11:36:29] Sock 7.Parse request [11:36:29]Sock 7.Check first char [11:36:29]Sock 7.First char is OK [11:36:29]request: POST /json_proto HTTP/1.0 [11:36:29]Method: POST [11:36:29]URL: /json_proto [11:36:29]Method is POST - this is cgi request [11:36:29]url: /json_proto [11:36:29]query_string will be loaded in cgi processing [11:36:29]execute_cgi json_proto POST (null) [11:36:29]execute_cgi path=json_proto method=POST [11:36:29]POST find Content-Length [11:36:29]Host: 172.17.63.3:8080 [11:36:29]Content-Length: 676 [11:36:29]Content-Type: application/json [11:36:29] [11:36:29]POST finish read [11:36:29]Found Content-Length = 676 [11:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:29]execute_script... [11:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:29]POST & json_proto [11:36:29]process_json_proto [11:36:29]json parsed OK: [11:36:29]protocol is kg_v1.0 [11:36:29]action value=close_receipt [11:36:29]process_action close_receipt [11:36:29]cmd_close_receipt [11:36:29]MH_GetDate [11:36:29]Write to MH i2c: F0 00 00 20 31 40 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: F0 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: F0 09 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: F0 09 00 20 31 00 41 D4 1C 67 50 D1 6C 64 D2 [11:36:29]GetLastDocTimeStamp 1729942552 [11:36:29]current date 1729942593 [11:36:29]FM_GetShiftState [11:36:29]SAM_PROTO_GetShiftState [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 01 00 [11:36:29]Write to MH i2c: E2 08 00 21 31 80 13 01 00 00 00 00 00 CF [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 21 31 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 04 [11:36:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetShiftState done [11:36:29]FM_GetShiftState done [11:36:29]opened in 1729902702 [11:36:29]opened+sec_in_day 1729989102 [11:36:29]quantity*price = 50041 [11:36:29]sum+1 = 50042 [11:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 147 26.10.2024 11:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156246 ФПД: 74025013707502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113634&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156246&fm=74025013707502&tin=02508201610067®Number=0000000000091693&sum=50000 [11:36:31]StoreToDocumentArchive [11:36:31]shift 536 fd 156246 [11:36:31]save to /storage/0536/doc_00156246 [11:36:31]save last doc name /storage/0536/doc_00156246 to /storage/kkm_last_doc_name [11:36:31]save OK [11:36:31]Clear old archive folders... [11:36:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:31]tlvbuf is B6F02200 [11:36:31]SAM_PROTO_ClearQueue [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 09 00 00 [11:36:31]Write to MH i2c: E2 08 00 2E 31 80 09 00 00 00 00 00 00 D1 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 2E 31 00 90 00 D3 [11:36:31]RAPDU: 90 00 [11:36:31]wFMCommunicate OK [11:36:31]SAM_PROTO_ClearQueue done [11:36:31]KKMCreateOFDPacket [11:36:31]OFDProtocolAddRootSTLVToBuf [11:36:31]FM_MakeSignedData [11:36:31]FM_MakeSignedData [11:36:31]SAM_PROTO_SignData [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 0D 01 02 [11:36:31]Write to MH i2c: E2 08 00 2F 31 80 0D 01 02 00 00 00 00 D9 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 2F 31 00 90 00 D4 [11:36:31]RAPDU: 90 00 [11:36:31]wFMCommunicate OK [11:36:31]wFMCommunicate request_size=255 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 42 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 62 02 00 35 04 06 00 43 [11:36:31]Write to MH i2c: E2 02 01 30 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 42 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 62 02 00 35 04 06 00 43 00 00 B0 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]OFD Sender: No OFD packet to send [11:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 30 31 00 90 00 D5 [11:36:31]RAPDU: 90 00 [11:36:31]wFMCommunicate OK [11:36:31]wFMCommunicate request_size=10 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 0D 02 02 05 53 4A A5 82 EE [11:36:31]Write to MH i2c: E2 0D 00 31 31 80 0D 02 02 05 00 53 4A A5 82 EE 00 00 98 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 31 31 00 90 00 D6 [11:36:31]RAPDU: 90 00 [11:36:31]wFMCommunicate OK [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 0D 03 02 [11:36:31]Write to MH i2c: E2 08 00 32 31 80 0D 03 02 00 00 00 00 DE [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 0B 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 0B 00 32 31 00 44 57 56 A6 5E D0 42 29 90 00 0F [11:36:31]RAPDU: 44 57 56 A6 5E D0 42 29 90 00 [11:36:31]wFMCommunicate OK [11:36:31]SAM_PROTO_SignData done [11:36:31]FM_MakeSignedData done [11:36:31]CreateOFDProtocolMessage [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 11 00 00 [11:36:31]Write to MH i2c: E2 08 00 33 31 80 11 00 00 00 00 00 00 DE [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 33 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [11:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:36:31]wFMCommunicate OK [11:36:31]CreateOFDProtocolMessage done [11:36:31]OFDSenderStorePacket 156246 [11:36:31]StoreOFDPacket docnum=156246 [11:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 49 07 01 20 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 42 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 62 02 00 35 04 06 00 43 53 4A A5 82 EE 44 57 56 A6 5E D0 42 29 [11:36:31]CheckFolder [11:36:31]dirname=/storage/ofd_packets [11:36:31]CheckFolder done [11:36:31]ProducePacketName [11:36:31]name=ofd_packets/00156246 [11:36:31]NVStorageSaveData ofd_packets/00156246 [11:36:31]File name is /storage/ofd_packets/00156246 [11:36:31]Write 301 bytes [11:36:31]NVStorageSaveData done [11:36:31]OFDSenderStorePacket done [11:36:31]KKMCreateOFDPacket done [11:36:31]NVStorageSaveData kkm_last_timestamp [11:36:31]File name is /storage/kkm_last_timestamp [11:36:31]Write 4 bytes [11:36:31]NVStorageSaveData done [11:36:31]ExternCall_PrintAddStr [11:36:31]wPrintStart [11:36:31]Write to MH i2c: 01 00 00 34 31 65 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 07 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 07 00 34 31 00 00 00 00 00 FF 0F 7A [11:36:31]RasterBufferAndPrint [11:36:31]line Счет N : (1)99061 [11:36:31]line ИНН: 02508201610067 [11:36:31]line Контрольно-Кассовый Чек [11:36:31]line ПРОДАЖА [11:36:31]line ТРК (МРК, ГНК) : 21 [11:36:31]line Товар: 2710124130 [11:36:31]line Аи-92-К-5 [11:36:31]line 7.480 * 66.90 [11:36:31]line = 500.41 [11:36:31]line НДС 12% НСП 1% [11:36:31]line > о реализуемом товаре [11:36:31]line ОКРУГЛЕНИЕ: -0.41 [11:36:31]line ИТОГО: 500.00 [11:36:31]line Внесено: 500.00 [11:36:31]line СДАЧА: 0.00 [11:36:31]line НСП 1% : 4.43 [11:36:31]line НДС 12% : 53.14 [11:36:31]line Наличными: 500.00 [11:36:31]line Безнал.: 0.00 [11:36:31]line Место: АЗС № 143 "Партнер Нефть" [11:36:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:36:31]line СНО: Общий режим [11:36:31]line Чек 147 26.10.2024 11:36 [11:36:31]line Смена: 536 ФФД: 1.0 [11:36:31]line ЗНМ: 0300000096 [11:36:31]line РНМ: 0000000000091693 [11:36:31]line Версия ККМ: 001 [11:36:31]line ФМ: 0000000000871792 [11:36:31]line ФД: 156246 [11:36:31]line ФПД: 74025013707502 [11:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113634&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156246&fm=74025013707502&tin=02508201610067®Number=0000000000091693&sum=50000 [11:36:31]OFD Sender: Processing packet 156246 [packets to send 31, broken 30] [11:36:31]ProducePacketName [11:36:31]name=ofd_packets/00156246 [11:36:31]OFD Sender: To server: pG, [11:36:31]CommunicateWithHost lk.salyk.kg:30040 [11:36:31]ConnectInit lk.salyk.kg [11:36:31]written 0, free lines is 4095 [11:36:32]Connected sock=10 [11:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 49 07 01 20 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 42 D4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 62 02 00 35 04 06 00 43 53 4A A5 82 EE 44 57 56 A6 5E D0 42 29 [11:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5C 19 47 00 70 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 31 37 39 32 10 04 04 00 56 62 02 00 F4 03 04 00 B4 79 1C 67 B6 04 01 00 00 D7 B7 3D BA 44 79 BB 7A [11:36:32]CommunicateWithHost err = 0 [11:36:32]CheckOFDResponse [11:36:32]1017 (14) - 77093643461234 [11:36:32]1041 (16) - 0000000000871792 [11:36:32]1040 (4) - 156246 [11:36:32]1012 (4) - 26.10.2024 05:10 [11:36:32]1206 (1) - 0 [11:36:32]OFD Sender: Remove packet 156246 [11:36:32]ProducePacketName [11:36:32]name=ofd_packets/00156246 [11:36:32]NVStorageDeleteData [11:36:32]Write to MH i2c: 01 00 00 5F 31 90 [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: 01 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: 01 07 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: 01 07 00 5F 31 00 00 00 00 00 F6 0C 99 [11:36:32]RasterBufferAndPrint [11:36:32]line [11:36:32]line [11:36:32]line [11:36:32]line [11:36:32]line [11:36:32]written 0, free lines is 3328 [11:36:32]process_action close_receipt done [11:36:32]requested_data is exist [11:36:32]produce_requested_data [11:36:32]requested_item fm.sn is exist - process it [11:36:32]wFMCommunicate request_size=4 [11:36:32]MH_SAM_APDU [11:36:32]CAPDU: 80 11 00 00 [11:36:32]Write to MH i2c: E2 08 00 66 31 80 11 00 00 00 00 00 00 11 [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 17 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 17 00 66 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [11:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:36:32]wFMCommunicate OK [11:36:32]requested_item fd.num is exist - process it [11:36:32]SAM_PROTO_GetFieldsCounters [11:36:32]wFMCommunicate request_size=4 [11:36:32]MH_SAM_APDU [11:36:32]CAPDU: 80 13 00 00 [11:36:32]Write to MH i2c: E2 08 00 67 31 80 13 00 00 00 00 00 00 14 [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 62 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 62 00 67 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 56 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:36: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 56 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:32]wFMCommunicate OK [11:36:32]SAM_PROTO_GetFieldsCounters done [11:36:32]requested_item shift.num is exist - process it [11:36:32]requested_item shift.opened is exist - process it [11:36:32]req_shift_opened [11:36:32]FM_GetShiftState [11:36:32]SAM_PROTO_GetShiftState [11:36:32]wFMCommunicate request_size=4 [11:36:32]MH_SAM_APDU [11:36:32]CAPDU: 80 13 01 00 [11:36:32]Write to MH i2c: E2 08 00 68 31 80 13 01 00 00 00 00 00 16 [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 0E 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 0E 00 68 31 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4B [11:36:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:36:32]wFMCommunicate OK [11:36:32]SAM_PROTO_GetShiftState done [11:36:32]FM_GetShiftState done [11:36:32]req_shift_opened done [11:36:32]requested_item shift.open_date is exist - process it [11:36:32]req_shift_open_date [11:36:32]req_shift_open_date done [11:36:32]produce_requested_data done [11:36:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156246,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:36:32]process_action_free close_receipt [11:36:32]json_value_free [11:36:32]json_value_free done [11:36:32]process_json_proto returns [11:36:32]Send response to host [11:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156246,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:36:32]free response buf [11:36:32]execute_script done [11:36:32]execute_script returns [11:36:32]free content buf [11:36:32]Sock 7.Close socket [11:36:32]Sock 7.Thread stoped [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:24]accept exits with 9 [11:41:24]New connection [11:41:24]New thread 3066469732 created [11:41:24]Thread 3066613092 joined [11:41:24]Waiting for new connection... [11:41:24] Sock 9.Parse request [11:41:24]Sock 9.Check first char [11:41:24]Sock 9.First char is OK [11:41:24]request: POST /json_proto HTTP/1.0 [11:41:24]Method: POST [11:41:24]URL: /json_proto [11:41:24]Method is POST - this is cgi request [11:41:24]url: /json_proto [11:41:24]query_string will be loaded in cgi processing [11:41:24]execute_cgi json_proto POST (null) [11:41:24]execute_cgi path=json_proto method=POST [11:41:24]POST find Content-Length [11:41:24]Host: 172.17.63.3:8080 [11:41:24]Content-Length: 765 [11:41:24]Content-Type: application/json [11:41:24] [11:41:24]POST finish read [11:41:24]Found Content-Length = 765 [11:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:24]execute_script... [11:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:24]POST & json_proto [11:41:24]process_json_proto [11:41:24]json parsed OK: [11:41:24]protocol is kg_v1.0 [11:41:24]action value=close_receipt [11:41:24]process_action close_receipt [11:41:24]cmd_close_receipt [11:41:24]MH_GetDate [11:41:24]Write to MH i2c: F0 00 00 69 31 89 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: F0 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: F0 09 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: F0 09 00 69 31 00 68 D5 1C 67 50 D1 6C 64 43 [11:41:24]GetLastDocTimeStamp 1729942594 [11:41:24]current date 1729942888 [11:41:24]FM_GetShiftState [11:41:24]SAM_PROTO_GetShiftState [11:41:24]wFMCommunicate request_size=4 [11:41:24]MH_SAM_APDU [11:41:24]CAPDU: 80 13 01 00 [11:41:24]Write to MH i2c: E2 08 00 6A 31 80 13 01 00 00 00 00 00 18 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:24]Read from MH i2c: E2 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 0E 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 0E 00 6A 31 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4D [11:41:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:41:24]wFMCommunicate OK [11:41:24]SAM_PROTO_GetShiftState done [11:41:24]FM_GetShiftState done [11:41:24]opened in 1729902702 [11:41:24]opened+sec_in_day 1729989102 [11:41:24]quantity*price = 50041 [11:41:24]sum+1 = 50042 [11:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 148 26.10.2024 11:41 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156247 ФПД: 119710560624401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114128&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156247&fm=119710560624401&tin=02508201610067®Number=0000000000091693&sum=50041 [11:41:25]StoreToDocumentArchive [11:41:25]shift 536 fd 156247 [11:41:25]save to /storage/0536/doc_00156247 [11:41:25]save last doc name /storage/0536/doc_00156247 to /storage/kkm_last_doc_name [11:41:25]save OK [11:41:25]Clear old archive folders... [11:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:25]tlvbuf is 00D63E40 [11:41:25]SAM_PROTO_ClearQueue [11:41:25]wFMCommunicate request_size=4 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 09 00 00 [11:41:25]Write to MH i2c: E2 08 00 77 31 80 09 00 00 00 00 00 00 1A [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 77 31 00 90 00 1C [11:41:25]RAPDU: 90 00 [11:41:25]wFMCommunicate OK [11:41:25]SAM_PROTO_ClearQueue done [11:41:25]KKMCreateOFDPacket [11:41:25]OFDProtocolAddRootSTLVToBuf [11:41:25]FM_MakeSignedData [11:41:25]FM_MakeSignedData [11:41:25]SAM_PROTO_SignData [11:41:25]wFMCommunicate request_size=4 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 0D 01 02 [11:41:25]Write to MH i2c: E2 08 00 78 31 80 0D 01 02 00 00 00 00 22 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 78 31 00 90 00 1D [11:41:25]RAPDU: 90 00 [11:41:25]wFMCommunicate OK [11:41:25]wFMCommunicate request_size=255 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 68 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 62 02 00 35 04 06 00 6C [11:41:25]Write to MH i2c: E2 02 01 79 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 68 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 62 02 00 35 04 06 00 6C 00 00 9D [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 03 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 03 00 79 31 00 90 00 1E [11:41:26]RAPDU: 90 00 [11:41:26]wFMCommunicate OK [11:41:26]wFMCommunicate request_size=10 [11:41:26]MH_SAM_APDU [11:41:26]CAPDU: 80 0D 02 02 05 E0 49 71 1F 11 [11:41:26]Write to MH i2c: E2 0D 00 7A 31 80 0D 02 02 05 00 E0 49 71 1F 11 00 00 F9 [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 03 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 03 00 7A 31 00 90 00 1F [11:41:26]RAPDU: 90 00 [11:41:26]wFMCommunicate OK [11:41:26]wFMCommunicate request_size=4 [11:41:26]MH_SAM_APDU [11:41:26]CAPDU: 80 0D 03 02 [11:41:26]Write to MH i2c: E2 08 00 7B 31 80 0D 03 02 00 00 00 00 27 [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 0B 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 0B 00 7B 31 00 78 F8 95 08 66 77 FD DE 90 00 ED [11:41:26]RAPDU: 78 F8 95 08 66 77 FD DE 90 00 [11:41:26]wFMCommunicate OK [11:41:26]SAM_PROTO_SignData done [11:41:26]FM_MakeSignedData done [11:41:26]CreateOFDProtocolMessage [11:41:26]wFMCommunicate request_size=4 [11:41:26]MH_SAM_APDU [11:41:26]CAPDU: 80 11 00 00 [11:41:26]Write to MH i2c: E2 08 00 7C 31 80 11 00 00 00 00 00 00 27 [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 17 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 17 00 7C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [11:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:41:26]wFMCommunicate OK [11:41:26]CreateOFDProtocolMessage done [11:41:26]OFDSenderStorePacket 156247 [11:41:26]StoreOFDPacket docnum=156247 [11:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F C7 07 01 F7 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 68 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 62 02 00 35 04 06 00 6C E0 49 71 1F 11 78 F8 95 08 66 77 FD DE [11:41:26]CheckFolder [11:41:26]dirname=/storage/ofd_packets [11:41:26]CheckFolder done [11:41:26]ProducePacketName [11:41:26]name=ofd_packets/00156247 [11:41:26]NVStorageSaveData ofd_packets/00156247 [11:41:26]File name is /storage/ofd_packets/00156247 [11:41:26]Write 301 bytes [11:41:26]NVStorageSaveData done [11:41:26]OFDSenderStorePacket done [11:41:26]KKMCreateOFDPacket done [11:41:26]NVStorageSaveData kkm_last_timestamp [11:41:26]File name is /storage/kkm_last_timestamp [11:41:26]Write 4 bytes [11:41:26]NVStorageSaveData done [11:41:26]ExternCall_PrintAddStr [11:41:26]wPrintStart [11:41:26]Write to MH i2c: 01 00 00 7D 31 AE [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: 01 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: 01 07 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: 01 07 00 7D 31 00 00 00 00 00 FF 0F C3 [11:41:26]RasterBufferAndPrint [11:41:26]line Счет N : (1)99062 [11:41:26]line ИНН: 02508201610067 [11:41:26]line Контрольно-Кассовый Чек [11:41:26]line ПРОДАЖА [11:41:26]line ТРК (МРК, ГНК) : 11 [11:41:26]line Товар: 2710124130 [11:41:26]line Аи-92-К-5 [11:41:26]line 7.480 * 66.90 [11:41:26]line = 500.41 [11:41:26]line НДС 12% НСП 1% [11:41:26]line > о реализуемом товаре [11:41:26]line ИТОГО: 500.41 [11:41:26]line НСП 1% : 4.43 [11:41:26]line НДС 12% : 53.14 [11:41:26]line Наличными: 0.00 [11:41:26]line Безнал.: 500.41 [11:41:26]line Место: АЗС № 143 "Партнер Нефть" [11:41:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:41:26]line СНО: Общий режим [11:41:26]line Чек 148 26.10.2024 11:41 [11:41:26]line Смена: 536 ФФД: 1.0 [11:41:26]line ЗНМ: 0300000096 [11:41:26]line РНМ: 0000000000091693 [11:41:26]line Версия ККМ: 001 [11:41:26]line Платежная система: Mbank [11:41:26]line ФМ: 0000000000871792 [11:41:26]line ФД: 156247 [11:41:26]line ФПД: 119710560624401 [11:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114128&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156247&fm=119710560624401&tin=02508201610067®Number=0000000000091693&sum=50041 [11:41:26]OFD Sender: Processing packet 156247 [packets to send 31, broken 30] [11:41:26]ProducePacketName [11:41:26]name=ofd_packets/00156247 [11:41:26]OFD Sender: To server: pG, [11:41:26]CommunicateWithHost lk.salyk.kg:30040 [11:41:26]ConnectInit lk.salyk.kg [11:41:26]written 0, free lines is 4095 [11:41:26]Connected sock=10 [11:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F C7 07 01 F7 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 68 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 62 02 00 35 04 06 00 6C E0 49 71 1F 11 78 F8 95 08 66 77 FD DE [11:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B2 A8 47 00 EB 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 31 37 39 32 10 04 04 00 57 62 02 00 F4 03 04 00 DB 7A 1C 67 B6 04 01 00 00 42 E8 9F AD BC 2D E0 FE [11:41:27]CommunicateWithHost err = 0 [11:41:27]CheckOFDResponse [11:41:27]1017 (14) - 77093643461234 [11:41:27]1041 (16) - 0000000000871792 [11:41:27]1040 (4) - 156247 [11:41:27]1012 (4) - 26.10.2024 05:15 [11:41:27]1206 (1) - 0 [11:41:27]OFD Sender: Remove packet 156247 [11:41:27]ProducePacketName [11:41:27]name=ofd_packets/00156247 [11:41:27]NVStorageDeleteData [11:41:27]Write to MH i2c: 01 00 00 A6 31 D7 [11:41:27]Write i2c OK [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: 01 [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: 01 07 00 [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: 01 07 00 A6 31 00 00 00 00 00 0B 0D F6 [11:41:27]RasterBufferAndPrint [11:41:27]line [11:41:27]line [11:41:27]line [11:41:27]line [11:41:27]line [11:41:27]written 0, free lines is 3345 [11:41:27]process_action close_receipt done [11:41:27]requested_data is exist [11:41:27]produce_requested_data [11:41:27]requested_item fm.sn is exist - process it [11:41:27]wFMCommunicate request_size=4 [11:41:27]MH_SAM_APDU [11:41:27]CAPDU: 80 11 00 00 [11:41:27]Write to MH i2c: E2 08 00 AD 31 80 11 00 00 00 00 00 00 58 [11:41:27]Write i2c OK [11:41:27]MH_I2C_Read... [11:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:27]Read from MH i2c: E2 [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: E2 17 00 [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: E2 17 00 AD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [11:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:41:27]wFMCommunicate OK [11:41:27]requested_item fd.num is exist - process it [11:41:27]SAM_PROTO_GetFieldsCounters [11:41:27]wFMCommunicate request_size=4 [11:41:27]MH_SAM_APDU [11:41:27]CAPDU: 80 13 00 00 [11:41:27]Write to MH i2c: E2 08 00 AE 31 80 13 00 00 00 00 00 00 5B [11:41:27]Write i2c OK [11:41:27]MH_I2C_Read... [11:41:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:27]Read from MH i2c: E2 [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: E2 62 00 [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: E2 62 00 AE 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 57 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:41: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 57 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:27]wFMCommunicate OK [11:41:27]SAM_PROTO_GetFieldsCounters done [11:41:27]requested_item shift.num is exist - process it [11:41:27]requested_item shift.opened is exist - process it [11:41:27]req_shift_opened [11:41:27]FM_GetShiftState [11:41:27]SAM_PROTO_GetShiftState [11:41:27]wFMCommunicate request_size=4 [11:41:27]MH_SAM_APDU [11:41:27]CAPDU: 80 13 01 00 [11:41:27]Write to MH i2c: E2 08 00 AF 31 80 13 01 00 00 00 00 00 5D [11:41:27]Write i2c OK [11:41:27]MH_I2C_Read... [11:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:27]Read from MH i2c: E2 [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: E2 0E 00 [11:41:27]MH_I2C_Read... [11:41:27]Read from MH i2c: E2 0E 00 AF 31 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 92 [11:41:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:41:27]wFMCommunicate OK [11:41:27]SAM_PROTO_GetShiftState done [11:41:27]FM_GetShiftState done [11:41:27]req_shift_opened done [11:41:27]requested_item shift.open_date is exist - process it [11:41:27]req_shift_open_date [11:41:27]req_shift_open_date done [11:41:27]produce_requested_data done [11:41:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156247,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:41:27]process_action_free close_receipt [11:41:27]json_value_free [11:41:27]json_value_free done [11:41:27]process_json_proto returns [11:41:27]Send response to host [11:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156247,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:41:27]free response buf [11:41:27]execute_script done [11:41:27]execute_script returns [11:41:27]free content buf [11:41:27]Sock 9.Close socket [11:41:27]Sock 9.Thread stoped [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]accept exits with 7 [11:42:27]New connection [11:42:27]New thread 3066613092 created [11:42:27]Thread 3066469732 joined [11:42:27]Waiting for new connection... [11:42:27] Sock 7.Parse request [11:42:27]Sock 7.Check first char [11:42:27]Sock 7.First char is OK [11:42:27]request: POST /json_proto HTTP/1.0 [11:42:27]Method: POST [11:42:27]URL: /json_proto [11:42:27]Method is POST - this is cgi request [11:42:27]url: /json_proto [11:42:27]query_string will be loaded in cgi processing [11:42:27]execute_cgi json_proto POST (null) [11:42:27]execute_cgi path=json_proto method=POST [11:42:27]POST find Content-Length [11:42:27]Host: 172.17.63.3:8080 [11:42:27]Content-Length: 768 [11:42:27]Content-Type: application/json [11:42:27] [11:42:27]POST finish read [11:42:27]Found Content-Length = 768 [11:42:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:27]execute_script... [11:42: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)99063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:27]POST & json_proto [11:42:27]process_json_proto [11:42:27]json parsed OK: [11:42:27]protocol is kg_v1.0 [11:42:27]action value=close_receipt [11:42:27]process_action close_receipt [11:42:27]cmd_close_receipt [11:42:27]MH_GetDate [11:42:27]Write to MH i2c: F0 00 00 B0 31 D0 [11:42:27]Write i2c OK [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: F0 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: F0 09 00 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: F0 09 00 B0 31 00 A7 D5 1C 67 50 D1 6C 64 C9 [11:42:27]GetLastDocTimeStamp 1729942888 [11:42:27]current date 1729942951 [11:42:27]FM_GetShiftState [11:42:27]SAM_PROTO_GetShiftState [11:42:27]wFMCommunicate request_size=4 [11:42:27]MH_SAM_APDU [11:42:27]CAPDU: 80 13 01 00 [11:42:27]Write to MH i2c: E2 08 00 B1 31 80 13 01 00 00 00 00 00 5F [11:42:27]Write i2c OK [11:42:27]MH_I2C_Read... [11:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:27]Read from MH i2c: E2 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: E2 0E 00 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: E2 0E 00 B1 31 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 94 [11:42:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:42:27]wFMCommunicate OK [11:42:27]SAM_PROTO_GetShiftState done [11:42:27]FM_GetShiftState done [11:42:27]opened in 1729902702 [11:42:27]opened+sec_in_day 1729989102 [11:42:27]quantity*price = 100015 [11:42:27]sum+1 = 100017 [11:42:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 149 26.10.2024 11:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156248 ФПД: 103385556901878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156248&fm=103385556901878&tin=02508201610067®Number=0000000000091693&sum=100016 [11:42:28]StoreToDocumentArchive [11:42:28]shift 536 fd 156248 [11:42:28]save to /storage/0536/doc_00156248 [11:42:28]save last doc name /storage/0536/doc_00156248 to /storage/kkm_last_doc_name [11:42:28]save OK [11:42:28]Clear old archive folders... [11:42:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:28]tlvbuf is B6F021B0 [11:42:28]SAM_PROTO_ClearQueue [11:42:28]wFMCommunicate request_size=4 [11:42:28]MH_SAM_APDU [11:42:28]CAPDU: 80 09 00 00 [11:42:28]Write to MH i2c: E2 08 00 BE 31 80 09 00 00 00 00 00 00 61 [11:42:28]Write i2c OK [11:42:28]MH_I2C_Read... [11:42:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:28]Read from MH i2c: E2 [11:42:28]MH_I2C_Read... [11:42:28]Read from MH i2c: E2 03 00 [11:42:28]MH_I2C_Read... [11:42:28]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [11:42:28]RAPDU: 90 00 [11:42:28]wFMCommunicate OK [11:42:28]SAM_PROTO_ClearQueue done [11:42:28]KKMCreateOFDPacket [11:42:28]OFDProtocolAddRootSTLVToBuf [11:42:28]FM_MakeSignedData [11:42:28]FM_MakeSignedData [11:42:28]SAM_PROTO_SignData [11:42:28]wFMCommunicate request_size=4 [11:42:28]MH_SAM_APDU [11:42:28]CAPDU: 80 0D 01 02 [11:42:28]Write to MH i2c: E2 08 00 BF 31 80 0D 01 02 00 00 00 00 69 [11:42:28]Write i2c OK [11:42:28]MH_I2C_Read... [11:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:28]Read from MH i2c: E2 [11:42:28]MH_I2C_Read... [11:42:28]Read from MH i2c: E2 03 00 [11:42:28]MH_I2C_Read... [11:42:28]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [11:42:28]RAPDU: 90 00 [11:42:28]wFMCommunicate OK [11:42:28]wFMCommunicate request_size=255 [11:42:28]MH_SAM_APDU [11:42: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A7 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 62 02 00 35 04 06 00 5E [11:42:28]Write to MH i2c: E2 02 01 C0 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A7 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 62 02 00 35 04 06 00 5E 00 00 DF [11:42:28]Write i2c OK [11:42:28]MH_I2C_Read... [11:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:29]Read from MH i2c: E2 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 03 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 03 00 C0 31 00 90 00 65 [11:42:29]RAPDU: 90 00 [11:42:29]wFMCommunicate OK [11:42:29]wFMCommunicate request_size=10 [11:42:29]MH_SAM_APDU [11:42:29]CAPDU: 80 0D 02 02 05 07 53 64 DF F6 [11:42:29]Write to MH i2c: E2 0D 00 C1 31 80 0D 02 02 05 00 07 53 64 DF F6 00 00 09 [11:42:29]Write i2c OK [11:42:29]MH_I2C_Read... [11:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:29]Read from MH i2c: E2 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 03 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 03 00 C1 31 00 90 00 66 [11:42:29]RAPDU: 90 00 [11:42:29]wFMCommunicate OK [11:42:29]wFMCommunicate request_size=4 [11:42:29]MH_SAM_APDU [11:42:29]CAPDU: 80 0D 03 02 [11:42:29]Write to MH i2c: E2 08 00 C2 31 80 0D 03 02 00 00 00 00 6E [11:42:29]Write i2c OK [11:42:29]MH_I2C_Read... [11:42:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:29]Read from MH i2c: E2 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 0B 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 0B 00 C2 31 00 F1 B0 CE 5C CA 18 B2 DC 90 00 AA [11:42:29]RAPDU: F1 B0 CE 5C CA 18 B2 DC 90 00 [11:42:29]wFMCommunicate OK [11:42:29]SAM_PROTO_SignData done [11:42:29]FM_MakeSignedData done [11:42:29]CreateOFDProtocolMessage [11:42:29]wFMCommunicate request_size=4 [11:42:29]MH_SAM_APDU [11:42:29]CAPDU: 80 11 00 00 [11:42:29]Write to MH i2c: E2 08 00 C3 31 80 11 00 00 00 00 00 00 6E [11:42:29]Write i2c OK [11:42:29]MH_I2C_Read... [11:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:29]Read from MH i2c: E2 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 17 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 17 00 C3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C3 [11:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:42:29]wFMCommunicate OK [11:42:29]CreateOFDProtocolMessage done [11:42:29]OFDSenderStorePacket 156248 [11:42:29]StoreOFDPacket docnum=156248 [11:42:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 32 F0 07 01 15 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A7 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 62 02 00 35 04 06 00 5E 07 53 64 DF F6 F1 B0 CE 5C CA 18 B2 DC [11:42:29]CheckFolder [11:42:29]dirname=/storage/ofd_packets [11:42:29]CheckFolder done [11:42:29]ProducePacketName [11:42:29]name=ofd_packets/00156248 [11:42:29]NVStorageSaveData ofd_packets/00156248 [11:42:29]File name is /storage/ofd_packets/00156248 [11:42:29]Write 301 bytes [11:42:29]NVStorageSaveData done [11:42:29]OFDSenderStorePacket done [11:42:29]KKMCreateOFDPacket done [11:42:29]NVStorageSaveData kkm_last_timestamp [11:42:29]File name is /storage/kkm_last_timestamp [11:42:29]Write 4 bytes [11:42:29]NVStorageSaveData done [11:42:29]ExternCall_PrintAddStr [11:42:29]wPrintStart [11:42:29]Write to MH i2c: 01 00 00 C4 31 F5 [11:42:29]Write i2c OK [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: 01 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: 01 07 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: 01 07 00 C4 31 00 00 00 00 00 FF 0F 0A [11:42:29]RasterBufferAndPrint [11:42:29]line Счет N : (1)99063 [11:42:29]line ИНН: 02508201610067 [11:42:29]line Контрольно-Кассовый Чек [11:42:29]line ПРОДАЖА [11:42:29]line ТРК (МРК, ГНК) : 21 [11:42:29]line Товар: 2710124130 [11:42:29]line Аи-92-К-5 [11:42:29]line 14.950 * 66.90 [11:42:29]line = 1000.16 [11:42:29]line НДС 12% НСП 1% [11:42:29]line > о реализуемом товаре [11:42:29]line ИТОГО: 1000.16 [11:42:29]line НСП 1% : 8.85 [11:42:29]line НДС 12% : 106.21 [11:42:29]line Наличными: 0.00 [11:42:29]line Безнал.: 1000.16 [11:42:29]line Место: АЗС № 143 "Партнер Нефть" [11:42:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:42:29]line СНО: Общий режим [11:42:29]line Чек 149 26.10.2024 11:42 [11:42:29]line Смена: 536 ФФД: 1.0 [11:42:29]line ЗНМ: 0300000096 [11:42:29]line РНМ: 0000000000091693 [11:42:29]line Версия ККМ: 001 [11:42:29]line Платежная система: Mbank [11:42:29]line ФМ: 0000000000871792 [11:42:29]line ФД: 156248 [11:42:29]line ФПД: 103385556901878 [11:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156248&fm=103385556901878&tin=02508201610067®Number=0000000000091693&sum=100016 [11:42:29]OFD Sender: Processing packet 156248 [packets to send 31, broken 30] [11:42:29]ProducePacketName [11:42:29]name=ofd_packets/00156248 [11:42:29]OFD Sender: To server: pG, [11:42:29]CommunicateWithHost lk.salyk.kg:30040 [11:42:29]ConnectInit lk.salyk.kg [11:42:29]written 0, free lines is 4095 [11:42:29]Connected sock=11 [11:42:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 32 F0 07 01 15 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A7 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 62 02 00 35 04 06 00 5E 07 53 64 DF F6 F1 B0 CE 5C CA 18 B2 DC [11:42:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 31 9A 47 00 8E F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 62 02 00 F4 03 04 00 1A 7B 1C 67 B6 04 01 00 00 C6 F1 BE 16 80 7F 82 79 [11:42:29]CommunicateWithHost err = 0 [11:42:29]CheckOFDResponse [11:42:29]1017 (14) - 77093643461234 [11:42:29]1041 (16) - 0000000000871792 [11:42:29]1040 (4) - 156248 [11:42:29]1012 (4) - 26.10.2024 05:16 [11:42:29]1206 (1) - 0 [11:42:29]OFD Sender: Remove packet 156248 [11:42:29]ProducePacketName [11:42:29]name=ofd_packets/00156248 [11:42:29]NVStorageDeleteData [11:42:29]Write to MH i2c: 01 00 00 ED 31 1E [11:42:29]Write i2c OK [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: 01 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: 01 07 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: 01 07 00 ED 31 00 00 00 00 00 15 0D 47 [11:42:29]RasterBufferAndPrint [11:42:29]line [11:42:29]line [11:42:29]line [11:42:29]line [11:42:29]line [11:42:29]written 0, free lines is 3358 [11:42:29]process_action close_receipt done [11:42:29]requested_data is exist [11:42:29]produce_requested_data [11:42:29]requested_item fm.sn is exist - process it [11:42:29]wFMCommunicate request_size=4 [11:42:29]MH_SAM_APDU [11:42:29]CAPDU: 80 11 00 00 [11:42:29]Write to MH i2c: E2 08 00 F4 31 80 11 00 00 00 00 00 00 9F [11:42:29]Write i2c OK [11:42:29]MH_I2C_Read... [11:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:29]Read from MH i2c: E2 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 17 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 17 00 F4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [11:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:42:29]wFMCommunicate OK [11:42:29]requested_item fd.num is exist - process it [11:42:29]SAM_PROTO_GetFieldsCounters [11:42:29]wFMCommunicate request_size=4 [11:42:29]MH_SAM_APDU [11:42:29]CAPDU: 80 13 00 00 [11:42:29]Write to MH i2c: E2 08 00 F5 31 80 13 00 00 00 00 00 00 A2 [11:42:29]Write i2c OK [11:42:29]MH_I2C_Read... [11:42:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:29]Read from MH i2c: E2 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 62 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 62 00 F5 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 58 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [11:42: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 58 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:29]wFMCommunicate OK [11:42:29]SAM_PROTO_GetFieldsCounters done [11:42:29]requested_item shift.num is exist - process it [11:42:29]requested_item shift.opened is exist - process it [11:42:29]req_shift_opened [11:42:29]FM_GetShiftState [11:42:29]SAM_PROTO_GetShiftState [11:42:29]wFMCommunicate request_size=4 [11:42:29]MH_SAM_APDU [11:42:29]CAPDU: 80 13 01 00 [11:42:29]Write to MH i2c: E2 08 00 F6 31 80 13 01 00 00 00 00 00 A4 [11:42:29]Write i2c OK [11:42:29]MH_I2C_Read... [11:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:29]Read from MH i2c: E2 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 0E 00 [11:42:29]MH_I2C_Read... [11:42:29]Read from MH i2c: E2 0E 00 F6 31 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D9 [11:42:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:42:29]wFMCommunicate OK [11:42:29]SAM_PROTO_GetShiftState done [11:42:29]FM_GetShiftState done [11:42:29]req_shift_opened done [11:42:29]requested_item shift.open_date is exist - process it [11:42:29]req_shift_open_date [11:42:29]req_shift_open_date done [11:42:29]produce_requested_data done [11:42:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156248,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:42:29]process_action_free close_receipt [11:42:29]json_value_free [11:42:29]json_value_free done [11:42:29]process_json_proto returns [11:42:29]Send response to host [11:42:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156248,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:42:29]free response buf [11:42:29]execute_script done [11:42:29]execute_script returns [11:42:29]free content buf [11:42:29]Sock 7.Close socket [11:42:29]Sock 7.Thread stoped [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:26]accept exits with 9 [11:43:26]New connection [11:43:26]New thread 3066469732 created [11:43:26]Thread 3066613092 joined [11:43:26]Waiting for new connection... [11:43:26] Sock 9.Parse request [11:43:26]Sock 9.Check first char [11:43:26]Sock 9.First char is OK [11:43:26]request: POST /json_proto HTTP/1.0 [11:43:26]Method: POST [11:43:26]URL: /json_proto [11:43:26]Method is POST - this is cgi request [11:43:26]url: /json_proto [11:43:26]query_string will be loaded in cgi processing [11:43:26]execute_cgi json_proto POST (null) [11:43:26]execute_cgi path=json_proto method=POST [11:43:26]POST find Content-Length [11:43:26]Host: 172.17.63.3:8080 [11:43:26]Content-Length: 765 [11:43:26]Content-Type: application/json [11:43:26] [11:43:26]POST finish read [11:43:26]Found Content-Length = 765 [11:43:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:26]execute_script... [11:43: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)99064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:26]POST & json_proto [11:43:26]process_json_proto [11:43:26]json parsed OK: [11:43:26]protocol is kg_v1.0 [11:43:26]action value=close_receipt [11:43:26]process_action close_receipt [11:43:26]cmd_close_receipt [11:43:26]MH_GetDate [11:43:26]Write to MH i2c: F0 00 00 F7 31 17 [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: F0 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: F0 09 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: F0 09 00 F7 31 00 E2 D5 1C 67 50 D1 6C 64 4B [11:43:26]GetLastDocTimeStamp 1729942951 [11:43:26]current date 1729943010 [11:43:26]FM_GetShiftState [11:43:26]SAM_PROTO_GetShiftState [11:43:26]wFMCommunicate request_size=4 [11:43:26]MH_SAM_APDU [11:43:26]CAPDU: 80 13 01 00 [11:43:26]Write to MH i2c: E2 08 00 F8 31 80 13 01 00 00 00 00 00 A6 [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:26]Read from MH i2c: E2 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 0E 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 0E 00 F8 31 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DB [11:43:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:43:26]wFMCommunicate OK [11:43:26]SAM_PROTO_GetShiftState done [11:43:26]FM_GetShiftState done [11:43:26]opened in 1729902702 [11:43:26]opened+sec_in_day 1729989102 [11:43:26]quantity*price = 50041 [11:43:26]sum+1 = 50042 [11:43:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 150 26.10.2024 11:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156249 ФПД: 143271366418492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114330&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156249&fm=143271366418492&tin=02508201610067®Number=0000000000091693&sum=50041 [11:43:27]StoreToDocumentArchive [11:43:27]shift 536 fd 156249 [11:43:27]save to /storage/0536/doc_00156249 [11:43:27]save last doc name /storage/0536/doc_00156249 to /storage/kkm_last_doc_name [11:43:27]save OK [11:43:27]Clear old archive folders... [11:43:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:27]tlvbuf is B6E878C0 [11:43:27]SAM_PROTO_ClearQueue [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 09 00 00 [11:43:27]Write to MH i2c: E2 08 00 05 32 80 09 00 00 00 00 00 00 A9 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 05 32 00 90 00 AB [11:43:27]RAPDU: 90 00 [11:43:27]wFMCommunicate OK [11:43:27]SAM_PROTO_ClearQueue done [11:43:27]KKMCreateOFDPacket [11:43:27]OFDProtocolAddRootSTLVToBuf [11:43:27]FM_MakeSignedData [11:43:27]FM_MakeSignedData [11:43:27]SAM_PROTO_SignData [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 0D 01 02 [11:43:27]Write to MH i2c: E2 08 00 06 32 80 0D 01 02 00 00 00 00 B1 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 06 32 00 90 00 AC [11:43:27]RAPDU: 90 00 [11:43:27]wFMCommunicate OK [11:43:27]wFMCommunicate request_size=255 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E2 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 62 02 00 35 04 06 00 82 [11:43:27]Write to MH i2c: E2 02 01 07 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E2 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 62 02 00 35 04 06 00 82 00 00 C0 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 07 32 00 90 00 AD [11:43:27]RAPDU: 90 00 [11:43:27]wFMCommunicate OK [11:43:27]wFMCommunicate request_size=10 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 0D 02 02 05 4D F6 E6 E0 3C [11:43:27]Write to MH i2c: E2 0D 00 08 32 80 0D 02 02 05 00 4D F6 E6 E0 3C 00 00 03 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 08 32 00 90 00 AE [11:43:27]RAPDU: 90 00 [11:43:27]wFMCommunicate OK [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 0D 03 02 [11:43:27]Write to MH i2c: E2 08 00 09 32 80 0D 03 02 00 00 00 00 B6 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 0B 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 0B 00 09 32 00 6D EB 85 26 4E 10 E6 D0 90 00 CE [11:43:27]RAPDU: 6D EB 85 26 4E 10 E6 D0 90 00 [11:43:27]wFMCommunicate OK [11:43:27]SAM_PROTO_SignData done [11:43:27]FM_MakeSignedData done [11:43:27]CreateOFDProtocolMessage [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 11 00 00 [11:43:27]Write to MH i2c: E2 08 00 0A 32 80 11 00 00 00 00 00 00 B6 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 17 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 17 00 0A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0B [11:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:43:27]wFMCommunicate OK [11:43:27]CreateOFDProtocolMessage done [11:43:27]OFDSenderStorePacket 156249 [11:43:27]StoreOFDPacket docnum=156249 [11:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D6 0A 07 01 A2 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E2 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 62 02 00 35 04 06 00 82 4D F6 E6 E0 3C 6D EB 85 26 4E 10 E6 D0 [11:43:27]CheckFolder [11:43:27]dirname=/storage/ofd_packets [11:43:27]CheckFolder done [11:43:27]ProducePacketName [11:43:27]name=ofd_packets/00156249 [11:43:27]NVStorageSaveData ofd_packets/00156249 [11:43:27]File name is /storage/ofd_packets/00156249 [11:43:27]Write 301 bytes [11:43:27]NVStorageSaveData done [11:43:27]OFDSenderStorePacket done [11:43:27]KKMCreateOFDPacket done [11:43:27]NVStorageSaveData kkm_last_timestamp [11:43:27]File name is /storage/kkm_last_timestamp [11:43:27]Write 4 bytes [11:43:27]NVStorageSaveData done [11:43:27]ExternCall_PrintAddStr [11:43:27]wPrintStart [11:43:27]Write to MH i2c: 01 00 00 0B 32 3D [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 0B 32 00 00 00 00 00 FF 0F 52 [11:43:27]RasterBufferAndPrint [11:43:27]line Счет N : (1)99064 [11:43:27]line ИНН: 02508201610067 [11:43:27]line Контрольно-Кассовый Чек [11:43:27]line ПРОДАЖА [11:43:27]line ТРК (МРК, ГНК) : 31 [11:43:27]line Товар: 2710124130 [11:43:27]line Аи-92-К-5 [11:43:27]line 7.480 * 66.90 [11:43:27]line = 500.41 [11:43:27]line НДС 12% НСП 1% [11:43:27]line > о реализуемом товаре [11:43:27]line ИТОГО: 500.41 [11:43:27]line НСП 1% : 4.43 [11:43:27]line НДС 12% : 53.14 [11:43:27]line Наличными: 0.00 [11:43:27]line Безнал.: 500.41 [11:43:27]line Место: АЗС № 143 "Партнер Нефть" [11:43:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:43:27]line СНО: Общий режим [11:43:27]line Чек 150 26.10.2024 11:43 [11:43:27]line Смена: 536 ФФД: 1.0 [11:43:27]line ЗНМ: 0300000096 [11:43:27]line РНМ: 0000000000091693 [11:43:27]line Версия ККМ: 001 [11:43:27]line Платежная система: Mbank [11:43:27]line ФМ: 0000000000871792 [11:43:27]line ФД: 156249 [11:43:27]line ФПД: 143271366418492 [11:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114330&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156249&fm=143271366418492&tin=02508201610067®Number=0000000000091693&sum=50041 [11:43:28]OFD Sender: Processing packet 156249 [packets to send 31, broken 30] [11:43:28]ProducePacketName [11:43:28]name=ofd_packets/00156249 [11:43:28]OFD Sender: To server: pG, [11:43:28]CommunicateWithHost lk.salyk.kg:30040 [11:43:28]ConnectInit lk.salyk.kg [11:43:28]written 0, free lines is 4095 [11:43:28]Connected sock=10 [11:43:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D6 0A 07 01 A2 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E2 D5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 62 02 00 35 04 06 00 82 4D F6 E6 E0 3C 6D EB 85 26 4E 10 E6 D0 [11:43:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 49 36 47 00 CC 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 31 37 39 32 10 04 04 00 59 62 02 00 F4 03 04 00 55 7B 1C 67 B6 04 01 00 00 EF 2E 7F A0 FF 67 FE 13 [11:43:28]CommunicateWithHost err = 0 [11:43:28]CheckOFDResponse [11:43:28]1017 (14) - 77093643461234 [11:43:28]1041 (16) - 0000000000871792 [11:43:28]1040 (4) - 156249 [11:43:28]1012 (4) - 26.10.2024 05:17 [11:43:28]1206 (1) - 0 [11:43:28]OFD Sender: Remove packet 156249 [11:43:28]ProducePacketName [11:43:28]name=ofd_packets/00156249 [11:43:28]NVStorageDeleteData [11:43:28]Write to MH i2c: 01 00 00 34 32 66 [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: 01 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: 01 07 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: 01 07 00 34 32 00 00 00 00 00 07 0D 81 [11:43:28]RasterBufferAndPrint [11:43:28]line [11:43:28]line [11:43:28]line [11:43:28]line [11:43:28]line [11:43:28]written 0, free lines is 3341 [11:43:28]process_action close_receipt done [11:43:28]requested_data is exist [11:43:28]produce_requested_data [11:43:28]requested_item fm.sn is exist - process it [11:43:28]wFMCommunicate request_size=4 [11:43:28]MH_SAM_APDU [11:43:28]CAPDU: 80 11 00 00 [11:43:28]Write to MH i2c: E2 08 00 3B 32 80 11 00 00 00 00 00 00 E7 [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:28]Read from MH i2c: E2 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 17 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 17 00 3B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [11:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:43:28]wFMCommunicate OK [11:43:28]requested_item fd.num is exist - process it [11:43:28]SAM_PROTO_GetFieldsCounters [11:43:28]wFMCommunicate request_size=4 [11:43:28]MH_SAM_APDU [11:43:28]CAPDU: 80 13 00 00 [11:43:28]Write to MH i2c: E2 08 00 3C 32 80 13 00 00 00 00 00 00 EA [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:28]Read from MH i2c: E2 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 62 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 62 00 3C 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 59 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:43: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 59 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:28]wFMCommunicate OK [11:43:28]SAM_PROTO_GetFieldsCounters done [11:43:28]requested_item shift.num is exist - process it [11:43:28]requested_item shift.opened is exist - process it [11:43:28]req_shift_opened [11:43:28]FM_GetShiftState [11:43:28]SAM_PROTO_GetShiftState [11:43:28]wFMCommunicate request_size=4 [11:43:28]MH_SAM_APDU [11:43:28]CAPDU: 80 13 01 00 [11:43:28]Write to MH i2c: E2 08 00 3D 32 80 13 01 00 00 00 00 00 EC [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:28]Read from MH i2c: E2 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 0E 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 0E 00 3D 32 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 21 [11:43:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:43:28]wFMCommunicate OK [11:43:28]SAM_PROTO_GetShiftState done [11:43:28]FM_GetShiftState done [11:43:28]req_shift_opened done [11:43:28]requested_item shift.open_date is exist - process it [11:43:28]req_shift_open_date [11:43:28]req_shift_open_date done [11:43:28]produce_requested_data done [11:43:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156249,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:43:28]process_action_free close_receipt [11:43:28]json_value_free [11:43:28]json_value_free done [11:43:28]process_json_proto returns [11:43:28]Send response to host [11:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156249,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:43:28]free response buf [11:43:28]execute_script done [11:43:28]execute_script returns [11:43:28]free content buf [11:43:28]Sock 9.Close socket [11:43:28]Sock 9.Thread stoped [11:43:28]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:16]accept exits with 7 [11:48:16]New connection [11:48:16]New thread 3066613092 created [11:48:16]Thread 3066469732 joined [11:48:16]Waiting for new connection... [11:48:16] Sock 7.Parse request [11:48:16]Sock 7.Check first char [11:48:16]Sock 7.First char is OK [11:48:16]request: POST /json_proto HTTP/1.0 [11:48:16]Method: POST [11:48:16]URL: /json_proto [11:48:16]Method is POST - this is cgi request [11:48:16]url: /json_proto [11:48:16]query_string will be loaded in cgi processing [11:48:16]execute_cgi json_proto POST (null) [11:48:16]execute_cgi path=json_proto method=POST [11:48:16]POST find Content-Length [11:48:16]Host: 172.17.63.3:8080 [11:48:16]Content-Length: 681 [11:48:16]Content-Type: application/json [11:48:16] [11:48:16]POST finish read [11:48:16]Found Content-Length = 681 [11:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:16]execute_script... [11:48: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)99065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:16]POST & json_proto [11:48:16]process_json_proto [11:48:16]json parsed OK: [11:48:16]protocol is kg_v1.0 [11:48:16]action value=close_receipt [11:48:16]process_action close_receipt [11:48:16]cmd_close_receipt [11:48:16]MH_GetDate [11:48:16]Write to MH i2c: F0 00 00 3E 32 5F [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: F0 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: F0 09 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: F0 09 00 3E 32 00 05 D7 1C 67 50 D1 6C 64 B8 [11:48:16]GetLastDocTimeStamp 1729943010 [11:48:16]current date 1729943301 [11:48:16]FM_GetShiftState [11:48:16]SAM_PROTO_GetShiftState [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 13 01 00 [11:48:16]Write to MH i2c: E2 08 00 3F 32 80 13 01 00 00 00 00 00 EE [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0E 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0E 00 3F 32 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 23 [11:48:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:48:16]wFMCommunicate OK [11:48:16]SAM_PROTO_GetShiftState done [11:48:16]FM_GetShiftState done [11:48:16]opened in 1729902702 [11:48:16]opened+sec_in_day 1729989102 [11:48:16]quantity*price = 100015 [11:48:16]sum+1 = 100017 [11:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 151 26.10.2024 11:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156250 ФПД: 59604317354492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114821&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156250&fm=59604317354492&tin=02508201610067®Number=0000000000091693&sum=100000 [11:48:18]StoreToDocumentArchive [11:48:18]shift 536 fd 156250 [11:48:18]save to /storage/0536/doc_00156250 [11:48:18]save last doc name /storage/0536/doc_00156250 to /storage/kkm_last_doc_name [11:48:18]save OK [11:48:18]Clear old archive folders... [11:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:18]tlvbuf is 00D18590 [11:48:18]SAM_PROTO_ClearQueue [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 09 00 00 [11:48:18]Write to MH i2c: E2 08 00 4C 32 80 09 00 00 00 00 00 00 F0 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 4C 32 00 90 00 F2 [11:48:18]RAPDU: 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_ClearQueue done [11:48:18]KKMCreateOFDPacket [11:48:18]OFDProtocolAddRootSTLVToBuf [11:48:18]FM_MakeSignedData [11:48:18]FM_MakeSignedData [11:48:18]SAM_PROTO_SignData [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 0D 01 02 [11:48:18]Write to MH i2c: E2 08 00 4D 32 80 0D 01 02 00 00 00 00 F8 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 4D 32 00 90 00 F3 [11:48:18]RAPDU: 90 00 [11:48:18]wFMCommunicate OK [11:48:18]wFMCommunicate request_size=255 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 05 D7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 62 02 00 35 04 06 00 36 [11:48:18]Write to MH i2c: E2 02 01 4E 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 05 D7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 62 02 00 35 04 06 00 36 00 00 8A [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 4E 32 00 90 00 F4 [11:48:18]RAPDU: 90 00 [11:48:18]wFMCommunicate OK [11:48:18]wFMCommunicate request_size=10 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 0D 02 02 05 35 B6 29 B9 FC [11:48:18]Write to MH i2c: E2 0D 00 4F 32 80 0D 02 02 05 00 35 B6 29 B9 FC 00 00 CE [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 4F 32 00 90 00 F5 [11:48:18]RAPDU: 90 00 [11:48:18]wFMCommunicate OK [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 0D 03 02 [11:48:18]Write to MH i2c: E2 08 00 50 32 80 0D 03 02 00 00 00 00 FD [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0B 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0B 00 50 32 00 FF E2 AE 7F 2C 4C D9 67 90 00 C4 [11:48:18]RAPDU: FF E2 AE 7F 2C 4C D9 67 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_SignData done [11:48:18]FM_MakeSignedData done [11:48:18]CreateOFDProtocolMessage [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 11 00 00 [11:48:18]Write to MH i2c: E2 08 00 51 32 80 11 00 00 00 00 00 00 FD [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 51 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [11:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:48:18]wFMCommunicate OK [11:48:18]CreateOFDProtocolMessage done [11:48:18]OFDSenderStorePacket 156250 [11:48:18]StoreOFDPacket docnum=156250 [11:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7A 59 07 01 04 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 05 D7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 62 02 00 35 04 06 00 36 35 B6 29 B9 FC FF E2 AE 7F 2C 4C D9 67 [11:48:18]CheckFolder [11:48:18]dirname=/storage/ofd_packets [11:48:18]CheckFolder done [11:48:18]ProducePacketName [11:48:18]name=ofd_packets/00156250 [11:48:18]NVStorageSaveData ofd_packets/00156250 [11:48:18]File name is /storage/ofd_packets/00156250 [11:48:18]Write 301 bytes [11:48:18]NVStorageSaveData done [11:48:18]OFDSenderStorePacket done [11:48:18]KKMCreateOFDPacket done [11:48:18]NVStorageSaveData kkm_last_timestamp [11:48:18]File name is /storage/kkm_last_timestamp [11:48:18]Write 4 bytes [11:48:18]NVStorageSaveData done [11:48:18]ExternCall_PrintAddStr [11:48:18]wPrintStart [11:48:18]Write to MH i2c: 01 00 00 52 32 84 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 07 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 07 00 52 32 00 00 00 00 00 FF 0F 99 [11:48:18]RasterBufferAndPrint [11:48:18]line Счет N : (1)99065 [11:48:18]line ИНН: 02508201610067 [11:48:18]line Контрольно-Кассовый Чек [11:48:18]line ПРОДАЖА [11:48:18]line ТРК (МРК, ГНК) : 21 [11:48:18]line Товар: 2710124130 [11:48:18]line Аи-92-К-5 [11:48:18]line 14.950 * 66.90 [11:48:18]line = 1000.16 [11:48:18]line НДС 12% НСП 1% [11:48:18]line > о реализуемом товаре [11:48:18]line ОКРУГЛЕНИЕ: -0.16 [11:48:18]line ИТОГО: 1000.00 [11:48:18]line Внесено: 1000.00 [11:48:18]line СДАЧА: 0.00 [11:48:18]line НСП 1% : 8.85 [11:48:18]line НДС 12% : 106.21 [11:48:18]line Наличными: 1000.00 [11:48:18]line Безнал.: 0.00 [11:48:18]line Место: АЗС № 143 "Партнер Нефть" [11:48:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:48:18]line СНО: Общий режим [11:48:18]line Чек 151 26.10.2024 11:48 [11:48:18]line Смена: 536 ФФД: 1.0 [11:48:18]line ЗНМ: 0300000096 [11:48:18]line РНМ: 0000000000091693 [11:48:18]line Версия ККМ: 001 [11:48:18]line ФМ: 0000000000871792 [11:48:18]line ФД: 156250 [11:48:18]line ФПД: 59604317354492 [11:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114821&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156250&fm=59604317354492&tin=02508201610067®Number=0000000000091693&sum=100000 [11:48:18]written 0, free lines is 4095 [11:48:18]OFD Sender: Processing packet 156250 [packets to send 31, broken 30] [11:48:18]ProducePacketName [11:48:18]name=ofd_packets/00156250 [11:48:18]OFD Sender: To server: pG, [11:48:18]CommunicateWithHost lk.salyk.kg:30040 [11:48:18]ConnectInit lk.salyk.kg [11:48:18]Connected sock=10 [11:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7A 59 07 01 04 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 05 D7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 62 02 00 35 04 06 00 36 35 B6 29 B9 FC FF E2 AE 7F 2C 4C D9 67 [11:48:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BC 8B 47 00 22 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 31 37 39 32 10 04 04 00 5A 62 02 00 F4 03 04 00 77 7C 1C 67 B6 04 01 00 00 10 D5 48 FE 88 F0 2D 74 [11:48:19]CommunicateWithHost err = 0 [11:48:19]CheckOFDResponse [11:48:19]1017 (14) - 77093643461234 [11:48:19]1041 (16) - 0000000000871792 [11:48:19]1040 (4) - 156250 [11:48:19]1012 (4) - 26.10.2024 05:21 [11:48:19]1206 (1) - 0 [11:48:19]OFD Sender: Remove packet 156250 [11:48:19]ProducePacketName [11:48:19]name=ofd_packets/00156250 [11:48:19]NVStorageDeleteData [11:48:19]Write to MH i2c: 01 00 00 7D 32 AF [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 07 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 07 00 7D 32 00 00 00 00 00 F4 0C B6 [11:48:19]RasterBufferAndPrint [11:48:19]line [11:48:19]line [11:48:19]line [11:48:19]line [11:48:19]line [11:48:19]written 0, free lines is 3323 [11:48:19]process_action close_receipt done [11:48:19]requested_data is exist [11:48:19]produce_requested_data [11:48:19]requested_item fm.sn is exist - process it [11:48:19]wFMCommunicate request_size=4 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 11 00 00 [11:48:19]Write to MH i2c: E2 08 00 84 32 80 11 00 00 00 00 00 00 30 [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 17 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 17 00 84 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [11:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:48:19]wFMCommunicate OK [11:48:19]requested_item fd.num is exist - process it [11:48:19]SAM_PROTO_GetFieldsCounters [11:48:19]wFMCommunicate request_size=4 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 13 00 00 [11:48:19]Write to MH i2c: E2 08 00 85 32 80 13 00 00 00 00 00 00 33 [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 62 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 62 00 85 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [11:48:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:19]wFMCommunicate OK [11:48:19]SAM_PROTO_GetFieldsCounters done [11:48:19]requested_item shift.num is exist - process it [11:48:19]requested_item shift.opened is exist - process it [11:48:19]req_shift_opened [11:48:19]FM_GetShiftState [11:48:19]SAM_PROTO_GetShiftState [11:48:19]wFMCommunicate request_size=4 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 13 01 00 [11:48:19]Write to MH i2c: E2 08 00 86 32 80 13 01 00 00 00 00 00 35 [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 0E 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 0E 00 86 32 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6A [11:48:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:48:19]wFMCommunicate OK [11:48:19]SAM_PROTO_GetShiftState done [11:48:19]FM_GetShiftState done [11:48:19]req_shift_opened done [11:48:19]requested_item shift.open_date is exist - process it [11:48:19]req_shift_open_date [11:48:19]req_shift_open_date done [11:48:19]produce_requested_data done [11:48:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156250,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:48:19]process_action_free close_receipt [11:48:19]json_value_free [11:48:19]json_value_free done [11:48:19]process_json_proto returns [11:48:19]Send response to host [11:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156250,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:48:19]free response buf [11:48:19]execute_script done [11:48:19]execute_script returns [11:48:19]free content buf [11:48:19]Sock 7.Close socket [11:48:19]Sock 7.Thread stoped [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:23]accept exits with 9 [11:51:23]New connection [11:51:23]New thread 3066469732 created [11:51:23]Thread 3066613092 joined [11:51:23]Waiting for new connection... [11:51:23] Sock 9.Parse request [11:51:23]Sock 9.Check first char [11:51:23]Sock 9.First char is OK [11:51:23]request: POST /json_proto HTTP/1.0 [11:51:23]Method: POST [11:51:23]URL: /json_proto [11:51:23]Method is POST - this is cgi request [11:51:23]url: /json_proto [11:51:23]query_string will be loaded in cgi processing [11:51:23]execute_cgi json_proto POST (null) [11:51:23]execute_cgi path=json_proto method=POST [11:51:23]POST find Content-Length [11:51:23]Host: 172.17.63.3:8080 [11:51:23]Content-Length: 765 [11:51:23]Content-Type: application/json [11:51:23] [11:51:23]POST finish read [11:51:23]Found Content-Length = 765 [11:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:23]execute_script... [11:51:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:23]POST & json_proto [11:51:23]process_json_proto [11:51:23]json parsed OK: [11:51:23]protocol is kg_v1.0 [11:51:23]action value=close_receipt [11:51:23]process_action close_receipt [11:51:23]cmd_close_receipt [11:51:23]MH_GetDate [11:51:23]Write to MH i2c: F0 00 00 87 32 A8 [11:51:23]Write i2c OK [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: F0 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: F0 09 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: F0 09 00 87 32 00 BF D7 1C 67 50 D1 6C 64 BB [11:51:23]GetLastDocTimeStamp 1729943301 [11:51:23]current date 1729943487 [11:51:23]FM_GetShiftState [11:51:23]SAM_PROTO_GetShiftState [11:51:23]wFMCommunicate request_size=4 [11:51:23]MH_SAM_APDU [11:51:23]CAPDU: 80 13 01 00 [11:51:23]Write to MH i2c: E2 08 00 88 32 80 13 01 00 00 00 00 00 37 [11:51:23]Write i2c OK [11:51:23]MH_I2C_Read... [11:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:23]Read from MH i2c: E2 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 0E 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 0E 00 88 32 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6C [11:51:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:51:23]wFMCommunicate OK [11:51:23]SAM_PROTO_GetShiftState done [11:51:23]FM_GetShiftState done [11:51:23]opened in 1729902702 [11:51:23]opened+sec_in_day 1729989102 [11:51:23]quantity*price = 20003 [11:51:23]sum+1 = 20004 [11:51:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 152 26.10.2024 11:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156251 ФПД: 30688010592389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115127&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156251&fm=30688010592389&tin=02508201610067®Number=0000000000091693&sum=20003 [11:51:24]StoreToDocumentArchive [11:51:24]shift 536 fd 156251 [11:51:24]save to /storage/0536/doc_00156251 [11:51:24]save last doc name /storage/0536/doc_00156251 to /storage/kkm_last_doc_name [11:51:24]save OK [11:51:24]Clear old archive folders... [11:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:24]tlvbuf is 00D49D00 [11:51:24]SAM_PROTO_ClearQueue [11:51:24]wFMCommunicate request_size=4 [11:51:24]MH_SAM_APDU [11:51:24]CAPDU: 80 09 00 00 [11:51:24]Write to MH i2c: E2 08 00 95 32 80 09 00 00 00 00 00 00 39 [11:51:24]Write i2c OK [11:51:24]MH_I2C_Read... [11:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:24]Read from MH i2c: E2 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: E2 03 00 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: E2 03 00 95 32 00 90 00 3B [11:51:24]RAPDU: 90 00 [11:51:24]wFMCommunicate OK [11:51:24]SAM_PROTO_ClearQueue done [11:51:24]KKMCreateOFDPacket [11:51:24]OFDProtocolAddRootSTLVToBuf [11:51:24]FM_MakeSignedData [11:51:24]FM_MakeSignedData [11:51:24]SAM_PROTO_SignData [11:51:24]wFMCommunicate request_size=4 [11:51:24]MH_SAM_APDU [11:51:24]CAPDU: 80 0D 01 02 [11:51:24]Write to MH i2c: E2 08 00 96 32 80 0D 01 02 00 00 00 00 41 [11:51:24]Write i2c OK [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: E2 [11:51:24]MH_I2C_Read... [11:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:24]Read from MH i2c: E2 03 00 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: E2 03 00 96 32 00 90 00 3C [11:51:24]RAPDU: 90 00 [11:51:24]wFMCommunicate OK [11:51:24]wFMCommunicate request_size=255 [11:51:24]MH_SAM_APDU [11:51:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 BF D7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 62 02 00 35 04 06 00 1B [11:51:24]Write to MH i2c: E2 02 01 97 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 BF D7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 62 02 00 35 04 06 00 1B 00 00 42 [11:51:24]Write i2c OK [11:51:24]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 03 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 03 00 97 32 00 90 00 3D [11:51:25]RAPDU: 90 00 [11:51:25]wFMCommunicate OK [11:51:25]wFMCommunicate request_size=10 [11:51:25]MH_SAM_APDU [11:51:25]CAPDU: 80 0D 02 02 05 E9 1B F8 60 85 [11:51:25]Write to MH i2c: E2 0D 00 98 32 80 0D 02 02 05 00 E9 1B F8 60 85 00 00 2F [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 03 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 03 00 98 32 00 90 00 3E [11:51:25]RAPDU: 90 00 [11:51:25]wFMCommunicate OK [11:51:25]wFMCommunicate request_size=4 [11:51:25]MH_SAM_APDU [11:51:25]CAPDU: 80 0D 03 02 [11:51:25]Write to MH i2c: E2 08 00 99 32 80 0D 03 02 00 00 00 00 46 [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 0B 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 0B 00 99 32 00 06 35 B6 8C 24 70 2D 97 90 00 1C [11:51:25]RAPDU: 06 35 B6 8C 24 70 2D 97 90 00 [11:51:25]wFMCommunicate OK [11:51:25]SAM_PROTO_SignData done [11:51:25]FM_MakeSignedData done [11:51:25]CreateOFDProtocolMessage [11:51:25]wFMCommunicate request_size=4 [11:51:25]MH_SAM_APDU [11:51:25]CAPDU: 80 11 00 00 [11:51:25]Write to MH i2c: E2 08 00 9A 32 80 11 00 00 00 00 00 00 46 [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 17 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 17 00 9A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [11:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:51:25]wFMCommunicate OK [11:51:25]CreateOFDProtocolMessage done [11:51:25]OFDSenderStorePacket 156251 [11:51:25]StoreOFDPacket docnum=156251 [11:51:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 0D 07 01 95 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 BF D7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 62 02 00 35 04 06 00 1B E9 1B F8 60 85 06 35 B6 8C 24 70 2D 97 [11:51:25]CheckFolder [11:51:25]dirname=/storage/ofd_packets [11:51:25]CheckFolder done [11:51:25]ProducePacketName [11:51:25]name=ofd_packets/00156251 [11:51:25]NVStorageSaveData ofd_packets/00156251 [11:51:25]File name is /storage/ofd_packets/00156251 [11:51:25]Write 301 bytes [11:51:25]NVStorageSaveData done [11:51:25]OFDSenderStorePacket done [11:51:25]KKMCreateOFDPacket done [11:51:25]NVStorageSaveData kkm_last_timestamp [11:51:25]File name is /storage/kkm_last_timestamp [11:51:25]Write 4 bytes [11:51:25]NVStorageSaveData done [11:51:25]ExternCall_PrintAddStr [11:51:25]wPrintStart [11:51:25]Write to MH i2c: 01 00 00 9B 32 CD [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: 01 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: 01 07 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: 01 07 00 9B 32 00 00 00 00 00 FF 0F E2 [11:51:25]RasterBufferAndPrint [11:51:25]line Счет N : (1)99066 [11:51:25]line ИНН: 02508201610067 [11:51:25]line Контрольно-Кассовый Чек [11:51:25]line ПРОДАЖА [11:51:25]line ТРК (МРК, ГНК) : 21 [11:51:25]line Товар: 2710124130 [11:51:25]line Аи-92-К-5 [11:51:25]line 2.990 * 66.90 [11:51:25]line = 200.03 [11:51:25]line НДС 12% НСП 1% [11:51:25]line > о реализуемом товаре [11:51:25]line ИТОГО: 200.03 [11:51:25]line НСП 1% : 1.77 [11:51:25]line НДС 12% : 21.24 [11:51:25]line Наличными: 0.00 [11:51:25]line Безнал.: 200.03 [11:51:25]line Место: АЗС № 143 "Партнер Нефть" [11:51:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:51:25]line СНО: Общий режим [11:51:25]line Чек 152 26.10.2024 11:51 [11:51:25]line Смена: 536 ФФД: 1.0 [11:51:25]line ЗНМ: 0300000096 [11:51:25]line РНМ: 0000000000091693 [11:51:25]line Версия ККМ: 001 [11:51:25]line Платежная система: Mbank [11:51:25]line ФМ: 0000000000871792 [11:51:25]line ФД: 156251 [11:51:25]line ФПД: 30688010592389 [11:51:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115127&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156251&fm=30688010592389&tin=02508201610067®Number=0000000000091693&sum=20003 [11:51:25]OFD Sender: Processing packet 156251 [packets to send 31, broken 30] [11:51:25]ProducePacketName [11:51:25]name=ofd_packets/00156251 [11:51:25]OFD Sender: To server: pG, [11:51:25]CommunicateWithHost lk.salyk.kg:30040 [11:51:25]ConnectInit lk.salyk.kg [11:51:25]written 0, free lines is 4095 [11:51:25]Connected sock=10 [11:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 0D 07 01 95 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 BF D7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 62 02 00 35 04 06 00 1B E9 1B F8 60 85 06 35 B6 8C 24 70 2D 97 [11:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A7 21 47 00 B2 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 62 02 00 F4 03 04 00 32 7D 1C 67 B6 04 01 00 00 A6 37 BB 9A 89 03 9C 07 [11:51:25]CommunicateWithHost err = 0 [11:51:25]CheckOFDResponse [11:51:25]1017 (14) - 77093643461234 [11:51:25]1041 (16) - 0000000000871792 [11:51:25]1040 (4) - 156251 [11:51:25]1012 (4) - 26.10.2024 05:25 [11:51:25]1206 (1) - 0 [11:51:25]OFD Sender: Remove packet 156251 [11:51:25]ProducePacketName [11:51:25]name=ofd_packets/00156251 [11:51:25]NVStorageDeleteData [11:51:26]Write to MH i2c: 01 00 00 C4 32 F6 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 07 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 07 00 C4 32 00 00 00 00 00 0F 0D 19 [11:51:26]RasterBufferAndPrint [11:51:26]line [11:51:26]line [11:51:26]line [11:51:26]line [11:51:26]line [11:51:26]written 0, free lines is 3349 [11:51:26]process_action close_receipt done [11:51:26]requested_data is exist [11:51:26]produce_requested_data [11:51:26]requested_item fm.sn is exist - process it [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 11 00 00 [11:51:26]Write to MH i2c: E2 08 00 CB 32 80 11 00 00 00 00 00 00 77 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 17 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 17 00 CB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [11:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:51:26]wFMCommunicate OK [11:51:26]requested_item fd.num is exist - process it [11:51:26]SAM_PROTO_GetFieldsCounters [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 13 00 00 [11:51:26]Write to MH i2c: E2 08 00 CC 32 80 13 00 00 00 00 00 00 7A [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 62 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 62 00 CC 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:51: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_GetFieldsCounters done [11:51:26]requested_item shift.num is exist - process it [11:51:26]requested_item shift.opened is exist - process it [11:51:26]req_shift_opened [11:51:26]FM_GetShiftState [11:51:26]SAM_PROTO_GetShiftState [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 13 01 00 [11:51:26]Write to MH i2c: E2 08 00 CD 32 80 13 01 00 00 00 00 00 7C [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 0E 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 0E 00 CD 32 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B1 [11:51:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_GetShiftState done [11:51:26]FM_GetShiftState done [11:51:26]req_shift_opened done [11:51:26]requested_item shift.open_date is exist - process it [11:51:26]req_shift_open_date [11:51:26]req_shift_open_date done [11:51:26]produce_requested_data done [11:51:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156251,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:51:26]process_action_free close_receipt [11:51:26]json_value_free [11:51:26]json_value_free done [11:51:26]process_json_proto returns [11:51:26]Send response to host [11:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156251,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:51:26]free response buf [11:51:26]execute_script done [11:51:26]execute_script returns [11:51:26]free content buf [11:51:26]Sock 9.Close socket [11:51:26]Sock 9.Thread stoped [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:48]accept exits with 7 [11:55:48]New connection [11:55:48]New thread 3066613092 created [11:55:48]Thread 3066469732 joined [11:55:48]Waiting for new connection... [11:55:48] Sock 7.Parse request [11:55:48]Sock 7.Check first char [11:55:48]Sock 7.First char is OK [11:55:48]request: POST /json_proto HTTP/1.0 [11:55:48]Method: POST [11:55:48]URL: /json_proto [11:55:48]Method is POST - this is cgi request [11:55:48]url: /json_proto [11:55:48]query_string will be loaded in cgi processing [11:55:48]execute_cgi json_proto POST (null) [11:55:48]execute_cgi path=json_proto method=POST [11:55:48]POST find Content-Length [11:55:48]Host: 172.17.63.3:8080 [11:55:48]Content-Length: 681 [11:55:48]Content-Type: application/json [11:55:48] [11:55:48]POST finish read [11:55:48]Found Content-Length = 681 [11:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:48]execute_script... [11:55:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:48]POST & json_proto [11:55:48]process_json_proto [11:55:48]json parsed OK: [11:55:48]protocol is kg_v1.0 [11:55:48]action value=close_receipt [11:55:48]process_action close_receipt [11:55:48]cmd_close_receipt [11:55:48]MH_GetDate [11:55:48]Write to MH i2c: F0 00 00 CE 32 EF [11:55:48]Write i2c OK [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: F0 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: F0 09 00 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: F0 09 00 CE 32 00 C8 D8 1C 67 50 D1 6C 64 0C [11:55:48]GetLastDocTimeStamp 1729943487 [11:55:48]current date 1729943752 [11:55:48]FM_GetShiftState [11:55:48]SAM_PROTO_GetShiftState [11:55:48]wFMCommunicate request_size=4 [11:55:48]MH_SAM_APDU [11:55:48]CAPDU: 80 13 01 00 [11:55:48]Write to MH i2c: E2 08 00 CF 32 80 13 01 00 00 00 00 00 7E [11:55:48]Write i2c OK [11:55:48]MH_I2C_Read... [11:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:48]Read from MH i2c: E2 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: E2 0E 00 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: E2 0E 00 CF 32 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B3 [11:55:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:55:48]wFMCommunicate OK [11:55:48]SAM_PROTO_GetShiftState done [11:55:48]FM_GetShiftState done [11:55:48]opened in 1729902702 [11:55:48]opened+sec_in_day 1729989102 [11:55:48]quantity*price = 100015 [11:55:48]sum+1 = 100017 [11:55:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 153 26.10.2024 11:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156252 ФПД: 116269297441671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115552&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156252&fm=116269297441671&tin=02508201610067®Number=0000000000091693&sum=100000 [11:55:49]StoreToDocumentArchive [11:55:49]shift 536 fd 156252 [11:55:49]save to /storage/0536/doc_00156252 [11:55:49]save last doc name /storage/0536/doc_00156252 to /storage/kkm_last_doc_name [11:55:49]save OK [11:55:49]Clear old archive folders... [11:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:49]tlvbuf is 00E12160 [11:55:49]SAM_PROTO_ClearQueue [11:55:49]wFMCommunicate request_size=4 [11:55:49]MH_SAM_APDU [11:55:49]CAPDU: 80 09 00 00 [11:55:49]Write to MH i2c: E2 08 00 DC 32 80 09 00 00 00 00 00 00 80 [11:55:49]Write i2c OK [11:55:49]MH_I2C_Read... [11:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:49]Read from MH i2c: E2 [11:55:49]MH_I2C_Read... [11:55:49]Read from MH i2c: E2 03 00 [11:55:49]MH_I2C_Read... [11:55:49]Read from MH i2c: E2 03 00 DC 32 00 90 00 82 [11:55:49]RAPDU: 90 00 [11:55:49]wFMCommunicate OK [11:55:49]SAM_PROTO_ClearQueue done [11:55:49]KKMCreateOFDPacket [11:55:49]OFDProtocolAddRootSTLVToBuf [11:55:49]FM_MakeSignedData [11:55:49]FM_MakeSignedData [11:55:49]SAM_PROTO_SignData [11:55:49]wFMCommunicate request_size=4 [11:55:49]MH_SAM_APDU [11:55:49]CAPDU: 80 0D 01 02 [11:55:49]Write to MH i2c: E2 08 00 DD 32 80 0D 01 02 00 00 00 00 88 [11:55:49]Write i2c OK [11:55:49]MH_I2C_Read... [11:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:49]Read from MH i2c: E2 [11:55:49]MH_I2C_Read... [11:55:49]Read from MH i2c: E2 03 00 [11:55:49]MH_I2C_Read... [11:55:49]Read from MH i2c: E2 03 00 DD 32 00 90 00 83 [11:55:49]RAPDU: 90 00 [11:55:49]wFMCommunicate OK [11:55:49]wFMCommunicate request_size=255 [11:55:49]MH_SAM_APDU [11:55:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C8 D8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 62 02 00 35 04 06 00 69 [11:55:49]Write to MH i2c: E2 02 01 DE 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C8 D8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 62 02 00 35 04 06 00 69 00 00 15 [11:55:49]Write i2c OK [11:55:49]MH_I2C_Read... [11:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:49]Read from MH i2c: E2 [11:55:49]MH_I2C_Read... [11:55:49]Read from MH i2c: E2 03 00 [11:55:49]MH_I2C_Read... [11:55:49]Read from MH i2c: E2 03 00 DE 32 00 90 00 84 [11:55:49]RAPDU: 90 00 [11:55:49]wFMCommunicate OK [11:55:49]wFMCommunicate request_size=10 [11:55:49]MH_SAM_APDU [11:55:49]CAPDU: 80 0D 02 02 05 BF 0E 2C 1B 87 [11:55:49]Write to MH i2c: E2 0D 00 DF 32 80 0D 02 02 05 00 BF 0E 2C 1B 87 00 00 30 [11:55:49]Write i2c OK [11:55:49]MH_I2C_Read... [11:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:49]Read from MH i2c: E2 [11:55:49]MH_I2C_Read... [11:55:49]Read from MH i2c: E2 03 00 [11:55:49]MH_I2C_Read... [11:55:49]Read from MH i2c: E2 03 00 DF 32 00 90 00 85 [11:55:49]RAPDU: 90 00 [11:55:49]wFMCommunicate OK [11:55:49]wFMCommunicate request_size=4 [11:55:49]MH_SAM_APDU [11:55:49]CAPDU: 80 0D 03 02 [11:55:49]Write to MH i2c: E2 08 00 E0 32 80 0D 03 02 00 00 00 00 8D [11:55:49]Write i2c OK [11:55:49]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 0B 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 0B 00 E0 32 00 7F 8B 2F 0E BE 10 D3 23 90 00 99 [11:55:50]RAPDU: 7F 8B 2F 0E BE 10 D3 23 90 00 [11:55:50]wFMCommunicate OK [11:55:50]SAM_PROTO_SignData done [11:55:50]FM_MakeSignedData done [11:55:50]CreateOFDProtocolMessage [11:55:50]wFMCommunicate request_size=4 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 11 00 00 [11:55:50]Write to MH i2c: E2 08 00 E1 32 80 11 00 00 00 00 00 00 8D [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 17 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 17 00 E1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E2 [11:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:55:50]wFMCommunicate OK [11:55:50]CreateOFDProtocolMessage done [11:55:50]OFDSenderStorePacket 156252 [11:55:50]StoreOFDPacket docnum=156252 [11:55:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F9 79 07 01 DB 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C8 D8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 62 02 00 35 04 06 00 69 BF 0E 2C 1B 87 7F 8B 2F 0E BE 10 D3 23 [11:55:50]CheckFolder [11:55:50]dirname=/storage/ofd_packets [11:55:50]CheckFolder done [11:55:50]ProducePacketName [11:55:50]name=ofd_packets/00156252 [11:55:50]NVStorageSaveData ofd_packets/00156252 [11:55:50]File name is /storage/ofd_packets/00156252 [11:55:50]Write 301 bytes [11:55:50]NVStorageSaveData done [11:55:50]OFDSenderStorePacket done [11:55:50]KKMCreateOFDPacket done [11:55:50]NVStorageSaveData kkm_last_timestamp [11:55:50]File name is /storage/kkm_last_timestamp [11:55:50]Write 4 bytes [11:55:50]NVStorageSaveData done [11:55:50]ExternCall_PrintAddStr [11:55:50]wPrintStart [11:55:50]Write to MH i2c: 01 00 00 E2 32 14 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: 01 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: 01 07 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: 01 07 00 E2 32 00 00 00 00 00 FF 0F 29 [11:55:50]RasterBufferAndPrint [11:55:50]line Счет N : (1)99067 [11:55:50]line ИНН: 02508201610067 [11:55:50]line Контрольно-Кассовый Чек [11:55:50]line ПРОДАЖА [11:55:50]line ТРК (МРК, ГНК) : 21 [11:55:50]line Товар: 2710124130 [11:55:50]line Аи-92-К-5 [11:55:50]line 14.950 * 66.90 [11:55:50]line = 1000.16 [11:55:50]line НДС 12% НСП 1% [11:55:50]line > о реализуемом товаре [11:55:50]line ОКРУГЛЕНИЕ: -0.16 [11:55:50]line ИТОГО: 1000.00 [11:55:50]line Внесено: 1000.00 [11:55:50]line СДАЧА: 0.00 [11:55:50]line НСП 1% : 8.85 [11:55:50]line НДС 12% : 106.21 [11:55:50]line Наличными: 1000.00 [11:55:50]line Безнал.: 0.00 [11:55:50]line Место: АЗС № 143 "Партнер Нефть" [11:55:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:55:50]line СНО: Общий режим [11:55:50]line Чек 153 26.10.2024 11:55 [11:55:50]line Смена: 536 ФФД: 1.0 [11:55:50]line ЗНМ: 0300000096 [11:55:50]line РНМ: 0000000000091693 [11:55:50]line Версия ККМ: 001 [11:55:50]line ФМ: 0000000000871792 [11:55:50]line ФД: 156252 [11:55:50]line ФПД: 116269297441671 [11:55:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115552&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156252&fm=116269297441671&tin=02508201610067®Number=0000000000091693&sum=100000 [11:55:50]OFD Sender: Processing packet 156252 [packets to send 31, broken 30] [11:55:50]ProducePacketName [11:55:50]name=ofd_packets/00156252 [11:55:50]written 0, free lines is 4095 [11:55:50]OFD Sender: To server: pG, [11:55:50]CommunicateWithHost lk.salyk.kg:30040 [11:55:50]ConnectInit lk.salyk.kg [11:55:50]Connected sock=11 [11:55:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F9 79 07 01 DB 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C8 D8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 62 02 00 35 04 06 00 69 BF 0E 2C 1B 87 7F 8B 2F 0E BE 10 D3 23 [11:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AB 47 47 00 76 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 62 02 00 F4 03 04 00 3B 7E 1C 67 B6 04 01 00 00 8B 59 C2 85 CB 26 0F 80 [11:55:50]CommunicateWithHost err = 0 [11:55:50]CheckOFDResponse [11:55:50]1017 (14) - 77093643461234 [11:55:50]1041 (16) - 0000000000871792 [11:55:50]1040 (4) - 156252 [11:55:50]1012 (4) - 26.10.2024 05:29 [11:55:50]1206 (1) - 0 [11:55:50]OFD Sender: Remove packet 156252 [11:55:50]ProducePacketName [11:55:50]name=ofd_packets/00156252 [11:55:50]NVStorageDeleteData [11:55:50]Write to MH i2c: 01 00 00 0D 33 40 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: 01 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: 01 07 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: 01 07 00 0D 33 00 00 00 00 00 EC 0C 3F [11:55:50]RasterBufferAndPrint [11:55:50]line [11:55:50]line [11:55:50]line [11:55:50]line [11:55:50]line [11:55:50]written 0, free lines is 3314 [11:55:50]process_action close_receipt done [11:55:50]requested_data is exist [11:55:50]produce_requested_data [11:55:50]requested_item fm.sn is exist - process it [11:55:50]wFMCommunicate request_size=4 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 11 00 00 [11:55:50]Write to MH i2c: E2 08 00 14 33 80 11 00 00 00 00 00 00 C1 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 17 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 17 00 14 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 16 [11:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:55:50]wFMCommunicate OK [11:55:50]requested_item fd.num is exist - process it [11:55:50]SAM_PROTO_GetFieldsCounters [11:55:50]wFMCommunicate request_size=4 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 13 00 00 [11:55:50]Write to MH i2c: E2 08 00 15 33 80 13 00 00 00 00 00 00 C4 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 62 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 62 00 15 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [11:55: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:51]wFMCommunicate OK [11:55:51]SAM_PROTO_GetFieldsCounters done [11:55:51]requested_item shift.num is exist - process it [11:55:51]requested_item shift.opened is exist - process it [11:55:51]req_shift_opened [11:55:51]FM_GetShiftState [11:55:51]SAM_PROTO_GetShiftState [11:55:51]wFMCommunicate request_size=4 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 13 01 00 [11:55:51]Write to MH i2c: E2 08 00 16 33 80 13 01 00 00 00 00 00 C6 [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 0E 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 0E 00 16 33 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FB [11:55:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:55:51]wFMCommunicate OK [11:55:51]SAM_PROTO_GetShiftState done [11:55:51]FM_GetShiftState done [11:55:51]req_shift_opened done [11:55:51]requested_item shift.open_date is exist - process it [11:55:51]req_shift_open_date [11:55:51]req_shift_open_date done [11:55:51]produce_requested_data done [11:55:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156252,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:55:51]process_action_free close_receipt [11:55:51]json_value_free [11:55:51]json_value_free done [11:55:51]process_json_proto returns [11:55:51]Send response to host [11:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156252,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:55:51]free response buf [11:55:51]execute_script done [11:55:51]execute_script returns [11:55:51]free content buf [11:55:51]Sock 7.Close socket [11:55:51]Sock 7.Thread stoped [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:51]accept exits with 9 [11:57:51]New connection [11:57:51]New thread 3066469732 created [11:57:51]Thread 3066613092 joined [11:57:51]Waiting for new connection... [11:57:51] Sock 9.Parse request [11:57:51]Sock 9.Check first char [11:57:51]Sock 9.First char is OK [11:57:51]request: POST /json_proto HTTP/1.0 [11:57:51]Method: POST [11:57:51]URL: /json_proto [11:57:51]Method is POST - this is cgi request [11:57:51]url: /json_proto [11:57:51]query_string will be loaded in cgi processing [11:57:51]execute_cgi json_proto POST (null) [11:57:51]execute_cgi path=json_proto method=POST [11:57:51]POST find Content-Length [11:57:51]Host: 172.17.63.3:8080 [11:57:51]Content-Length: 677 [11:57:51]Content-Type: application/json [11:57:51] [11:57:51]POST finish read [11:57:51]Found Content-Length = 677 [11:57:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:51]execute_script... [11:57:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:51]POST & json_proto [11:57:51]process_json_proto [11:57:51]json parsed OK: [11:57:51]protocol is kg_v1.0 [11:57:51]action value=close_receipt [11:57:51]process_action close_receipt [11:57:51]cmd_close_receipt [11:57:51]MH_GetDate [11:57:51]Write to MH i2c: F0 00 00 17 33 39 [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: F0 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: F0 09 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: F0 09 00 17 33 00 44 D9 1C 67 50 D1 6C 64 D3 [11:57:51]GetLastDocTimeStamp 1729943752 [11:57:51]current date 1729943876 [11:57:51]FM_GetShiftState [11:57:51]SAM_PROTO_GetShiftState [11:57:51]wFMCommunicate request_size=4 [11:57:51]MH_SAM_APDU [11:57:51]CAPDU: 80 13 01 00 [11:57:51]Write to MH i2c: E2 08 00 18 33 80 13 01 00 00 00 00 00 C8 [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:51]Read from MH i2c: E2 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: E2 0E 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: E2 0E 00 18 33 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FD [11:57:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:57:51]wFMCommunicate OK [11:57:51]SAM_PROTO_GetShiftState done [11:57:51]FM_GetShiftState done [11:57:51]opened in 1729902702 [11:57:51]opened+sec_in_day 1729989102 [11:57:51]quantity*price = 80012 [11:57:51]sum+1 = 80013 [11:57:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 154 26.10.2024 11:57 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156253 ФПД: 257561741949625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115756&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156253&fm=257561741949625&tin=02508201610067®Number=0000000000091693&sum=80000 [11:57:53]StoreToDocumentArchive [11:57:53]shift 536 fd 156253 [11:57:53]save to /storage/0536/doc_00156253 [11:57:53]save last doc name /storage/0536/doc_00156253 to /storage/kkm_last_doc_name [11:57:53]save OK [11:57:53]Clear old archive folders... [11:57:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:53]tlvbuf is 00D52010 [11:57:53]SAM_PROTO_ClearQueue [11:57:53]wFMCommunicate request_size=4 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 09 00 00 [11:57:53]Write to MH i2c: E2 08 00 25 33 80 09 00 00 00 00 00 00 CA [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 03 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 03 00 25 33 00 90 00 CC [11:57:53]RAPDU: 90 00 [11:57:53]wFMCommunicate OK [11:57:53]SAM_PROTO_ClearQueue done [11:57:53]KKMCreateOFDPacket [11:57:53]OFDProtocolAddRootSTLVToBuf [11:57:53]FM_MakeSignedData [11:57:53]FM_MakeSignedData [11:57:53]SAM_PROTO_SignData [11:57:53]wFMCommunicate request_size=4 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 0D 01 02 [11:57:53]Write to MH i2c: E2 08 00 26 33 80 0D 01 02 00 00 00 00 D2 [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 03 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 03 00 26 33 00 90 00 CD [11:57:53]RAPDU: 90 00 [11:57:53]wFMCommunicate OK [11:57:53]wFMCommunicate request_size=255 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 44 D9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 62 02 00 35 04 06 00 EA [11:57:53]Write to MH i2c: E2 02 01 27 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 44 D9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 62 02 00 35 04 06 00 EA 00 00 51 [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 03 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 03 00 27 33 00 90 00 CE [11:57:53]RAPDU: 90 00 [11:57:53]wFMCommunicate OK [11:57:53]wFMCommunicate request_size=10 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 0D 02 02 05 40 44 22 FA B9 [11:57:53]Write to MH i2c: E2 0D 00 28 33 80 0D 02 02 05 00 40 44 22 FA B9 00 00 38 [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 03 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 03 00 28 33 00 90 00 CF [11:57:53]RAPDU: 90 00 [11:57:53]wFMCommunicate OK [11:57:53]wFMCommunicate request_size=4 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 0D 03 02 [11:57:53]Write to MH i2c: E2 08 00 29 33 80 0D 03 02 00 00 00 00 D7 [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 0B 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 0B 00 29 33 00 B1 EF 4A 9F 14 4C AC 26 90 00 93 [11:57:53]RAPDU: B1 EF 4A 9F 14 4C AC 26 90 00 [11:57:53]wFMCommunicate OK [11:57:53]SAM_PROTO_SignData done [11:57:53]FM_MakeSignedData done [11:57:53]CreateOFDProtocolMessage [11:57:53]wFMCommunicate request_size=4 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 11 00 00 [11:57:53]Write to MH i2c: E2 08 00 2A 33 80 11 00 00 00 00 00 00 D7 [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 17 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 17 00 2A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2C [11:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:57:53]wFMCommunicate OK [11:57:53]CreateOFDProtocolMessage done [11:57:53]OFDSenderStorePacket 156253 [11:57:53]StoreOFDPacket docnum=156253 [11:57:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 E8 07 01 D3 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 44 D9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 62 02 00 35 04 06 00 EA 40 44 22 FA B9 B1 EF 4A 9F 14 4C AC 26 [11:57:53]CheckFolder [11:57:53]dirname=/storage/ofd_packets [11:57:53]CheckFolder done [11:57:53]ProducePacketName [11:57:53]name=ofd_packets/00156253 [11:57:53]NVStorageSaveData ofd_packets/00156253 [11:57:53]File name is /storage/ofd_packets/00156253 [11:57:53]Write 301 bytes [11:57:53]NVStorageSaveData done [11:57:53]OFDSenderStorePacket done [11:57:53]KKMCreateOFDPacket done [11:57:53]NVStorageSaveData kkm_last_timestamp [11:57:53]File name is /storage/kkm_last_timestamp [11:57:53]Write 4 bytes [11:57:53]NVStorageSaveData done [11:57:53]ExternCall_PrintAddStr [11:57:53]wPrintStart [11:57:53]Write to MH i2c: 01 00 00 2B 33 5E [11:57:53]OFD Sender: Processing packet 156253 [packets to send 31, broken 30] [11:57:53]ProducePacketName [11:57:53]name=ofd_packets/00156253 [11:57:53]OFD Sender: To server: pG, [11:57:53]CommunicateWithHost lk.salyk.kg:30040 [11:57:53]ConnectInit lk.salyk.kg [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: 01 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: 01 07 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: 01 07 00 2B 33 00 00 00 00 00 FF 0F 73 [11:57:53]RasterBufferAndPrint [11:57:53]line Счет N : (1)99068 [11:57:53]line ИНН: 02508201610067 [11:57:53]line Контрольно-Кассовый Чек [11:57:53]line ПРОДАЖА [11:57:53]line ТРК (МРК, ГНК) : 21 [11:57:53]line Товар: 2710124130 [11:57:53]line Аи-92-К-5 [11:57:53]line 11.960 * 66.90 [11:57:53]line = 800.12 [11:57:53]line НДС 12% НСП 1% [11:57:53]line > о реализуемом товаре [11:57:53]line ОКРУГЛЕНИЕ: -0.12 [11:57:53]line ИТОГО: 800.00 [11:57:53]line Внесено: 800.00 [11:57:53]line СДАЧА: 0.00 [11:57:53]line НСП 1% : 7.08 [11:57:53]line НДС 12% : 84.97 [11:57:53]line Наличными: 800.00 [11:57:53]line Безнал.: 0.00 [11:57:53]line Место: АЗС № 143 "Партнер Нефть" [11:57:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:57:53]line СНО: Общий режим [11:57:53]line Чек 154 26.10.2024 11:57 [11:57:53]line Смена: 536 ФФД: 1.0 [11:57:53]line ЗНМ: 0300000096 [11:57:53]line РНМ: 0000000000091693 [11:57:53]line Версия ККМ: 001 [11:57:53]line ФМ: 0000000000871792 [11:57:53]line ФД: 156253 [11:57:53]line ФПД: 257561741949625 [11:57:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115756&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156253&fm=257561741949625&tin=02508201610067®Number=0000000000091693&sum=80000 [11:57:53]Connected sock=10 [11:57:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 E8 07 01 D3 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 44 D9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 62 02 00 35 04 06 00 EA 40 44 22 FA B9 B1 EF 4A 9F 14 4C AC 26 [11:57:53]written 0, free lines is 4095 [11:57:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 63 1A 47 00 EF 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 62 02 00 F4 03 04 00 B6 7E 1C 67 B6 04 01 00 00 9D FB 60 1A C0 0F B9 3F [11:57:54]CommunicateWithHost err = 0 [11:57:54]CheckOFDResponse [11:57:54]1017 (14) - 77093643461234 [11:57:54]1041 (16) - 0000000000871792 [11:57:54]1040 (4) - 156253 [11:57:54]1012 (4) - 26.10.2024 05:31 [11:57:54]1206 (1) - 0 [11:57:54]OFD Sender: Remove packet 156253 [11:57:54]ProducePacketName [11:57:54]name=ofd_packets/00156253 [11:57:54]NVStorageDeleteData [11:57:54]Write to MH i2c: 01 00 00 56 33 89 [11:57:54]Write i2c OK [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: 01 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: 01 07 00 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: 01 07 00 56 33 00 00 00 00 00 E8 0C 84 [11:57:54]RasterBufferAndPrint [11:57:54]line [11:57:54]line [11:57:54]line [11:57:54]line [11:57:54]line [11:57:54]written 0, free lines is 3311 [11:57:54]process_action close_receipt done [11:57:54]requested_data is exist [11:57:54]produce_requested_data [11:57:54]requested_item fm.sn is exist - process it [11:57:54]wFMCommunicate request_size=4 [11:57:54]MH_SAM_APDU [11:57:54]CAPDU: 80 11 00 00 [11:57:54]Write to MH i2c: E2 08 00 5D 33 80 11 00 00 00 00 00 00 0A [11:57:54]Write i2c OK [11:57:54]MH_I2C_Read... [11:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:54]Read from MH i2c: E2 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 17 00 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 17 00 5D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5F [11:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:57:54]wFMCommunicate OK [11:57:54]requested_item fd.num is exist - process it [11:57:54]SAM_PROTO_GetFieldsCounters [11:57:54]wFMCommunicate request_size=4 [11:57:54]MH_SAM_APDU [11:57:54]CAPDU: 80 13 00 00 [11:57:54]Write to MH i2c: E2 08 00 5E 33 80 13 00 00 00 00 00 00 0D [11:57:54]Write i2c OK [11:57:54]MH_I2C_Read... [11:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:54]Read from MH i2c: E2 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 62 00 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 62 00 5E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11:57: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:54]wFMCommunicate OK [11:57:54]SAM_PROTO_GetFieldsCounters done [11:57:54]requested_item shift.num is exist - process it [11:57:54]requested_item shift.opened is exist - process it [11:57:54]req_shift_opened [11:57:54]FM_GetShiftState [11:57:54]SAM_PROTO_GetShiftState [11:57:54]wFMCommunicate request_size=4 [11:57:54]MH_SAM_APDU [11:57:54]CAPDU: 80 13 01 00 [11:57:54]Write to MH i2c: E2 08 00 5F 33 80 13 01 00 00 00 00 00 0F [11:57:54]Write i2c OK [11:57:54]MH_I2C_Read... [11:57:54]OFD Sender: No OFD packet to send [11:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:54]Read from MH i2c: E2 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 0E 00 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 0E 00 5F 33 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 44 [11:57:54]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:57:54]wFMCommunicate OK [11:57:54]SAM_PROTO_GetShiftState done [11:57:54]FM_GetShiftState done [11:57:54]req_shift_opened done [11:57:54]requested_item shift.open_date is exist - process it [11:57:54]req_shift_open_date [11:57:54]req_shift_open_date done [11:57:54]produce_requested_data done [11:57:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156253,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:57:54]process_action_free close_receipt [11:57:54]json_value_free [11:57:54]json_value_free done [11:57:54]process_json_proto returns [11:57:54]Send response to host [11:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156253,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:57:54]free response buf [11:57:54]execute_script done [11:57:54]execute_script returns [11:57:54]free content buf [11:57:54]Sock 9.Close socket [11:57:54]Sock 9.Thread stoped [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:22]accept exits with 7 [11:59:22]New connection [11:59:22]New thread 3066613092 created [11:59:22]Thread 3066469732 joined [11:59:22]Waiting for new connection... [11:59:22] Sock 7.Parse request [11:59:22]Sock 7.Check first char [11:59:22]Sock 7.First char is OK [11:59:22]request: POST /json_proto HTTP/1.0 [11:59:22]Method: POST [11:59:22]URL: /json_proto [11:59:22]Method is POST - this is cgi request [11:59:22]url: /json_proto [11:59:22]query_string will be loaded in cgi processing [11:59:22]execute_cgi json_proto POST (null) [11:59:22]execute_cgi path=json_proto method=POST [11:59:22]POST find Content-Length [11:59:22]Host: 172.17.63.3:8080 [11:59:22]Content-Length: 796 [11:59:22]Content-Type: application/json [11:59:22] [11:59:22]POST finish read [11:59:22]Found Content-Length = 796 [11:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466747", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:22]execute_script... [11:59:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466747", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:22]POST & json_proto [11:59:22]process_json_proto [11:59:22]json parsed OK: [11:59:22]protocol is kg_v1.0 [11:59:22]action value=close_receipt [11:59:22]process_action close_receipt [11:59:22]cmd_close_receipt [11:59:22]MH_GetDate [11:59:22]Write to MH i2c: F0 00 00 60 33 82 [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 09 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 09 00 60 33 00 9E D9 1C 67 50 D1 6C 64 76 [11:59:22]GetLastDocTimeStamp 1729943876 [11:59:22]current date 1729943966 [11:59:22]FM_GetShiftState [11:59:22]SAM_PROTO_GetShiftState [11:59:22]wFMCommunicate request_size=4 [11:59:22]MH_SAM_APDU [11:59:22]CAPDU: 80 13 01 00 [11:59:22]Write to MH i2c: E2 08 00 61 33 80 13 01 00 00 00 00 00 11 [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:22]Read from MH i2c: E2 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 0E 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 0E 00 61 33 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 46 [11:59:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:59:22]wFMCommunicate OK [11:59:22]SAM_PROTO_GetShiftState done [11:59:22]FM_GetShiftState done [11:59:22]opened in 1729902702 [11:59:22]opened+sec_in_day 1729989102 [11:59:22]quantity*price = 0 [11:59:22]sum+1 = 1 [11:59:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 155 26.10.2024 11:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4466747 ФМ: 0000000000871792 ФД: 156254 ФПД: 99119195446672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115926&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156254&fm=99119195446672&tin=02508201610067®Number=0000000000091693&sum=0 [11:59:23]StoreToDocumentArchive [11:59:23]shift 536 fd 156254 [11:59:23]save to /storage/0536/doc_00156254 [11:59:23]save last doc name /storage/0536/doc_00156254 to /storage/kkm_last_doc_name [11:59:23]save OK [11:59:23]Clear old archive folders... [11:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:59:23]tlvbuf is 00D8AD80 [11:59:23]SAM_PROTO_ClearQueue [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 09 00 00 [11:59:23]Write to MH i2c: E2 08 00 6E 33 80 09 00 00 00 00 00 00 13 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 6E 33 00 90 00 15 [11:59:23]RAPDU: 90 00 [11:59:23]wFMCommunicate OK [11:59:23]SAM_PROTO_ClearQueue done [11:59:23]KKMCreateOFDPacket [11:59:23]OFDProtocolAddRootSTLVToBuf [11:59:23]FM_MakeSignedData [11:59:23]FM_MakeSignedData [11:59:23]SAM_PROTO_SignData [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 0D 01 02 [11:59:23]Write to MH i2c: E2 08 00 6F 33 80 0D 01 02 00 00 00 00 1B [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 6F 33 00 90 00 16 [11:59:23]RAPDU: 90 00 [11:59:23]wFMCommunicate OK [11:59:23]wFMCommunicate request_size=255 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 9E D9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 62 02 00 35 04 06 00 5A 25 FC 6F [11:59:23]Write to MH i2c: E2 02 01 70 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 9E D9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 62 02 00 35 04 06 00 5A 25 FC 6F 00 00 0F [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 70 33 00 90 00 17 [11:59:23]RAPDU: 90 00 [11:59:23]wFMCommunicate OK [11:59:23]wFMCommunicate request_size=7 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 0D 02 02 02 5D 90 [11:59:23]Write to MH i2c: E2 0A 00 71 33 80 0D 02 02 02 00 5D 90 00 00 0F [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 71 33 00 90 00 18 [11:59:23]RAPDU: 90 00 [11:59:23]wFMCommunicate OK [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 0D 03 02 [11:59:23]Write to MH i2c: E2 08 00 72 33 80 0D 03 02 00 00 00 00 20 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 0B 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 0B 00 72 33 00 80 EE 64 EE BF EC 89 96 90 00 AB [11:59:23]RAPDU: 80 EE 64 EE BF EC 89 96 90 00 [11:59:23]wFMCommunicate OK [11:59:23]SAM_PROTO_SignData done [11:59:23]FM_MakeSignedData done [11:59:23]CreateOFDProtocolMessage [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 11 00 00 [11:59:23]Write to MH i2c: E2 08 00 73 33 80 11 00 00 00 00 00 00 20 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 17 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 17 00 73 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 75 [11:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:59:23]wFMCommunicate OK [11:59:23]CreateOFDProtocolMessage done [11:59:23]OFDSenderStorePacket 156254 [11:59:23]StoreOFDPacket docnum=156254 [11:59:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C1 11 04 01 59 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 9E D9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 62 02 00 35 04 06 00 5A 25 FC 6F 5D 90 80 EE 64 EE BF EC 89 96 [11:59:23]CheckFolder [11:59:23]dirname=/storage/ofd_packets [11:59:23]CheckFolder done [11:59:23]ProducePacketName [11:59:23]name=ofd_packets/00156254 [11:59:23]NVStorageSaveData ofd_packets/00156254 [11:59:23]File name is /storage/ofd_packets/00156254 [11:59:23]Write 298 bytes [11:59:23]NVStorageSaveData done [11:59:23]OFDSenderStorePacket done [11:59:23]KKMCreateOFDPacket done [11:59:23]NVStorageSaveData kkm_last_timestamp [11:59:23]File name is /storage/kkm_last_timestamp [11:59:23]Write 4 bytes [11:59:23]NVStorageSaveData done [11:59:23]ExternCall_PrintAddStr [11:59:23]wPrintStart [11:59:23]Write to MH i2c: 01 00 00 74 33 A7 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: 01 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: 01 07 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: 01 07 00 74 33 00 00 00 00 00 FF 0F BC [11:59:23]RasterBufferAndPrint [11:59:23]line Счет N : (1)99069 [11:59:23]line ИНН: 02508201610067 [11:59:23]line Контрольно-Кассовый Чек [11:59:23]line ПРОДАЖА [11:59:23]line ТРК (МРК, ГНК) : 32 [11:59:23]line Товар: 2710194210 [11:59:23]line ДТ-К-5 [11:59:23]line 10.000 * 0.00 [11:59:23]line = 0.00 [11:59:23]line НДС 12% НСП 1% [11:59:23]line > о реализуемом товаре [11:59:23]line ИТОГО: 0.00 [11:59:23]line НСП 1% : 0.00 [11:59:23]line НДС 12% : 0.00 [11:59:23]line Наличными: 0.00 [11:59:23]line Безнал.: 0.00 [11:59:23]line Место: АЗС № 143 "Партнер Нефть" [11:59:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:59:23]line СНО: Общий режим [11:59:23]line Чек 155 26.10.2024 11:59 [11:59:23]line Смена: 536 ФФД: 1.0 [11:59:23]line ЗНМ: 0300000096 [11:59:23]line РНМ: 0000000000091693 [11:59:23]line Версия ККМ: 001 [11:59:23]line Талоны: Топливные Талоны [11:59:23]line 4466747 [11:59:23]line ФМ: 0000000000871792 [11:59:23]line ФД: 156254 [11:59:23]line ФПД: 99119195446672 [11:59:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115926&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156254&fm=99119195446672&tin=02508201610067®Number=0000000000091693&sum=0 [11:59:24]OFD Sender: Processing packet 156254 [packets to send 31, broken 30] [11:59:24]ProducePacketName [11:59:24]name=ofd_packets/00156254 [11:59:24]OFD Sender: To server: pG, [11:59:24]CommunicateWithHost lk.salyk.kg:30040 [11:59:24]ConnectInit lk.salyk.kg [11:59:24]written 0, free lines is 4095 [11:59:24]Connected sock=10 [11:59:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C1 11 04 01 59 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 9E D9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 62 02 00 35 04 06 00 5A 25 FC 6F 5D 90 80 EE 64 EE BF EC 89 96 [11:59:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7C 59 47 00 2C 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 31 37 39 32 10 04 04 00 5E 62 02 00 F4 03 04 00 11 7F 1C 67 B6 04 01 00 00 00 39 A4 E1 8E BF 60 7D [11:59:24]CommunicateWithHost err = 0 [11:59:24]CheckOFDResponse [11:59:24]1017 (14) - 77093643461234 [11:59:24]1041 (16) - 0000000000871792 [11:59:24]1040 (4) - 156254 [11:59:24]1012 (4) - 26.10.2024 05:33 [11:59:24]1206 (1) - 0 [11:59:24]OFD Sender: Remove packet 156254 [11:59:24]ProducePacketName [11:59:24]name=ofd_packets/00156254 [11:59:24]NVStorageDeleteData [11:59:24]Write to MH i2c: 01 00 00 9E 33 D1 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 07 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 07 00 9E 33 00 00 00 00 00 F9 0C DD [11:59:24]RasterBufferAndPrint [11:59:24]line [11:59:24]line [11:59:24]line [11:59:24]line [11:59:24]line [11:59:24]written 0, free lines is 3328 [11:59:24]process_action close_receipt done [11:59:24]requested_data is exist [11:59:24]produce_requested_data [11:59:24]requested_item fm.sn is exist - process it [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 11 00 00 [11:59:24]Write to MH i2c: E2 08 00 A5 33 80 11 00 00 00 00 00 00 52 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 17 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 17 00 A5 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [11:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:59:24]wFMCommunicate OK [11:59:24]requested_item fd.num is exist - process it [11:59:24]SAM_PROTO_GetFieldsCounters [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 13 00 00 [11:59:24]Write to MH i2c: E2 08 00 A6 33 80 13 00 00 00 00 00 00 55 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 62 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 62 00 A6 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [11:59: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:24]wFMCommunicate OK [11:59:24]SAM_PROTO_GetFieldsCounters done [11:59:24]requested_item shift.num is exist - process it [11:59:24]requested_item shift.opened is exist - process it [11:59:24]req_shift_opened [11:59:24]FM_GetShiftState [11:59:24]SAM_PROTO_GetShiftState [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 13 01 00 [11:59:24]Write to MH i2c: E2 08 00 A7 33 80 13 01 00 00 00 00 00 57 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 0E 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 0E 00 A7 33 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8C [11:59:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [11:59:24]wFMCommunicate OK [11:59:24]SAM_PROTO_GetShiftState done [11:59:24]FM_GetShiftState done [11:59:24]req_shift_opened done [11:59:24]requested_item shift.open_date is exist - process it [11:59:24]req_shift_open_date [11:59:24]req_shift_open_date done [11:59:24]produce_requested_data done [11:59:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156254,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [11:59:24]process_action_free close_receipt [11:59:24]json_value_free [11:59:24]json_value_free done [11:59:24]process_json_proto returns [11:59:24]Send response to host [11:59:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156254,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [11:59:24]free response buf [11:59:24]execute_script done [11:59:24]execute_script returns [11:59:24]free content buf [11:59:24]Sock 7.Close socket [11:59:24]Sock 7.Thread stoped [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:06]int [12:01:06]Write to MH i2c: 01 00 00 A8 33 DB [12:01:06]*** FLAG_PRN_KEY set [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 A8 33 00 08 00 00 00 FF 0F F8 [12:01:06]state=0 [12:01:06]Key pressed [12:01:06]Feed [12:01:06]Write to MH i2c: D8 00 00 A9 33 B3 [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: D8 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: D8 01 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: D8 01 00 A9 33 00 B4 [12:01:06]int [12:01:06]Write to MH i2c: 01 00 00 AA 33 DD [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 AA 33 00 48 00 00 00 3D 00 69 [12:01:06]state=2 [12:01:06]Key pressed [12:01:06]int [12:01:06]Write to MH i2c: 01 00 00 AB 33 DE [12:01:06]*** FLAG_PRN_KEY reset [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 AB 33 00 00 00 00 00 F7 0F EB [12:01:06]state=2 [12:01:06]Stop feed [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:17]accept exits with 9 [12:02:17]New connection [12:02:17]New thread 3066469732 created [12:02:17]Thread 3066613092 joined [12:02:17]Waiting for new connection... [12:02:17] Sock 9.Parse request [12:02:17]Sock 9.Check first char [12:02:17]Sock 9.First char is OK [12:02:17]request: POST /json_proto HTTP/1.0 [12:02:17]Method: POST [12:02:17]URL: /json_proto [12:02:17]Method is POST - this is cgi request [12:02:17]url: /json_proto [12:02:17]query_string will be loaded in cgi processing [12:02:17]execute_cgi json_proto POST (null) [12:02:17]execute_cgi path=json_proto method=POST [12:02:17]POST find Content-Length [12:02:17]Host: 172.17.63.3:8080 [12:02:17]Content-Length: 676 [12:02:17]Content-Type: application/json [12:02:17] [12:02:17]POST finish read [12:02:17]Found Content-Length = 676 [12:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:17]execute_script... [12:02:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:17]POST & json_proto [12:02:17]process_json_proto [12:02:17]json parsed OK: [12:02:17]protocol is kg_v1.0 [12:02:17]action value=close_receipt [12:02:17]process_action close_receipt [12:02:17]cmd_close_receipt [12:02:17]MH_GetDate [12:02:17]Write to MH i2c: F0 00 00 AC 33 CE [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: F0 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: F0 09 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: F0 09 00 AC 33 00 4E DA 1C 67 50 D1 6C 64 73 [12:02:17]GetLastDocTimeStamp 1729943966 [12:02:17]current date 1729944142 [12:02:17]FM_GetShiftState [12:02:17]SAM_PROTO_GetShiftState [12:02:17]wFMCommunicate request_size=4 [12:02:17]MH_SAM_APDU [12:02:17]CAPDU: 80 13 01 00 [12:02:17]Write to MH i2c: E2 08 00 AD 33 80 13 01 00 00 00 00 00 5D [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 0E 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 0E 00 AD 33 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 92 [12:02:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:02:17]wFMCommunicate OK [12:02:17]SAM_PROTO_GetShiftState done [12:02:17]FM_GetShiftState done [12:02:17]opened in 1729902702 [12:02:17]opened+sec_in_day 1729989102 [12:02:17]quantity*price = 60009 [12:02:17]sum+1 = 60010 [12:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 156 26.10.2024 12:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156255 ФПД: 224181709958930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120222&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156255&fm=224181709958930&tin=02508201610067®Number=0000000000091693&sum=60000 [12:02:19]StoreToDocumentArchive [12:02:19]shift 536 fd 156255 [12:02:19]save to /storage/0536/doc_00156255 [12:02:19]save last doc name /storage/0536/doc_00156255 to /storage/kkm_last_doc_name [12:02:19]save OK [12:02:19]Clear old archive folders... [12:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:19]tlvbuf is 00D816B0 [12:02:19]SAM_PROTO_ClearQueue [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 09 00 00 [12:02:19]Write to MH i2c: E2 08 00 BA 33 80 09 00 00 00 00 00 00 5F [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 BA 33 00 90 00 61 [12:02:19]RAPDU: 90 00 [12:02:19]wFMCommunicate OK [12:02:19]SAM_PROTO_ClearQueue done [12:02:19]KKMCreateOFDPacket [12:02:19]OFDProtocolAddRootSTLVToBuf [12:02:19]FM_MakeSignedData [12:02:19]FM_MakeSignedData [12:02:19]SAM_PROTO_SignData [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 0D 01 02 [12:02:19]Write to MH i2c: E2 08 00 BB 33 80 0D 01 02 00 00 00 00 67 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 BB 33 00 90 00 62 [12:02:19]RAPDU: 90 00 [12:02:19]wFMCommunicate OK [12:02:19]wFMCommunicate request_size=255 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 4E DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 62 02 00 35 04 06 00 CB [12:02:19]Write to MH i2c: E2 02 01 BC 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 4E DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 62 02 00 35 04 06 00 CB 00 00 C7 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 BC 33 00 90 00 63 [12:02:19]RAPDU: 90 00 [12:02:19]wFMCommunicate OK [12:02:19]wFMCommunicate request_size=10 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 0D 02 02 05 E4 5F 2F EF 12 [12:02:19]Write to MH i2c: E2 0D 00 BD 33 80 0D 02 02 05 00 E4 5F 2F EF 12 00 00 E7 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 BD 33 00 90 00 64 [12:02:19]RAPDU: 90 00 [12:02:19]wFMCommunicate OK [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 0D 03 02 [12:02:19]Write to MH i2c: E2 08 00 BE 33 80 0D 03 02 00 00 00 00 6C [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 0B 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 0B 00 BE 33 00 E7 D6 AC 8B 4C E9 00 D6 90 00 6C [12:02:19]RAPDU: E7 D6 AC 8B 4C E9 00 D6 90 00 [12:02:19]wFMCommunicate OK [12:02:19]SAM_PROTO_SignData done [12:02:19]FM_MakeSignedData done [12:02:19]CreateOFDProtocolMessage [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 11 00 00 [12:02:19]Write to MH i2c: E2 08 00 BF 33 80 11 00 00 00 00 00 00 6C [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 17 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 17 00 BF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C1 [12:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:02:19]wFMCommunicate OK [12:02:19]CreateOFDProtocolMessage done [12:02:19]OFDSenderStorePacket 156255 [12:02:19]StoreOFDPacket docnum=156255 [12:02:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 56 FB 07 01 6D 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 4E DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 62 02 00 35 04 06 00 CB E4 5F 2F EF 12 E7 D6 AC 8B 4C E9 00 D6 [12:02:19]CheckFolder [12:02:19]dirname=/storage/ofd_packets [12:02:19]CheckFolder done [12:02:19]ProducePacketName [12:02:19]name=ofd_packets/00156255 [12:02:19]NVStorageSaveData ofd_packets/00156255 [12:02:19]File name is /storage/ofd_packets/00156255 [12:02:19]Write 301 bytes [12:02:19]NVStorageSaveData done [12:02:19]OFDSenderStorePacket done [12:02:19]KKMCreateOFDPacket done [12:02:19]NVStorageSaveData kkm_last_timestamp [12:02:19]File name is /storage/kkm_last_timestamp [12:02:19]Write 4 bytes [12:02:19]NVStorageSaveData done [12:02:19]ExternCall_PrintAddStr [12:02:19]wPrintStart [12:02:19]Write to MH i2c: 01 00 00 C0 33 F3 [12:02:19]OFD Sender: Processing packet 156255 [packets to send 31, broken 30] [12:02:19]ProducePacketName [12:02:19]name=ofd_packets/00156255 [12:02:19]OFD Sender: To server: pG, [12:02:19]CommunicateWithHost lk.salyk.kg:30040 [12:02:19]ConnectInit lk.salyk.kg [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: 01 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: 01 07 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: 01 07 00 C0 33 00 00 00 00 00 FF 0F 08 [12:02:19]RasterBufferAndPrint [12:02:19]line Счет N : (1)99070 [12:02:19]line ИНН: 02508201610067 [12:02:19]line Контрольно-Кассовый Чек [12:02:19]line ПРОДАЖА [12:02:19]line ТРК (МРК, ГНК) : 31 [12:02:19]line Товар: 2710124130 [12:02:19]line Аи-92-К-5 [12:02:19]line 8.970 * 66.90 [12:02:19]line = 600.09 [12:02:19]line НДС 12% НСП 1% [12:02:19]line > о реализуемом товаре [12:02:19]line ОКРУГЛЕНИЕ: -0.09 [12:02:19]line ИТОГО: 600.00 [12:02:19]line Внесено: 600.00 [12:02:19]line СДАЧА: 0.00 [12:02:19]line НСП 1% : 5.31 [12:02:19]line НДС 12% : 63.73 [12:02:19]line Наличными: 600.00 [12:02:19]line Безнал.: 0.00 [12:02:19]line Место: АЗС № 143 "Партнер Нефть" [12:02:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:02:19]line СНО: Общий режим [12:02:19]line Чек 156 26.10.2024 12:02 [12:02:19]line Смена: 536 ФФД: 1.0 [12:02:19]line ЗНМ: 0300000096 [12:02:19]line РНМ: 0000000000091693 [12:02:19]line Версия ККМ: 001 [12:02:19]line ФМ: 0000000000871792 [12:02:19]line ФД: 156255 [12:02:19]line ФПД: 224181709958930 [12:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120222&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156255&fm=224181709958930&tin=02508201610067®Number=0000000000091693&sum=60000 [12:02:19]Connected sock=10 [12:02:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 56 FB 07 01 6D 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 4E DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 62 02 00 35 04 06 00 CB E4 5F 2F EF 12 E7 D6 AC 8B 4C E9 00 D6 [12:02:20]written 0, free lines is 4095 [12:02:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D4 F4 47 00 D4 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 62 02 00 F4 03 04 00 C0 7F 1C 67 B6 04 01 00 00 D6 EA FA 10 84 05 EA 0D [12:02:20]CommunicateWithHost err = 0 [12:02:20]CheckOFDResponse [12:02:20]1017 (14) - 77093643461234 [12:02:20]1041 (16) - 0000000000871792 [12:02:20]1040 (4) - 156255 [12:02:20]1012 (4) - 26.10.2024 05:36 [12:02:20]1206 (1) - 0 [12:02:20]OFD Sender: Remove packet 156255 [12:02:20]ProducePacketName [12:02:20]name=ofd_packets/00156255 [12:02:20]NVStorageDeleteData [12:02:20]Write to MH i2c: 01 00 00 EB 33 1E [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 07 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 07 00 EB 33 00 00 00 00 00 F2 0C 23 [12:02:20]RasterBufferAndPrint [12:02:20]line [12:02:20]line [12:02:20]line [12:02:20]line [12:02:20]line [12:02:20]written 0, free lines is 3323 [12:02:20]process_action close_receipt done [12:02:20]requested_data is exist [12:02:20]produce_requested_data [12:02:20]requested_item fm.sn is exist - process it [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 11 00 00 [12:02:20]Write to MH i2c: E2 08 00 F2 33 80 11 00 00 00 00 00 00 9F [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 17 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 17 00 F2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [12:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:02:20]wFMCommunicate OK [12:02:20]requested_item fd.num is exist - process it [12:02:20]SAM_PROTO_GetFieldsCounters [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 13 00 00 [12:02:20]Write to MH i2c: E2 08 00 F3 33 80 13 00 00 00 00 00 00 A2 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:20]OFD Sender: No OFD packet to send [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 62 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 62 00 F3 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [12:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:20]wFMCommunicate OK [12:02:20]SAM_PROTO_GetFieldsCounters done [12:02:20]requested_item shift.num is exist - process it [12:02:20]requested_item shift.opened is exist - process it [12:02:20]req_shift_opened [12:02:20]FM_GetShiftState [12:02:20]SAM_PROTO_GetShiftState [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 13 01 00 [12:02:20]Write to MH i2c: E2 08 00 F4 33 80 13 01 00 00 00 00 00 A4 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0E 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0E 00 F4 33 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D9 [12:02:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:02:20]wFMCommunicate OK [12:02:20]SAM_PROTO_GetShiftState done [12:02:20]FM_GetShiftState done [12:02:20]req_shift_opened done [12:02:20]requested_item shift.open_date is exist - process it [12:02:20]req_shift_open_date [12:02:20]req_shift_open_date done [12:02:20]produce_requested_data done [12:02:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156255,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:02:20]process_action_free close_receipt [12:02:20]json_value_free [12:02:20]json_value_free done [12:02:20]process_json_proto returns [12:02:20]Send response to host [12:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156255,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:02:20]free response buf [12:02:20]execute_script done [12:02:20]execute_script returns [12:02:20]free content buf [12:02:20]Sock 9.Close socket [12:02:20]Sock 9.Thread stoped [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [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:04:57]accept exits with 7 [12:04:57]New connection [12:04:57]New thread 3066613092 created [12:04:57]Thread 3066469732 joined [12:04:57]Waiting for new connection... [12:04:57] Sock 7.Parse request [12:04:57]Sock 7.Check first char [12:04:57]Sock 7.First char is OK [12:04:57]request: POST /json_proto HTTP/1.0 [12:04:57]Method: POST [12:04:57]URL: /json_proto [12:04:57]Method is POST - this is cgi request [12:04:57]url: /json_proto [12:04:57]query_string will be loaded in cgi processing [12:04:57]execute_cgi json_proto POST (null) [12:04:57]execute_cgi path=json_proto method=POST [12:04:57]POST find Content-Length [12:04:57]Host: 172.17.63.3:8080 [12:04:57]Content-Length: 677 [12:04:57]Content-Type: application/json [12:04:57] [12:04:57]POST finish read [12:04:57]Found Content-Length = 677 [12:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:57]execute_script... [12:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:57]POST & json_proto [12:04:57]process_json_proto [12:04:57]json parsed OK: [12:04:57]protocol is kg_v1.0 [12:04:57]action value=close_receipt [12:04:57]process_action close_receipt [12:04:57]cmd_close_receipt [12:04:57]MH_GetDate [12:04:57]Write to MH i2c: F0 00 00 F5 33 17 [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: F0 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: F0 09 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: F0 09 00 F5 33 00 EE DA 1C 67 50 D1 6C 64 5C [12:04:57]GetLastDocTimeStamp 1729944142 [12:04:57]current date 1729944302 [12:04:57]FM_GetShiftState [12:04:57]SAM_PROTO_GetShiftState [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 13 01 00 [12:04:57]Write to MH i2c: E2 08 00 F6 33 80 13 01 00 00 00 00 00 A6 [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 0E 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 0E 00 F6 33 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DB [12:04:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:04:57]wFMCommunicate OK [12:04:57]SAM_PROTO_GetShiftState done [12:04:57]FM_GetShiftState done [12:04:57]opened in 1729902702 [12:04:57]opened+sec_in_day 1729989102 [12:04:57]quantity*price = 70044 [12:04:57]sum+1 = 70045 [12:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 157 26.10.2024 12:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156256 ФПД: 77083656235606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120502&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156256&fm=77083656235606&tin=02508201610067®Number=0000000000091693&sum=70000 [12:04:59]StoreToDocumentArchive [12:04:59]shift 536 fd 156256 [12:04:59]save to /storage/0536/doc_00156256 [12:04:59]save last doc name /storage/0536/doc_00156256 to /storage/kkm_last_doc_name [12:04:59]save OK [12:04:59]Clear old archive folders... [12:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:59]tlvbuf is 00D8ABC0 [12:04:59]SAM_PROTO_ClearQueue [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 09 00 00 [12:04:59]Write to MH i2c: E2 08 00 03 34 80 09 00 00 00 00 00 00 A9 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 03 34 00 90 00 AB [12:04:59]RAPDU: 90 00 [12:04:59]wFMCommunicate OK [12:04:59]SAM_PROTO_ClearQueue done [12:04:59]KKMCreateOFDPacket [12:04:59]OFDProtocolAddRootSTLVToBuf [12:04:59]FM_MakeSignedData [12:04:59]FM_MakeSignedData [12:04:59]SAM_PROTO_SignData [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 0D 01 02 [12:04:59]Write to MH i2c: E2 08 00 04 34 80 0D 01 02 00 00 00 00 B1 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 04 34 00 90 00 AC [12:04:59]RAPDU: 90 00 [12:04:59]wFMCommunicate OK [12:04:59]wFMCommunicate request_size=255 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 EE DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 62 02 00 35 04 06 00 46 [12:04:59]Write to MH i2c: E2 02 01 05 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 EE DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 62 02 00 35 04 06 00 46 00 00 61 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 05 34 00 90 00 AD [12:04:59]RAPDU: 90 00 [12:04:59]wFMCommunicate OK [12:04:59]wFMCommunicate request_size=10 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 0D 02 02 05 1B 6F F2 AA 56 [12:04:59]Write to MH i2c: E2 0D 00 06 34 80 0D 02 02 05 00 1B 6F F2 AA 56 00 00 3A [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 06 34 00 90 00 AE [12:04:59]RAPDU: 90 00 [12:04:59]wFMCommunicate OK [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 0D 03 02 [12:04:59]Write to MH i2c: E2 08 00 07 34 80 0D 03 02 00 00 00 00 B6 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 0B 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 0B 00 07 34 00 93 7E B6 6C 14 F6 AA 30 90 00 CE [12:04:59]RAPDU: 93 7E B6 6C 14 F6 AA 30 90 00 [12:04:59]wFMCommunicate OK [12:04:59]SAM_PROTO_SignData done [12:04:59]FM_MakeSignedData done [12:04:59]CreateOFDProtocolMessage [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 11 00 00 [12:04:59]Write to MH i2c: E2 08 00 08 34 80 11 00 00 00 00 00 00 B6 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 17 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 17 00 08 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0B [12:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:04:59]wFMCommunicate OK [12:04:59]CreateOFDProtocolMessage done [12:04:59]OFDSenderStorePacket 156256 [12:04:59]StoreOFDPacket docnum=156256 [12:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CC BF 07 01 17 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 EE DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 62 02 00 35 04 06 00 46 1B 6F F2 AA 56 93 7E B6 6C 14 F6 AA 30 [12:04:59]CheckFolder [12:04:59]dirname=/storage/ofd_packets [12:04:59]CheckFolder done [12:04:59]ProducePacketName [12:04:59]name=ofd_packets/00156256 [12:04:59]NVStorageSaveData ofd_packets/00156256 [12:04:59]File name is /storage/ofd_packets/00156256 [12:04:59]Write 301 bytes [12:04:59]NVStorageSaveData done [12:04:59]OFDSenderStorePacket done [12:04:59]KKMCreateOFDPacket done [12:04:59]NVStorageSaveData kkm_last_timestamp [12:04:59]File name is /storage/kkm_last_timestamp [12:04:59]Write 4 bytes [12:04:59]NVStorageSaveData done [12:04:59]ExternCall_PrintAddStr [12:04:59]wPrintStart [12:04:59]Write to MH i2c: 01 00 00 09 34 3D [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: 01 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: 01 07 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: 01 07 00 09 34 00 00 00 00 00 FF 0F 52 [12:04:59]RasterBufferAndPrint [12:04:59]line Счет N : (1)99072 [12:04:59]line ИНН: 02508201610067 [12:04:59]line Контрольно-Кассовый Чек [12:04:59]line ПРОДАЖА [12:04:59]line ТРК (МРК, ГНК) : 21 [12:04:59]line Товар: 2710124130 [12:04:59]line Аи-92-К-5 [12:04:59]line 10.470 * 66.90 [12:04:59]line = 700.44 [12:04:59]line НДС 12% НСП 1% [12:04:59]line > о реализуемом товаре [12:04:59]line ОКРУГЛЕНИЕ: -0.44 [12:04:59]line ИТОГО: 700.00 [12:04:59]line Внесено: 700.00 [12:04:59]line СДАЧА: 0.00 [12:04:59]line НСП 1% : 6.20 [12:04:59]line НДС 12% : 74.38 [12:04:59]line Наличными: 700.00 [12:04:59]line Безнал.: 0.00 [12:04:59]line Место: АЗС № 143 "Партнер Нефть" [12:04:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:04:59]line СНО: Общий режим [12:04:59]line Чек 157 26.10.2024 12:05 [12:04:59]line Смена: 536 ФФД: 1.0 [12:04:59]line ЗНМ: 0300000096 [12:04:59]line РНМ: 0000000000091693 [12:04:59]line Версия ККМ: 001 [12:04:59]line ФМ: 0000000000871792 [12:04:59]line ФД: 156256 [12:04:59]line ФПД: 77083656235606 [12:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120502&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156256&fm=77083656235606&tin=02508201610067®Number=0000000000091693&sum=70000 [12:04:59]written 0, free lines is 4095 [12:04:59]OFD Sender: Processing packet 156256 [packets to send 31, broken 30] [12:04:59]ProducePacketName [12:04:59]name=ofd_packets/00156256 [12:04:59]OFD Sender: To server: pG, [12:04:59]CommunicateWithHost lk.salyk.kg:30040 [12:04:59]ConnectInit lk.salyk.kg [12:04:59]Connected sock=10 [12:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CC BF 07 01 17 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 EE DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 62 02 00 35 04 06 00 46 1B 6F F2 AA 56 93 7E B6 6C 14 F6 AA 30 [12:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C3 38 47 00 80 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 62 02 00 F4 03 04 00 60 80 1C 67 B6 04 01 00 00 4B 2D F2 1A A5 49 10 58 [12:05:00]CommunicateWithHost err = 0 [12:05:00]CheckOFDResponse [12:05:00]1017 (14) - 77093643461234 [12:05:00]1041 (16) - 0000000000871792 [12:05:00]1040 (4) - 156256 [12:05:00]1012 (4) - 26.10.2024 05:38 [12:05:00]1206 (1) - 0 [12:05:00]OFD Sender: Remove packet 156256 [12:05:00]ProducePacketName [12:05:00]name=ofd_packets/00156256 [12:05:00]NVStorageDeleteData [12:05:00]Write to MH i2c: 01 00 00 34 34 68 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 07 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 07 00 34 34 00 00 00 00 00 F2 0C 6D [12:05:00]RasterBufferAndPrint [12:05:00]line [12:05:00]line [12:05:00]line [12:05:00]line [12:05:00]line [12:05:00]written 0, free lines is 3320 [12:05:00]process_action close_receipt done [12:05:00]requested_data is exist [12:05:00]produce_requested_data [12:05:00]requested_item fm.sn is exist - process it [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 11 00 00 [12:05:00]Write to MH i2c: E2 08 00 3B 34 80 11 00 00 00 00 00 00 E9 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 17 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 17 00 3B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3E [12:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:05:00]wFMCommunicate OK [12:05:00]requested_item fd.num is exist - process it [12:05:00]SAM_PROTO_GetFieldsCounters [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 13 00 00 [12:05:00]Write to MH i2c: E2 08 00 3C 34 80 13 00 00 00 00 00 00 EC [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 62 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 62 00 3C 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 60 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [12:05: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 60 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:00]wFMCommunicate OK [12:05:00]SAM_PROTO_GetFieldsCounters done [12:05:00]requested_item shift.num is exist - process it [12:05:00]requested_item shift.opened is exist - process it [12:05:00]req_shift_opened [12:05:00]FM_GetShiftState [12:05:00]SAM_PROTO_GetShiftState [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 13 01 00 [12:05:00]Write to MH i2c: E2 08 00 3D 34 80 13 01 00 00 00 00 00 EE [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 0E 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 0E 00 3D 34 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 23 [12:05:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:05:00]wFMCommunicate OK [12:05:00]SAM_PROTO_GetShiftState done [12:05:00]FM_GetShiftState done [12:05:00]req_shift_opened done [12:05:00]requested_item shift.open_date is exist - process it [12:05:00]req_shift_open_date [12:05:00]req_shift_open_date done [12:05:00]produce_requested_data done [12:05:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156256,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:05:00]process_action_free close_receipt [12:05:00]json_value_free [12:05:00]json_value_free done [12:05:00]process_json_proto returns [12:05:00]Send response to host [12:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156256,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:05:00]free response buf [12:05:00]execute_script done [12:05:00]execute_script returns [12:05:00]free content buf [12:05:00]Sock 7.Close socket [12:05:00]Sock 7.Thread stoped [12:05:00]OFD Sender: No OFD packet to send [12:05:01]accept exits with 9 [12:05:01]New connection [12:05:01]New thread 3066469732 created [12:05:01]Thread 3066613092 joined [12:05:01]Waiting for new connection... [12:05:01] Sock 9.Parse request [12:05:01]Sock 9.Check first char [12:05:01]Sock 9.First char is OK [12:05:01]request: POST /json_proto HTTP/1.0 [12:05:01]Method: POST [12:05:01]URL: /json_proto [12:05:01]Method is POST - this is cgi request [12:05:01]url: /json_proto [12:05:01]query_string will be loaded in cgi processing [12:05:01]execute_cgi json_proto POST (null) [12:05:01]execute_cgi path=json_proto method=POST [12:05:01]POST find Content-Length [12:05:01]Host: 172.17.63.3:8080 [12:05:01]Content-Length: 676 [12:05:01]Content-Type: application/json [12:05:01] [12:05:01]POST finish read [12:05:01]Found Content-Length = 676 [12:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:01]execute_script... [12:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:01]POST & json_proto [12:05:01]process_json_proto [12:05:01]json parsed OK: [12:05:01]protocol is kg_v1.0 [12:05:01]action value=close_receipt [12:05:01]process_action close_receipt [12:05:01]cmd_close_receipt [12:05:01]MH_GetDate [12:05:01]Write to MH i2c: F0 00 00 3E 34 61 [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: F0 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: F0 09 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: F0 09 00 3E 34 00 F1 DA 1C 67 50 D1 6C 64 A9 [12:05:01]GetLastDocTimeStamp 1729944302 [12:05:01]current date 1729944305 [12:05:01]FM_GetShiftState [12:05:01]SAM_PROTO_GetShiftState [12:05:01]wFMCommunicate request_size=4 [12:05:01]MH_SAM_APDU [12:05:01]CAPDU: 80 13 01 00 [12:05:01]Write to MH i2c: E2 08 00 3F 34 80 13 01 00 00 00 00 00 F0 [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:01]Read from MH i2c: E2 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 0E 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 0E 00 3F 34 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 25 [12:05:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:05:01]wFMCommunicate OK [12:05:01]SAM_PROTO_GetShiftState done [12:05:01]FM_GetShiftState done [12:05:01]opened in 1729902702 [12:05:01]opened+sec_in_day 1729989102 [12:05:01]quantity*price = 50041 [12:05:01]sum+1 = 50042 [12:05:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 158 26.10.2024 12:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156257 ФПД: 159392529257312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120505&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156257&fm=159392529257312&tin=02508201610067®Number=0000000000091693&sum=50000 [12:05:02]StoreToDocumentArchive [12:05:02]shift 536 fd 156257 [12:05:02]save to /storage/0536/doc_00156257 [12:05:02]save last doc name /storage/0536/doc_00156257 to /storage/kkm_last_doc_name [12:05:02]save OK [12:05:02]Clear old archive folders... [12:05:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:02]tlvbuf is 00D74BB0 [12:05:02]SAM_PROTO_ClearQueue [12:05:02]wFMCommunicate request_size=4 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 09 00 00 [12:05:02]Write to MH i2c: E2 08 00 4C 34 80 09 00 00 00 00 00 00 F2 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 4C 34 00 90 00 F4 [12:05:02]RAPDU: 90 00 [12:05:02]wFMCommunicate OK [12:05:02]SAM_PROTO_ClearQueue done [12:05:02]KKMCreateOFDPacket [12:05:02]OFDProtocolAddRootSTLVToBuf [12:05:02]FM_MakeSignedData [12:05:02]FM_MakeSignedData [12:05:02]SAM_PROTO_SignData [12:05:02]wFMCommunicate request_size=4 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 0D 01 02 [12:05:02]Write to MH i2c: E2 08 00 4D 34 80 0D 01 02 00 00 00 00 FA [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 4D 34 00 90 00 F5 [12:05:02]RAPDU: 90 00 [12:05:02]wFMCommunicate OK [12:05:02]wFMCommunicate request_size=255 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F1 DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 62 02 00 35 04 06 00 90 [12:05:02]Write to MH i2c: E2 02 01 4E 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F1 DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 62 02 00 35 04 06 00 90 00 00 E9 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 03 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 03 00 4E 34 00 90 00 F6 [12:05:03]RAPDU: 90 00 [12:05:03]wFMCommunicate OK [12:05:03]wFMCommunicate request_size=10 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 0D 02 02 05 F7 77 16 13 60 [12:05:03]Write to MH i2c: E2 0D 00 4F 34 80 0D 02 02 05 00 F7 77 16 13 60 00 00 FE [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 03 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 03 00 4F 34 00 90 00 F7 [12:05:03]RAPDU: 90 00 [12:05:03]wFMCommunicate OK [12:05:03]wFMCommunicate request_size=4 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 0D 03 02 [12:05:03]Write to MH i2c: E2 08 00 50 34 80 0D 03 02 00 00 00 00 FF [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 0B 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 0B 00 50 34 00 8A 89 0C 5D A5 2C 06 5C 90 00 AF [12:05:03]RAPDU: 8A 89 0C 5D A5 2C 06 5C 90 00 [12:05:03]wFMCommunicate OK [12:05:03]SAM_PROTO_SignData done [12:05:03]FM_MakeSignedData done [12:05:03]CreateOFDProtocolMessage [12:05:03]wFMCommunicate request_size=4 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 11 00 00 [12:05:03]Write to MH i2c: E2 08 00 51 34 80 11 00 00 00 00 00 00 FF [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 17 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 17 00 51 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 54 [12:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:05:03]wFMCommunicate OK [12:05:03]CreateOFDProtocolMessage done [12:05:03]OFDSenderStorePacket 156257 [12:05:03]StoreOFDPacket docnum=156257 [12:05:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 1B 07 01 3E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F1 DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 62 02 00 35 04 06 00 90 F7 77 16 13 60 8A 89 0C 5D A5 2C 06 5C [12:05:03]CheckFolder [12:05:03]dirname=/storage/ofd_packets [12:05:03]CheckFolder done [12:05:03]ProducePacketName [12:05:03]name=ofd_packets/00156257 [12:05:03]NVStorageSaveData ofd_packets/00156257 [12:05:03]File name is /storage/ofd_packets/00156257 [12:05:03]Write 301 bytes [12:05:03]NVStorageSaveData done [12:05:03]OFDSenderStorePacket done [12:05:03]KKMCreateOFDPacket done [12:05:03]NVStorageSaveData kkm_last_timestamp [12:05:03]File name is /storage/kkm_last_timestamp [12:05:03]Write 4 bytes [12:05:03]NVStorageSaveData done [12:05:03]ExternCall_PrintAddStr [12:05:03]wPrintStart [12:05:03]Write to MH i2c: 01 00 00 52 34 86 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 07 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 07 00 52 34 00 00 00 00 00 FF 0F 9B [12:05:03]RasterBufferAndPrint [12:05:03]line Счет N : (1)99073 [12:05:03]line ИНН: 02508201610067 [12:05:03]line Контрольно-Кассовый Чек [12:05:03]line ПРОДАЖА [12:05:03]line ТРК (МРК, ГНК) : 11 [12:05:03]line Товар: 2710124130 [12:05:03]line Аи-92-К-5 [12:05:03]line 7.480 * 66.90 [12:05:03]line = 500.41 [12:05:03]line НДС 12% НСП 1% [12:05:03]line > о реализуемом товаре [12:05:03]line ОКРУГЛЕНИЕ: -0.41 [12:05:03]line ИТОГО: 500.00 [12:05:03]line Внесено: 500.00 [12:05:03]line СДАЧА: 0.00 [12:05:03]line НСП 1% : 4.43 [12:05:03]line НДС 12% : 53.14 [12:05:03]line Наличными: 500.00 [12:05:03]line Безнал.: 0.00 [12:05:03]line Место: АЗС № 143 "Партнер Нефть" [12:05:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:05:03]line СНО: Общий режим [12:05:03]line Чек 158 26.10.2024 12:05 [12:05:03]line Смена: 536 ФФД: 1.0 [12:05:03]line ЗНМ: 0300000096 [12:05:03]line РНМ: 0000000000091693 [12:05:03]line Версия ККМ: 001 [12:05:03]line ФМ: 0000000000871792 [12:05:03]line ФД: 156257 [12:05:03]line ФПД: 159392529257312 [12:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120505&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156257&fm=159392529257312&tin=02508201610067®Number=0000000000091693&sum=50000 [12:05:03]written 0, free lines is 4095 [12:05:03]OFD Sender: Processing packet 156257 [packets to send 31, broken 30] [12:05:03]ProducePacketName [12:05:03]name=ofd_packets/00156257 [12:05:03]OFD Sender: To server: pG, [12:05:03]CommunicateWithHost lk.salyk.kg:30040 [12:05:03]ConnectInit lk.salyk.kg [12:05:03]Connected sock=10 [12:05:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 1B 07 01 3E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F1 DA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 62 02 00 35 04 06 00 90 F7 77 16 13 60 8A 89 0C 5D A5 2C 06 5C [12:05:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D5 AA 47 00 DA F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 62 02 00 F4 03 04 00 64 80 1C 67 B6 04 01 00 00 15 1F 2A 28 42 B7 78 84 [12:05:03]CommunicateWithHost err = 0 [12:05:03]CheckOFDResponse [12:05:03]1017 (14) - 77093643461234 [12:05:03]1041 (16) - 0000000000871792 [12:05:03]1040 (4) - 156257 [12:05:03]1012 (4) - 26.10.2024 05:38 [12:05:03]1206 (1) - 0 [12:05:03]OFD Sender: Remove packet 156257 [12:05:03]ProducePacketName [12:05:03]name=ofd_packets/00156257 [12:05:03]NVStorageDeleteData [12:05:03]Write to MH i2c: 01 00 00 7D 34 B1 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 07 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 07 00 7D 34 00 00 00 00 00 F0 0C B4 [12:05:03]RasterBufferAndPrint [12:05:03]line [12:05:03]line [12:05:03]line [12:05:03]line [12:05:03]line [12:05:03]written 0, free lines is 3327 [12:05:03]process_action close_receipt done [12:05:03]requested_data is exist [12:05:03]produce_requested_data [12:05:03]requested_item fm.sn is exist - process it [12:05:03]wFMCommunicate request_size=4 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 11 00 00 [12:05:03]Write to MH i2c: E2 08 00 84 34 80 11 00 00 00 00 00 00 32 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 17 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 17 00 84 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 87 [12:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:05:03]wFMCommunicate OK [12:05:03]requested_item fd.num is exist - process it [12:05:03]SAM_PROTO_GetFieldsCounters [12:05:03]wFMCommunicate request_size=4 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 13 00 00 [12:05:03]Write to MH i2c: E2 08 00 85 34 80 13 00 00 00 00 00 00 35 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:04]Read from MH i2c: E2 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 62 00 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 62 00 85 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 61 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [12:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 61 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:04]wFMCommunicate OK [12:05:04]SAM_PROTO_GetFieldsCounters done [12:05:04]requested_item shift.num is exist - process it [12:05:04]requested_item shift.opened is exist - process it [12:05:04]req_shift_opened [12:05:04]FM_GetShiftState [12:05:04]SAM_PROTO_GetShiftState [12:05:04]wFMCommunicate request_size=4 [12:05:04]MH_SAM_APDU [12:05:04]CAPDU: 80 13 01 00 [12:05:04]Write to MH i2c: E2 08 00 86 34 80 13 01 00 00 00 00 00 37 [12:05:04]Write i2c OK [12:05:04]MH_I2C_Read... [12:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:04]Read from MH i2c: E2 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 0E 00 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 0E 00 86 34 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6C [12:05:04]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:05:04]wFMCommunicate OK [12:05:04]SAM_PROTO_GetShiftState done [12:05:04]FM_GetShiftState done [12:05:04]req_shift_opened done [12:05:04]requested_item shift.open_date is exist - process it [12:05:04]req_shift_open_date [12:05:04]req_shift_open_date done [12:05:04]produce_requested_data done [12:05:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156257,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:05:04]process_action_free close_receipt [12:05:04]json_value_free [12:05:04]json_value_free done [12:05:04]process_json_proto returns [12:05:04]Send response to host [12:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156257,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:05:04]free response buf [12:05:04]execute_script done [12:05:04]execute_script returns [12:05:04]free content buf [12:05:04]Sock 9.Close socket [12:05:04]Sock 9.Thread stoped [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:18]accept exits with 7 [12:05:18]New connection [12:05:18]New thread 3066613092 created [12:05:18]Thread 3066469732 joined [12:05:18]Waiting for new connection... [12:05:18] Sock 7.Parse request [12:05:18]Sock 7.Check first char [12:05:18]Sock 7.First char is OK [12:05:18]request: POST /json_proto HTTP/1.0 [12:05:18]Method: POST [12:05:18]URL: /json_proto [12:05:18]Method is POST - this is cgi request [12:05:18]url: /json_proto [12:05:18]query_string will be loaded in cgi processing [12:05:18]execute_cgi json_proto POST (null) [12:05:18]execute_cgi path=json_proto method=POST [12:05:18]POST find Content-Length [12:05:18]Host: 172.17.63.3:8080 [12:05:18]Content-Length: 681 [12:05:18]Content-Type: application/json [12:05:18] [12:05:18]POST finish read [12:05:18]Found Content-Length = 681 [12:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:18]execute_script... [12:05: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)99071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:18]POST & json_proto [12:05:18]process_json_proto [12:05:18]json parsed OK: [12:05:18]protocol is kg_v1.0 [12:05:18]action value=close_receipt [12:05:18]process_action close_receipt [12:05:18]cmd_close_receipt [12:05:18]MH_GetDate [12:05:18]Write to MH i2c: F0 00 00 87 34 AA [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: F0 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: F0 09 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: F0 09 00 87 34 00 03 DB 1C 67 50 D1 6C 64 05 [12:05:18]GetLastDocTimeStamp 1729944305 [12:05:18]current date 1729944323 [12:05:18]FM_GetShiftState [12:05:18]SAM_PROTO_GetShiftState [12:05:18]wFMCommunicate request_size=4 [12:05:18]MH_SAM_APDU [12:05:18]CAPDU: 80 13 01 00 [12:05:18]Write to MH i2c: E2 08 00 88 34 80 13 01 00 00 00 00 00 39 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:18]Read from MH i2c: E2 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 0E 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 0E 00 88 34 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6E [12:05:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:05:18]wFMCommunicate OK [12:05:18]SAM_PROTO_GetShiftState done [12:05:18]FM_GetShiftState done [12:05:18]opened in 1729902702 [12:05:18]opened+sec_in_day 1729989102 [12:05:18]quantity*price = 100015 [12:05:18]sum+1 = 100017 [12:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 159 26.10.2024 12:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156258 ФПД: 266604228325051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120523&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156258&fm=266604228325051&tin=02508201610067®Number=0000000000091693&sum=100000 [12:05:20]StoreToDocumentArchive [12:05:20]shift 536 fd 156258 [12:05:20]save to /storage/0536/doc_00156258 [12:05:20]save last doc name /storage/0536/doc_00156258 to /storage/kkm_last_doc_name [12:05:20]save OK [12:05:20]Clear old archive folders... [12:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:20]tlvbuf is 00D63B20 [12:05:20]SAM_PROTO_ClearQueue [12:05:20]wFMCommunicate request_size=4 [12:05:20]MH_SAM_APDU [12:05:20]CAPDU: 80 09 00 00 [12:05:20]Write to MH i2c: E2 08 00 95 34 80 09 00 00 00 00 00 00 3B [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:20]Read from MH i2c: E2 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 03 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 03 00 95 34 00 90 00 3D [12:05:20]RAPDU: 90 00 [12:05:20]wFMCommunicate OK [12:05:20]SAM_PROTO_ClearQueue done [12:05:20]KKMCreateOFDPacket [12:05:20]OFDProtocolAddRootSTLVToBuf [12:05:20]FM_MakeSignedData [12:05:20]FM_MakeSignedData [12:05:20]SAM_PROTO_SignData [12:05:20]wFMCommunicate request_size=4 [12:05:20]MH_SAM_APDU [12:05:20]CAPDU: 80 0D 01 02 [12:05:20]Write to MH i2c: E2 08 00 96 34 80 0D 01 02 00 00 00 00 43 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:20]Read from MH i2c: E2 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 03 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 03 00 96 34 00 90 00 3E [12:05:20]RAPDU: 90 00 [12:05:20]wFMCommunicate OK [12:05:20]wFMCommunicate request_size=255 [12:05:20]MH_SAM_APDU [12:05:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 03 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 62 02 00 35 04 06 00 F2 [12:05:20]Write to MH i2c: E2 02 01 97 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 03 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 62 02 00 35 04 06 00 F2 00 00 A3 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:20]Read from MH i2c: E2 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 03 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 03 00 97 34 00 90 00 3F [12:05:20]RAPDU: 90 00 [12:05:20]wFMCommunicate OK [12:05:20]wFMCommunicate request_size=10 [12:05:20]MH_SAM_APDU [12:05:20]CAPDU: 80 0D 02 02 05 79 A2 53 2E BB [12:05:20]Write to MH i2c: E2 0D 00 98 34 80 0D 02 02 05 00 79 A2 53 2E BB 00 00 A7 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:20]Read from MH i2c: E2 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 03 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 03 00 98 34 00 90 00 40 [12:05:20]RAPDU: 90 00 [12:05:20]wFMCommunicate OK [12:05:20]wFMCommunicate request_size=4 [12:05:20]MH_SAM_APDU [12:05:20]CAPDU: 80 0D 03 02 [12:05:20]Write to MH i2c: E2 08 00 99 34 80 0D 03 02 00 00 00 00 48 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:20]Read from MH i2c: E2 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 0B 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 0B 00 99 34 00 15 97 5D B0 42 4F 70 3C 90 00 3F [12:05:20]RAPDU: 15 97 5D B0 42 4F 70 3C 90 00 [12:05:20]wFMCommunicate OK [12:05:20]SAM_PROTO_SignData done [12:05:20]FM_MakeSignedData done [12:05:20]CreateOFDProtocolMessage [12:05:20]wFMCommunicate request_size=4 [12:05:20]MH_SAM_APDU [12:05:20]CAPDU: 80 11 00 00 [12:05:20]Write to MH i2c: E2 08 00 9A 34 80 11 00 00 00 00 00 00 48 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:20]Read from MH i2c: E2 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 17 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: E2 17 00 9A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9D [12:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:05:20]wFMCommunicate OK [12:05:20]CreateOFDProtocolMessage done [12:05:20]OFDSenderStorePacket 156258 [12:05:20]StoreOFDPacket docnum=156258 [12:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 08 00 07 01 92 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 03 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 62 02 00 35 04 06 00 F2 79 A2 53 2E BB 15 97 5D B0 42 4F 70 3C [12:05:20]CheckFolder [12:05:20]dirname=/storage/ofd_packets [12:05:20]CheckFolder done [12:05:20]ProducePacketName [12:05:20]name=ofd_packets/00156258 [12:05:20]NVStorageSaveData ofd_packets/00156258 [12:05:20]File name is /storage/ofd_packets/00156258 [12:05:20]Write 301 bytes [12:05:20]NVStorageSaveData done [12:05:20]OFDSenderStorePacket done [12:05:20]KKMCreateOFDPacket done [12:05:20]NVStorageSaveData kkm_last_timestamp [12:05:20]File name is /storage/kkm_last_timestamp [12:05:20]Write 4 bytes [12:05:20]NVStorageSaveData done [12:05:20]ExternCall_PrintAddStr [12:05:20]wPrintStart [12:05:20]Write to MH i2c: 01 00 00 9B 34 CF [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: 01 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: 01 07 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: 01 07 00 9B 34 00 00 00 00 00 FF 0F E4 [12:05:20]RasterBufferAndPrint [12:05:20]line Счет N : (1)99071 [12:05:20]line ИНН: 02508201610067 [12:05:20]line Контрольно-Кассовый Чек [12:05:20]line ПРОДАЖА [12:05:20]line ТРК (МРК, ГНК) : 31 [12:05:20]line Товар: 2710124130 [12:05:20]line Аи-92-К-5 [12:05:20]line 14.950 * 66.90 [12:05:20]line = 1000.16 [12:05:20]line НДС 12% НСП 1% [12:05:20]line > о реализуемом товаре [12:05:20]line ОКРУГЛЕНИЕ: -0.16 [12:05:20]line ИТОГО: 1000.00 [12:05:20]line Внесено: 1000.00 [12:05:20]line СДАЧА: 0.00 [12:05:20]line НСП 1% : 8.85 [12:05:20]line НДС 12% : 106.21 [12:05:20]line Наличными: 1000.00 [12:05:20]line Безнал.: 0.00 [12:05:20]line Место: АЗС № 143 "Партнер Нефть" [12:05:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:05:20]line СНО: Общий режим [12:05:20]line Чек 159 26.10.2024 12:05 [12:05:20]line Смена: 536 ФФД: 1.0 [12:05:20]line ЗНМ: 0300000096 [12:05:20]line РНМ: 0000000000091693 [12:05:20]line Версия ККМ: 001 [12:05:20]line ФМ: 0000000000871792 [12:05:20]line ФД: 156258 [12:05:20]line ФПД: 266604228325051 [12:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120523&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156258&fm=266604228325051&tin=02508201610067®Number=0000000000091693&sum=100000 [12:05:20]written 0, free lines is 4095 [12:05:20]OFD Sender: Processing packet 156258 [packets to send 31, broken 30] [12:05:20]ProducePacketName [12:05:20]name=ofd_packets/00156258 [12:05:20]OFD Sender: To server: pG, [12:05:20]CommunicateWithHost lk.salyk.kg:30040 [12:05:20]ConnectInit lk.salyk.kg [12:05:20]Connected sock=10 [12:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 08 00 07 01 92 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 03 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 62 02 00 35 04 06 00 F2 79 A2 53 2E BB 15 97 5D B0 42 4F 70 3C [12:05:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1E 76 47 00 D2 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 31 37 39 32 10 04 04 00 62 62 02 00 F4 03 04 00 75 80 1C 67 B6 04 01 00 00 E3 5F 78 BC 11 44 D9 03 [12:05:21]CommunicateWithHost err = 0 [12:05:21]CheckOFDResponse [12:05:21]1017 (14) - 77093643461234 [12:05:21]1041 (16) - 0000000000871792 [12:05:21]1040 (4) - 156258 [12:05:21]1012 (4) - 26.10.2024 05:39 [12:05:21]1206 (1) - 0 [12:05:21]OFD Sender: Remove packet 156258 [12:05:21]ProducePacketName [12:05:21]name=ofd_packets/00156258 [12:05:21]NVStorageDeleteData [12:05:21]Write to MH i2c: 01 00 00 C6 34 FA [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: 01 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: 01 07 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: 01 07 00 C6 34 00 00 00 00 00 F0 0C FD [12:05:21]RasterBufferAndPrint [12:05:21]line [12:05:21]line [12:05:21]line [12:05:21]line [12:05:21]line [12:05:21]written 0, free lines is 3328 [12:05:21]process_action close_receipt done [12:05:21]requested_data is exist [12:05:21]produce_requested_data [12:05:21]requested_item fm.sn is exist - process it [12:05:21]wFMCommunicate request_size=4 [12:05:21]MH_SAM_APDU [12:05:21]CAPDU: 80 11 00 00 [12:05:21]Write to MH i2c: E2 08 00 CD 34 80 11 00 00 00 00 00 00 7B [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:21]Read from MH i2c: E2 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 17 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 17 00 CD 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D0 [12:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:05:21]wFMCommunicate OK [12:05:21]requested_item fd.num is exist - process it [12:05:21]SAM_PROTO_GetFieldsCounters [12:05:21]wFMCommunicate request_size=4 [12:05:21]MH_SAM_APDU [12:05:21]CAPDU: 80 13 00 00 [12:05:21]Write to MH i2c: E2 08 00 CE 34 80 13 00 00 00 00 00 00 7E [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:21]Read from MH i2c: E2 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 62 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 62 00 CE 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 62 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [12:05: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 62 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:21]wFMCommunicate OK [12:05:21]SAM_PROTO_GetFieldsCounters done [12:05:21]requested_item shift.num is exist - process it [12:05:21]requested_item shift.opened is exist - process it [12:05:21]req_shift_opened [12:05:21]FM_GetShiftState [12:05:21]SAM_PROTO_GetShiftState [12:05:21]wFMCommunicate request_size=4 [12:05:21]MH_SAM_APDU [12:05:21]CAPDU: 80 13 01 00 [12:05:21]Write to MH i2c: E2 08 00 CF 34 80 13 01 00 00 00 00 00 80 [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:21]Read from MH i2c: E2 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 0E 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 0E 00 CF 34 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B5 [12:05:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:05:21]wFMCommunicate OK [12:05:21]SAM_PROTO_GetShiftState done [12:05:21]FM_GetShiftState done [12:05:21]req_shift_opened done [12:05:21]requested_item shift.open_date is exist - process it [12:05:21]req_shift_open_date [12:05:21]req_shift_open_date done [12:05:21]produce_requested_data done [12:05:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156258,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:05:21]process_action_free close_receipt [12:05:21]json_value_free [12:05:21]json_value_free done [12:05:21]process_json_proto returns [12:05:21]Send response to host [12:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156258,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:05:21]free response buf [12:05:21]execute_script done [12:05:21]execute_script returns [12:05:21]free content buf [12:05:21]Sock 7.Close socket [12:05:21]Sock 7.Thread stoped [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:14]accept exits with 9 [12:07:14]New connection [12:07:14]New thread 3066469732 created [12:07:14]Thread 3066613092 joined [12:07:14]Waiting for new connection... [12:07:14] Sock 9.Parse request [12:07:14]Sock 9.Check first char [12:07:14]Sock 9.First char is OK [12:07:14]request: POST /json_proto HTTP/1.0 [12:07:14]Method: POST [12:07:14]URL: /json_proto [12:07:14]Method is POST - this is cgi request [12:07:14]url: /json_proto [12:07:14]query_string will be loaded in cgi processing [12:07:14]execute_cgi json_proto POST (null) [12:07:14]execute_cgi path=json_proto method=POST [12:07:14]POST find Content-Length [12:07:14]Host: 172.17.63.3:8080 [12:07:14]Content-Length: 676 [12:07:14]Content-Type: application/json [12:07:14] [12:07:14]POST finish read [12:07:14]Found Content-Length = 676 [12:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:14]execute_script... [12:07:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:14]POST & json_proto [12:07:14]process_json_proto [12:07:14]json parsed OK: [12:07:14]protocol is kg_v1.0 [12:07:14]action value=close_receipt [12:07:14]process_action close_receipt [12:07:14]cmd_close_receipt [12:07:14]MH_GetDate [12:07:14]Write to MH i2c: F0 00 00 D0 34 F3 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: F0 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: F0 09 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: F0 09 00 D0 34 00 76 DB 1C 67 50 D1 6C 64 C1 [12:07:14]GetLastDocTimeStamp 1729944323 [12:07:14]current date 1729944438 [12:07:14]FM_GetShiftState [12:07:14]SAM_PROTO_GetShiftState [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 13 01 00 [12:07:14]Write to MH i2c: E2 08 00 D1 34 80 13 01 00 00 00 00 00 82 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 0E 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 0E 00 D1 34 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B7 [12:07:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:07:14]wFMCommunicate OK [12:07:14]SAM_PROTO_GetShiftState done [12:07:14]FM_GetShiftState done [12:07:14]opened in 1729902702 [12:07:14]opened+sec_in_day 1729989102 [12:07:14]quantity*price = 60009 [12:07:14]sum+1 = 60010 [12:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 160 26.10.2024 12:07 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156259 ФПД: 221894455687886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156259&fm=221894455687886&tin=02508201610067®Number=0000000000091693&sum=60000 [12:07:15]StoreToDocumentArchive [12:07:15]shift 536 fd 156259 [12:07:15]save to /storage/0536/doc_00156259 [12:07:15]save last doc name /storage/0536/doc_00156259 to /storage/kkm_last_doc_name [12:07:15]save OK [12:07:15]Clear old archive folders... [12:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:15]tlvbuf is B6F02CC0 [12:07:15]SAM_PROTO_ClearQueue [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 09 00 00 [12:07:15]Write to MH i2c: E2 08 00 DE 34 80 09 00 00 00 00 00 00 84 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 DE 34 00 90 00 86 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_ClearQueue done [12:07:15]KKMCreateOFDPacket [12:07:15]OFDProtocolAddRootSTLVToBuf [12:07:15]FM_MakeSignedData [12:07:15]FM_MakeSignedData [12:07:15]SAM_PROTO_SignData [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 01 02 [12:07:15]Write to MH i2c: E2 08 00 DF 34 80 0D 01 02 00 00 00 00 8C [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 DF 34 00 90 00 87 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=255 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 76 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 62 02 00 35 04 06 00 C9 [12:07:15]Write to MH i2c: E2 02 01 E0 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 76 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 62 02 00 35 04 06 00 C9 00 00 1B [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 E0 34 00 90 00 88 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=10 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 02 02 05 CF D4 35 7A CE [12:07:15]Write to MH i2c: E2 0D 00 E1 34 80 0D 02 02 05 00 CF D4 35 7A CE 00 00 B9 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:16]Read from MH i2c: E2 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: E2 03 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: E2 03 00 E1 34 00 90 00 89 [12:07:16]RAPDU: 90 00 [12:07:16]wFMCommunicate OK [12:07:16]wFMCommunicate request_size=4 [12:07:16]MH_SAM_APDU [12:07:16]CAPDU: 80 0D 03 02 [12:07:16]Write to MH i2c: E2 08 00 E2 34 80 0D 03 02 00 00 00 00 91 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:16]Read from MH i2c: E2 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: E2 0B 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: E2 0B 00 E2 34 00 3E 38 9D E5 B7 E4 05 0C 90 00 36 [12:07:16]RAPDU: 3E 38 9D E5 B7 E4 05 0C 90 00 [12:07:16]wFMCommunicate OK [12:07:16]SAM_PROTO_SignData done [12:07:16]FM_MakeSignedData done [12:07:16]CreateOFDProtocolMessage [12:07:16]wFMCommunicate request_size=4 [12:07:16]MH_SAM_APDU [12:07:16]CAPDU: 80 11 00 00 [12:07:16]Write to MH i2c: E2 08 00 E3 34 80 11 00 00 00 00 00 00 91 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:16]Read from MH i2c: E2 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: E2 17 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: E2 17 00 E3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E6 [12:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:07:16]wFMCommunicate OK [12:07:16]CreateOFDProtocolMessage done [12:07:16]OFDSenderStorePacket 156259 [12:07:16]StoreOFDPacket docnum=156259 [12:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F3 B9 07 01 E8 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 76 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 62 02 00 35 04 06 00 C9 CF D4 35 7A CE 3E 38 9D E5 B7 E4 05 0C [12:07:16]CheckFolder [12:07:16]dirname=/storage/ofd_packets [12:07:16]CheckFolder done [12:07:16]ProducePacketName [12:07:16]name=ofd_packets/00156259 [12:07:16]NVStorageSaveData ofd_packets/00156259 [12:07:16]File name is /storage/ofd_packets/00156259 [12:07:16]Write 301 bytes [12:07:16]NVStorageSaveData done [12:07:16]OFDSenderStorePacket done [12:07:16]KKMCreateOFDPacket done [12:07:16]NVStorageSaveData kkm_last_timestamp [12:07:16]File name is /storage/kkm_last_timestamp [12:07:16]Write 4 bytes [12:07:16]NVStorageSaveData done [12:07:16]ExternCall_PrintAddStr [12:07:16]wPrintStart [12:07:16]Write to MH i2c: 01 00 00 E4 34 18 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 E4 34 00 00 00 00 00 FF 0F 2D [12:07:16]RasterBufferAndPrint [12:07:16]line Счет N : (1)99075 [12:07:16]line ИНН: 02508201610067 [12:07:16]line Контрольно-Кассовый Чек [12:07:16]line ПРОДАЖА [12:07:16]line ТРК (МРК, ГНК) : 21 [12:07:16]line Товар: 2710124130 [12:07:16]line Аи-92-К-5 [12:07:16]line 8.970 * 66.90 [12:07:16]line = 600.09 [12:07:16]line НДС 12% НСП 1% [12:07:16]line > о реализуемом товаре [12:07:16]line ОКРУГЛЕНИЕ: -0.09 [12:07:16]line ИТОГО: 600.00 [12:07:16]line Внесено: 600.00 [12:07:16]line СДАЧА: 0.00 [12:07:16]line НСП 1% : 5.31 [12:07:16]line НДС 12% : 63.73 [12:07:16]line Наличными: 600.00 [12:07:16]line Безнал.: 0.00 [12:07:16]line Место: АЗС № 143 "Партнер Нефть" [12:07:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:07:16]line СНО: Общий режим [12:07:16]line Чек 160 26.10.2024 12:07 [12:07:16]line Смена: 536 ФФД: 1.0 [12:07:16]line ЗНМ: 0300000096 [12:07:16]line РНМ: 0000000000091693 [12:07:16]line Версия ККМ: 001 [12:07:16]line ФМ: 0000000000871792 [12:07:16]line ФД: 156259 [12:07:16]line ФПД: 221894455687886 [12:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156259&fm=221894455687886&tin=02508201610067®Number=0000000000091693&sum=60000 [12:07:16]OFD Sender: Processing packet 156259 [packets to send 31, broken 30] [12:07:16]ProducePacketName [12:07:16]name=ofd_packets/00156259 [12:07:16]OFD Sender: To server: pG, [12:07:16]CommunicateWithHost lk.salyk.kg:30040 [12:07:16]ConnectInit lk.salyk.kg [12:07:16]written 0, free lines is 4095 [12:07:16]Connected sock=10 [12:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F3 B9 07 01 E8 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 76 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 62 02 00 35 04 06 00 C9 CF D4 35 7A CE 3E 38 9D E5 B7 E4 05 0C [12:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2E 08 47 00 A9 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 31 37 39 32 10 04 04 00 63 62 02 00 F4 03 04 00 E9 80 1C 67 B6 04 01 00 00 2C FF 78 70 5B EF 8B 14 [12:07:16]CommunicateWithHost err = 0 [12:07:16]CheckOFDResponse [12:07:16]1017 (14) - 77093643461234 [12:07:16]1041 (16) - 0000000000871792 [12:07:16]1040 (4) - 156259 [12:07:16]1012 (4) - 26.10.2024 05:40 [12:07:16]1206 (1) - 0 [12:07:16]OFD Sender: Remove packet 156259 [12:07:16]ProducePacketName [12:07:16]name=ofd_packets/00156259 [12:07:16]NVStorageDeleteData [12:07:16]Write to MH i2c: 01 00 00 0F 35 44 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 0F 35 00 00 00 00 00 01 0D 59 [12:07:16]RasterBufferAndPrint [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]written 0, free lines is 3335 [12:07:16]process_action close_receipt done [12:07:16]requested_data is exist [12:07:16]produce_requested_data [12:07:16]requested_item fm.sn is exist - process it [12:07:16]wFMCommunicate request_size=4 [12:07:16]MH_SAM_APDU [12:07:16]CAPDU: 80 11 00 00 [12:07:16]Write to MH i2c: E2 08 00 16 35 80 11 00 00 00 00 00 00 C5 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 17 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 17 00 16 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1A [12:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:07:17]wFMCommunicate OK [12:07:17]requested_item fd.num is exist - process it [12:07:17]SAM_PROTO_GetFieldsCounters [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 13 00 00 [12:07:17]Write to MH i2c: E2 08 00 17 35 80 13 00 00 00 00 00 00 C8 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 62 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 62 00 17 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 63 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:07: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 63 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_GetFieldsCounters done [12:07:17]requested_item shift.num is exist - process it [12:07:17]requested_item shift.opened is exist - process it [12:07:17]req_shift_opened [12:07:17]FM_GetShiftState [12:07:17]SAM_PROTO_GetShiftState [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 13 01 00 [12:07:17]Write to MH i2c: E2 08 00 18 35 80 13 01 00 00 00 00 00 CA [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 18 35 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FF [12:07:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_GetShiftState done [12:07:17]FM_GetShiftState done [12:07:17]req_shift_opened done [12:07:17]requested_item shift.open_date is exist - process it [12:07:17]req_shift_open_date [12:07:17]req_shift_open_date done [12:07:17]produce_requested_data done [12:07:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156259,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:07:17]process_action_free close_receipt [12:07:17]json_value_free [12:07:17]json_value_free done [12:07:17]process_json_proto returns [12:07:17]Send response to host [12:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156259,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:07:17]free response buf [12:07:17]execute_script done [12:07:17]execute_script returns [12:07:17]free content buf [12:07:17]Sock 9.Close socket [12:07:17]Sock 9.Thread stoped [12:07:17]OFD Sender: No OFD packet to send [12:07:17]accept exits with 7 [12:07:17]New connection [12:07:17]New thread 3066613092 created [12:07:17]Thread 3066469732 joined [12:07:17]Waiting for new connection... [12:07:17] Sock 7.Parse request [12:07:17]Sock 7.Check first char [12:07:17]Sock 7.First char is OK [12:07:17]request: POST /json_proto HTTP/1.0 [12:07:17]Method: POST [12:07:17]URL: /json_proto [12:07:17]Method is POST - this is cgi request [12:07:17]url: /json_proto [12:07:17]query_string will be loaded in cgi processing [12:07:17]execute_cgi json_proto POST (null) [12:07:17]execute_cgi path=json_proto method=POST [12:07:17]POST find Content-Length [12:07:17]Host: 172.17.63.3:8080 [12:07:17]Content-Length: 676 [12:07:17]Content-Type: application/json [12:07:17] [12:07:17]POST finish read [12:07:17]Found Content-Length = 676 [12:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:17]execute_script... [12:07:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:17]POST & json_proto [12:07:17]process_json_proto [12:07:17]json parsed OK: [12:07:17]protocol is kg_v1.0 [12:07:17]action value=close_receipt [12:07:17]process_action close_receipt [12:07:17]cmd_close_receipt [12:07:17]MH_GetDate [12:07:17]Write to MH i2c: F0 00 00 19 35 3D [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: F0 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: F0 09 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: F0 09 00 19 35 00 79 DB 1C 67 50 D1 6C 64 0E [12:07:17]GetLastDocTimeStamp 1729944438 [12:07:17]current date 1729944441 [12:07:17]FM_GetShiftState [12:07:17]SAM_PROTO_GetShiftState [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 13 01 00 [12:07:17]Write to MH i2c: E2 08 00 1A 35 80 13 01 00 00 00 00 00 CC [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 1A 35 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 01 [12:07:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_GetShiftState done [12:07:17]FM_GetShiftState done [12:07:17]opened in 1729902702 [12:07:17]opened+sec_in_day 1729989102 [12:07:17]quantity*price = 55058 [12:07:17]sum+1 = 55060 [12:07:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 161 26.10.2024 12:07 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156260 ФПД: 33381355530629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120721&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156260&fm=33381355530629&tin=02508201610067®Number=0000000000091693&sum=55000 [12:07:19]StoreToDocumentArchive [12:07:19]shift 536 fd 156260 [12:07:19]save to /storage/0536/doc_00156260 [12:07:19]save last doc name /storage/0536/doc_00156260 to /storage/kkm_last_doc_name [12:07:19]save OK [12:07:19]Clear old archive folders... [12:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:19]tlvbuf is 00DF5DC0 [12:07:19]SAM_PROTO_ClearQueue [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 09 00 00 [12:07:19]Write to MH i2c: E2 08 00 27 35 80 09 00 00 00 00 00 00 CE [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 27 35 00 90 00 D0 [12:07:19]RAPDU: 90 00 [12:07:19]wFMCommunicate OK [12:07:19]SAM_PROTO_ClearQueue done [12:07:19]KKMCreateOFDPacket [12:07:19]OFDProtocolAddRootSTLVToBuf [12:07:19]FM_MakeSignedData [12:07:19]FM_MakeSignedData [12:07:19]SAM_PROTO_SignData [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 0D 01 02 [12:07:19]Write to MH i2c: E2 08 00 28 35 80 0D 01 02 00 00 00 00 D6 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 28 35 00 90 00 D1 [12:07:19]RAPDU: 90 00 [12:07:19]wFMCommunicate OK [12:07:19]wFMCommunicate request_size=255 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 79 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 62 02 00 35 04 06 00 1E [12:07:19]Write to MH i2c: E2 02 01 29 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 79 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 62 02 00 35 04 06 00 1E 00 00 FA [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 29 35 00 90 00 D2 [12:07:19]RAPDU: 90 00 [12:07:19]wFMCommunicate OK [12:07:19]wFMCommunicate request_size=10 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 0D 02 02 05 5C 33 D6 A9 85 [12:07:19]Write to MH i2c: E2 0D 00 2A 35 80 0D 02 02 05 00 5C 33 D6 A9 85 00 00 76 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 2A 35 00 90 00 D3 [12:07:19]RAPDU: 90 00 [12:07:19]wFMCommunicate OK [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 0D 03 02 [12:07:19]Write to MH i2c: E2 08 00 2B 35 80 0D 03 02 00 00 00 00 DB [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 0B 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 0B 00 2B 35 00 32 C6 EE 3C E7 07 22 C9 90 00 D7 [12:07:19]RAPDU: 32 C6 EE 3C E7 07 22 C9 90 00 [12:07:19]wFMCommunicate OK [12:07:19]SAM_PROTO_SignData done [12:07:19]FM_MakeSignedData done [12:07:19]CreateOFDProtocolMessage [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 11 00 00 [12:07:19]Write to MH i2c: E2 08 00 2C 35 80 11 00 00 00 00 00 00 DB [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 17 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 17 00 2C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 30 [12:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:07:19]wFMCommunicate OK [12:07:19]CreateOFDProtocolMessage done [12:07:19]OFDSenderStorePacket 156260 [12:07:19]StoreOFDPacket docnum=156260 [12:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 D8 07 01 7B F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 79 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 62 02 00 35 04 06 00 1E 5C 33 D6 A9 85 32 C6 EE 3C E7 07 22 C9 [12:07:19]CheckFolder [12:07:19]dirname=/storage/ofd_packets [12:07:19]CheckFolder done [12:07:19]ProducePacketName [12:07:19]name=ofd_packets/00156260 [12:07:19]NVStorageSaveData ofd_packets/00156260 [12:07:19]File name is /storage/ofd_packets/00156260 [12:07:19]Write 301 bytes [12:07:19]NVStorageSaveData done [12:07:19]OFDSenderStorePacket done [12:07:19]KKMCreateOFDPacket done [12:07:19]NVStorageSaveData kkm_last_timestamp [12:07:19]File name is /storage/kkm_last_timestamp [12:07:19]Write 4 bytes [12:07:19]NVStorageSaveData done [12:07:19]ExternCall_PrintAddStr [12:07:19]wPrintStart [12:07:19]Write to MH i2c: 01 00 00 2D 35 62 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 07 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 07 00 2D 35 00 00 00 00 00 FF 0F 77 [12:07:19]RasterBufferAndPrint [12:07:19]line Счет N : (1)99074 [12:07:19]line ИНН: 02508201610067 [12:07:19]line Контрольно-Кассовый Чек [12:07:19]line ПРОДАЖА [12:07:19]line ТРК (МРК, ГНК) : 11 [12:07:19]line Товар: 2710124130 [12:07:19]line Аи-92-К-5 [12:07:19]line 8.230 * 66.90 [12:07:19]line = 550.59 [12:07:19]line НДС 12% НСП 1% [12:07:19]line > о реализуемом товаре [12:07:19]line ОКРУГЛЕНИЕ: -0.59 [12:07:19]line ИТОГО: 550.00 [12:07:19]line Внесено: 550.00 [12:07:19]line СДАЧА: 0.00 [12:07:19]line НСП 1% : 4.87 [12:07:19]line НДС 12% : 58.47 [12:07:19]line Наличными: 550.00 [12:07:19]line Безнал.: 0.00 [12:07:19]line Место: АЗС № 143 "Партнер Нефть" [12:07:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:07:19]line СНО: Общий режим [12:07:19]line Чек 161 26.10.2024 12:07 [12:07:19]line Смена: 536 ФФД: 1.0 [12:07:19]line ЗНМ: 0300000096 [12:07:19]line РНМ: 0000000000091693 [12:07:19]line Версия ККМ: 001 [12:07:19]line ФМ: 0000000000871792 [12:07:19]line ФД: 156260 [12:07:19]line ФПД: 33381355530629 [12:07:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120721&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156260&fm=33381355530629&tin=02508201610067®Number=0000000000091693&sum=55000 [12:07:19]OFD Sender: Processing packet 156260 [packets to send 31, broken 30] [12:07:19]ProducePacketName [12:07:19]name=ofd_packets/00156260 [12:07:19]OFD Sender: To server: pG, [12:07:19]CommunicateWithHost lk.salyk.kg:30040 [12:07:19]ConnectInit lk.salyk.kg [12:07:19]written 0, free lines is 4095 [12:07:19]Connected sock=10 [12:07:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 D8 07 01 7B F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 79 DB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 62 02 00 35 04 06 00 1E 5C 33 D6 A9 85 32 C6 EE 3C E7 07 22 C9 [12:07:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5B 93 47 00 88 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 31 37 39 32 10 04 04 00 64 62 02 00 F4 03 04 00 EC 80 1C 67 B6 04 01 00 00 96 43 18 F5 40 8B EE 79 [12:07:20]CommunicateWithHost err = 0 [12:07:20]CheckOFDResponse [12:07:20]1017 (14) - 77093643461234 [12:07:20]1041 (16) - 0000000000871792 [12:07:20]1040 (4) - 156260 [12:07:20]1012 (4) - 26.10.2024 05:41 [12:07:20]1206 (1) - 0 [12:07:20]OFD Sender: Remove packet 156260 [12:07:20]ProducePacketName [12:07:20]name=ofd_packets/00156260 [12:07:20]NVStorageDeleteData [12:07:20]Write to MH i2c: 01 00 00 58 35 8D [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: 01 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: 01 07 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: 01 07 00 58 35 00 00 00 00 00 F5 0C 95 [12:07:20]RasterBufferAndPrint [12:07:20]line [12:07:20]line [12:07:20]line [12:07:20]line [12:07:20]line [12:07:20]written 0, free lines is 3332 [12:07:20]process_action close_receipt done [12:07:20]requested_data is exist [12:07:20]produce_requested_data [12:07:20]requested_item fm.sn is exist - process it [12:07:20]wFMCommunicate request_size=4 [12:07:20]MH_SAM_APDU [12:07:20]CAPDU: 80 11 00 00 [12:07:20]Write to MH i2c: E2 08 00 5F 35 80 11 00 00 00 00 00 00 0E [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:20]Read from MH i2c: E2 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 17 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 17 00 5F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 63 [12:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:07:20]wFMCommunicate OK [12:07:20]requested_item fd.num is exist - process it [12:07:20]SAM_PROTO_GetFieldsCounters [12:07:20]wFMCommunicate request_size=4 [12:07:20]MH_SAM_APDU [12:07:20]CAPDU: 80 13 00 00 [12:07:20]Write to MH i2c: E2 08 00 60 35 80 13 00 00 00 00 00 00 11 [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 [12:07:20]MH_I2C_Read... [12:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:20]Read from MH i2c: E2 62 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 62 00 60 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 64 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:07: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 64 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:20]wFMCommunicate OK [12:07:20]SAM_PROTO_GetFieldsCounters done [12:07:20]requested_item shift.num is exist - process it [12:07:20]requested_item shift.opened is exist - process it [12:07:20]req_shift_opened [12:07:20]FM_GetShiftState [12:07:20]SAM_PROTO_GetShiftState [12:07:20]wFMCommunicate request_size=4 [12:07:20]MH_SAM_APDU [12:07:20]CAPDU: 80 13 01 00 [12:07:20]Write to MH i2c: E2 08 00 61 35 80 13 01 00 00 00 00 00 13 [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:20]Read from MH i2c: E2 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 0E 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 0E 00 61 35 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 48 [12:07:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:07:20]wFMCommunicate OK [12:07:20]SAM_PROTO_GetShiftState done [12:07:20]FM_GetShiftState done [12:07:20]req_shift_opened done [12:07:20]requested_item shift.open_date is exist - process it [12:07:20]req_shift_open_date [12:07:20]req_shift_open_date done [12:07:20]produce_requested_data done [12:07:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156260,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:07:20]process_action_free close_receipt [12:07:20]json_value_free [12:07:20]json_value_free done [12:07:20]process_json_proto returns [12:07:20]Send response to host [12:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156260,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:07:20]free response buf [12:07:20]execute_script done [12:07:20]execute_script returns [12:07:20]free content buf [12:07:20]Sock 7.Close socket [12:07:20]Sock 7.Thread stoped [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]accept exits with 9 [12:09:35]New connection [12:09:35]New thread 3066469732 created [12:09:35]Thread 3066613092 joined [12:09:35]Waiting for new connection... [12:09:35] Sock 9.Parse request [12:09:35]Sock 9.Check first char [12:09:35]Sock 9.First char is OK [12:09:35]request: POST /json_proto HTTP/1.0 [12:09:35]Method: POST [12:09:35]URL: /json_proto [12:09:35]Method is POST - this is cgi request [12:09:35]url: /json_proto [12:09:35]query_string will be loaded in cgi processing [12:09:35]execute_cgi json_proto POST (null) [12:09:35]execute_cgi path=json_proto method=POST [12:09:35]POST find Content-Length [12:09:35]Host: 172.17.63.3:8080 [12:09:35]Content-Length: 677 [12:09:35]Content-Type: application/json [12:09:35] [12:09:35]POST finish read [12:09:35]Found Content-Length = 677 [12:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.320, "sum" : 690.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:35]execute_script... [12:09:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.320, "sum" : 690.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:35]POST & json_proto [12:09:35]process_json_proto [12:09:35]json parsed OK: [12:09:35]protocol is kg_v1.0 [12:09:35]action value=close_receipt [12:09:35]process_action close_receipt [12:09:35]cmd_close_receipt [12:09:35]MH_GetDate [12:09:35]Write to MH i2c: F0 00 00 62 35 86 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: F0 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: F0 09 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: F0 09 00 62 35 00 03 DC 1C 67 50 D1 6C 64 E2 [12:09:35]GetLastDocTimeStamp 1729944441 [12:09:35]current date 1729944579 [12:09:35]FM_GetShiftState [12:09:35]SAM_PROTO_GetShiftState [12:09:35]wFMCommunicate request_size=4 [12:09:35]MH_SAM_APDU [12:09:35]CAPDU: 80 13 01 00 [12:09:35]Write to MH i2c: E2 08 00 63 35 80 13 01 00 00 00 00 00 15 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:35]Read from MH i2c: E2 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 0E 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 0E 00 63 35 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4A [12:09:35]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:09:35]wFMCommunicate OK [12:09:35]SAM_PROTO_GetShiftState done [12:09:35]FM_GetShiftState done [12:09:35]opened in 1729902702 [12:09:35]opened+sec_in_day 1729989102 [12:09:35]quantity*price = 69040 [12:09:35]sum+1 = 69042 [12:09:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.32 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 162 26.10.2024 12:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156261 ФПД: 267068560936740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120939&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156261&fm=267068560936740&tin=02508201610067®Number=0000000000091693&sum=69000 [12:09:36]StoreToDocumentArchive [12:09:36]shift 536 fd 156261 [12:09:36]save to /storage/0536/doc_00156261 [12:09:36]save last doc name /storage/0536/doc_00156261 to /storage/kkm_last_doc_name [12:09:36]save OK [12:09:36]Clear old archive folders... [12:09:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:36]tlvbuf is 00D6AEF0 [12:09:36]SAM_PROTO_ClearQueue [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 09 00 00 [12:09:36]Write to MH i2c: E2 08 00 70 35 80 09 00 00 00 00 00 00 17 [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 03 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 03 00 70 35 00 90 00 19 [12:09:36]RAPDU: 90 00 [12:09:36]wFMCommunicate OK [12:09:36]SAM_PROTO_ClearQueue done [12:09:36]KKMCreateOFDPacket [12:09:36]OFDProtocolAddRootSTLVToBuf [12:09:36]FM_MakeSignedData [12:09:36]FM_MakeSignedData [12:09:36]SAM_PROTO_SignData [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 0D 01 02 [12:09:36]Write to MH i2c: E2 08 00 71 35 80 0D 01 02 00 00 00 00 1F [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 03 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 03 00 71 35 00 90 00 1A [12:09:36]RAPDU: 90 00 [12:09:36]wFMCommunicate OK [12:09:36]wFMCommunicate request_size=255 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B1 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 03 DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 62 02 00 35 04 06 00 F2 [12:09:36]Write to MH i2c: E2 02 01 72 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B1 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 03 DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 62 02 00 35 04 06 00 F2 00 00 CB [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:37]Read from MH i2c: E2 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 03 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 03 00 72 35 00 90 00 1B [12:09:37]RAPDU: 90 00 [12:09:37]wFMCommunicate OK [12:09:37]wFMCommunicate request_size=10 [12:09:37]MH_SAM_APDU [12:09:37]CAPDU: 80 0D 02 02 05 E5 BE B4 8F 24 [12:09:37]Write to MH i2c: E2 0D 00 73 35 80 0D 02 02 05 00 E5 BE B4 8F 24 00 00 36 [12:09:37]Write i2c OK [12:09:37]MH_I2C_Read... [12:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:37]Read from MH i2c: E2 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 03 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 03 00 73 35 00 90 00 1C [12:09:37]RAPDU: 90 00 [12:09:37]wFMCommunicate OK [12:09:37]wFMCommunicate request_size=4 [12:09:37]MH_SAM_APDU [12:09:37]CAPDU: 80 0D 03 02 [12:09:37]Write to MH i2c: E2 08 00 74 35 80 0D 03 02 00 00 00 00 24 [12:09:37]Write i2c OK [12:09:37]MH_I2C_Read... [12:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:37]Read from MH i2c: E2 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 0B 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 0B 00 74 35 00 5B 97 81 CD BB 7C 0B B2 90 00 59 [12:09:37]RAPDU: 5B 97 81 CD BB 7C 0B B2 90 00 [12:09:37]wFMCommunicate OK [12:09:37]SAM_PROTO_SignData done [12:09:37]FM_MakeSignedData done [12:09:37]CreateOFDProtocolMessage [12:09:37]wFMCommunicate request_size=4 [12:09:37]MH_SAM_APDU [12:09:37]CAPDU: 80 11 00 00 [12:09:37]Write to MH i2c: E2 08 00 75 35 80 11 00 00 00 00 00 00 24 [12:09:37]Write i2c OK [12:09:37]MH_I2C_Read... [12:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:37]Read from MH i2c: E2 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 17 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 17 00 75 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 79 [12:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:09:37]wFMCommunicate OK [12:09:37]CreateOFDProtocolMessage done [12:09:37]OFDSenderStorePacket 156261 [12:09:37]StoreOFDPacket docnum=156261 [12:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 A6 07 01 6C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B1 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 03 DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 62 02 00 35 04 06 00 F2 E5 BE B4 8F 24 5B 97 81 CD BB 7C 0B B2 [12:09:37]CheckFolder [12:09:37]dirname=/storage/ofd_packets [12:09:37]CheckFolder done [12:09:37]ProducePacketName [12:09:37]name=ofd_packets/00156261 [12:09:37]NVStorageSaveData ofd_packets/00156261 [12:09:37]File name is /storage/ofd_packets/00156261 [12:09:37]Write 301 bytes [12:09:37]NVStorageSaveData done [12:09:37]OFDSenderStorePacket done [12:09:37]KKMCreateOFDPacket done [12:09:37]NVStorageSaveData kkm_last_timestamp [12:09:37]File name is /storage/kkm_last_timestamp [12:09:37]Write 4 bytes [12:09:37]NVStorageSaveData done [12:09:37]ExternCall_PrintAddStr [12:09:37]wPrintStart [12:09:37]Write to MH i2c: 01 00 00 76 35 AB [12:09:37]Write i2c OK [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: 01 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: 01 07 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: 01 07 00 76 35 00 00 00 00 00 FF 0F C0 [12:09:37]RasterBufferAndPrint [12:09:37]line Счет N : (1)99076 [12:09:37]line ИНН: 02508201610067 [12:09:37]line Контрольно-Кассовый Чек [12:09:37]line ПРОДАЖА [12:09:37]line ТРК (МРК, ГНК) : 11 [12:09:37]line Товар: 2710124130 [12:09:37]line Аи-92-К-5 [12:09:37]line 10.320 * 66.90 [12:09:37]line = 690.41 [12:09:37]line НДС 12% НСП 1% [12:09:37]line > о реализуемом товаре [12:09:37]line ОКРУГЛЕНИЕ: -0.41 [12:09:37]line ИТОГО: 690.00 [12:09:37]line Внесено: 690.00 [12:09:37]line СДАЧА: 0.00 [12:09:37]line НСП 1% : 6.11 [12:09:37]line НДС 12% : 73.32 [12:09:37]line Наличными: 690.00 [12:09:37]line Безнал.: 0.00 [12:09:37]line Место: АЗС № 143 "Партнер Нефть" [12:09:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:09:37]line СНО: Общий режим [12:09:37]line Чек 162 26.10.2024 12:09 [12:09:37]line Смена: 536 ФФД: 1.0 [12:09:37]line ЗНМ: 0300000096 [12:09:37]line РНМ: 0000000000091693 [12:09:37]line Версия ККМ: 001 [12:09:37]line ФМ: 0000000000871792 [12:09:37]line ФД: 156261 [12:09:37]line ФПД: 267068560936740 [12:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120939&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156261&fm=267068560936740&tin=02508201610067®Number=0000000000091693&sum=69000 [12:09:37]OFD Sender: Processing packet 156261 [packets to send 31, broken 30] [12:09:37]ProducePacketName [12:09:37]name=ofd_packets/00156261 [12:09:37]OFD Sender: To server: pG, [12:09:37]CommunicateWithHost lk.salyk.kg:30040 [12:09:37]ConnectInit lk.salyk.kg [12:09:37]written 0, free lines is 4095 [12:09:37]Connected sock=10 [12:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 A6 07 01 6C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B1 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 03 DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 62 02 00 35 04 06 00 F2 E5 BE B4 8F 24 5B 97 81 CD BB 7C 0B B2 [12:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 91 09 47 00 B8 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 62 02 00 F4 03 04 00 76 81 1C 67 B6 04 01 00 00 C9 77 52 08 0E 3A AB 22 [12:09:37]CommunicateWithHost err = 0 [12:09:37]CheckOFDResponse [12:09:37]1017 (14) - 77093643461234 [12:09:37]1041 (16) - 0000000000871792 [12:09:37]1040 (4) - 156261 [12:09:37]1012 (4) - 26.10.2024 05:43 [12:09:37]1206 (1) - 0 [12:09:37]OFD Sender: Remove packet 156261 [12:09:37]ProducePacketName [12:09:37]name=ofd_packets/00156261 [12:09:37]NVStorageDeleteData [12:09:38]Write to MH i2c: 01 00 00 A1 35 D6 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: 01 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: 01 07 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: 01 07 00 A1 35 00 00 00 00 00 F1 0C DA [12:09:38]RasterBufferAndPrint [12:09:38]line [12:09:38]line [12:09:38]line [12:09:38]line [12:09:38]line [12:09:38]written 0, free lines is 3319 [12:09:38]process_action close_receipt done [12:09:38]requested_data is exist [12:09:38]produce_requested_data [12:09:38]requested_item fm.sn is exist - process it [12:09:38]wFMCommunicate request_size=4 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 11 00 00 [12:09:38]Write to MH i2c: E2 08 00 A8 35 80 11 00 00 00 00 00 00 57 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 17 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 17 00 A8 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AC [12:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:09:38]wFMCommunicate OK [12:09:38]requested_item fd.num is exist - process it [12:09:38]SAM_PROTO_GetFieldsCounters [12:09:38]wFMCommunicate request_size=4 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 13 00 00 [12:09:38]Write to MH i2c: E2 08 00 A9 35 80 13 00 00 00 00 00 00 5A [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 62 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 62 00 A9 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 65 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [12:09: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 65 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:38]wFMCommunicate OK [12:09:38]SAM_PROTO_GetFieldsCounters done [12:09:38]requested_item shift.num is exist - process it [12:09:38]requested_item shift.opened is exist - process it [12:09:38]req_shift_opened [12:09:38]FM_GetShiftState [12:09:38]SAM_PROTO_GetShiftState [12:09:38]wFMCommunicate request_size=4 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 13 01 00 [12:09:38]Write to MH i2c: E2 08 00 AA 35 80 13 01 00 00 00 00 00 5C [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 0E 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 0E 00 AA 35 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 91 [12:09:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:09:38]wFMCommunicate OK [12:09:38]SAM_PROTO_GetShiftState done [12:09:38]FM_GetShiftState done [12:09:38]req_shift_opened done [12:09:38]requested_item shift.open_date is exist - process it [12:09:38]req_shift_open_date [12:09:38]req_shift_open_date done [12:09:38]produce_requested_data done [12:09:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156261,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:09:38]process_action_free close_receipt [12:09:38]json_value_free [12:09:38]json_value_free done [12:09:38]process_json_proto returns [12:09:38]Send response to host [12:09:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156261,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:09:38]free response buf [12:09:38]execute_script done [12:09:38]execute_script returns [12:09:38]free content buf [12:09:38]Sock 9.Close socket [12:09:38]Sock 9.Thread stoped [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:27]accept exits with 7 [12:10:27]New connection [12:10:27]New thread 3066613092 created [12:10:27]Thread 3066469732 joined [12:10:27]Waiting for new connection... [12:10:27] Sock 7.Parse request [12:10:27]Sock 7.Check first char [12:10:27]Sock 7.First char is OK [12:10:27]request: POST /json_proto HTTP/1.0 [12:10:27]Method: POST [12:10:27]URL: /json_proto [12:10:27]Method is POST - this is cgi request [12:10:27]url: /json_proto [12:10:27]query_string will be loaded in cgi processing [12:10:27]execute_cgi json_proto POST (null) [12:10:27]execute_cgi path=json_proto method=POST [12:10:27]POST find Content-Length [12:10:27]Host: 172.17.63.3:8080 [12:10:27]Content-Length: 681 [12:10:27]Content-Type: application/json [12:10:27] [12:10:27]POST finish read [12:10:27]Found Content-Length = 681 [12:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:27]execute_script... [12:10: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)99077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:27]POST & json_proto [12:10:27]process_json_proto [12:10:27]json parsed OK: [12:10:27]protocol is kg_v1.0 [12:10:27]action value=close_receipt [12:10:27]process_action close_receipt [12:10:27]cmd_close_receipt [12:10:27]MH_GetDate [12:10:27]Write to MH i2c: F0 00 00 AB 35 CF [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: F0 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: F0 09 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: F0 09 00 AB 35 00 37 DC 1C 67 50 D1 6C 64 5F [12:10:27]GetLastDocTimeStamp 1729944579 [12:10:27]current date 1729944631 [12:10:27]FM_GetShiftState [12:10:27]SAM_PROTO_GetShiftState [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 01 00 [12:10:27]Write to MH i2c: E2 08 00 AC 35 80 13 01 00 00 00 00 00 5E [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 0E 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 0E 00 AC 35 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 93 [12:10:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:10:27]wFMCommunicate OK [12:10:27]SAM_PROTO_GetShiftState done [12:10:27]FM_GetShiftState done [12:10:27]opened in 1729902702 [12:10:27]opened+sec_in_day 1729989102 [12:10:27]quantity*price = 100015 [12:10:27]sum+1 = 100017 [12:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 163 26.10.2024 12:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156262 ФПД: 66092336627326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121031&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156262&fm=66092336627326&tin=02508201610067®Number=0000000000091693&sum=100000 [12:10:28]StoreToDocumentArchive [12:10:28]shift 536 fd 156262 [12:10:28]save to /storage/0536/doc_00156262 [12:10:28]save last doc name /storage/0536/doc_00156262 to /storage/kkm_last_doc_name [12:10:28]save OK [12:10:28]Clear old archive folders... [12:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:28]tlvbuf is 00D5E1F0 [12:10:28]SAM_PROTO_ClearQueue [12:10:28]wFMCommunicate request_size=4 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 09 00 00 [12:10:28]Write to MH i2c: E2 08 00 B9 35 80 09 00 00 00 00 00 00 60 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 B9 35 00 90 00 62 [12:10:28]RAPDU: 90 00 [12:10:28]wFMCommunicate OK [12:10:28]SAM_PROTO_ClearQueue done [12:10:28]KKMCreateOFDPacket [12:10:28]OFDProtocolAddRootSTLVToBuf [12:10:28]FM_MakeSignedData [12:10:28]FM_MakeSignedData [12:10:28]SAM_PROTO_SignData [12:10:28]wFMCommunicate request_size=4 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 0D 01 02 [12:10:28]Write to MH i2c: E2 08 00 BA 35 80 0D 01 02 00 00 00 00 68 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 BA 35 00 90 00 63 [12:10:28]RAPDU: 90 00 [12:10:28]wFMCommunicate OK [12:10:28]wFMCommunicate request_size=255 [12:10:28]MH_SAM_APDU [12: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 37 DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 62 02 00 35 04 06 00 3C [12:10:28]Write to MH i2c: E2 02 01 BB 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 37 DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 62 02 00 35 04 06 00 3C 00 00 4F [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 BB 35 00 90 00 64 [12:10:28]RAPDU: 90 00 [12:10:28]wFMCommunicate OK [12:10:28]wFMCommunicate request_size=10 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 0D 02 02 05 1C 52 3F 3E 7E [12:10:28]Write to MH i2c: E2 0D 00 BC 35 80 0D 02 02 05 00 1C 52 3F 3E 7E 00 00 DE [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 BC 35 00 90 00 65 [12:10:28]RAPDU: 90 00 [12:10:28]wFMCommunicate OK [12:10:28]wFMCommunicate request_size=4 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 0D 03 02 [12:10:28]Write to MH i2c: E2 08 00 BD 35 80 0D 03 02 00 00 00 00 6D [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0B 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0B 00 BD 35 00 8D 5C 59 46 52 FB 72 03 90 00 B8 [12:10:29]RAPDU: 8D 5C 59 46 52 FB 72 03 90 00 [12:10:29]wFMCommunicate OK [12:10:29]SAM_PROTO_SignData done [12:10:29]FM_MakeSignedData done [12:10:29]CreateOFDProtocolMessage [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 11 00 00 [12:10:29]Write to MH i2c: E2 08 00 BE 35 80 11 00 00 00 00 00 00 6D [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 17 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 17 00 BE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C2 [12:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:10:29]wFMCommunicate OK [12:10:29]CreateOFDProtocolMessage done [12:10:29]OFDSenderStorePacket 156262 [12:10:29]StoreOFDPacket docnum=156262 [12:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4C DD 07 01 CE 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 37 DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 62 02 00 35 04 06 00 3C 1C 52 3F 3E 7E 8D 5C 59 46 52 FB 72 03 [12:10:29]CheckFolder [12:10:29]dirname=/storage/ofd_packets [12:10:29]CheckFolder done [12:10:29]ProducePacketName [12:10:29]name=ofd_packets/00156262 [12:10:29]NVStorageSaveData ofd_packets/00156262 [12:10:29]File name is /storage/ofd_packets/00156262 [12:10:29]Write 301 bytes [12:10:29]NVStorageSaveData done [12:10:29]OFDSenderStorePacket done [12:10:29]KKMCreateOFDPacket done [12:10:29]NVStorageSaveData kkm_last_timestamp [12:10:29]File name is /storage/kkm_last_timestamp [12:10:29]Write 4 bytes [12:10:29]NVStorageSaveData done [12:10:29]ExternCall_PrintAddStr [12:10:29]wPrintStart [12:10:29]Write to MH i2c: 01 00 00 BF 35 F4 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 07 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 07 00 BF 35 00 00 00 00 00 FF 0F 09 [12:10:29]RasterBufferAndPrint [12:10:29]line Счет N : (1)99077 [12:10:29]line ИНН: 02508201610067 [12:10:29]line Контрольно-Кассовый Чек [12:10:29]line ПРОДАЖА [12:10:29]line ТРК (МРК, ГНК) : 21 [12:10:29]line Товар: 2710124130 [12:10:29]line Аи-92-К-5 [12:10:29]line 14.950 * 66.90 [12:10:29]line = 1000.16 [12:10:29]line НДС 12% НСП 1% [12:10:29]line > о реализуемом товаре [12:10:29]line ОКРУГЛЕНИЕ: -0.16 [12:10:29]line ИТОГО: 1000.00 [12:10:29]line Внесено: 1000.00 [12:10:29]line СДАЧА: 0.00 [12:10:29]line НСП 1% : 8.85 [12:10:29]line НДС 12% : 106.21 [12:10:29]line Наличными: 1000.00 [12:10:29]line Безнал.: 0.00 [12:10:29]line Место: АЗС № 143 "Партнер Нефть" [12:10:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:10:29]line СНО: Общий режим [12:10:29]line Чек 163 26.10.2024 12:10 [12:10:29]line Смена: 536 ФФД: 1.0 [12:10:29]line ЗНМ: 0300000096 [12:10:29]line РНМ: 0000000000091693 [12:10:29]line Версия ККМ: 001 [12:10:29]line ФМ: 0000000000871792 [12:10:29]line ФД: 156262 [12:10:29]line ФПД: 66092336627326 [12:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121031&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156262&fm=66092336627326&tin=02508201610067®Number=0000000000091693&sum=100000 [12:10:29]OFD Sender: Processing packet 156262 [packets to send 31, broken 30] [12:10:29]ProducePacketName [12:10:29]name=ofd_packets/00156262 [12:10:29]OFD Sender: To server: pG, [12:10:29]CommunicateWithHost lk.salyk.kg:30040 [12:10:29]ConnectInit lk.salyk.kg [12:10:29]written 0, free lines is 4095 [12:10:29]Connected sock=10 [12: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 31 37 39 32 0F 01 00 00 4C DD 07 01 CE 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 37 DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 62 02 00 35 04 06 00 3C 1C 52 3F 3E 7E 8D 5C 59 46 52 FB 72 03 [12:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D2 20 47 00 22 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 31 37 39 32 10 04 04 00 66 62 02 00 F4 03 04 00 AA 81 1C 67 B6 04 01 00 00 5E C5 DE CE 7E 2D 41 4C [12:10:29]CommunicateWithHost err = 0 [12:10:29]CheckOFDResponse [12:10:29]1017 (14) - 77093643461234 [12:10:29]1041 (16) - 0000000000871792 [12:10:29]1040 (4) - 156262 [12:10:29]1012 (4) - 26.10.2024 05:44 [12:10:29]1206 (1) - 0 [12:10:29]OFD Sender: Remove packet 156262 [12:10:29]ProducePacketName [12:10:29]name=ofd_packets/00156262 [12:10:29]NVStorageDeleteData [12:10:29]Write to MH i2c: 01 00 00 EA 35 1F [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 07 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 07 00 EA 35 00 00 00 00 00 01 0D 34 [12:10:29]RasterBufferAndPrint [12:10:29]line [12:10:29]line [12:10:29]line [12:10:29]line [12:10:29]line [12:10:29]written 0, free lines is 3338 [12:10:29]process_action close_receipt done [12:10:29]requested_data is exist [12:10:29]produce_requested_data [12:10:29]requested_item fm.sn is exist - process it [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 11 00 00 [12:10:29]Write to MH i2c: E2 08 00 F1 35 80 11 00 00 00 00 00 00 A0 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 17 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 17 00 F1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F5 [12:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:10:29]wFMCommunicate OK [12:10:29]requested_item fd.num is exist - process it [12:10:29]SAM_PROTO_GetFieldsCounters [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 13 00 00 [12:10:29]Write to MH i2c: E2 08 00 F2 35 80 13 00 00 00 00 00 00 A3 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:30]Read from MH i2c: E2 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 62 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 62 00 F2 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 66 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [12: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 66 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:30]wFMCommunicate OK [12:10:30]SAM_PROTO_GetFieldsCounters done [12:10:30]requested_item shift.num is exist - process it [12:10:30]requested_item shift.opened is exist - process it [12:10:30]req_shift_opened [12:10:30]FM_GetShiftState [12:10:30]SAM_PROTO_GetShiftState [12:10:30]wFMCommunicate request_size=4 [12:10:30]MH_SAM_APDU [12:10:30]CAPDU: 80 13 01 00 [12:10:30]Write to MH i2c: E2 08 00 F3 35 80 13 01 00 00 00 00 00 A5 [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:30]Read from MH i2c: E2 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 0E 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 0E 00 F3 35 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DA [12:10:30]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:10:30]wFMCommunicate OK [12:10:30]SAM_PROTO_GetShiftState done [12:10:30]FM_GetShiftState done [12:10:30]req_shift_opened done [12:10:30]requested_item shift.open_date is exist - process it [12:10:30]req_shift_open_date [12:10:30]req_shift_open_date done [12:10:30]produce_requested_data done [12:10:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156262,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:10:30]process_action_free close_receipt [12:10:30]json_value_free [12:10:30]json_value_free done [12:10:30]process_json_proto returns [12:10:30]Send response to host [12:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156262,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:10:30]free response buf [12:10:30]execute_script done [12:10:30]execute_script returns [12:10:30]free content buf [12:10:30]Sock 7.Close socket [12:10:30]Sock 7.Thread stoped [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:50]accept exits with 9 [12:11:50]New connection [12:11:50]New thread 3066469732 created [12:11:50]Thread 3066613092 joined [12:11:50]Waiting for new connection... [12:11:50] Sock 9.Parse request [12:11:50]Sock 9.Check first char [12:11:50]Sock 9.First char is OK [12:11:50]request: POST /json_proto HTTP/1.0 [12:11:50]Method: POST [12:11:50]URL: /json_proto [12:11:50]Method is POST - this is cgi request [12:11:50]url: /json_proto [12:11:50]query_string will be loaded in cgi processing [12:11:50]execute_cgi json_proto POST (null) [12:11:50]execute_cgi path=json_proto method=POST [12:11:50]POST find Content-Length [12:11:50]Host: 172.17.63.3:8080 [12:11:50]Content-Length: 765 [12:11:50]Content-Type: application/json [12:11:50] [12:11:50]POST finish read [12:11:50]Found Content-Length = 765 [12:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:50]execute_script... [12:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:50]POST & json_proto [12:11:50]process_json_proto [12:11:50]json parsed OK: [12:11:50]protocol is kg_v1.0 [12:11:50]action value=close_receipt [12:11:50]process_action close_receipt [12:11:50]cmd_close_receipt [12:11:50]MH_GetDate [12:11:50]Write to MH i2c: F0 00 00 F4 35 18 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 09 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 09 00 F4 35 00 8A DC 1C 67 50 D1 6C 64 FB [12:11:50]GetLastDocTimeStamp 1729944631 [12:11:50]current date 1729944714 [12:11:50]FM_GetShiftState [12:11:50]SAM_PROTO_GetShiftState [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 01 00 [12:11:50]Write to MH i2c: E2 08 00 F5 35 80 13 01 00 00 00 00 00 A7 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 F5 35 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DC [12:11:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetShiftState done [12:11:50]FM_GetShiftState done [12:11:50]opened in 1729902702 [12:11:50]opened+sec_in_day 1729989102 [12:11:50]quantity*price = 50041 [12:11:50]sum+1 = 50042 [12:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 164 26.10.2024 12:11 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156263 ФПД: 10934495009792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121154&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156263&fm=10934495009792&tin=02508201610067®Number=0000000000091693&sum=50041 [12:11:51]StoreToDocumentArchive [12:11:51]shift 536 fd 156263 [12:11:51]save to /storage/0536/doc_00156263 [12:11:51]save last doc name /storage/0536/doc_00156263 to /storage/kkm_last_doc_name [12:11:51]save OK [12:11:51]Clear old archive folders... [12:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:51]tlvbuf is 00D7D7E0 [12:11:51]SAM_PROTO_ClearQueue [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 09 00 00 [12:11:51]Write to MH i2c: E2 08 00 02 36 80 09 00 00 00 00 00 00 AA [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 02 36 00 90 00 AC [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]SAM_PROTO_ClearQueue done [12:11:51]KKMCreateOFDPacket [12:11:51]OFDProtocolAddRootSTLVToBuf [12:11:51]FM_MakeSignedData [12:11:51]FM_MakeSignedData [12:11:51]SAM_PROTO_SignData [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 01 02 [12:11:51]Write to MH i2c: E2 08 00 03 36 80 0D 01 02 00 00 00 00 B2 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 03 36 00 90 00 AD [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=255 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 8A DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 62 02 00 35 04 06 00 09 [12:11:52]Write to MH i2c: E2 02 01 04 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 8A DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 62 02 00 35 04 06 00 09 00 00 13 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 03 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 03 00 04 36 00 90 00 AE [12:11:52]RAPDU: 90 00 [12:11:52]wFMCommunicate OK [12:11:52]wFMCommunicate request_size=10 [12:11:52]MH_SAM_APDU [12:11:52]CAPDU: 80 0D 02 02 05 F1 E2 B0 DC 00 [12:11:52]Write to MH i2c: E2 0D 00 05 36 80 0D 02 02 05 00 F1 E2 B0 DC 00 00 00 1E [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 03 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 03 00 05 36 00 90 00 AF [12:11:52]RAPDU: 90 00 [12:11:52]wFMCommunicate OK [12:11:52]wFMCommunicate request_size=4 [12:11:52]MH_SAM_APDU [12:11:52]CAPDU: 80 0D 03 02 [12:11:52]Write to MH i2c: E2 08 00 06 36 80 0D 03 02 00 00 00 00 B7 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 0B 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 0B 00 06 36 00 88 2D B3 61 FB F5 4F C3 90 00 83 [12:11:52]RAPDU: 88 2D B3 61 FB F5 4F C3 90 00 [12:11:52]wFMCommunicate OK [12:11:52]SAM_PROTO_SignData done [12:11:52]FM_MakeSignedData done [12:11:52]CreateOFDProtocolMessage [12:11:52]wFMCommunicate request_size=4 [12:11:52]MH_SAM_APDU [12:11:52]CAPDU: 80 11 00 00 [12:11:52]Write to MH i2c: E2 08 00 07 36 80 11 00 00 00 00 00 00 B7 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 17 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 17 00 07 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0C [12:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:11:52]wFMCommunicate OK [12:11:52]CreateOFDProtocolMessage done [12:11:52]OFDSenderStorePacket 156263 [12:11:52]StoreOFDPacket docnum=156263 [12:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A1 B2 07 01 29 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 8A DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 62 02 00 35 04 06 00 09 F1 E2 B0 DC 00 88 2D B3 61 FB F5 4F C3 [12:11:52]CheckFolder [12:11:52]dirname=/storage/ofd_packets [12:11:52]CheckFolder done [12:11:52]ProducePacketName [12:11:52]name=ofd_packets/00156263 [12:11:52]NVStorageSaveData ofd_packets/00156263 [12:11:52]File name is /storage/ofd_packets/00156263 [12:11:52]Write 301 bytes [12:11:52]NVStorageSaveData done [12:11:52]OFDSenderStorePacket done [12:11:52]KKMCreateOFDPacket done [12:11:52]NVStorageSaveData kkm_last_timestamp [12:11:52]File name is /storage/kkm_last_timestamp [12:11:52]Write 4 bytes [12:11:52]NVStorageSaveData done [12:11:52]ExternCall_PrintAddStr [12:11:52]wPrintStart [12:11:52]Write to MH i2c: 01 00 00 08 36 3E [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 08 36 00 00 00 00 00 FF 0F 53 [12:11:52]RasterBufferAndPrint [12:11:52]line Счет N : (1)99078 [12:11:52]line ИНН: 02508201610067 [12:11:52]line Контрольно-Кассовый Чек [12:11:52]line ПРОДАЖА [12:11:52]line ТРК (МРК, ГНК) : 21 [12:11:52]line Товар: 2710124130 [12:11:52]line Аи-92-К-5 [12:11:52]line 7.480 * 66.90 [12:11:52]line = 500.41 [12:11:52]line НДС 12% НСП 1% [12:11:52]line > о реализуемом товаре [12:11:52]line ИТОГО: 500.41 [12:11:52]line НСП 1% : 4.43 [12:11:52]line НДС 12% : 53.14 [12:11:52]line Наличными: 0.00 [12:11:52]line Безнал.: 500.41 [12:11:52]line Место: АЗС № 143 "Партнер Нефть" [12:11:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:11:52]line СНО: Общий режим [12:11:52]line Чек 164 26.10.2024 12:11 [12:11:52]line Смена: 536 ФФД: 1.0 [12:11:52]line ЗНМ: 0300000096 [12:11:52]line РНМ: 0000000000091693 [12:11:52]line Версия ККМ: 001 [12:11:52]line Платежная система: Mbank [12:11:52]line ФМ: 0000000000871792 [12:11:52]line ФД: 156263 [12:11:52]line ФПД: 10934495009792 [12:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121154&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156263&fm=10934495009792&tin=02508201610067®Number=0000000000091693&sum=50041 [12:11:52]OFD Sender: Processing packet 156263 [packets to send 31, broken 30] [12:11:52]ProducePacketName [12:11:52]name=ofd_packets/00156263 [12:11:52]OFD Sender: To server: pG, [12:11:52]CommunicateWithHost lk.salyk.kg:30040 [12:11:52]ConnectInit lk.salyk.kg [12:11:52]written 0, free lines is 4095 [12:11:52]Connected sock=7 [12:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A1 B2 07 01 29 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 8A DC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 62 02 00 35 04 06 00 09 F1 E2 B0 DC 00 88 2D B3 61 FB F5 4F C3 [12:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8F E1 47 00 B5 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 31 37 39 32 10 04 04 00 67 62 02 00 F4 03 04 00 FD 81 1C 67 B6 04 01 00 00 F0 71 1D 75 A9 D1 41 42 [12:11:53]CommunicateWithHost err = 0 [12:11:53]CheckOFDResponse [12:11:53]1017 (14) - 77093643461234 [12:11:53]1041 (16) - 0000000000871792 [12:11:53]1040 (4) - 156263 [12:11:53]1012 (4) - 26.10.2024 05:45 [12:11:53]1206 (1) - 0 [12:11:53]OFD Sender: Remove packet 156263 [12:11:53]ProducePacketName [12:11:53]name=ofd_packets/00156263 [12:11:53]NVStorageDeleteData [12:11:53]Write to MH i2c: 01 00 00 31 36 67 [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: 01 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: 01 07 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: 01 07 00 31 36 00 00 00 00 00 18 0D 93 [12:11:53]RasterBufferAndPrint [12:11:53]line [12:11:53]line [12:11:53]line [12:11:53]line [12:11:53]line [12:11:53]written 0, free lines is 3362 [12:11:53]process_action close_receipt done [12:11:53]requested_data is exist [12:11:53]produce_requested_data [12:11:53]requested_item fm.sn is exist - process it [12:11:53]wFMCommunicate request_size=4 [12:11:53]MH_SAM_APDU [12:11:53]CAPDU: 80 11 00 00 [12:11:53]Write to MH i2c: E2 08 00 38 36 80 11 00 00 00 00 00 00 E8 [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:53]Read from MH i2c: E2 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 17 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 17 00 38 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [12:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:11:53]wFMCommunicate OK [12:11:53]requested_item fd.num is exist - process it [12:11:53]SAM_PROTO_GetFieldsCounters [12:11:53]wFMCommunicate request_size=4 [12:11:53]MH_SAM_APDU [12:11:53]CAPDU: 80 13 00 00 [12:11:53]Write to MH i2c: E2 08 00 39 36 80 13 00 00 00 00 00 00 EB [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:53]Read from MH i2c: E2 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 62 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 62 00 39 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 67 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12:11: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 67 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:53]wFMCommunicate OK [12:11:53]SAM_PROTO_GetFieldsCounters done [12:11:53]requested_item shift.num is exist - process it [12:11:53]requested_item shift.opened is exist - process it [12:11:53]req_shift_opened [12:11:53]FM_GetShiftState [12:11:53]SAM_PROTO_GetShiftState [12:11:53]wFMCommunicate request_size=4 [12:11:53]MH_SAM_APDU [12:11:53]CAPDU: 80 13 01 00 [12:11:53]Write to MH i2c: E2 08 00 3A 36 80 13 01 00 00 00 00 00 ED [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:53]Read from MH i2c: E2 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 0E 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 0E 00 3A 36 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 22 [12:11:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:11:53]wFMCommunicate OK [12:11:53]SAM_PROTO_GetShiftState done [12:11:53]FM_GetShiftState done [12:11:53]req_shift_opened done [12:11:53]requested_item shift.open_date is exist - process it [12:11:53]req_shift_open_date [12:11:53]req_shift_open_date done [12:11:53]produce_requested_data done [12:11:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156263,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:11:53]process_action_free close_receipt [12:11:53]json_value_free [12:11:53]json_value_free done [12:11:53]process_json_proto returns [12:11:53]Send response to host [12:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156263,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:11:53]free response buf [12:11:53]execute_script done [12:11:53]execute_script returns [12:11:53]free content buf [12:11:53]Sock 9.Close socket [12:11:53]Sock 9.Thread stoped [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:52]accept exits with 10 [12:16:52]New connection [12:16:52]New thread 3066613092 created [12:16:52]Thread 3066469732 joined [12:16:52]Waiting for new connection... [12:16:52] Sock 10.Parse request [12:16:52]Sock 10.Check first char [12:16:52]Sock 10.First char is OK [12:16:52]request: POST /json_proto HTTP/1.0 [12:16:52]Method: POST [12:16:52]URL: /json_proto [12:16:52]Method is POST - this is cgi request [12:16:52]url: /json_proto [12:16:52]query_string will be loaded in cgi processing [12:16:52]execute_cgi json_proto POST (null) [12:16:52]execute_cgi path=json_proto method=POST [12:16:52]POST find Content-Length [12:16:52]Host: 172.17.63.3:8080 [12:16:52]Content-Length: 676 [12:16:52]Content-Type: application/json [12:16:52] [12:16:52]POST finish read [12:16:52]Found Content-Length = 676 [12:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:52]execute_script... [12:16:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:52]POST & json_proto [12:16:52]process_json_proto [12:16:52]json parsed OK: [12:16:52]protocol is kg_v1.0 [12:16:52]action value=close_receipt [12:16:52]process_action close_receipt [12:16:52]cmd_close_receipt [12:16:52]MH_GetDate [12:16:52]Write to MH i2c: F0 00 00 3B 36 60 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: F0 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: F0 09 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: F0 09 00 3B 36 00 B8 DD 1C 67 50 D1 6C 64 72 [12:16:52]GetLastDocTimeStamp 1729944714 [12:16:52]current date 1729945016 [12:16:52]FM_GetShiftState [12:16:52]SAM_PROTO_GetShiftState [12:16:52]wFMCommunicate request_size=4 [12:16:52]MH_SAM_APDU [12:16:52]CAPDU: 80 13 01 00 [12:16:52]Write to MH i2c: E2 08 00 3C 36 80 13 01 00 00 00 00 00 EF [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:52]Read from MH i2c: E2 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 0E 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 0E 00 3C 36 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 24 [12:16:52]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:16:52]wFMCommunicate OK [12:16:52]SAM_PROTO_GetShiftState done [12:16:52]FM_GetShiftState done [12:16:52]opened in 1729902702 [12:16:52]opened+sec_in_day 1729989102 [12:16:52]quantity*price = 35055 [12:16:52]sum+1 = 35057 [12:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 165 26.10.2024 12:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156264 ФПД: 72111584689698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121656&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156264&fm=72111584689698&tin=02508201610067®Number=0000000000091693&sum=35000 [12:16:53]StoreToDocumentArchive [12:16:53]shift 536 fd 156264 [12:16:53]save to /storage/0536/doc_00156264 [12:16:53]save last doc name /storage/0536/doc_00156264 to /storage/kkm_last_doc_name [12:16:53]save OK [12:16:53]Clear old archive folders... [12:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:53]tlvbuf is 00DC07B0 [12:16:53]SAM_PROTO_ClearQueue [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 09 00 00 [12:16:53]Write to MH i2c: E2 08 00 49 36 80 09 00 00 00 00 00 00 F1 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 49 36 00 90 00 F3 [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]SAM_PROTO_ClearQueue done [12:16:53]KKMCreateOFDPacket [12:16:53]OFDProtocolAddRootSTLVToBuf [12:16:53]FM_MakeSignedData [12:16:53]FM_MakeSignedData [12:16:53]SAM_PROTO_SignData [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 01 02 [12:16:53]Write to MH i2c: E2 08 00 4A 36 80 0D 01 02 00 00 00 00 F9 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 4A 36 00 90 00 F4 [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]wFMCommunicate request_size=255 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B8 DD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 62 02 00 35 04 06 00 41 [12:16:53]Write to MH i2c: E2 02 01 4B 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B8 DD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 62 02 00 35 04 06 00 41 00 00 7C [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]OFD Sender: No OFD packet to send [12:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 03 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 03 00 4B 36 00 90 00 F5 [12:16:54]RAPDU: 90 00 [12:16:54]wFMCommunicate OK [12:16:54]wFMCommunicate request_size=10 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 0D 02 02 05 95 C9 63 BE 22 [12:16:54]Write to MH i2c: E2 0D 00 4C 36 80 0D 02 02 05 00 95 C9 63 BE 22 00 00 A7 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 03 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 03 00 4C 36 00 90 00 F6 [12:16:54]RAPDU: 90 00 [12:16:54]wFMCommunicate OK [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 0D 03 02 [12:16:54]Write to MH i2c: E2 08 00 4D 36 80 0D 03 02 00 00 00 00 FE [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0B 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0B 00 4D 36 00 DD 7D 51 99 3E 07 BE 5B 90 00 A1 [12:16:54]RAPDU: DD 7D 51 99 3E 07 BE 5B 90 00 [12:16:54]wFMCommunicate OK [12:16:54]SAM_PROTO_SignData done [12:16:54]FM_MakeSignedData done [12:16:54]CreateOFDProtocolMessage [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 11 00 00 [12:16:54]Write to MH i2c: E2 08 00 4E 36 80 11 00 00 00 00 00 00 FE [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 17 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 17 00 4E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [12:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:16:54]wFMCommunicate OK [12:16:54]CreateOFDProtocolMessage done [12:16:54]OFDSenderStorePacket 156264 [12:16:54]StoreOFDPacket docnum=156264 [12:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 93 02 07 01 0D 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B8 DD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 62 02 00 35 04 06 00 41 95 C9 63 BE 22 DD 7D 51 99 3E 07 BE 5B [12:16:54]CheckFolder [12:16:54]dirname=/storage/ofd_packets [12:16:54]CheckFolder done [12:16:54]ProducePacketName [12:16:54]name=ofd_packets/00156264 [12:16:54]NVStorageSaveData ofd_packets/00156264 [12:16:54]File name is /storage/ofd_packets/00156264 [12:16:54]Write 301 bytes [12:16:54]NVStorageSaveData done [12:16:54]OFDSenderStorePacket done [12:16:54]KKMCreateOFDPacket done [12:16:54]NVStorageSaveData kkm_last_timestamp [12:16:54]File name is /storage/kkm_last_timestamp [12:16:54]Write 4 bytes [12:16:54]NVStorageSaveData done [12:16:54]ExternCall_PrintAddStr [12:16:54]wPrintStart [12:16:54]Write to MH i2c: 01 00 00 4F 36 85 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 4F 36 00 00 00 00 00 FF 0F 9A [12:16:54]RasterBufferAndPrint [12:16:54]line Счет N : (1)99079 [12:16:54]line ИНН: 02508201610067 [12:16:54]line Контрольно-Кассовый Чек [12:16:54]line ПРОДАЖА [12:16:54]line ТРК (МРК, ГНК) : 21 [12:16:54]line Товар: 2710124130 [12:16:54]line Аи-92-К-5 [12:16:54]line 5.240 * 66.90 [12:16:54]line = 350.56 [12:16:54]line НДС 12% НСП 1% [12:16:54]line > о реализуемом товаре [12:16:54]line ОКРУГЛЕНИЕ: -0.56 [12:16:54]line ИТОГО: 350.00 [12:16:54]line Внесено: 350.00 [12:16:54]line СДАЧА: 0.00 [12:16:54]line НСП 1% : 3.10 [12:16:54]line НДС 12% : 37.23 [12:16:54]line Наличными: 350.00 [12:16:54]line Безнал.: 0.00 [12:16:54]line Место: АЗС № 143 "Партнер Нефть" [12:16:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:16:54]line СНО: Общий режим [12:16:54]line Чек 165 26.10.2024 12:16 [12:16:54]line Смена: 536 ФФД: 1.0 [12:16:54]line ЗНМ: 0300000096 [12:16:54]line РНМ: 0000000000091693 [12:16:54]line Версия ККМ: 001 [12:16:54]line ФМ: 0000000000871792 [12:16:54]line ФД: 156264 [12:16:54]line ФПД: 72111584689698 [12:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121656&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156264&fm=72111584689698&tin=02508201610067®Number=0000000000091693&sum=35000 [12:16:54]OFD Sender: Processing packet 156264 [packets to send 31, broken 30] [12:16:54]ProducePacketName [12:16:54]name=ofd_packets/00156264 [12:16:54]OFD Sender: To server: pG, [12:16:54]CommunicateWithHost lk.salyk.kg:30040 [12:16:54]ConnectInit lk.salyk.kg [12:16:54]written 0, free lines is 4095 [12:16:54]Connected sock=9 [12:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 93 02 07 01 0D 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B8 DD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 62 02 00 35 04 06 00 41 95 C9 63 BE 22 DD 7D 51 99 3E 07 BE 5B [12:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D4 51 47 00 E6 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 62 02 00 F4 03 04 00 2B 83 1C 67 B6 04 01 00 00 1B 5C A0 E9 DB 2D 78 9C [12:16:54]CommunicateWithHost err = 0 [12:16:54]CheckOFDResponse [12:16:54]1017 (14) - 77093643461234 [12:16:54]1041 (16) - 0000000000871792 [12:16:54]1040 (4) - 156264 [12:16:54]1012 (4) - 26.10.2024 05:50 [12:16:54]1206 (1) - 0 [12:16:54]OFD Sender: Remove packet 156264 [12:16:54]ProducePacketName [12:16:54]name=ofd_packets/00156264 [12:16:54]NVStorageDeleteData [12:16:54]Write to MH i2c: 01 00 00 7A 36 B0 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 7A 36 00 00 00 00 00 F1 0C B4 [12:16:54]RasterBufferAndPrint [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]written 0, free lines is 3319 [12:16:54]process_action close_receipt done [12:16:54]requested_data is exist [12:16:54]produce_requested_data [12:16:54]requested_item fm.sn is exist - process it [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 11 00 00 [12:16:54]Write to MH i2c: E2 08 00 81 36 80 11 00 00 00 00 00 00 31 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:55]Read from MH i2c: E2 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 17 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 17 00 81 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [12:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:16:55]wFMCommunicate OK [12:16:55]requested_item fd.num is exist - process it [12:16:55]SAM_PROTO_GetFieldsCounters [12:16:55]wFMCommunicate request_size=4 [12:16:55]MH_SAM_APDU [12:16:55]CAPDU: 80 13 00 00 [12:16:55]Write to MH i2c: E2 08 00 82 36 80 13 00 00 00 00 00 00 34 [12:16:55]Write i2c OK [12:16:55]MH_I2C_Read... [12:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:55]Read from MH i2c: E2 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 62 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 62 00 82 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 68 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [12:16: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 68 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:55]wFMCommunicate OK [12:16:55]SAM_PROTO_GetFieldsCounters done [12:16:55]requested_item shift.num is exist - process it [12:16:55]requested_item shift.opened is exist - process it [12:16:55]req_shift_opened [12:16:55]FM_GetShiftState [12:16:55]SAM_PROTO_GetShiftState [12:16:55]wFMCommunicate request_size=4 [12:16:55]MH_SAM_APDU [12:16:55]CAPDU: 80 13 01 00 [12:16:55]Write to MH i2c: E2 08 00 83 36 80 13 01 00 00 00 00 00 36 [12:16:55]Write i2c OK [12:16:55]MH_I2C_Read... [12:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:55]Read from MH i2c: E2 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 0E 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 0E 00 83 36 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6B [12:16:55]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:16:55]wFMCommunicate OK [12:16:55]SAM_PROTO_GetShiftState done [12:16:55]FM_GetShiftState done [12:16:55]req_shift_opened done [12:16:55]requested_item shift.open_date is exist - process it [12:16:55]req_shift_open_date [12:16:55]req_shift_open_date done [12:16:55]produce_requested_data done [12:16:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156264,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:16:55]process_action_free close_receipt [12:16:55]json_value_free [12:16:55]json_value_free done [12:16:55]process_json_proto returns [12:16:55]Send response to host [12:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156264,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:16:55]free response buf [12:16:55]execute_script done [12:16:55]execute_script returns [12:16:55]free content buf [12:16:55]Sock 10.Close socket [12:16:55]Sock 10.Thread stoped [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:11]accept exits with 7 [12:17:11]New connection [12:17:11]New thread 3066469732 created [12:17:11]Thread 3066613092 joined [12:17:11]Waiting for new connection... [12:17:11] Sock 7.Parse request [12:17:11]Sock 7.Check first char [12:17:11]Sock 7.First char is OK [12:17:11]request: POST /json_proto HTTP/1.0 [12:17:11]Method: POST [12:17:11]URL: /json_proto [12:17:11]Method is POST - this is cgi request [12:17:11]url: /json_proto [12:17:11]query_string will be loaded in cgi processing [12:17:11]execute_cgi json_proto POST (null) [12:17:11]execute_cgi path=json_proto method=POST [12:17:11]POST find Content-Length [12:17:11]Host: 172.17.63.3:8080 [12:17:11]Content-Length: 796 [12:17:11]Content-Type: application/json [12:17:11] [12:17:11]POST finish read [12:17:11]Found Content-Length = 796 [12:17:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466769", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:11]execute_script... [12:17:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466769", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:11]POST & json_proto [12:17:11]process_json_proto [12:17:11]json parsed OK: [12:17:11]protocol is kg_v1.0 [12:17:11]action value=close_receipt [12:17:11]process_action close_receipt [12:17:11]cmd_close_receipt [12:17:11]MH_GetDate [12:17:11]Write to MH i2c: F0 00 00 84 36 A9 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: F0 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: F0 09 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: F0 09 00 84 36 00 CB DD 1C 67 50 D1 6C 64 CE [12:17:11]GetLastDocTimeStamp 1729945016 [12:17:11]current date 1729945035 [12:17:11]FM_GetShiftState [12:17:11]SAM_PROTO_GetShiftState [12:17:11]wFMCommunicate request_size=4 [12:17:11]MH_SAM_APDU [12:17:11]CAPDU: 80 13 01 00 [12:17:11]Write to MH i2c: E2 08 00 85 36 80 13 01 00 00 00 00 00 38 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:11]Read from MH i2c: E2 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 0E 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 0E 00 85 36 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6D [12:17:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:17:11]wFMCommunicate OK [12:17:11]SAM_PROTO_GetShiftState done [12:17:11]FM_GetShiftState done [12:17:11]opened in 1729902702 [12:17:11]opened+sec_in_day 1729989102 [12:17:11]quantity*price = 0 [12:17:11]sum+1 = 1 [12:17:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 166 26.10.2024 12:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4466769 ФМ: 0000000000871792 ФД: 156265 ФПД: 19487106579986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121715&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156265&fm=19487106579986&tin=02508201610067®Number=0000000000091693&sum=0 [12:17:12]StoreToDocumentArchive [12:17:12]shift 536 fd 156265 [12:17:12]save to /storage/0536/doc_00156265 [12:17:12]save last doc name /storage/0536/doc_00156265 to /storage/kkm_last_doc_name [12:17:12]save OK [12:17:12]Clear old archive folders... [12:17:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:12]tlvbuf is 00D3EA10 [12:17:12]SAM_PROTO_ClearQueue [12:17:12]wFMCommunicate request_size=4 [12:17:12]MH_SAM_APDU [12:17:12]CAPDU: 80 09 00 00 [12:17:12]Write to MH i2c: E2 08 00 92 36 80 09 00 00 00 00 00 00 3A [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:12]Read from MH i2c: E2 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 03 00 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 03 00 92 36 00 90 00 3C [12:17:12]RAPDU: 90 00 [12:17:12]wFMCommunicate OK [12:17:12]SAM_PROTO_ClearQueue done [12:17:12]KKMCreateOFDPacket [12:17:12]OFDProtocolAddRootSTLVToBuf [12:17:12]FM_MakeSignedData [12:17:12]FM_MakeSignedData [12:17:12]SAM_PROTO_SignData [12:17:12]wFMCommunicate request_size=4 [12:17:12]MH_SAM_APDU [12:17:12]CAPDU: 80 0D 01 02 [12:17:12]Write to MH i2c: E2 08 00 93 36 80 0D 01 02 00 00 00 00 42 [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:12]Read from MH i2c: E2 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 03 00 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 03 00 93 36 00 90 00 3D [12:17:12]RAPDU: 90 00 [12:17:12]wFMCommunicate OK [12:17:12]wFMCommunicate request_size=255 [12:17:12]MH_SAM_APDU [12:17:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 CB DD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 62 02 00 35 04 06 00 11 B9 32 10 [12:17:12]Write to MH i2c: E2 02 01 94 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 CB DD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 62 02 00 35 04 06 00 11 B9 32 10 00 00 9F [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:12]Read from MH i2c: E2 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 03 00 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 03 00 94 36 00 90 00 3E [12:17:12]RAPDU: 90 00 [12:17:12]wFMCommunicate OK [12:17:12]wFMCommunicate request_size=7 [12:17:12]MH_SAM_APDU [12:17:12]CAPDU: 80 0D 02 02 02 BE 12 [12:17:12]Write to MH i2c: E2 0A 00 95 36 80 0D 02 02 02 00 BE 12 00 00 19 [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:12]Read from MH i2c: E2 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 03 00 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 03 00 95 36 00 90 00 3F [12:17:12]RAPDU: 90 00 [12:17:12]wFMCommunicate OK [12:17:12]wFMCommunicate request_size=4 [12:17:12]MH_SAM_APDU [12:17:12]CAPDU: 80 0D 03 02 [12:17:12]Write to MH i2c: E2 08 00 96 36 80 0D 03 02 00 00 00 00 47 [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 0B 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 0B 00 96 36 00 A4 D3 92 71 6D 93 D0 BD 90 00 4F [12:17:13]RAPDU: A4 D3 92 71 6D 93 D0 BD 90 00 [12:17:13]wFMCommunicate OK [12:17:13]SAM_PROTO_SignData done [12:17:13]FM_MakeSignedData done [12:17:13]CreateOFDProtocolMessage [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 11 00 00 [12:17:13]Write to MH i2c: E2 08 00 97 36 80 11 00 00 00 00 00 00 47 [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 17 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 17 00 97 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [12:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:17:13]wFMCommunicate OK [12:17:13]CreateOFDProtocolMessage done [12:17:13]OFDSenderStorePacket 156265 [12:17:13]StoreOFDPacket docnum=156265 [12:17:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3E BE 04 01 6D 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 CB DD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 62 02 00 35 04 06 00 11 B9 32 10 BE 12 A4 D3 92 71 6D 93 D0 BD [12:17:13]CheckFolder [12:17:13]dirname=/storage/ofd_packets [12:17:13]CheckFolder done [12:17:13]ProducePacketName [12:17:13]name=ofd_packets/00156265 [12:17:13]NVStorageSaveData ofd_packets/00156265 [12:17:13]File name is /storage/ofd_packets/00156265 [12:17:13]Write 298 bytes [12:17:13]NVStorageSaveData done [12:17:13]OFDSenderStorePacket done [12:17:13]KKMCreateOFDPacket done [12:17:13]NVStorageSaveData kkm_last_timestamp [12:17:13]File name is /storage/kkm_last_timestamp [12:17:13]Write 4 bytes [12:17:13]NVStorageSaveData done [12:17:13]ExternCall_PrintAddStr [12:17:13]wPrintStart [12:17:13]Write to MH i2c: 01 00 00 98 36 CE [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: 01 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: 01 07 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: 01 07 00 98 36 00 00 00 00 00 FF 0F E3 [12:17:13]RasterBufferAndPrint [12:17:13]line Счет N : (1)99080 [12:17:13]line ИНН: 02508201610067 [12:17:13]line Контрольно-Кассовый Чек [12:17:13]line ПРОДАЖА [12:17:13]line ТРК (МРК, ГНК) : 32 [12:17:13]line Товар: 2710194210 [12:17:13]line ДТ-К-5 [12:17:13]line 10.000 * 0.00 [12:17:13]line = 0.00 [12:17:13]line НДС 12% НСП 1% [12:17:13]line > о реализуемом товаре [12:17:13]line ИТОГО: 0.00 [12:17:13]line НСП 1% : 0.00 [12:17:13]line НДС 12% : 0.00 [12:17:13]line Наличными: 0.00 [12:17:13]line Безнал.: 0.00 [12:17:13]line Место: АЗС № 143 "Партнер Нефть" [12:17:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:17:13]line СНО: Общий режим [12:17:13]line Чек 166 26.10.2024 12:17 [12:17:13]line Смена: 536 ФФД: 1.0 [12:17:13]line ЗНМ: 0300000096 [12:17:13]line РНМ: 0000000000091693 [12:17:13]line Версия ККМ: 001 [12:17:13]line Талоны: Топливные Талоны [12:17:13]line 4466769 [12:17:13]line ФМ: 0000000000871792 [12:17:13]line ФД: 156265 [12:17:13]line ФПД: 19487106579986 [12:17:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121715&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156265&fm=19487106579986&tin=02508201610067®Number=0000000000091693&sum=0 [12:17:13]OFD Sender: Processing packet 156265 [packets to send 31, broken 30] [12:17:13]ProducePacketName [12:17:13]name=ofd_packets/00156265 [12:17:13]OFD Sender: To server: pG, [12:17:13]CommunicateWithHost lk.salyk.kg:30040 [12:17:13]ConnectInit lk.salyk.kg [12:17:13]written 0, free lines is 4095 [12:17:13]Connected sock=10 [12:17:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3E BE 04 01 6D 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 CB DD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 62 02 00 35 04 06 00 11 B9 32 10 BE 12 A4 D3 92 71 6D 93 D0 BD [12:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E5 2D 47 00 7A C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 62 02 00 F4 03 04 00 3E 83 1C 67 B6 04 01 00 00 F9 A1 EE 1A 52 8B 29 98 [12:17:13]CommunicateWithHost err = 0 [12:17:13]CheckOFDResponse [12:17:13]1017 (14) - 77093643461234 [12:17:13]1041 (16) - 0000000000871792 [12:17:13]1040 (4) - 156265 [12:17:13]1012 (4) - 26.10.2024 05:50 [12:17:13]1206 (1) - 0 [12:17:13]OFD Sender: Remove packet 156265 [12:17:13]ProducePacketName [12:17:13]name=ofd_packets/00156265 [12:17:13]NVStorageDeleteData [12:17:13]Write to MH i2c: 01 00 00 C2 36 F8 [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: 01 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: 01 07 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: 01 07 00 C2 36 00 00 00 00 00 FE 0C 09 [12:17:13]RasterBufferAndPrint [12:17:13]line [12:17:13]line [12:17:13]line [12:17:13]line [12:17:13]line [12:17:13]written 0, free lines is 3335 [12:17:13]process_action close_receipt done [12:17:13]requested_data is exist [12:17:13]produce_requested_data [12:17:13]requested_item fm.sn is exist - process it [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 11 00 00 [12:17:13]Write to MH i2c: E2 08 00 C9 36 80 11 00 00 00 00 00 00 79 [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 17 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 17 00 C9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CE [12:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:17:13]wFMCommunicate OK [12:17:13]requested_item fd.num is exist - process it [12:17:13]SAM_PROTO_GetFieldsCounters [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 13 00 00 [12:17:13]Write to MH i2c: E2 08 00 CA 36 80 13 00 00 00 00 00 00 7C [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 62 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 62 00 CA 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 69 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [12:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 69 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:14]wFMCommunicate OK [12:17:14]SAM_PROTO_GetFieldsCounters done [12:17:14]requested_item shift.num is exist - process it [12:17:14]requested_item shift.opened is exist - process it [12:17:14]req_shift_opened [12:17:14]FM_GetShiftState [12:17:14]SAM_PROTO_GetShiftState [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 13 01 00 [12:17:14]Write to MH i2c: E2 08 00 CB 36 80 13 01 00 00 00 00 00 7E [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 0E 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 0E 00 CB 36 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B3 [12:17:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:17:14]wFMCommunicate OK [12:17:14]SAM_PROTO_GetShiftState done [12:17:14]FM_GetShiftState done [12:17:14]req_shift_opened done [12:17:14]requested_item shift.open_date is exist - process it [12:17:14]req_shift_open_date [12:17:14]req_shift_open_date done [12:17:14]produce_requested_data done [12:17:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156265,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:17:14]process_action_free close_receipt [12:17:14]json_value_free [12:17:14]json_value_free done [12:17:14]process_json_proto returns [12:17:14]Send response to host [12:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156265,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:17:14]free response buf [12:17:14]execute_script done [12:17:14]execute_script returns [12:17:14]free content buf [12:17:14]Sock 7.Close socket [12:17:14]Sock 7.Thread stoped [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:56]accept exits with 9 [12:19:56]New connection [12:19:56]New thread 3066613092 created [12:19:56]Thread 3066469732 joined [12:19:56]Waiting for new connection... [12:19:56] Sock 9.Parse request [12:19:56]Sock 9.Check first char [12:19:56]Sock 9.First char is OK [12:19:56]request: POST /json_proto HTTP/1.0 [12:19:56]Method: POST [12:19:56]URL: /json_proto [12:19:56]Method is POST - this is cgi request [12:19:56]url: /json_proto [12:19:56]query_string will be loaded in cgi processing [12:19:56]execute_cgi json_proto POST (null) [12:19:56]execute_cgi path=json_proto method=POST [12:19:56]POST find Content-Length [12:19:56]Host: 172.17.63.3:8080 [12:19:56]Content-Length: 678 [12:19:56]Content-Type: application/json [12:19:56] [12:19:56]POST finish read [12:19:56]Found Content-Length = 678 [12:19:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 68.750, "sum" : 5238.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5238.00, "total" : 5238.00, "payments": [ { "type": 0, "sum" : 5238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:56]execute_script... [12:19: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)99081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 68.750, "sum" : 5238.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5238.00, "total" : 5238.00, "payments": [ { "type": 0, "sum" : 5238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:56]POST & json_proto [12:19:56]process_json_proto [12:19:56]json parsed OK: [12:19:56]protocol is kg_v1.0 [12:19:56]action value=close_receipt [12:19:56]process_action close_receipt [12:19:56]cmd_close_receipt [12:19:56]MH_GetDate [12:19:56]Write to MH i2c: F0 00 00 CC 36 F1 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: F0 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: F0 09 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: F0 09 00 CC 36 00 71 DE 1C 67 50 D1 6C 64 BD [12:19:56]GetLastDocTimeStamp 1729945035 [12:19:56]current date 1729945201 [12:19:56]FM_GetShiftState [12:19:56]SAM_PROTO_GetShiftState [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 13 01 00 [12:19:56]Write to MH i2c: E2 08 00 CD 36 80 13 01 00 00 00 00 00 80 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 0E 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 0E 00 CD 36 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B5 [12:19:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:19:56]wFMCommunicate OK [12:19:56]SAM_PROTO_GetShiftState done [12:19:56]FM_GetShiftState done [12:19:56]opened in 1729902702 [12:19:56]opened+sec_in_day 1729989102 [12:19:56]quantity*price = 523875 [12:19:56]sum+1 = 523876 [12:19:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 5238.00 Внесено: 5238.00 СДАЧА: 0.00 НСП 1% : 46.36 НДС 12% : 556.33 Наличными: 5238.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 167 26.10.2024 12:20 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156266 ФПД: 50980855029066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122001&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156266&fm=50980855029066&tin=02508201610067®Number=0000000000091693&sum=523800 [12:19:58]StoreToDocumentArchive [12:19:58]shift 536 fd 156266 [12:19:58]save to /storage/0536/doc_00156266 [12:19:58]save last doc name /storage/0536/doc_00156266 to /storage/kkm_last_doc_name [12:19:58]save OK [12:19:58]Clear old archive folders... [12:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:58]tlvbuf is 00D3F480 [12:19:58]SAM_PROTO_ClearQueue [12:19:58]wFMCommunicate request_size=4 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 09 00 00 [12:19:58]Write to MH i2c: E2 08 00 DA 36 80 09 00 00 00 00 00 00 82 [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 03 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 03 00 DA 36 00 90 00 84 [12:19:58]RAPDU: 90 00 [12:19:58]wFMCommunicate OK [12:19:58]SAM_PROTO_ClearQueue done [12:19:58]KKMCreateOFDPacket [12:19:58]OFDProtocolAddRootSTLVToBuf [12:19:58]FM_MakeSignedData [12:19:58]FM_MakeSignedData [12:19:58]SAM_PROTO_SignData [12:19:58]wFMCommunicate request_size=4 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 0D 01 02 [12:19:58]Write to MH i2c: E2 08 00 DB 36 80 0D 01 02 00 00 00 00 8A [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 03 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 03 00 DB 36 00 90 00 85 [12:19:58]RAPDU: 90 00 [12:19:58]wFMCommunicate OK [12:19:58]wFMCommunicate request_size=255 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 0C 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 63 FE 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 FE 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 D9 00 00 00 00 07 04 06 00 18 FE 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 71 DE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 62 02 00 35 04 06 00 2E 5D E7 C1 [12:19:58]Write to MH i2c: E2 02 01 DC 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 0C 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 63 FE 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 FE 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 D9 00 00 00 00 07 04 06 00 18 FE 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 71 DE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 62 02 00 35 04 06 00 2E 5D E7 C1 00 00 F6 [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 03 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 03 00 DC 36 00 90 00 86 [12:19:58]RAPDU: 90 00 [12:19:58]wFMCommunicate OK [12:19:58]wFMCommunicate request_size=7 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 0D 02 02 02 1D 4A [12:19:58]Write to MH i2c: E2 0A 00 DD 36 80 0D 02 02 02 00 1D 4A 00 00 F8 [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 03 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 03 00 DD 36 00 90 00 87 [12:19:58]RAPDU: 90 00 [12:19:58]wFMCommunicate OK [12:19:58]wFMCommunicate request_size=4 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 0D 03 02 [12:19:58]Write to MH i2c: E2 08 00 DE 36 80 0D 03 02 00 00 00 00 8F [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 0B 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 0B 00 DE 36 00 66 20 61 F3 C5 19 73 8B 90 00 46 [12:19:58]RAPDU: 66 20 61 F3 C5 19 73 8B 90 00 [12:19:58]wFMCommunicate OK [12:19:58]SAM_PROTO_SignData done [12:19:58]FM_MakeSignedData done [12:19:58]CreateOFDProtocolMessage [12:19:58]wFMCommunicate request_size=4 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 11 00 00 [12:19:58]Write to MH i2c: E2 08 00 DF 36 80 11 00 00 00 00 00 00 8F [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 17 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 17 00 DF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [12:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:19:58]wFMCommunicate OK [12:19:58]CreateOFDProtocolMessage done [12:19:58]OFDSenderStorePacket 156266 [12:19:58]StoreOFDPacket docnum=156266 [12:19:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 26 30 04 01 BD 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 0C 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 63 FE 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 FE 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 D9 00 00 00 00 07 04 06 00 18 FE 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 71 DE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 62 02 00 35 04 06 00 2E 5D E7 C1 1D 4A 66 20 61 F3 C5 19 73 8B [12:19:58]CheckFolder [12:19:58]dirname=/storage/ofd_packets [12:19:58]CheckFolder done [12:19:58]ProducePacketName [12:19:58]name=ofd_packets/00156266 [12:19:58]NVStorageSaveData ofd_packets/00156266 [12:19:58]File name is /storage/ofd_packets/00156266 [12:19:58]Write 298 bytes [12:19:58]NVStorageSaveData done [12:19:58]OFDSenderStorePacket done [12:19:58]KKMCreateOFDPacket done [12:19:58]NVStorageSaveData kkm_last_timestamp [12:19:58]File name is /storage/kkm_last_timestamp [12:19:58]Write 4 bytes [12:19:58]NVStorageSaveData done [12:19:58]ExternCall_PrintAddStr [12:19:58]wPrintStart [12:19:58]Write to MH i2c: 01 00 00 E0 36 16 [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: 01 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: 01 07 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: 01 07 00 E0 36 00 00 00 00 00 FF 0F 2B [12:19:58]RasterBufferAndPrint [12:19:58]line Счет N : (1)99081 [12:19:58]line ИНН: 02508201610067 [12:19:58]line Контрольно-Кассовый Чек [12:19:58]line ПРОДАЖА [12:19:58]line ТРК (МРК, ГНК) : 32 [12:19:58]line Товар: 2710194210 [12:19:58]line ДТ-К-5 [12:19:58]line 68.750 * 76.20 [12:19:58]line = 5238.75 [12:19:58]line НДС 12% НСП 1% [12:19:58]line > о реализуемом товаре [12:19:58]line ОКРУГЛЕНИЕ: -0.75 [12:19:58]line ИТОГО: 5238.00 [12:19:58]line Внесено: 5238.00 [12:19:58]line СДАЧА: 0.00 [12:19:58]line НСП 1% : 46.36 [12:19:58]line НДС 12% : 556.33 [12:19:58]line Наличными: 5238.00 [12:19:58]line Безнал.: 0.00 [12:19:58]line Место: АЗС № 143 "Партнер Нефть" [12:19:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:19:58]line СНО: Общий режим [12:19:58]line Чек 167 26.10.2024 12:20 [12:19:58]line Смена: 536 ФФД: 1.0 [12:19:58]line ЗНМ: 0300000096 [12:19:58]line РНМ: 0000000000091693 [12:19:58]line Версия ККМ: 001 [12:19:58]line ФМ: 0000000000871792 [12:19:58]line ФД: 156266 [12:19:58]line ФПД: 50980855029066 [12:19:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122001&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156266&fm=50980855029066&tin=02508201610067®Number=0000000000091693&sum=523800 [12:19:58]OFD Sender: Processing packet 156266 [packets to send 31, broken 30] [12:19:58]ProducePacketName [12:19:58]name=ofd_packets/00156266 [12:19:58]OFD Sender: To server: pG, [12:19:58]CommunicateWithHost lk.salyk.kg:30040 [12:19:58]ConnectInit lk.salyk.kg [12:19:58]written 0, free lines is 4095 [12:19:58]Connected sock=10 [12:19:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 26 30 04 01 BD 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 0C 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 63 FE 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 FE 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 D9 00 00 00 00 07 04 06 00 18 FE 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 71 DE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 62 02 00 35 04 06 00 2E 5D E7 C1 1D 4A 66 20 61 F3 C5 19 73 8B [12:19:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E9 9A 47 00 1C 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 62 02 00 F4 03 04 00 E3 83 1C 67 B6 04 01 00 00 2F 34 22 2E B6 14 A9 25 [12:19:59]CommunicateWithHost err = 0 [12:19:59]CheckOFDResponse [12:19:59]1017 (14) - 77093643461234 [12:19:59]1041 (16) - 0000000000871792 [12:19:59]1040 (4) - 156266 [12:19:59]1012 (4) - 26.10.2024 05:53 [12:19:59]1206 (1) - 0 [12:19:59]OFD Sender: Remove packet 156266 [12:19:59]ProducePacketName [12:19:59]name=ofd_packets/00156266 [12:19:59]NVStorageDeleteData [12:19:59]Write to MH i2c: 01 00 00 0B 37 42 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: 01 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: 01 07 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: 01 07 00 0B 37 00 00 00 00 00 F1 0C 46 [12:19:59]RasterBufferAndPrint [12:19:59]line [12:19:59]line [12:19:59]line [12:19:59]line [12:19:59]line [12:19:59]written 0, free lines is 3319 [12:19:59]process_action close_receipt done [12:19:59]requested_data is exist [12:19:59]produce_requested_data [12:19:59]requested_item fm.sn is exist - process it [12:19:59]wFMCommunicate request_size=4 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 11 00 00 [12:19:59]Write to MH i2c: E2 08 00 12 37 80 11 00 00 00 00 00 00 C3 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 17 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 17 00 12 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [12:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:19:59]wFMCommunicate OK [12:19:59]requested_item fd.num is exist - process it [12:19:59]SAM_PROTO_GetFieldsCounters [12:19:59]wFMCommunicate request_size=4 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 13 00 00 [12:19:59]Write to MH i2c: E2 08 00 13 37 80 13 00 00 00 00 00 00 C6 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 62 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 62 00 13 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [12:19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:59]wFMCommunicate OK [12:19:59]SAM_PROTO_GetFieldsCounters done [12:19:59]requested_item shift.num is exist - process it [12:19:59]requested_item shift.opened is exist - process it [12:19:59]req_shift_opened [12:19:59]FM_GetShiftState [12:19:59]SAM_PROTO_GetShiftState [12:19:59]wFMCommunicate request_size=4 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 13 01 00 [12:19:59]Write to MH i2c: E2 08 00 14 37 80 13 01 00 00 00 00 00 C8 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 0E 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 0E 00 14 37 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FD [12:19:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:19:59]wFMCommunicate OK [12:19:59]SAM_PROTO_GetShiftState done [12:19:59]FM_GetShiftState done [12:19:59]req_shift_opened done [12:19:59]requested_item shift.open_date is exist - process it [12:19:59]req_shift_open_date [12:19:59]req_shift_open_date done [12:19:59]produce_requested_data done [12:19:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156266,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:19:59]process_action_free close_receipt [12:19:59]json_value_free [12:19:59]json_value_free done [12:19:59]process_json_proto returns [12:19:59]Send response to host [12:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156266,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:19:59]free response buf [12:19:59]execute_script done [12:19:59]execute_script returns [12:19:59]free content buf [12:19:59]Sock 9.Close socket [12:19:59]Sock 9.Thread stoped [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]int [12:20:54]Write to MH i2c: 01 00 00 15 37 4C [12:20:54]*** FLAG_PRN_KEY set [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 07 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 07 00 15 37 00 08 00 00 00 FF 0F 69 [12:20:54]state=0 [12:20:54]Key pressed [12:20:54]Feed [12:20:54]Write to MH i2c: D8 00 00 16 37 24 [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: D8 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: D8 01 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: D8 01 00 16 37 00 25 [12:20:54]int [12:20:54]Write to MH i2c: 01 00 00 17 37 4E [12:20:54]Write i2c OK [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 07 00 [12:20:54]MH_I2C_Read... [12:20:54]Read from MH i2c: 01 07 00 17 37 00 48 00 00 00 3D 00 DA [12:20:54]state=2 [12:20:54]Key pressed [12:20:54]OFD Sender: No OFD packet to send [12:20:55]int [12:20:55]Write to MH i2c: 01 00 00 18 37 4F [12:20:55]*** FLAG_PRN_KEY reset [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: 01 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: 01 07 00 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: 01 07 00 18 37 00 00 00 00 00 FF 0F 64 [12:20:55]state=2 [12:20:55]Stop feed [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:40]accept exits with 7 [12:23:40]New connection [12:23:40]New thread 3066469732 created [12:23:40]Thread 3066613092 joined [12:23:40]Waiting for new connection... [12:23:40] Sock 7.Parse request [12:23:40]Sock 7.Check first char [12:23:40]Sock 7.First char is OK [12:23:40]request: POST /json_proto HTTP/1.0 [12:23:40]Method: POST [12:23:40]URL: /json_proto [12:23:40]Method is POST - this is cgi request [12:23:40]url: /json_proto [12:23:40]query_string will be loaded in cgi processing [12:23:40]execute_cgi json_proto POST (null) [12:23:40]execute_cgi path=json_proto method=POST [12:23:40]POST find Content-Length [12:23:40]Host: 172.17.63.3:8080 [12:23:40]Content-Length: 676 [12:23:40]Content-Type: application/json [12:23:40] [12:23:40]POST finish read [12:23:40]Found Content-Length = 676 [12:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:40]execute_script... [12:23:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:40]POST & json_proto [12:23:40]process_json_proto [12:23:40]json parsed OK: [12:23:40]protocol is kg_v1.0 [12:23:40]action value=close_receipt [12:23:40]process_action close_receipt [12:23:40]cmd_close_receipt [12:23:40]MH_GetDate [12:23:40]Write to MH i2c: F0 00 00 19 37 3F [12:23:40]Write i2c OK [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: F0 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: F0 09 00 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: F0 09 00 19 37 00 51 DF 1C 67 50 D1 6C 64 EC [12:23:40]GetLastDocTimeStamp 1729945201 [12:23:40]current date 1729945425 [12:23:40]FM_GetShiftState [12:23:40]SAM_PROTO_GetShiftState [12:23:40]wFMCommunicate request_size=4 [12:23:40]MH_SAM_APDU [12:23:40]CAPDU: 80 13 01 00 [12:23:40]Write to MH i2c: E2 08 00 1A 37 80 13 01 00 00 00 00 00 CE [12:23:40]Write i2c OK [12:23:40]MH_I2C_Read... [12:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:40]Read from MH i2c: E2 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: E2 0E 00 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: E2 0E 00 1A 37 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 03 [12:23:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:23:40]wFMCommunicate OK [12:23:40]SAM_PROTO_GetShiftState done [12:23:40]FM_GetShiftState done [12:23:40]opened in 1729902702 [12:23:40]opened+sec_in_day 1729989102 [12:23:40]quantity*price = 20003 [12:23:40]sum+1 = 20004 [12:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 168 26.10.2024 12:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156267 ФПД: 168886429506900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122345&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156267&fm=168886429506900&tin=02508201610067®Number=0000000000091693&sum=20000 [12:23:42]StoreToDocumentArchive [12:23:42]shift 536 fd 156267 [12:23:42]save to /storage/0536/doc_00156267 [12:23:42]save last doc name /storage/0536/doc_00156267 to /storage/kkm_last_doc_name [12:23:42]save OK [12:23:42]Clear old archive folders... [12:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:42]tlvbuf is 00D3EEB0 [12:23:42]SAM_PROTO_ClearQueue [12:23:42]wFMCommunicate request_size=4 [12:23:42]MH_SAM_APDU [12:23:42]CAPDU: 80 09 00 00 [12:23:42]Write to MH i2c: E2 08 00 27 37 80 09 00 00 00 00 00 00 D0 [12:23:42]Write i2c OK [12:23:42]MH_I2C_Read... [12:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:42]Read from MH i2c: E2 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 03 00 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 03 00 27 37 00 90 00 D2 [12:23:42]RAPDU: 90 00 [12:23:42]wFMCommunicate OK [12:23:42]SAM_PROTO_ClearQueue done [12:23:42]KKMCreateOFDPacket [12:23:42]OFDProtocolAddRootSTLVToBuf [12:23:42]FM_MakeSignedData [12:23:42]FM_MakeSignedData [12:23:42]SAM_PROTO_SignData [12:23:42]wFMCommunicate request_size=4 [12:23:42]MH_SAM_APDU [12:23:42]CAPDU: 80 0D 01 02 [12:23:42]Write to MH i2c: E2 08 00 28 37 80 0D 01 02 00 00 00 00 D8 [12:23:42]Write i2c OK [12:23:42]MH_I2C_Read... [12:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:42]Read from MH i2c: E2 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 03 00 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 03 00 28 37 00 90 00 D3 [12:23:42]RAPDU: 90 00 [12:23:42]wFMCommunicate OK [12:23:42]wFMCommunicate request_size=255 [12:23:42]MH_SAM_APDU [12:23:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 51 DF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 62 02 00 35 04 06 00 99 [12:23:42]Write to MH i2c: E2 02 01 29 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 51 DF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 62 02 00 35 04 06 00 99 00 00 0B [12:23:42]Write i2c OK [12:23:42]MH_I2C_Read... [12:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:42]Read from MH i2c: E2 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 03 00 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 03 00 29 37 00 90 00 D4 [12:23:42]RAPDU: 90 00 [12:23:42]wFMCommunicate OK [12:23:42]wFMCommunicate request_size=10 [12:23:42]MH_SAM_APDU [12:23:42]CAPDU: 80 0D 02 02 05 99 EF A3 5D 54 [12:23:42]Write to MH i2c: E2 0D 00 2A 37 80 0D 02 02 05 00 99 EF A3 5D 54 00 00 C1 [12:23:42]Write i2c OK [12:23:42]MH_I2C_Read... [12:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:42]Read from MH i2c: E2 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 03 00 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 03 00 2A 37 00 90 00 D5 [12:23:42]RAPDU: 90 00 [12:23:42]wFMCommunicate OK [12:23:42]wFMCommunicate request_size=4 [12:23:42]MH_SAM_APDU [12:23:42]CAPDU: 80 0D 03 02 [12:23:42]Write to MH i2c: E2 08 00 2B 37 80 0D 03 02 00 00 00 00 DD [12:23:42]Write i2c OK [12:23:42]MH_I2C_Read... [12:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:42]Read from MH i2c: E2 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 0B 00 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 0B 00 2B 37 00 D9 D2 11 D8 8D 43 7E 1E 90 00 DE [12:23:42]RAPDU: D9 D2 11 D8 8D 43 7E 1E 90 00 [12:23:42]wFMCommunicate OK [12:23:42]SAM_PROTO_SignData done [12:23:42]FM_MakeSignedData done [12:23:42]CreateOFDProtocolMessage [12:23:42]wFMCommunicate request_size=4 [12:23:42]MH_SAM_APDU [12:23:42]CAPDU: 80 11 00 00 [12:23:42]Write to MH i2c: E2 08 00 2C 37 80 11 00 00 00 00 00 00 DD [12:23:42]Write i2c OK [12:23:42]MH_I2C_Read... [12:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:42]Read from MH i2c: E2 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 17 00 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: E2 17 00 2C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 32 [12:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:23:42]wFMCommunicate OK [12:23:42]CreateOFDProtocolMessage done [12:23:42]OFDSenderStorePacket 156267 [12:23:42]StoreOFDPacket docnum=156267 [12:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 41 07 01 C6 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 51 DF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 62 02 00 35 04 06 00 99 99 EF A3 5D 54 D9 D2 11 D8 8D 43 7E 1E [12:23:42]CheckFolder [12:23:42]dirname=/storage/ofd_packets [12:23:42]CheckFolder done [12:23:42]ProducePacketName [12:23:42]name=ofd_packets/00156267 [12:23:42]NVStorageSaveData ofd_packets/00156267 [12:23:42]File name is /storage/ofd_packets/00156267 [12:23:42]Write 301 bytes [12:23:42]NVStorageSaveData done [12:23:42]OFDSenderStorePacket done [12:23:42]KKMCreateOFDPacket done [12:23:42]NVStorageSaveData kkm_last_timestamp [12:23:42]File name is /storage/kkm_last_timestamp [12:23:42]Write 4 bytes [12:23:42]NVStorageSaveData done [12:23:42]ExternCall_PrintAddStr [12:23:42]wPrintStart [12:23:42]Write to MH i2c: 01 00 00 2D 37 64 [12:23:42]Write i2c OK [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: 01 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: 01 07 00 [12:23:42]MH_I2C_Read... [12:23:42]Read from MH i2c: 01 07 00 2D 37 00 00 00 00 00 FF 0F 79 [12:23:42]RasterBufferAndPrint [12:23:42]line Счет N : (1)99082 [12:23:42]line ИНН: 02508201610067 [12:23:42]line Контрольно-Кассовый Чек [12:23:42]line ПРОДАЖА [12:23:42]line ТРК (МРК, ГНК) : 21 [12:23:42]line Товар: 2710124130 [12:23:42]line Аи-92-К-5 [12:23:42]line 2.990 * 66.90 [12:23:42]line = 200.03 [12:23:42]line НДС 12% НСП 1% [12:23:42]line > о реализуемом товаре [12:23:42]line ОКРУГЛЕНИЕ: -0.03 [12:23:42]line ИТОГО: 200.00 [12:23:42]line Внесено: 200.00 [12:23:42]line СДАЧА: 0.00 [12:23:42]line НСП 1% : 1.77 [12:23:42]line НДС 12% : 21.24 [12:23:42]line Наличными: 200.00 [12:23:42]line Безнал.: 0.00 [12:23:42]line Место: АЗС № 143 "Партнер Нефть" [12:23:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:23:42]line СНО: Общий режим [12:23:42]line Чек 168 26.10.2024 12:23 [12:23:42]line Смена: 536 ФФД: 1.0 [12:23:42]line ЗНМ: 0300000096 [12:23:42]line РНМ: 0000000000091693 [12:23:42]line Версия ККМ: 001 [12:23:42]line ФМ: 0000000000871792 [12:23:42]line ФД: 156267 [12:23:42]line ФПД: 168886429506900 [12:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122345&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156267&fm=168886429506900&tin=02508201610067®Number=0000000000091693&sum=20000 [12:23:42]OFD Sender: Processing packet 156267 [packets to send 31, broken 30] [12:23:42]ProducePacketName [12:23:42]name=ofd_packets/00156267 [12:23:42]OFD Sender: To server: pG, [12:23:42]CommunicateWithHost lk.salyk.kg:30040 [12:23:42]ConnectInit lk.salyk.kg [12:23:42]written 0, free lines is 4095 [12:23:43]Connected sock=10 [12:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 41 07 01 C6 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 51 DF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 62 02 00 35 04 06 00 99 99 EF A3 5D 54 D9 D2 11 D8 8D 43 7E 1E [12:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E2 51 47 00 F0 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 31 37 39 32 10 04 04 00 6B 62 02 00 F4 03 04 00 C3 84 1C 67 B6 04 01 00 00 19 F9 C3 02 D2 3B AA C6 [12:23:43]CommunicateWithHost err = 0 [12:23:43]CheckOFDResponse [12:23:43]1017 (14) - 77093643461234 [12:23:43]1041 (16) - 0000000000871792 [12:23:43]1040 (4) - 156267 [12:23:43]1012 (4) - 26.10.2024 05:57 [12:23:43]1206 (1) - 0 [12:23:43]OFD Sender: Remove packet 156267 [12:23:43]ProducePacketName [12:23:43]name=ofd_packets/00156267 [12:23:43]NVStorageDeleteData [12:23:43]Write to MH i2c: 01 00 00 58 37 8F [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: 01 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: 01 07 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: 01 07 00 58 37 00 00 00 00 00 FA 0C 9C [12:23:43]RasterBufferAndPrint [12:23:43]line [12:23:43]line [12:23:43]line [12:23:43]line [12:23:43]line [12:23:43]written 0, free lines is 3329 [12:23:43]process_action close_receipt done [12:23:43]requested_data is exist [12:23:43]produce_requested_data [12:23:43]requested_item fm.sn is exist - process it [12:23:43]wFMCommunicate request_size=4 [12:23:43]MH_SAM_APDU [12:23:43]CAPDU: 80 11 00 00 [12:23:43]Write to MH i2c: E2 08 00 5F 37 80 11 00 00 00 00 00 00 10 [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 [12:23:43]MH_I2C_Read... [12:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:43]Read from MH i2c: E2 17 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 17 00 5F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [12:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:23:43]wFMCommunicate OK [12:23:43]requested_item fd.num is exist - process it [12:23:43]SAM_PROTO_GetFieldsCounters [12:23:43]wFMCommunicate request_size=4 [12:23:43]MH_SAM_APDU [12:23:43]CAPDU: 80 13 00 00 [12:23:43]Write to MH i2c: E2 08 00 60 37 80 13 00 00 00 00 00 00 13 [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:43]Read from MH i2c: E2 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 62 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 62 00 60 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:43]wFMCommunicate OK [12:23:43]SAM_PROTO_GetFieldsCounters done [12:23:43]requested_item shift.num is exist - process it [12:23:43]requested_item shift.opened is exist - process it [12:23:43]req_shift_opened [12:23:43]FM_GetShiftState [12:23:43]SAM_PROTO_GetShiftState [12:23:43]wFMCommunicate request_size=4 [12:23:43]MH_SAM_APDU [12:23:43]CAPDU: 80 13 01 00 [12:23:43]Write to MH i2c: E2 08 00 61 37 80 13 01 00 00 00 00 00 15 [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:43]Read from MH i2c: E2 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 0E 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 0E 00 61 37 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4A [12:23:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:23:43]wFMCommunicate OK [12:23:43]SAM_PROTO_GetShiftState done [12:23:43]FM_GetShiftState done [12:23:43]req_shift_opened done [12:23:43]requested_item shift.open_date is exist - process it [12:23:43]req_shift_open_date [12:23:43]req_shift_open_date done [12:23:43]produce_requested_data done [12:23:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156267,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:23:43]process_action_free close_receipt [12:23:43]json_value_free [12:23:43]json_value_free done [12:23:43]process_json_proto returns [12:23:43]Send response to host [12:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156267,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:23:43]free response buf [12:23:43]execute_script done [12:23:43]execute_script returns [12:23:43]free content buf [12:23:43]Sock 7.Close socket [12:23:43]Sock 7.Thread stoped [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:16]accept exits with 9 [12:29:16]New connection [12:29:16]New thread 3066613092 created [12:29:16]Thread 3066469732 joined [12:29:16]Waiting for new connection... [12:29:16] Sock 9.Parse request [12:29:16]Sock 9.Check first char [12:29:16]Sock 9.First char is OK [12:29:16]request: POST /json_proto HTTP/1.0 [12:29:16]Method: POST [12:29:16]URL: /json_proto [12:29:16]Method is POST - this is cgi request [12:29:16]url: /json_proto [12:29:16]query_string will be loaded in cgi processing [12:29:16]execute_cgi json_proto POST (null) [12:29:16]execute_cgi path=json_proto method=POST [12:29:16]POST find Content-Length [12:29:16]Host: 172.17.63.3:8080 [12:29:16]Content-Length: 681 [12:29:16]Content-Type: application/json [12:29:16] [12:29:16]POST finish read [12:29:16]Found Content-Length = 681 [12:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:16]execute_script... [12:29: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)99083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:16]POST & json_proto [12:29:16]process_json_proto [12:29:16]json parsed OK: [12:29:16]protocol is kg_v1.0 [12:29:16]action value=close_receipt [12:29:16]process_action close_receipt [12:29:16]cmd_close_receipt [12:29:16]MH_GetDate [12:29:16]Write to MH i2c: F0 00 00 62 37 88 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: F0 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: F0 09 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: F0 09 00 62 37 00 A0 E0 1C 67 50 D1 6C 64 85 [12:29:16]GetLastDocTimeStamp 1729945425 [12:29:16]current date 1729945760 [12:29:16]FM_GetShiftState [12:29:16]SAM_PROTO_GetShiftState [12:29:16]wFMCommunicate request_size=4 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 13 01 00 [12:29:16]Write to MH i2c: E2 08 00 63 37 80 13 01 00 00 00 00 00 17 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 0E 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 0E 00 63 37 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4C [12:29:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:29:16]wFMCommunicate OK [12:29:16]SAM_PROTO_GetShiftState done [12:29:16]FM_GetShiftState done [12:29:16]opened in 1729902702 [12:29:16]opened+sec_in_day 1729989102 [12:29:16]quantity*price = 100015 [12:29:16]sum+1 = 100017 [12:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 169 26.10.2024 12:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156268 ФПД: 103350312134036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122920&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156268&fm=103350312134036&tin=02508201610067®Number=0000000000091693&sum=100000 [12:29:17]StoreToDocumentArchive [12:29:17]shift 536 fd 156268 [12:29:17]save to /storage/0536/doc_00156268 [12:29:17]save last doc name /storage/0536/doc_00156268 to /storage/kkm_last_doc_name [12:29:17]save OK [12:29:17]Clear old archive folders... [12:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:17]tlvbuf is 00DFB3B0 [12:29:17]SAM_PROTO_ClearQueue [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 09 00 00 [12:29:17]Write to MH i2c: E2 08 00 70 37 80 09 00 00 00 00 00 00 19 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 70 37 00 90 00 1B [12:29:17]RAPDU: 90 00 [12:29:17]wFMCommunicate OK [12:29:17]SAM_PROTO_ClearQueue done [12:29:17]KKMCreateOFDPacket [12:29:17]OFDProtocolAddRootSTLVToBuf [12:29:17]FM_MakeSignedData [12:29:17]FM_MakeSignedData [12:29:17]SAM_PROTO_SignData [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 0D 01 02 [12:29:17]Write to MH i2c: E2 08 00 71 37 80 0D 01 02 00 00 00 00 21 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 71 37 00 90 00 1C [12:29:17]RAPDU: 90 00 [12:29:17]wFMCommunicate OK [12:29:17]wFMCommunicate request_size=255 [12:29:17]MH_SAM_APDU [12:29: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A0 E0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 62 02 00 35 04 06 00 5D [12:29:17]Write to MH i2c: E2 02 01 72 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A0 E0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 62 02 00 35 04 06 00 5D 00 00 A2 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 72 37 00 90 00 1D [12:29:17]RAPDU: 90 00 [12:29:17]wFMCommunicate OK [12:29:17]wFMCommunicate request_size=10 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 0D 02 02 05 FF 1E A4 65 94 [12:29:17]Write to MH i2c: E2 0D 00 73 37 80 0D 02 02 05 00 FF 1E A4 65 94 00 00 E8 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 73 37 00 90 00 1E [12:29:17]RAPDU: 90 00 [12:29:17]wFMCommunicate OK [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 0D 03 02 [12:29:17]Write to MH i2c: E2 08 00 74 37 80 0D 03 02 00 00 00 00 26 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0B 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0B 00 74 37 00 41 37 60 32 15 D2 03 82 90 00 9D [12:29:17]RAPDU: 41 37 60 32 15 D2 03 82 90 00 [12:29:17]wFMCommunicate OK [12:29:17]SAM_PROTO_SignData done [12:29:17]FM_MakeSignedData done [12:29:17]CreateOFDProtocolMessage [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 11 00 00 [12:29:17]Write to MH i2c: E2 08 00 75 37 80 11 00 00 00 00 00 00 26 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 17 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 17 00 75 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [12:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:29:17]wFMCommunicate OK [12:29:17]CreateOFDProtocolMessage done [12:29:17]OFDSenderStorePacket 156268 [12:29:17]StoreOFDPacket docnum=156268 [12:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3F F2 07 01 48 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A0 E0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 62 02 00 35 04 06 00 5D FF 1E A4 65 94 41 37 60 32 15 D2 03 82 [12:29:17]CheckFolder [12:29:17]dirname=/storage/ofd_packets [12:29:17]CheckFolder done [12:29:17]ProducePacketName [12:29:17]name=ofd_packets/00156268 [12:29:17]NVStorageSaveData ofd_packets/00156268 [12:29:17]File name is /storage/ofd_packets/00156268 [12:29:17]Write 301 bytes [12:29:17]NVStorageSaveData done [12:29:17]OFDSenderStorePacket done [12:29:17]KKMCreateOFDPacket done [12:29:17]NVStorageSaveData kkm_last_timestamp [12:29:17]File name is /storage/kkm_last_timestamp [12:29:17]Write 4 bytes [12:29:17]NVStorageSaveData done [12:29:17]ExternCall_PrintAddStr [12:29:17]wPrintStart [12:29:17]Write to MH i2c: 01 00 00 76 37 AD [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 76 37 00 00 00 00 00 FF 0F C2 [12:29:17]RasterBufferAndPrint [12:29:17]line Счет N : (1)99083 [12:29:17]line ИНН: 02508201610067 [12:29:17]line Контрольно-Кассовый Чек [12:29:17]line ПРОДАЖА [12:29:17]line ТРК (МРК, ГНК) : 21 [12:29:17]line Товар: 2710124130 [12:29:17]line Аи-92-К-5 [12:29:17]line 14.950 * 66.90 [12:29:17]line = 1000.16 [12:29:17]line НДС 12% НСП 1% [12:29:17]line > о реализуемом товаре [12:29:17]line ОКРУГЛЕНИЕ: -0.16 [12:29:17]line ИТОГО: 1000.00 [12:29:17]line Внесено: 1000.00 [12:29:17]line СДАЧА: 0.00 [12:29:17]line НСП 1% : 8.85 [12:29:17]line НДС 12% : 106.21 [12:29:17]line Наличными: 1000.00 [12:29:17]line Безнал.: 0.00 [12:29:17]line Место: АЗС № 143 "Партнер Нефть" [12:29:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:29:17]line СНО: Общий режим [12:29:17]line Чек 169 26.10.2024 12:29 [12:29:17]line Смена: 536 ФФД: 1.0 [12:29:17]line ЗНМ: 0300000096 [12:29:17]line РНМ: 0000000000091693 [12:29:17]line Версия ККМ: 001 [12:29:17]line ФМ: 0000000000871792 [12:29:17]line ФД: 156268 [12:29:17]line ФПД: 103350312134036 [12:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122920&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156268&fm=103350312134036&tin=02508201610067®Number=0000000000091693&sum=100000 [12:29:18]OFD Sender: Processing packet 156268 [packets to send 31, broken 30] [12:29:18]ProducePacketName [12:29:18]name=ofd_packets/00156268 [12:29:18]OFD Sender: To server: pG, [12:29:18]CommunicateWithHost lk.salyk.kg:30040 [12:29:18]ConnectInit lk.salyk.kg [12:29:18]written 0, free lines is 4095 [12:29:18]Connected sock=7 [12:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3F F2 07 01 48 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A0 E0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 62 02 00 35 04 06 00 5D FF 1E A4 65 94 41 37 60 32 15 D2 03 82 [12:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DC 0F 47 00 D3 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 62 02 00 F4 03 04 00 13 86 1C 67 B6 04 01 00 00 8E 71 2C 20 E5 5E BC F0 [12:29:18]CommunicateWithHost err = 0 [12:29:18]CheckOFDResponse [12:29:18]1017 (14) - 77093643461234 [12:29:18]1041 (16) - 0000000000871792 [12:29:18]1040 (4) - 156268 [12:29:18]1012 (4) - 26.10.2024 06:02 [12:29:18]1206 (1) - 0 [12:29:18]OFD Sender: Remove packet 156268 [12:29:18]ProducePacketName [12:29:18]name=ofd_packets/00156268 [12:29:18]NVStorageDeleteData [12:29:18]Write to MH i2c: 01 00 00 A1 37 D8 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: 01 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: 01 07 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: 01 07 00 A1 37 00 00 00 00 00 EC 0C D7 [12:29:18]RasterBufferAndPrint [12:29:18]line [12:29:18]line [12:29:18]line [12:29:18]line [12:29:18]line [12:29:18]written 0, free lines is 3317 [12:29:18]process_action close_receipt done [12:29:18]requested_data is exist [12:29:18]produce_requested_data [12:29:18]requested_item fm.sn is exist - process it [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 11 00 00 [12:29:18]Write to MH i2c: E2 08 00 A8 37 80 11 00 00 00 00 00 00 59 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 17 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 17 00 A8 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [12:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:29:18]wFMCommunicate OK [12:29:18]requested_item fd.num is exist - process it [12:29:18]SAM_PROTO_GetFieldsCounters [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 13 00 00 [12:29:18]Write to MH i2c: E2 08 00 A9 37 80 13 00 00 00 00 00 00 5C [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 62 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 62 00 A9 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [12:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:18]wFMCommunicate OK [12:29:18]SAM_PROTO_GetFieldsCounters done [12:29:18]requested_item shift.num is exist - process it [12:29:18]requested_item shift.opened is exist - process it [12:29:18]req_shift_opened [12:29:18]FM_GetShiftState [12:29:18]SAM_PROTO_GetShiftState [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 13 01 00 [12:29:18]Write to MH i2c: E2 08 00 AA 37 80 13 01 00 00 00 00 00 5E [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 0E 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 0E 00 AA 37 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 93 [12:29:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:29:18]wFMCommunicate OK [12:29:18]SAM_PROTO_GetShiftState done [12:29:18]FM_GetShiftState done [12:29:18]req_shift_opened done [12:29:18]requested_item shift.open_date is exist - process it [12:29:18]req_shift_open_date [12:29:18]req_shift_open_date done [12:29:18]produce_requested_data done [12:29:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156268,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:29:18]process_action_free close_receipt [12:29:18]json_value_free [12:29:18]json_value_free done [12:29:18]process_json_proto returns [12:29:18]Send response to host [12:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156268,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:29:18]free response buf [12:29:18]execute_script done [12:29:18]execute_script returns [12:29:18]free content buf [12:29:18]Sock 9.Close socket [12:29:18]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [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:20]accept exits with 10 [12:31:20]New connection [12:31:20]New thread 3066469732 created [12:31:20]Thread 3066613092 joined [12:31:20]Waiting for new connection... [12:31:20] Sock 10.Parse request [12:31:20]Sock 10.Check first char [12:31:20]Sock 10.First char is OK [12:31:20]request: POST /json_proto HTTP/1.0 [12:31:20]Method: POST [12:31:20]URL: /json_proto [12:31:20]Method is POST - this is cgi request [12:31:20]url: /json_proto [12:31:20]query_string will be loaded in cgi processing [12:31:20]execute_cgi json_proto POST (null) [12:31:20]execute_cgi path=json_proto method=POST [12:31:20]POST find Content-Length [12:31:20]Host: 172.17.63.3:8080 [12:31:20]Content-Length: 676 [12:31:20]Content-Type: application/json [12:31:20] [12:31:20]POST finish read [12:31:20]Found Content-Length = 676 [12:31:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:20]execute_script... [12:31:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:20]POST & json_proto [12:31:20]process_json_proto [12:31:20]json parsed OK: [12:31:20]protocol is kg_v1.0 [12:31:20]action value=close_receipt [12:31:20]process_action close_receipt [12:31:20]cmd_close_receipt [12:31:20]MH_GetDate [12:31:20]Write to MH i2c: F0 00 00 AB 37 D1 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 09 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 09 00 AB 37 00 1C E1 1C 67 50 D1 6C 64 4B [12:31:20]GetLastDocTimeStamp 1729945760 [12:31:20]current date 1729945884 [12:31:20]FM_GetShiftState [12:31:20]SAM_PROTO_GetShiftState [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 13 01 00 [12:31:20]Write to MH i2c: E2 08 00 AC 37 80 13 01 00 00 00 00 00 60 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0E 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0E 00 AC 37 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 95 [12:31:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:31:20]wFMCommunicate OK [12:31:20]SAM_PROTO_GetShiftState done [12:31:20]FM_GetShiftState done [12:31:20]opened in 1729902702 [12:31:20]opened+sec_in_day 1729989102 [12:31:20]quantity*price = 20003 [12:31:20]sum+1 = 20004 [12:31:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 170 26.10.2024 12:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156269 ФПД: 78155524125046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123124&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156269&fm=78155524125046&tin=02508201610067®Number=0000000000091693&sum=20000 [12:31:21]StoreToDocumentArchive [12:31:21]shift 536 fd 156269 [12:31:21]save to /storage/0536/doc_00156269 [12:31:21]save last doc name /storage/0536/doc_00156269 to /storage/kkm_last_doc_name [12:31:21]save OK [12:31:21]Clear old archive folders... [12:31:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:21]tlvbuf is 00D9E080 [12:31:21]SAM_PROTO_ClearQueue [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 09 00 00 [12:31:21]Write to MH i2c: E2 08 00 B9 37 80 09 00 00 00 00 00 00 62 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 B9 37 00 90 00 64 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]SAM_PROTO_ClearQueue done [12:31:21]KKMCreateOFDPacket [12:31:21]OFDProtocolAddRootSTLVToBuf [12:31:21]FM_MakeSignedData [12:31:21]FM_MakeSignedData [12:31:21]SAM_PROTO_SignData [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 01 02 [12:31:21]Write to MH i2c: E2 08 00 BA 37 80 0D 01 02 00 00 00 00 6A [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 BA 37 00 90 00 65 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]wFMCommunicate request_size=255 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1C E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 62 02 00 35 04 06 00 47 [12:31:21]Write to MH i2c: E2 02 01 BB 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1C E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 62 02 00 35 04 06 00 47 00 00 1C [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 BB 37 00 90 00 66 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]wFMCommunicate request_size=10 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 02 02 05 15 00 40 B1 76 [12:31:21]Write to MH i2c: E2 0D 00 BC 37 80 0D 02 02 05 00 15 00 40 B1 76 00 00 F3 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 BC 37 00 90 00 67 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 03 02 [12:31:21]Write to MH i2c: E2 08 00 BD 37 80 0D 03 02 00 00 00 00 6F [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 0B 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 0B 00 BD 37 00 0F A8 A3 3F A0 47 58 D0 90 00 18 [12:31:21]RAPDU: 0F A8 A3 3F A0 47 58 D0 90 00 [12:31:21]wFMCommunicate OK [12:31:21]SAM_PROTO_SignData done [12:31:21]FM_MakeSignedData done [12:31:21]CreateOFDProtocolMessage [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 11 00 00 [12:31:21]Write to MH i2c: E2 08 00 BE 37 80 11 00 00 00 00 00 00 6F [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 17 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 17 00 BE 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [12:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:31:21]wFMCommunicate OK [12:31:21]CreateOFDProtocolMessage done [12:31:21]OFDSenderStorePacket 156269 [12:31:21]StoreOFDPacket docnum=156269 [12:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 8B 07 01 1C 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1C E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 62 02 00 35 04 06 00 47 15 00 40 B1 76 0F A8 A3 3F A0 47 58 D0 [12:31:21]CheckFolder [12:31:21]dirname=/storage/ofd_packets [12:31:21]CheckFolder done [12:31:21]ProducePacketName [12:31:21]name=ofd_packets/00156269 [12:31:21]NVStorageSaveData ofd_packets/00156269 [12:31:21]File name is /storage/ofd_packets/00156269 [12:31:21]Write 301 bytes [12:31:21]NVStorageSaveData done [12:31:21]OFDSenderStorePacket done [12:31:21]KKMCreateOFDPacket done [12:31:21]NVStorageSaveData kkm_last_timestamp [12:31:21]File name is /storage/kkm_last_timestamp [12:31:21]Write 4 bytes [12:31:21]NVStorageSaveData done [12:31:21]ExternCall_PrintAddStr [12:31:21]wPrintStart [12:31:21]Write to MH i2c: 01 00 00 BF 37 F6 [12:31:21]OFD Sender: Processing packet 156269 [packets to send 31, broken 30] [12:31:21]ProducePacketName [12:31:21]name=ofd_packets/00156269 [12:31:21]OFD Sender: To server: pG, [12:31:21]CommunicateWithHost lk.salyk.kg:30040 [12:31:21]ConnectInit lk.salyk.kg [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 BF 37 00 00 00 00 00 FF 0F 0B [12:31:21]RasterBufferAndPrint [12:31:21]line Счет N : (1)99084 [12:31:21]line ИНН: 02508201610067 [12:31:21]line Контрольно-Кассовый Чек [12:31:21]line ПРОДАЖА [12:31:21]line ТРК (МРК, ГНК) : 31 [12:31:21]line Товар: 2710124130 [12:31:21]line Аи-92-К-5 [12:31:21]line 2.990 * 66.90 [12:31:21]line = 200.03 [12:31:21]line НДС 12% НСП 1% [12:31:21]line > о реализуемом товаре [12:31:21]line ОКРУГЛЕНИЕ: -0.03 [12:31:21]line ИТОГО: 200.00 [12:31:21]line Внесено: 200.00 [12:31:21]line СДАЧА: 0.00 [12:31:21]line НСП 1% : 1.77 [12:31:21]line НДС 12% : 21.24 [12:31:21]line Наличными: 200.00 [12:31:21]line Безнал.: 0.00 [12:31:21]line Место: АЗС № 143 "Партнер Нефть" [12:31:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:31:21]line СНО: Общий режим [12:31:21]line Чек 170 26.10.2024 12:31 [12:31:21]line Смена: 536 ФФД: 1.0 [12:31:21]line ЗНМ: 0300000096 [12:31:21]line РНМ: 0000000000091693 [12:31:21]line Версия ККМ: 001 [12:31:21]line ФМ: 0000000000871792 [12:31:21]line ФД: 156269 [12:31:21]line ФПД: 78155524125046 [12:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123124&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156269&fm=78155524125046&tin=02508201610067®Number=0000000000091693&sum=20000 [12:31:22]Connected sock=9 [12:31:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 8B 07 01 1C 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1C E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 62 02 00 35 04 06 00 47 15 00 40 B1 76 0F A8 A3 3F A0 47 58 D0 [12:31:22]written 0, free lines is 4095 [12:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DC AA 47 00 A7 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 62 02 00 F4 03 04 00 8F 86 1C 67 B6 04 01 00 00 DF CE 83 A7 11 59 DF D3 [12:31:22]CommunicateWithHost err = 0 [12:31:22]CheckOFDResponse [12:31:22]1017 (14) - 77093643461234 [12:31:22]1041 (16) - 0000000000871792 [12:31:22]1040 (4) - 156269 [12:31:22]1012 (4) - 26.10.2024 06:05 [12:31:22]1206 (1) - 0 [12:31:22]OFD Sender: Remove packet 156269 [12:31:22]ProducePacketName [12:31:22]name=ofd_packets/00156269 [12:31:22]NVStorageDeleteData [12:31:22]Write to MH i2c: 01 00 00 EA 37 21 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 EA 37 00 00 00 00 00 E4 0C 18 [12:31:22]RasterBufferAndPrint [12:31:22]line [12:31:22]line [12:31:22]line [12:31:22]line [12:31:22]line [12:31:22]written 0, free lines is 3306 [12:31:22]process_action close_receipt done [12:31:22]requested_data is exist [12:31:22]produce_requested_data [12:31:22]requested_item fm.sn is exist - process it [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 11 00 00 [12:31:22]Write to MH i2c: E2 08 00 F1 37 80 11 00 00 00 00 00 00 A2 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 F1 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [12:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:31:22]wFMCommunicate OK [12:31:22]requested_item fd.num is exist - process it [12:31:22]SAM_PROTO_GetFieldsCounters [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 00 00 [12:31:22]Write to MH i2c: E2 08 00 F2 37 80 13 00 00 00 00 00 00 A5 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 62 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 62 00 F2 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [12:31: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_GetFieldsCounters done [12:31:22]requested_item shift.num is exist - process it [12:31:22]requested_item shift.opened is exist - process it [12:31:22]req_shift_opened [12:31:22]FM_GetShiftState [12:31:22]SAM_PROTO_GetShiftState [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 01 00 [12:31:22]Write to MH i2c: E2 08 00 F3 37 80 13 01 00 00 00 00 00 A7 [12:31:22]OFD Sender: No OFD packet to send [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0E 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0E 00 F3 37 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DC [12:31:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:31:23]wFMCommunicate OK [12:31:23]SAM_PROTO_GetShiftState done [12:31:23]FM_GetShiftState done [12:31:23]req_shift_opened done [12:31:23]requested_item shift.open_date is exist - process it [12:31:23]req_shift_open_date [12:31:23]req_shift_open_date done [12:31:23]produce_requested_data done [12:31:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156269,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:31:23]process_action_free close_receipt [12:31:23]json_value_free [12:31:23]json_value_free done [12:31:23]process_json_proto returns [12:31:23]Send response to host [12:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156269,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:31:23]free response buf [12:31:23]execute_script done [12:31:23]execute_script returns [12:31:23]free content buf [12:31:23]Sock 10.Close socket [12:31:23]Sock 10.Thread stoped [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:49]accept exits with 7 [12:33:49]New connection [12:33:49]New thread 3066613092 created [12:33:49]Thread 3066469732 joined [12:33:49]Waiting for new connection... [12:33:49] Sock 7.Parse request [12:33:49]Sock 7.Check first char [12:33:49]Sock 7.First char is OK [12:33:49]request: POST /json_proto HTTP/1.0 [12:33:49]Method: POST [12:33:49]URL: /json_proto [12:33:49]Method is POST - this is cgi request [12:33:49]url: /json_proto [12:33:49]query_string will be loaded in cgi processing [12:33:49]execute_cgi json_proto POST (null) [12:33:49]execute_cgi path=json_proto method=POST [12:33:49]POST find Content-Length [12:33:49]Host: 172.17.63.3:8080 [12:33:49]Content-Length: 765 [12:33:49]Content-Type: application/json [12:33:49] [12:33:49]POST finish read [12:33:49]Found Content-Length = 765 [12:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:49]execute_script... [12:33: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)99086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:49]POST & json_proto [12:33:49]process_json_proto [12:33:49]json parsed OK: [12:33:49]protocol is kg_v1.0 [12:33:49]action value=close_receipt [12:33:49]process_action close_receipt [12:33:49]cmd_close_receipt [12:33:49]MH_GetDate [12:33:49]Write to MH i2c: F0 00 00 F4 37 1A [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: F0 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: F0 09 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: F0 09 00 F4 37 00 B1 E1 1C 67 50 D1 6C 64 29 [12:33:49]GetLastDocTimeStamp 1729945884 [12:33:49]current date 1729946033 [12:33:49]FM_GetShiftState [12:33:49]SAM_PROTO_GetShiftState [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 13 01 00 [12:33:49]Write to MH i2c: E2 08 00 F5 37 80 13 01 00 00 00 00 00 A9 [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 F5 37 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DE [12:33:49]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:33:49]wFMCommunicate OK [12:33:49]SAM_PROTO_GetShiftState done [12:33:49]FM_GetShiftState done [12:33:49]opened in 1729902702 [12:33:49]opened+sec_in_day 1729989102 [12:33:49]quantity*price = 50041 [12:33:49]sum+1 = 50042 [12:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 171 26.10.2024 12:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156270 ФПД: 162969074718444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123353&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156270&fm=162969074718444&tin=02508201610067®Number=0000000000091693&sum=50041 [12:33:50]StoreToDocumentArchive [12:33:50]shift 536 fd 156270 [12:33:50]save to /storage/0536/doc_00156270 [12:33:50]save last doc name /storage/0536/doc_00156270 to /storage/kkm_last_doc_name [12:33:50]save OK [12:33:50]Clear old archive folders... [12:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:50]tlvbuf is B6D55650 [12:33:50]SAM_PROTO_ClearQueue [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 09 00 00 [12:33:50]Write to MH i2c: E2 08 00 02 38 80 09 00 00 00 00 00 00 AC [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 02 38 00 90 00 AE [12:33:50]RAPDU: 90 00 [12:33:50]wFMCommunicate OK [12:33:50]SAM_PROTO_ClearQueue done [12:33:50]KKMCreateOFDPacket [12:33:50]OFDProtocolAddRootSTLVToBuf [12:33:50]FM_MakeSignedData [12:33:50]FM_MakeSignedData [12:33:50]SAM_PROTO_SignData [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 0D 01 02 [12:33:50]Write to MH i2c: E2 08 00 03 38 80 0D 01 02 00 00 00 00 B4 [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 03 38 00 90 00 AF [12:33:50]RAPDU: 90 00 [12:33:50]wFMCommunicate OK [12:33:50]wFMCommunicate request_size=255 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B1 E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 62 02 00 35 04 06 00 94 [12:33:50]Write to MH i2c: E2 02 01 04 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B1 E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 62 02 00 35 04 06 00 94 00 00 DA [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 04 38 00 90 00 B0 [12:33:50]RAPDU: 90 00 [12:33:50]wFMCommunicate OK [12:33:50]wFMCommunicate request_size=10 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 0D 02 02 05 38 31 CE D6 EC [12:33:50]Write to MH i2c: E2 0D 00 05 38 80 0D 02 02 05 00 38 31 CE D6 EC 00 00 BA [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 05 38 00 90 00 B1 [12:33:50]RAPDU: 90 00 [12:33:50]wFMCommunicate OK [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 0D 03 02 [12:33:50]Write to MH i2c: E2 08 00 06 38 80 0D 03 02 00 00 00 00 B9 [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 0B 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 0B 00 06 38 00 22 60 3C 88 F2 BD 1F 84 90 00 52 [12:33:50]RAPDU: 22 60 3C 88 F2 BD 1F 84 90 00 [12:33:50]wFMCommunicate OK [12:33:50]SAM_PROTO_SignData done [12:33:50]FM_MakeSignedData done [12:33:50]CreateOFDProtocolMessage [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 11 00 00 [12:33:50]Write to MH i2c: E2 08 00 07 38 80 11 00 00 00 00 00 00 B9 [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 17 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 17 00 07 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [12:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:33:50]wFMCommunicate OK [12:33:50]CreateOFDProtocolMessage done [12:33:50]OFDSenderStorePacket 156270 [12:33:50]StoreOFDPacket docnum=156270 [12:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DA B4 07 01 B2 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B1 E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 62 02 00 35 04 06 00 94 38 31 CE D6 EC 22 60 3C 88 F2 BD 1F 84 [12:33:50]CheckFolder [12:33:50]dirname=/storage/ofd_packets [12:33:50]CheckFolder done [12:33:50]ProducePacketName [12:33:50]name=ofd_packets/00156270 [12:33:50]NVStorageSaveData ofd_packets/00156270 [12:33:50]File name is /storage/ofd_packets/00156270 [12:33:50]Write 301 bytes [12:33:50]NVStorageSaveData done [12:33:50]OFDSenderStorePacket done [12:33:50]KKMCreateOFDPacket done [12:33:50]NVStorageSaveData kkm_last_timestamp [12:33:50]File name is /storage/kkm_last_timestamp [12:33:50]Write 4 bytes [12:33:50]NVStorageSaveData done [12:33:50]ExternCall_PrintAddStr [12:33:50]wPrintStart [12:33:50]Write to MH i2c: 01 00 00 08 38 40 [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: 01 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: 01 07 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: 01 07 00 08 38 00 00 00 00 00 FF 0F 55 [12:33:50]RasterBufferAndPrint [12:33:50]line Счет N : (1)99086 [12:33:50]line ИНН: 02508201610067 [12:33:50]line Контрольно-Кассовый Чек [12:33:50]line ПРОДАЖА [12:33:50]line ТРК (МРК, ГНК) : 21 [12:33:50]line Товар: 2710124130 [12:33:50]line Аи-92-К-5 [12:33:50]line 7.480 * 66.90 [12:33:50]line = 500.41 [12:33:50]line НДС 12% НСП 1% [12:33:50]line > о реализуемом товаре [12:33:50]line ИТОГО: 500.41 [12:33:50]line НСП 1% : 4.43 [12:33:50]line НДС 12% : 53.14 [12:33:50]line Наличными: 0.00 [12:33:50]line Безнал.: 500.41 [12:33:50]line Место: АЗС № 143 "Партнер Нефть" [12:33:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:33:50]line СНО: Общий режим [12:33:50]line Чек 171 26.10.2024 12:33 [12:33:50]line Смена: 536 ФФД: 1.0 [12:33:50]line ЗНМ: 0300000096 [12:33:50]line РНМ: 0000000000091693 [12:33:50]line Версия ККМ: 001 [12:33:50]line Платежная система: Mbank [12:33:50]line ФМ: 0000000000871792 [12:33:50]line ФД: 156270 [12:33:50]line ФПД: 162969074718444 [12:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123353&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156270&fm=162969074718444&tin=02508201610067®Number=0000000000091693&sum=50041 [12:33:50]written 0, free lines is 4095 [12:33:51]OFD Sender: Processing packet 156270 [packets to send 31, broken 30] [12:33:51]ProducePacketName [12:33:51]name=ofd_packets/00156270 [12:33:51]OFD Sender: To server: pG, [12:33:51]CommunicateWithHost lk.salyk.kg:30040 [12:33:51]ConnectInit lk.salyk.kg [12:33:51]Connected sock=10 [12:33:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DA B4 07 01 B2 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B1 E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 62 02 00 35 04 06 00 94 38 31 CE D6 EC 22 60 3C 88 F2 BD 1F 84 [12:33:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0A 20 47 00 F6 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 62 02 00 F4 03 04 00 24 87 1C 67 B6 04 01 00 00 C2 EB 91 2F E7 3E 83 0E [12:33:51]CommunicateWithHost err = 0 [12:33:51]CheckOFDResponse [12:33:51]1017 (14) - 77093643461234 [12:33:51]1041 (16) - 0000000000871792 [12:33:51]1040 (4) - 156270 [12:33:51]1012 (4) - 26.10.2024 06:07 [12:33:51]1206 (1) - 0 [12:33:51]OFD Sender: Remove packet 156270 [12:33:51]ProducePacketName [12:33:51]name=ofd_packets/00156270 [12:33:51]NVStorageDeleteData [12:33:51]Write to MH i2c: 01 00 00 31 38 69 [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: 01 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: 01 07 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: 01 07 00 31 38 00 00 00 00 00 0B 0D 88 [12:33:51]RasterBufferAndPrint [12:33:51]line [12:33:51]line [12:33:51]line [12:33:51]line [12:33:51]line [12:33:51]written 0, free lines is 3346 [12:33:51]process_action close_receipt done [12:33:51]requested_data is exist [12:33:51]produce_requested_data [12:33:51]requested_item fm.sn is exist - process it [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 11 00 00 [12:33:51]Write to MH i2c: E2 08 00 38 38 80 11 00 00 00 00 00 00 EA [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 17 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 17 00 38 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3F [12:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:33:51]wFMCommunicate OK [12:33:51]requested_item fd.num is exist - process it [12:33:51]SAM_PROTO_GetFieldsCounters [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 13 00 00 [12:33:51]Write to MH i2c: E2 08 00 39 38 80 13 00 00 00 00 00 00 ED [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 62 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 62 00 39 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:33: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:51]wFMCommunicate OK [12:33:51]SAM_PROTO_GetFieldsCounters done [12:33:51]requested_item shift.num is exist - process it [12:33:51]requested_item shift.opened is exist - process it [12:33:51]req_shift_opened [12:33:51]FM_GetShiftState [12:33:51]SAM_PROTO_GetShiftState [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 13 01 00 [12:33:51]Write to MH i2c: E2 08 00 3A 38 80 13 01 00 00 00 00 00 EF [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 0E 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 0E 00 3A 38 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 24 [12:33:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:33:51]wFMCommunicate OK [12:33:51]SAM_PROTO_GetShiftState done [12:33:51]FM_GetShiftState done [12:33:51]req_shift_opened done [12:33:51]requested_item shift.open_date is exist - process it [12:33:51]req_shift_open_date [12:33:51]req_shift_open_date done [12:33:51]produce_requested_data done [12:33:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156270,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:33:51]process_action_free close_receipt [12:33:51]json_value_free [12:33:51]json_value_free done [12:33:51]process_json_proto returns [12:33:51]Send response to host [12:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156270,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:33:51]free response buf [12:33:51]execute_script done [12:33:51]execute_script returns [12:33:51]free content buf [12:33:51]Sock 7.Close socket [12:33:51]Sock 7.Thread stoped [12:33:51]OFD Sender: No OFD packet to send [12:33:51]accept exits with 9 [12:33:51]New connection [12:33:51]New thread 3066469732 created [12:33:51]Thread 3066613092 joined [12:33:51]Waiting for new connection... [12:33:51] Sock 9.Parse request [12:33:51]Sock 9.Check first char [12:33:51]Sock 9.First char is OK [12:33:51]request: POST /json_proto HTTP/1.0 [12:33:51]Method: POST [12:33:51]URL: /json_proto [12:33:51]Method is POST - this is cgi request [12:33:51]url: /json_proto [12:33:51]query_string will be loaded in cgi processing [12:33:51]execute_cgi json_proto POST (null) [12:33:51]execute_cgi path=json_proto method=POST [12:33:51]POST find Content-Length [12:33:51]Host: 172.17.63.3:8080 [12:33:51]Content-Length: 676 [12:33:51]Content-Type: application/json [12:33:51] [12:33:51]POST finish read [12:33:51]Found Content-Length = 676 [12:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:51]execute_script... [12:33:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:51]POST & json_proto [12:33:51]process_json_proto [12:33:51]json parsed OK: [12:33:51]protocol is kg_v1.0 [12:33:51]action value=close_receipt [12:33:51]process_action close_receipt [12:33:51]cmd_close_receipt [12:33:51]MH_GetDate [12:33:51]Write to MH i2c: F0 00 00 3B 38 62 [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: F0 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: F0 09 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: F0 09 00 3B 38 00 B4 E1 1C 67 50 D1 6C 64 74 [12:33:51]GetLastDocTimeStamp 1729946033 [12:33:51]current date 1729946036 [12:33:51]FM_GetShiftState [12:33:51]SAM_PROTO_GetShiftState [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 13 01 00 [12:33:51]Write to MH i2c: E2 08 00 3C 38 80 13 01 00 00 00 00 00 F1 [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:52]Read from MH i2c: E2 [12:33:52]MH_I2C_Read... [12:33:52]Read from MH i2c: E2 0E 00 [12:33:52]MH_I2C_Read... [12:33:52]Read from MH i2c: E2 0E 00 3C 38 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 26 [12:33:52]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:33:52]wFMCommunicate OK [12:33:52]SAM_PROTO_GetShiftState done [12:33:52]FM_GetShiftState done [12:33:52]opened in 1729902702 [12:33:52]opened+sec_in_day 1729989102 [12:33:52]quantity*price = 40006 [12:33:52]sum+1 = 40007 [12:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 172 26.10.2024 12:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156271 ФПД: 72242831560588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123356&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156271&fm=72242831560588&tin=02508201610067®Number=0000000000091693&sum=40000 [12:33:53]StoreToDocumentArchive [12:33:53]shift 536 fd 156271 [12:33:53]save to /storage/0536/doc_00156271 [12:33:53]save last doc name /storage/0536/doc_00156271 to /storage/kkm_last_doc_name [12:33:53]save OK [12:33:53]Clear old archive folders... [12:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:53]tlvbuf is 00D08680 [12:33:53]SAM_PROTO_ClearQueue [12:33:53]wFMCommunicate request_size=4 [12:33:53]MH_SAM_APDU [12:33:53]CAPDU: 80 09 00 00 [12:33:53]Write to MH i2c: E2 08 00 49 38 80 09 00 00 00 00 00 00 F3 [12:33:53]Write i2c OK [12:33:53]MH_I2C_Read... [12:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:53]Read from MH i2c: E2 [12:33:53]MH_I2C_Read... [12:33:53]Read from MH i2c: E2 03 00 [12:33:53]MH_I2C_Read... [12:33:53]Read from MH i2c: E2 03 00 49 38 00 90 00 F5 [12:33:53]RAPDU: 90 00 [12:33:53]wFMCommunicate OK [12:33:53]SAM_PROTO_ClearQueue done [12:33:53]KKMCreateOFDPacket [12:33:53]OFDProtocolAddRootSTLVToBuf [12:33:53]FM_MakeSignedData [12:33:53]FM_MakeSignedData [12:33:53]SAM_PROTO_SignData [12:33:53]wFMCommunicate request_size=4 [12:33:53]MH_SAM_APDU [12:33:53]CAPDU: 80 0D 01 02 [12:33:53]Write to MH i2c: E2 08 00 4A 38 80 0D 01 02 00 00 00 00 FB [12:33:53]Write i2c OK [12:33:53]MH_I2C_Read... [12:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:53]Read from MH i2c: E2 [12:33:53]MH_I2C_Read... [12:33:53]Read from MH i2c: E2 03 00 [12:33:53]MH_I2C_Read... [12:33:53]Read from MH i2c: E2 03 00 4A 38 00 90 00 F6 [12:33:53]RAPDU: 90 00 [12:33:53]wFMCommunicate OK [12:33:53]wFMCommunicate request_size=255 [12:33:53]MH_SAM_APDU [12:33:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 B4 E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 62 02 00 35 04 06 00 41 [12:33:53]Write to MH i2c: E2 02 01 4B 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 B4 E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 62 02 00 35 04 06 00 41 00 00 50 [12:33:53]Write i2c OK [12:33:53]MH_I2C_Read... [12:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:53]Read from MH i2c: E2 [12:33:53]MH_I2C_Read... [12:33:53]Read from MH i2c: E2 03 00 [12:33:53]MH_I2C_Read... [12:33:53]Read from MH i2c: E2 03 00 4B 38 00 90 00 F7 [12:33:53]RAPDU: 90 00 [12:33:53]wFMCommunicate OK [12:33:53]wFMCommunicate request_size=10 [12:33:53]MH_SAM_APDU [12:33:53]CAPDU: 80 0D 02 02 05 B4 58 50 0F 8C [12:33:53]Write to MH i2c: E2 0D 00 4C 38 80 0D 02 02 05 00 B4 58 50 0F 8C 00 00 FF [12:33:53]Write i2c OK [12:33:53]MH_I2C_Read... [12:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:53]Read from MH i2c: E2 [12:33:53]MH_I2C_Read... [12:33:53]Read from MH i2c: E2 03 00 [12:33:53]MH_I2C_Read... [12:33:53]Read from MH i2c: E2 03 00 4C 38 00 90 00 F8 [12:33:53]RAPDU: 90 00 [12:33:53]wFMCommunicate OK [12:33:53]wFMCommunicate request_size=4 [12:33:53]MH_SAM_APDU [12:33:53]CAPDU: 80 0D 03 02 [12:33:53]Write to MH i2c: E2 08 00 4D 38 80 0D 03 02 00 00 00 00 00 [12:33:53]Write i2c OK [12:33:53]MH_I2C_Read... [12:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:53]Read from MH i2c: E2 [12:33:53]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 0B 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 0B 00 4D 38 00 20 3A 69 86 1D B5 FD BD 90 00 D6 [12:33:54]RAPDU: 20 3A 69 86 1D B5 FD BD 90 00 [12:33:54]wFMCommunicate OK [12:33:54]SAM_PROTO_SignData done [12:33:54]FM_MakeSignedData done [12:33:54]CreateOFDProtocolMessage [12:33:54]wFMCommunicate request_size=4 [12:33:54]MH_SAM_APDU [12:33:54]CAPDU: 80 11 00 00 [12:33:54]Write to MH i2c: E2 08 00 4E 38 80 11 00 00 00 00 00 00 00 [12:33:54]Write i2c OK [12:33:54]MH_I2C_Read... [12:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:54]Read from MH i2c: E2 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 17 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 17 00 4E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 55 [12:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:33:54]wFMCommunicate OK [12:33:54]CreateOFDProtocolMessage done [12:33:54]OFDSenderStorePacket 156271 [12:33:54]StoreOFDPacket docnum=156271 [12:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 50 8C 07 01 BF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 B4 E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 62 02 00 35 04 06 00 41 B4 58 50 0F 8C 20 3A 69 86 1D B5 FD BD [12:33:54]CheckFolder [12:33:54]dirname=/storage/ofd_packets [12:33:54]CheckFolder done [12:33:54]ProducePacketName [12:33:54]name=ofd_packets/00156271 [12:33:54]NVStorageSaveData ofd_packets/00156271 [12:33:54]File name is /storage/ofd_packets/00156271 [12:33:54]Write 301 bytes [12:33:54]NVStorageSaveData done [12:33:54]OFDSenderStorePacket done [12:33:54]KKMCreateOFDPacket done [12:33:54]NVStorageSaveData kkm_last_timestamp [12:33:54]File name is /storage/kkm_last_timestamp [12:33:54]Write 4 bytes [12:33:54]NVStorageSaveData done [12:33:54]ExternCall_PrintAddStr [12:33:54]wPrintStart [12:33:54]Write to MH i2c: 01 00 00 4F 38 87 [12:33:54]Write i2c OK [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: 01 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: 01 07 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: 01 07 00 4F 38 00 00 00 00 00 FF 0F 9C [12:33:54]RasterBufferAndPrint [12:33:54]line Счет N : (1)99085 [12:33:54]line ИНН: 02508201610067 [12:33:54]line Контрольно-Кассовый Чек [12:33:54]line ПРОДАЖА [12:33:54]line ТРК (МРК, ГНК) : 31 [12:33:54]line Товар: 2710124130 [12:33:54]line Аи-92-К-5 [12:33:54]line 5.980 * 66.90 [12:33:54]line = 400.06 [12:33:54]line НДС 12% НСП 1% [12:33:54]line > о реализуемом товаре [12:33:54]line ОКРУГЛЕНИЕ: -0.06 [12:33:54]line ИТОГО: 400.00 [12:33:54]line Внесено: 400.00 [12:33:54]line СДАЧА: 0.00 [12:33:54]line НСП 1% : 3.54 [12:33:54]line НДС 12% : 42.48 [12:33:54]line Наличными: 400.00 [12:33:54]line Безнал.: 0.00 [12:33:54]line Место: АЗС № 143 "Партнер Нефть" [12:33:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:33:54]line СНО: Общий режим [12:33:54]line Чек 172 26.10.2024 12:33 [12:33:54]line Смена: 536 ФФД: 1.0 [12:33:54]line ЗНМ: 0300000096 [12:33:54]line РНМ: 0000000000091693 [12:33:54]line Версия ККМ: 001 [12:33:54]line ФМ: 0000000000871792 [12:33:54]line ФД: 156271 [12:33:54]line ФПД: 72242831560588 [12:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123356&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156271&fm=72242831560588&tin=02508201610067®Number=0000000000091693&sum=40000 [12:33:54]OFD Sender: Processing packet 156271 [packets to send 31, broken 30] [12:33:54]ProducePacketName [12:33:54]name=ofd_packets/00156271 [12:33:54]OFD Sender: To server: pG, [12:33:54]CommunicateWithHost lk.salyk.kg:30040 [12:33:54]ConnectInit lk.salyk.kg [12:33:54]written 0, free lines is 4095 [12:33:54]Connected sock=7 [12:33:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 50 8C 07 01 BF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 B4 E1 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 62 02 00 35 04 06 00 41 B4 58 50 0F 8C 20 3A 69 86 1D B5 FD BD [12:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 94 3C 47 00 62 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 62 02 00 F4 03 04 00 27 87 1C 67 B6 04 01 00 00 C7 B5 7E 91 30 A6 1B 33 [12:33:54]CommunicateWithHost err = 0 [12:33:54]CheckOFDResponse [12:33:54]1017 (14) - 77093643461234 [12:33:54]1041 (16) - 0000000000871792 [12:33:54]1040 (4) - 156271 [12:33:54]1012 (4) - 26.10.2024 06:07 [12:33:54]1206 (1) - 0 [12:33:54]OFD Sender: Remove packet 156271 [12:33:54]ProducePacketName [12:33:54]name=ofd_packets/00156271 [12:33:54]NVStorageDeleteData [12:33:54]Write to MH i2c: 01 00 00 7A 38 B2 [12:33:54]Write i2c OK [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: 01 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: 01 07 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: 01 07 00 7A 38 00 00 00 00 00 EF 0C B4 [12:33:54]RasterBufferAndPrint [12:33:54]line [12:33:54]line [12:33:54]line [12:33:54]line [12:33:54]line [12:33:54]written 0, free lines is 3327 [12:33:54]process_action close_receipt done [12:33:54]requested_data is exist [12:33:54]produce_requested_data [12:33:54]requested_item fm.sn is exist - process it [12:33:54]wFMCommunicate request_size=4 [12:33:54]MH_SAM_APDU [12:33:54]CAPDU: 80 11 00 00 [12:33:54]Write to MH i2c: E2 08 00 81 38 80 11 00 00 00 00 00 00 33 [12:33:54]Write i2c OK [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 [12:33:54]MH_I2C_Read... [12:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:54]Read from MH i2c: E2 17 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 17 00 81 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 88 [12:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:33:54]wFMCommunicate OK [12:33:54]requested_item fd.num is exist - process it [12:33:54]SAM_PROTO_GetFieldsCounters [12:33:54]wFMCommunicate request_size=4 [12:33:54]MH_SAM_APDU [12:33:54]CAPDU: 80 13 00 00 [12:33:54]Write to MH i2c: E2 08 00 82 38 80 13 00 00 00 00 00 00 36 [12:33:54]Write i2c OK [12:33:54]MH_I2C_Read... [12:33:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:54]Read from MH i2c: E2 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 62 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 62 00 82 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [12:33: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:54]wFMCommunicate OK [12:33:54]SAM_PROTO_GetFieldsCounters done [12:33:54]requested_item shift.num is exist - process it [12:33:54]requested_item shift.opened is exist - process it [12:33:54]req_shift_opened [12:33:54]FM_GetShiftState [12:33:54]SAM_PROTO_GetShiftState [12:33:54]wFMCommunicate request_size=4 [12:33:54]MH_SAM_APDU [12:33:54]CAPDU: 80 13 01 00 [12:33:54]Write to MH i2c: E2 08 00 83 38 80 13 01 00 00 00 00 00 38 [12:33:54]Write i2c OK [12:33:54]MH_I2C_Read... [12:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:54]Read from MH i2c: E2 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 0E 00 [12:33:54]MH_I2C_Read... [12:33:54]Read from MH i2c: E2 0E 00 83 38 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6D [12:33:54]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:33:54]wFMCommunicate OK [12:33:54]SAM_PROTO_GetShiftState done [12:33:54]FM_GetShiftState done [12:33:54]req_shift_opened done [12:33:54]requested_item shift.open_date is exist - process it [12:33:54]req_shift_open_date [12:33:54]req_shift_open_date done [12:33:54]produce_requested_data done [12:33:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156271,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:33:54]process_action_free close_receipt [12:33:54]json_value_free [12:33:54]json_value_free done [12:33:54]process_json_proto returns [12:33:54]Send response to host [12:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156271,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:33:54]free response buf [12:33:54]execute_script done [12:33:54]execute_script returns [12:33:54]free content buf [12:33:54]Sock 9.Close socket [12:33:54]Sock 9.Thread stoped [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]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:46]accept exits with 10 [12:35:46]New connection [12:35:46]New thread 3066613092 created [12:35:46]Thread 3066469732 joined [12:35:46]Waiting for new connection... [12:35:46] Sock 10.Parse request [12:35:46]Sock 10.Check first char [12:35:46]Sock 10.First char is OK [12:35:46]request: POST /json_proto HTTP/1.0 [12:35:46]Method: POST [12:35:46]URL: /json_proto [12:35:46]Method is POST - this is cgi request [12:35:46]url: /json_proto [12:35:46]query_string will be loaded in cgi processing [12:35:46]execute_cgi json_proto POST (null) [12:35:46]execute_cgi path=json_proto method=POST [12:35:46]POST find Content-Length [12:35:46]Host: 172.17.63.3:8080 [12:35:46]Content-Length: 681 [12:35:46]Content-Type: application/json [12:35:46] [12:35:46]POST finish read [12:35:46]Found Content-Length = 681 [12:35:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:46]execute_script... [12:35:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:46]POST & json_proto [12:35:46]process_json_proto [12:35:46]json parsed OK: [12:35:46]protocol is kg_v1.0 [12:35:46]action value=close_receipt [12:35:46]process_action close_receipt [12:35:46]cmd_close_receipt [12:35:46]MH_GetDate [12:35:46]Write to MH i2c: F0 00 00 84 38 AB [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: F0 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: F0 09 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: F0 09 00 84 38 00 26 E2 1C 67 50 D1 6C 64 30 [12:35:46]GetLastDocTimeStamp 1729946036 [12:35:46]current date 1729946150 [12:35:46]FM_GetShiftState [12:35:46]SAM_PROTO_GetShiftState [12:35:46]wFMCommunicate request_size=4 [12:35:46]MH_SAM_APDU [12:35:46]CAPDU: 80 13 01 00 [12:35:46]Write to MH i2c: E2 08 00 85 38 80 13 01 00 00 00 00 00 3A [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:46]Read from MH i2c: E2 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 0E 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 0E 00 85 38 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6F [12:35:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:35:46]wFMCommunicate OK [12:35:46]SAM_PROTO_GetShiftState done [12:35:46]FM_GetShiftState done [12:35:46]opened in 1729902702 [12:35:46]opened+sec_in_day 1729989102 [12:35:46]quantity*price = 100015 [12:35:46]sum+1 = 100017 [12:35:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 173 26.10.2024 12:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156272 ФПД: 219229582202489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123550&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156272&fm=219229582202489&tin=02508201610067®Number=0000000000091693&sum=100000 [12:35:47]StoreToDocumentArchive [12:35:47]shift 536 fd 156272 [12:35:47]save to /storage/0536/doc_00156272 [12:35:47]save last doc name /storage/0536/doc_00156272 to /storage/kkm_last_doc_name [12:35:47]save OK [12:35:47]Clear old archive folders... [12:35:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:47]tlvbuf is 00D52820 [12:35:47]SAM_PROTO_ClearQueue [12:35:47]wFMCommunicate request_size=4 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 09 00 00 [12:35:47]Write to MH i2c: E2 08 00 92 38 80 09 00 00 00 00 00 00 3C [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 03 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 03 00 92 38 00 90 00 3E [12:35:47]RAPDU: 90 00 [12:35:47]wFMCommunicate OK [12:35:47]SAM_PROTO_ClearQueue done [12:35:47]KKMCreateOFDPacket [12:35:47]OFDProtocolAddRootSTLVToBuf [12:35:47]FM_MakeSignedData [12:35:47]FM_MakeSignedData [12:35:47]SAM_PROTO_SignData [12:35:47]wFMCommunicate request_size=4 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 0D 01 02 [12:35:47]Write to MH i2c: E2 08 00 93 38 80 0D 01 02 00 00 00 00 44 [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 03 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 03 00 93 38 00 90 00 3F [12:35:47]RAPDU: 90 00 [12:35:47]wFMCommunicate OK [12:35:47]wFMCommunicate request_size=255 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 26 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 62 02 00 35 04 06 00 C7 [12:35:47]Write to MH i2c: E2 02 01 94 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 26 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 62 02 00 35 04 06 00 C7 00 00 BF [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 03 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 03 00 94 38 00 90 00 40 [12:35:47]RAPDU: 90 00 [12:35:47]wFMCommunicate OK [12:35:47]wFMCommunicate request_size=10 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 0D 02 02 05 63 5D 5F 16 79 [12:35:47]Write to MH i2c: E2 0D 00 95 38 80 0D 02 02 05 00 63 5D 5F 16 79 00 00 FF [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 03 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 03 00 95 38 00 90 00 41 [12:35:47]RAPDU: 90 00 [12:35:47]wFMCommunicate OK [12:35:47]wFMCommunicate request_size=4 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 0D 03 02 [12:35:47]Write to MH i2c: E2 08 00 96 38 80 0D 03 02 00 00 00 00 49 [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 0B 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 0B 00 96 38 00 11 56 3F 2F 5C 72 08 5E 90 00 53 [12:35:47]RAPDU: 11 56 3F 2F 5C 72 08 5E 90 00 [12:35:47]wFMCommunicate OK [12:35:47]SAM_PROTO_SignData done [12:35:47]FM_MakeSignedData done [12:35:47]CreateOFDProtocolMessage [12:35:47]wFMCommunicate request_size=4 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 11 00 00 [12:35:47]Write to MH i2c: E2 08 00 97 38 80 11 00 00 00 00 00 00 49 [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 17 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 17 00 97 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9E [12:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:35:47]wFMCommunicate OK [12:35:47]CreateOFDProtocolMessage done [12:35:47]OFDSenderStorePacket 156272 [12:35:47]StoreOFDPacket docnum=156272 [12:35:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D4 4C 07 01 BC 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 26 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 62 02 00 35 04 06 00 C7 63 5D 5F 16 79 11 56 3F 2F 5C 72 08 5E [12:35:47]CheckFolder [12:35:47]dirname=/storage/ofd_packets [12:35:47]CheckFolder done [12:35:47]ProducePacketName [12:35:47]name=ofd_packets/00156272 [12:35:47]NVStorageSaveData ofd_packets/00156272 [12:35:47]File name is /storage/ofd_packets/00156272 [12:35:47]Write 301 bytes [12:35:47]NVStorageSaveData done [12:35:47]OFDSenderStorePacket done [12:35:47]KKMCreateOFDPacket done [12:35:47]NVStorageSaveData kkm_last_timestamp [12:35:47]File name is /storage/kkm_last_timestamp [12:35:47]Write 4 bytes [12:35:47]NVStorageSaveData done [12:35:47]ExternCall_PrintAddStr [12:35:47]wPrintStart [12:35:47]Write to MH i2c: 01 00 00 98 38 D0 [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: 01 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: 01 07 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: 01 07 00 98 38 00 00 00 00 00 FF 0F E5 [12:35:47]RasterBufferAndPrint [12:35:47]line Счет N : (1)99087 [12:35:47]line ИНН: 02508201610067 [12:35:47]line Контрольно-Кассовый Чек [12:35:47]line ПРОДАЖА [12:35:47]line ТРК (МРК, ГНК) : 11 [12:35:47]line Товар: 2710124130 [12:35:47]line Аи-92-К-5 [12:35:47]line 14.950 * 66.90 [12:35:47]line = 1000.16 [12:35:47]line НДС 12% НСП 1% [12:35:47]line > о реализуемом товаре [12:35:47]line ОКРУГЛЕНИЕ: -0.16 [12:35:47]line ИТОГО: 1000.00 [12:35:47]line Внесено: 1000.00 [12:35:47]line СДАЧА: 0.00 [12:35:47]line НСП 1% : 8.85 [12:35:47]line НДС 12% : 106.21 [12:35:47]line Наличными: 1000.00 [12:35:47]line Безнал.: 0.00 [12:35:47]line Место: АЗС № 143 "Партнер Нефть" [12:35:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:35:47]line СНО: Общий режим [12:35:47]line Чек 173 26.10.2024 12:35 [12:35:47]line Смена: 536 ФФД: 1.0 [12:35:47]line ЗНМ: 0300000096 [12:35:47]line РНМ: 0000000000091693 [12:35:47]line Версия ККМ: 001 [12:35:47]line ФМ: 0000000000871792 [12:35:47]line ФД: 156272 [12:35:47]line ФПД: 219229582202489 [12:35:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123550&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156272&fm=219229582202489&tin=02508201610067®Number=0000000000091693&sum=100000 [12:35:48]OFD Sender: Processing packet 156272 [packets to send 31, broken 30] [12:35:48]ProducePacketName [12:35:48]name=ofd_packets/00156272 [12:35:48]OFD Sender: To server: pG, [12:35:48]CommunicateWithHost lk.salyk.kg:30040 [12:35:48]ConnectInit lk.salyk.kg [12:35:48]written 0, free lines is 4095 [12:35:48]Write to MH i2c: 01 00 00 C3 38 FB [12:35:48]Write i2c OK [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: 01 [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: 01 07 00 [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: 01 07 00 C3 38 00 00 00 00 00 DD 0C EB [12:35:48]RasterBufferAndPrint [12:35:48]line [12:35:48]line [12:35:48]line [12:35:48]line [12:35:48]line [12:35:48]written 0, free lines is 3299 [12:35:48]process_action close_receipt done [12:35:48]requested_data is exist [12:35:48]produce_requested_data [12:35:48]requested_item fm.sn is exist - process it [12:35:48]wFMCommunicate request_size=4 [12:35:48]MH_SAM_APDU [12:35:48]CAPDU: 80 11 00 00 [12:35:48]Write to MH i2c: E2 08 00 CA 38 80 11 00 00 00 00 00 00 7C [12:35:48]Write i2c OK [12:35:48]MH_I2C_Read... [12:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:48]Read from MH i2c: E2 [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: E2 17 00 [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: E2 17 00 CA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D1 [12:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:35:48]wFMCommunicate OK [12:35:48]requested_item fd.num is exist - process it [12:35:48]SAM_PROTO_GetFieldsCounters [12:35:48]wFMCommunicate request_size=4 [12:35:48]MH_SAM_APDU [12:35:48]CAPDU: 80 13 00 00 [12:35:48]Write to MH i2c: E2 08 00 CB 38 80 13 00 00 00 00 00 00 7F [12:35:48]Write i2c OK [12:35:48]MH_I2C_Read... [12:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:48]Read from MH i2c: E2 [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: E2 62 00 [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: E2 62 00 CB 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:35: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:48]wFMCommunicate OK [12:35:48]SAM_PROTO_GetFieldsCounters done [12:35:48]requested_item shift.num is exist - process it [12:35:48]requested_item shift.opened is exist - process it [12:35:48]req_shift_opened [12:35:48]FM_GetShiftState [12:35:48]SAM_PROTO_GetShiftState [12:35:48]wFMCommunicate request_size=4 [12:35:48]MH_SAM_APDU [12:35:48]CAPDU: 80 13 01 00 [12:35:48]Write to MH i2c: E2 08 00 CC 38 80 13 01 00 00 00 00 00 81 [12:35:48]Write i2c OK [12:35:48]MH_I2C_Read... [12:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:48]Read from MH i2c: E2 [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: E2 0E 00 [12:35:48]MH_I2C_Read... [12:35:48]Read from MH i2c: E2 0E 00 CC 38 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B6 [12:35:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:35:48]wFMCommunicate OK [12:35:48]SAM_PROTO_GetShiftState done [12:35:48]FM_GetShiftState done [12:35:48]req_shift_opened done [12:35:48]requested_item shift.open_date is exist - process it [12:35:48]req_shift_open_date [12:35:48]req_shift_open_date done [12:35:48]produce_requested_data done [12:35:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156272,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:35:48]process_action_free close_receipt [12:35:48]json_value_free [12:35:48]json_value_free done [12:35:48]process_json_proto returns [12:35:48]Send response to host [12:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156272,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:35:48]free response buf [12:35:48]execute_script done [12:35:48]execute_script returns [12:35:48]free content buf [12:35:48]Sock 10.Close socket [12:35:48]Sock 10.Thread stoped [12:36:12]accept exits with 7 [12:36:12]New connection [12:36:12]New thread 3066469732 created [12:36:12]Thread 3066613092 joined [12:36:12]Waiting for new connection... [12:36:12] Sock 7.Parse request [12:36:12]Sock 7.Check first char [12:36:12]Sock 7.First char is OK [12:36:12]request: POST /json_proto HTTP/1.0 [12:36:12]Method: POST [12:36:12]URL: /json_proto [12:36:12]Method is POST - this is cgi request [12:36:12]url: /json_proto [12:36:12]query_string will be loaded in cgi processing [12:36:12]execute_cgi json_proto POST (null) [12:36:12]execute_cgi path=json_proto method=POST [12:36:12]POST find Content-Length [12:36:12]Host: 172.17.63.3:8080 [12:36:12]Content-Length: 676 [12:36:12]Content-Type: application/json [12:36:12] [12:36:12]POST finish read [12:36:12]Found Content-Length = 676 [12:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:12]execute_script... [12:36:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:12]POST & json_proto [12:36:12]process_json_proto [12:36:12]json parsed OK: [12:36:12]protocol is kg_v1.0 [12:36:12]action value=close_receipt [12:36:12]process_action close_receipt [12:36:12]cmd_close_receipt [12:36:12]MH_GetDate [12:36:12]Write to MH i2c: F0 00 00 CD 38 F4 [12:36:12]Write i2c OK [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: F0 [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: F0 09 00 [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: F0 09 00 CD 38 00 40 E2 1C 67 50 D1 6C 64 93 [12:36:12]GetLastDocTimeStamp 1729946150 [12:36:12]current date 1729946176 [12:36:12]FM_GetShiftState [12:36:12]SAM_PROTO_GetShiftState [12:36:12]wFMCommunicate request_size=4 [12:36:12]MH_SAM_APDU [12:36:12]CAPDU: 80 13 01 00 [12:36:12]Write to MH i2c: E2 08 00 CE 38 80 13 01 00 00 00 00 00 83 [12:36:12]Write i2c OK [12:36:12]MH_I2C_Read... [12:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:12]Read from MH i2c: E2 [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: E2 0E 00 [12:36:12]MH_I2C_Read... [12:36:12]Read from MH i2c: E2 0E 00 CE 38 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B8 [12:36:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:36:12]wFMCommunicate OK [12:36:12]SAM_PROTO_GetShiftState done [12:36:12]FM_GetShiftState done [12:36:12]opened in 1729902702 [12:36:12]opened+sec_in_day 1729989102 [12:36:12]quantity*price = 20003 [12:36:12]sum+1 = 20004 [12:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 174 26.10.2024 12:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156273 ФПД: 260122603323301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123616&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156273&fm=260122603323301&tin=02508201610067®Number=0000000000091693&sum=20000 [12:36:13]StoreToDocumentArchive [12:36:13]shift 536 fd 156273 [12:36:13]save to /storage/0536/doc_00156273 [12:36:13]save last doc name /storage/0536/doc_00156273 to /storage/kkm_last_doc_name [12:36:13]save OK [12:36:13]Clear old archive folders... [12:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:13]tlvbuf is 00D813C0 [12:36:13]SAM_PROTO_ClearQueue [12:36:13]wFMCommunicate request_size=4 [12:36:13]MH_SAM_APDU [12:36:13]CAPDU: 80 09 00 00 [12:36:13]Write to MH i2c: E2 08 00 DB 38 80 09 00 00 00 00 00 00 85 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:13]Read from MH i2c: E2 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 03 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 03 00 DB 38 00 90 00 87 [12:36:13]RAPDU: 90 00 [12:36:13]wFMCommunicate OK [12:36:13]SAM_PROTO_ClearQueue done [12:36:13]KKMCreateOFDPacket [12:36:13]OFDProtocolAddRootSTLVToBuf [12:36:13]FM_MakeSignedData [12:36:13]FM_MakeSignedData [12:36:13]SAM_PROTO_SignData [12:36:13]wFMCommunicate request_size=4 [12:36:13]MH_SAM_APDU [12:36:13]CAPDU: 80 0D 01 02 [12:36:13]Write to MH i2c: E2 08 00 DC 38 80 0D 01 02 00 00 00 00 8D [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:13]Read from MH i2c: E2 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 03 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 03 00 DC 38 00 90 00 88 [12:36:13]RAPDU: 90 00 [12:36:13]wFMCommunicate OK [12:36:13]wFMCommunicate request_size=255 [12:36:13]MH_SAM_APDU [12:36:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 40 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 62 02 00 35 04 06 00 EC [12:36:13]Write to MH i2c: E2 02 01 DD 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 40 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 62 02 00 35 04 06 00 EC 00 00 11 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:13]Read from MH i2c: E2 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 03 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 03 00 DD 38 00 90 00 89 [12:36:13]RAPDU: 90 00 [12:36:13]wFMCommunicate OK [12:36:13]wFMCommunicate request_size=10 [12:36:13]MH_SAM_APDU [12:36:13]CAPDU: 80 0D 02 02 05 94 83 5E 7F A5 [12:36:13]Write to MH i2c: E2 0D 00 DE 38 80 0D 02 02 05 00 94 83 5E 7F A5 00 00 33 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:13]Read from MH i2c: E2 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 03 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 03 00 DE 38 00 90 00 8A [12:36:13]RAPDU: 90 00 [12:36:13]wFMCommunicate OK [12:36:13]wFMCommunicate request_size=4 [12:36:13]MH_SAM_APDU [12:36:13]CAPDU: 80 0D 03 02 [12:36:13]Write to MH i2c: E2 08 00 DF 38 80 0D 03 02 00 00 00 00 92 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:13]Read from MH i2c: E2 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 0B 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 0B 00 DF 38 00 00 96 B6 E0 D7 C6 2F 89 90 00 14 [12:36:13]RAPDU: 00 96 B6 E0 D7 C6 2F 89 90 00 [12:36:13]wFMCommunicate OK [12:36:13]SAM_PROTO_SignData done [12:36:13]FM_MakeSignedData done [12:36:13]CreateOFDProtocolMessage [12:36:13]wFMCommunicate request_size=4 [12:36:13]MH_SAM_APDU [12:36:13]CAPDU: 80 11 00 00 [12:36:13]Write to MH i2c: E2 08 00 E0 38 80 11 00 00 00 00 00 00 92 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:13]Read from MH i2c: E2 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 17 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 17 00 E0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E7 [12:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:36:13]wFMCommunicate OK [12:36:13]CreateOFDProtocolMessage done [12:36:13]OFDSenderStorePacket 156273 [12:36:13]StoreOFDPacket docnum=156273 [12:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1A DE 07 01 40 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 40 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 62 02 00 35 04 06 00 EC 94 83 5E 7F A5 00 96 B6 E0 D7 C6 2F 89 [12:36:13]CheckFolder [12:36:13]dirname=/storage/ofd_packets [12:36:13]CheckFolder done [12:36:13]ProducePacketName [12:36:13]name=ofd_packets/00156273 [12:36:13]NVStorageSaveData ofd_packets/00156273 [12:36:13]File name is /storage/ofd_packets/00156273 [12:36:13]Write 301 bytes [12:36:13]NVStorageSaveData done [12:36:13]OFDSenderStorePacket done [12:36:13]KKMCreateOFDPacket done [12:36:13]NVStorageSaveData kkm_last_timestamp [12:36:13]File name is /storage/kkm_last_timestamp [12:36:13]Write 4 bytes [12:36:13]NVStorageSaveData done [12:36:13]ExternCall_PrintAddStr [12:36:13]wPrintStart [12:36:13]Write to MH i2c: 01 00 00 E1 38 19 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: 01 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: 01 07 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: 01 07 00 E1 38 00 00 00 00 00 FF 0F 2E [12:36:13]RasterBufferAndPrint [12:36:13]line Счет N : (1)99088 [12:36:13]line ИНН: 02508201610067 [12:36:13]line Контрольно-Кассовый Чек [12:36:13]line ПРОДАЖА [12:36:13]line ТРК (МРК, ГНК) : 31 [12:36:13]line Товар: 2710124130 [12:36:13]line Аи-92-К-5 [12:36:13]line 2.990 * 66.90 [12:36:13]line = 200.03 [12:36:13]line НДС 12% НСП 1% [12:36:13]line > о реализуемом товаре [12:36:13]line ОКРУГЛЕНИЕ: -0.03 [12:36:13]line ИТОГО: 200.00 [12:36:13]line Внесено: 200.00 [12:36:13]line СДАЧА: 0.00 [12:36:13]line НСП 1% : 1.77 [12:36:13]line НДС 12% : 21.24 [12:36:13]line Наличными: 200.00 [12:36:13]line Безнал.: 0.00 [12:36:13]line Место: АЗС № 143 "Партнер Нефть" [12:36:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:36:13]line СНО: Общий режим [12:36:13]line Чек 174 26.10.2024 12:36 [12:36:13]line Смена: 536 ФФД: 1.0 [12:36:13]line ЗНМ: 0300000096 [12:36:13]line РНМ: 0000000000091693 [12:36:13]line Версия ККМ: 001 [12:36:13]line ФМ: 0000000000871792 [12:36:13]line ФД: 156273 [12:36:13]line ФПД: 260122603323301 [12:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123616&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156273&fm=260122603323301&tin=02508201610067®Number=0000000000091693&sum=20000 [12:36:14]written 0, free lines is 4095 [12:36:14]Write to MH i2c: 01 00 00 0C 39 45 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: 01 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: 01 07 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: 01 07 00 0C 39 00 00 00 00 00 DA 0C 32 [12:36:14]RasterBufferAndPrint [12:36:14]line [12:36:14]line [12:36:14]line [12:36:14]line [12:36:14]line [12:36:14]written 0, free lines is 3294 [12:36:14]process_action close_receipt done [12:36:14]requested_data is exist [12:36:14]produce_requested_data [12:36:14]requested_item fm.sn is exist - process it [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 11 00 00 [12:36:14]Write to MH i2c: E2 08 00 13 39 80 11 00 00 00 00 00 00 C6 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 17 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 17 00 13 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [12:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:36:14]wFMCommunicate OK [12:36:14]requested_item fd.num is exist - process it [12:36:14]SAM_PROTO_GetFieldsCounters [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 13 00 00 [12:36:14]Write to MH i2c: E2 08 00 14 39 80 13 00 00 00 00 00 00 C9 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 62 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 62 00 14 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 71 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [12:36:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 71 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:14]wFMCommunicate OK [12:36:14]SAM_PROTO_GetFieldsCounters done [12:36:14]requested_item shift.num is exist - process it [12:36:14]requested_item shift.opened is exist - process it [12:36:14]req_shift_opened [12:36:14]FM_GetShiftState [12:36:14]SAM_PROTO_GetShiftState [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 13 01 00 [12:36:14]Write to MH i2c: E2 08 00 15 39 80 13 01 00 00 00 00 00 CB [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 0E 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 0E 00 15 39 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 00 [12:36:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:36:14]wFMCommunicate OK [12:36:14]SAM_PROTO_GetShiftState done [12:36:14]FM_GetShiftState done [12:36:14]req_shift_opened done [12:36:14]requested_item shift.open_date is exist - process it [12:36:14]req_shift_open_date [12:36:14]req_shift_open_date done [12:36:14]produce_requested_data done [12:36:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156273,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:36:14]process_action_free close_receipt [12:36:14]json_value_free [12:36:14]json_value_free done [12:36:14]process_json_proto returns [12:36:14]Send response to host [12:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156273,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:36:14]free response buf [12:36:14]execute_script done [12:36:14]execute_script returns [12:36:14]free content buf [12:36:14]Sock 7.Close socket [12:36:14]Sock 7.Thread stoped [12:36:48]accept exits with 10 [12:36:48]New connection [12:36:48]New thread 3066613092 created [12:36:48]Thread 3066469732 joined [12:36:48]Waiting for new connection... [12:36:48] Sock 10.Parse request [12:36:48]Sock 10.Check first char [12:36:48]Sock 10.First char is OK [12:36:48]request: POST /json_proto HTTP/1.0 [12:36:48]Method: POST [12:36:48]URL: /json_proto [12:36:48]Method is POST - this is cgi request [12:36:48]url: /json_proto [12:36:48]query_string will be loaded in cgi processing [12:36:48]execute_cgi json_proto POST (null) [12:36:48]execute_cgi path=json_proto method=POST [12:36:48]POST find Content-Length [12:36:48]Host: 172.17.63.3:8080 [12:36:48]Content-Length: 677 [12:36:48]Content-Type: application/json [12:36:48] [12:36:48]POST finish read [12:36:48]Found Content-Length = 677 [12:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:48]execute_script... [12:36:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:48]POST & json_proto [12:36:48]process_json_proto [12:36:48]json parsed OK: [12:36:48]protocol is kg_v1.0 [12:36:48]action value=close_receipt [12:36:48]process_action close_receipt [12:36:48]cmd_close_receipt [12:36:48]MH_GetDate [12:36:48]Write to MH i2c: F0 00 00 16 39 3E [12:36:48]Write i2c OK [12:36:48]MH_I2C_Read... [12:36:48]Read from MH i2c: F0 [12:36:48]MH_I2C_Read... [12:36:48]Read from MH i2c: F0 09 00 [12:36:48]MH_I2C_Read... [12:36:48]Read from MH i2c: F0 09 00 16 39 00 64 E2 1C 67 50 D1 6C 64 01 [12:36:48]GetLastDocTimeStamp 1729946176 [12:36:48]current date 1729946212 [12:36:48]FM_GetShiftState [12:36:48]SAM_PROTO_GetShiftState [12:36:48]wFMCommunicate request_size=4 [12:36:48]MH_SAM_APDU [12:36:48]CAPDU: 80 13 01 00 [12:36:48]Write to MH i2c: E2 08 00 17 39 80 13 01 00 00 00 00 00 CD [12:36:48]Write i2c OK [12:36:48]MH_I2C_Read... [12:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:48]Read from MH i2c: E2 [12:36:48]MH_I2C_Read... [12:36:48]Read from MH i2c: E2 0E 00 [12:36:48]MH_I2C_Read... [12:36:48]Read from MH i2c: E2 0E 00 17 39 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 02 [12:36:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:36:48]wFMCommunicate OK [12:36:48]SAM_PROTO_GetShiftState done [12:36:48]FM_GetShiftState done [12:36:48]opened in 1729902702 [12:36:48]opened+sec_in_day 1729989102 [12:36:48]quantity*price = 80012 [12:36:48]sum+1 = 80013 [12:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 175 26.10.2024 12:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156274 ФПД: 33418860311705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123652&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156274&fm=33418860311705&tin=02508201610067®Number=0000000000091693&sum=80000 [12:36:49]StoreToDocumentArchive [12:36:49]shift 536 fd 156274 [12:36:49]save to /storage/0536/doc_00156274 [12:36:49]save last doc name /storage/0536/doc_00156274 to /storage/kkm_last_doc_name [12:36:49]save OK [12:36:49]Clear old archive folders... [12:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:49]tlvbuf is 00E55940 [12:36:49]SAM_PROTO_ClearQueue [12:36:49]wFMCommunicate request_size=4 [12:36:49]MH_SAM_APDU [12:36:49]CAPDU: 80 09 00 00 [12:36:49]Write to MH i2c: E2 08 00 24 39 80 09 00 00 00 00 00 00 CF [12:36:49]Write i2c OK [12:36:49]MH_I2C_Read... [12:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:49]Read from MH i2c: E2 [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: E2 03 00 [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: E2 03 00 24 39 00 90 00 D1 [12:36:49]RAPDU: 90 00 [12:36:49]wFMCommunicate OK [12:36:49]SAM_PROTO_ClearQueue done [12:36:49]KKMCreateOFDPacket [12:36:49]OFDProtocolAddRootSTLVToBuf [12:36:49]FM_MakeSignedData [12:36:49]FM_MakeSignedData [12:36:49]SAM_PROTO_SignData [12:36:49]wFMCommunicate request_size=4 [12:36:49]MH_SAM_APDU [12:36:49]CAPDU: 80 0D 01 02 [12:36:49]Write to MH i2c: E2 08 00 25 39 80 0D 01 02 00 00 00 00 D7 [12:36:49]Write i2c OK [12:36:49]MH_I2C_Read... [12:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:49]Read from MH i2c: E2 [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: E2 03 00 [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: E2 03 00 25 39 00 90 00 D2 [12:36:49]RAPDU: 90 00 [12:36:49]wFMCommunicate OK [12:36:49]wFMCommunicate request_size=255 [12:36:49]MH_SAM_APDU [12:36:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 64 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 62 02 00 35 04 06 00 1E [12:36:49]Write to MH i2c: E2 02 01 26 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 64 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 62 02 00 35 04 06 00 1E 00 00 DD [12:36:49]Write i2c OK [12:36:49]MH_I2C_Read... [12:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:50]Read from MH i2c: E2 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 03 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 03 00 26 39 00 90 00 D3 [12:36:50]RAPDU: 90 00 [12:36:50]wFMCommunicate OK [12:36:50]wFMCommunicate request_size=10 [12:36:50]MH_SAM_APDU [12:36:50]CAPDU: 80 0D 02 02 05 64 EF 4C 34 99 [12:36:50]Write to MH i2c: E2 0D 00 27 39 80 0D 02 02 05 00 64 EF 4C 34 99 00 00 50 [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:50]Read from MH i2c: E2 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 03 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 03 00 27 39 00 90 00 D4 [12:36:50]RAPDU: 90 00 [12:36:50]wFMCommunicate OK [12:36:50]wFMCommunicate request_size=4 [12:36:50]MH_SAM_APDU [12:36:50]CAPDU: 80 0D 03 02 [12:36:50]Write to MH i2c: E2 08 00 28 39 80 0D 03 02 00 00 00 00 DC [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:50]Read from MH i2c: E2 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 0B 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 0B 00 28 39 00 D0 89 0B A1 56 AD 63 97 90 00 DF [12:36:50]RAPDU: D0 89 0B A1 56 AD 63 97 90 00 [12:36:50]wFMCommunicate OK [12:36:50]SAM_PROTO_SignData done [12:36:50]FM_MakeSignedData done [12:36:50]CreateOFDProtocolMessage [12:36:50]wFMCommunicate request_size=4 [12:36:50]MH_SAM_APDU [12:36:50]CAPDU: 80 11 00 00 [12:36:50]Write to MH i2c: E2 08 00 29 39 80 11 00 00 00 00 00 00 DC [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:50]Read from MH i2c: E2 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 17 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 17 00 29 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 31 [12:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:36:50]wFMCommunicate OK [12:36:50]CreateOFDProtocolMessage done [12:36:50]OFDSenderStorePacket 156274 [12:36:50]StoreOFDPacket docnum=156274 [12:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F1 EB 07 01 8D 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 64 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 62 02 00 35 04 06 00 1E 64 EF 4C 34 99 D0 89 0B A1 56 AD 63 97 [12:36:50]CheckFolder [12:36:50]dirname=/storage/ofd_packets [12:36:50]CheckFolder done [12:36:50]ProducePacketName [12:36:50]name=ofd_packets/00156274 [12:36:50]NVStorageSaveData ofd_packets/00156274 [12:36:50]File name is /storage/ofd_packets/00156274 [12:36:50]Write 301 bytes [12:36:50]NVStorageSaveData done [12:36:50]OFDSenderStorePacket done [12:36:50]KKMCreateOFDPacket done [12:36:50]NVStorageSaveData kkm_last_timestamp [12:36:50]File name is /storage/kkm_last_timestamp [12:36:50]Write 4 bytes [12:36:50]NVStorageSaveData done [12:36:50]ExternCall_PrintAddStr [12:36:50]wPrintStart [12:36:50]Write to MH i2c: 01 00 00 2A 39 63 [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: 01 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: 01 07 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: 01 07 00 2A 39 00 00 00 00 00 FF 0F 78 [12:36:50]RasterBufferAndPrint [12:36:50]line Счет N : (1)99089 [12:36:50]line ИНН: 02508201610067 [12:36:50]line Контрольно-Кассовый Чек [12:36:50]line ПРОДАЖА [12:36:50]line ТРК (МРК, ГНК) : 21 [12:36:50]line Товар: 2710124130 [12:36:50]line Аи-92-К-5 [12:36:50]line 11.960 * 66.90 [12:36:50]line = 800.12 [12:36:50]line НДС 12% НСП 1% [12:36:50]line > о реализуемом товаре [12:36:50]line ОКРУГЛЕНИЕ: -0.12 [12:36:50]line ИТОГО: 800.00 [12:36:50]line Внесено: 800.00 [12:36:50]line СДАЧА: 0.00 [12:36:50]line НСП 1% : 7.08 [12:36:50]line НДС 12% : 84.97 [12:36:50]line Наличными: 800.00 [12:36:50]line Безнал.: 0.00 [12:36:50]line Место: АЗС № 143 "Партнер Нефть" [12:36:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:36:50]line СНО: Общий режим [12:36:50]line Чек 175 26.10.2024 12:36 [12:36:50]line Смена: 536 ФФД: 1.0 [12:36:50]line ЗНМ: 0300000096 [12:36:50]line РНМ: 0000000000091693 [12:36:50]line Версия ККМ: 001 [12:36:50]line ФМ: 0000000000871792 [12:36:50]line ФД: 156274 [12:36:50]line ФПД: 33418860311705 [12:36:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123652&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156274&fm=33418860311705&tin=02508201610067®Number=0000000000091693&sum=80000 [12:36:50]written 0, free lines is 4095 [12:36:51]Write to MH i2c: 01 00 00 55 39 8E [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 07 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 07 00 55 39 00 00 00 00 00 E0 0C 81 [12:36:51]RasterBufferAndPrint [12:36:51]line [12:36:51]line [12:36:51]line [12:36:51]line [12:36:51]line [12:36:51]written 0, free lines is 3302 [12:36:51]process_action close_receipt done [12:36:51]requested_data is exist [12:36:51]produce_requested_data [12:36:51]requested_item fm.sn is exist - process it [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 11 00 00 [12:36:51]Write to MH i2c: E2 08 00 5C 39 80 11 00 00 00 00 00 00 0F [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 17 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 17 00 5C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [12:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:36:51]wFMCommunicate OK [12:36:51]requested_item fd.num is exist - process it [12:36:51]SAM_PROTO_GetFieldsCounters [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 13 00 00 [12:36:51]Write to MH i2c: E2 08 00 5D 39 80 13 00 00 00 00 00 00 12 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 62 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 62 00 5D 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 72 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [12:36: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 72 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:51]wFMCommunicate OK [12:36:51]SAM_PROTO_GetFieldsCounters done [12:36:51]requested_item shift.num is exist - process it [12:36:51]requested_item shift.opened is exist - process it [12:36:51]req_shift_opened [12:36:51]FM_GetShiftState [12:36:51]SAM_PROTO_GetShiftState [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 13 01 00 [12:36:51]Write to MH i2c: E2 08 00 5E 39 80 13 01 00 00 00 00 00 14 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 0E 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 0E 00 5E 39 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 49 [12:36:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:36:51]wFMCommunicate OK [12:36:51]SAM_PROTO_GetShiftState done [12:36:51]FM_GetShiftState done [12:36:51]req_shift_opened done [12:36:51]requested_item shift.open_date is exist - process it [12:36:51]req_shift_open_date [12:36:51]req_shift_open_date done [12:36:51]produce_requested_data done [12:36:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156274,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:36:51]process_action_free close_receipt [12:36:51]json_value_free [12:36:51]json_value_free done [12:36:51]process_json_proto returns [12:36:51]Send response to host [12:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156274,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:36:51]free response buf [12:36:51]execute_script done [12:36:51]execute_script returns [12:36:51]free content buf [12:36:51]Sock 10.Close socket [12:36:51]Sock 10.Thread stoped [12:37:59]ConnectInit Can't connect to host [12:37:59]CommunicateWithHost connect error [12:37:59]CommunicateWithHost err = -1 [12:37:59]OFD Sender: Server communicate error [12:37:59]OFD Sender: Processing packet 156272 [packets to send 33, broken 30] [12:37:59]ProducePacketName [12:37:59]name=ofd_packets/00156272 [12:37:59]OFD Sender: To server: pG, [12:37:59]CommunicateWithHost lk.salyk.kg:30040 [12:37:59]ConnectInit lk.salyk.kg [12:37:59]Connected sock=9 [12:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D4 4C 07 01 BC 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 26 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 62 02 00 35 04 06 00 C7 63 5D 5F 16 79 11 56 3F 2F 5C 72 08 5E [12:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D6 1B 47 00 61 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 62 02 00 F4 03 04 00 1C 88 1C 67 B6 04 01 00 00 0D C7 07 7A 4A 1E 5C 2C [12:38:00]CommunicateWithHost err = 0 [12:38:00]CheckOFDResponse [12:38:00]1017 (14) - 77093643461234 [12:38:00]1041 (16) - 0000000000871792 [12:38:00]1040 (4) - 156272 [12:38:00]1012 (4) - 26.10.2024 06:11 [12:38:00]1206 (1) - 0 [12:38:00]OFD Sender: Remove packet 156272 [12:38:00]ProducePacketName [12:38:00]name=ofd_packets/00156272 [12:38:00]NVStorageDeleteData [12:38:00]OFD Sender: Processing packet 156273 [packets to send 32, broken 30] [12:38:00]ProducePacketName [12:38:00]name=ofd_packets/00156273 [12:38:00]OFD Sender: To server: pG, [12:38:00]CommunicateWithHost lk.salyk.kg:30040 [12:38:00]ConnectInit lk.salyk.kg [12:38:00]Connected sock=9 [12:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1A DE 07 01 40 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 40 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 62 02 00 35 04 06 00 EC 94 83 5E 7F A5 00 96 B6 E0 D7 C6 2F 89 [12:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 75 84 47 00 E8 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 62 02 00 F4 03 04 00 1D 88 1C 67 B6 04 01 00 00 F0 CB 1D 94 1F 15 36 1E [12:38:00]CommunicateWithHost err = 0 [12:38:00]CheckOFDResponse [12:38:00]1017 (14) - 77093643461234 [12:38:00]1041 (16) - 0000000000871792 [12:38:00]1040 (4) - 156273 [12:38:00]1012 (4) - 26.10.2024 06:11 [12:38:00]1206 (1) - 0 [12:38:00]OFD Sender: Remove packet 156273 [12:38:00]ProducePacketName [12:38:00]name=ofd_packets/00156273 [12:38:00]NVStorageDeleteData [12:38:01]OFD Sender: Processing packet 156274 [packets to send 31, broken 30] [12:38:01]ProducePacketName [12:38:01]name=ofd_packets/00156274 [12:38:01]OFD Sender: To server: pG, [12:38:01]CommunicateWithHost lk.salyk.kg:30040 [12:38:01]ConnectInit lk.salyk.kg [12:38:01]Connected sock=9 [12:38:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F1 EB 07 01 8D 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 64 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 62 02 00 35 04 06 00 1E 64 EF 4C 34 99 D0 89 0B A1 56 AD 63 97 [12:38:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5F C7 47 00 FC C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 62 02 00 F4 03 04 00 1E 88 1C 67 B6 04 01 00 00 8C 42 57 5B 56 CE F5 EB [12:38:01]CommunicateWithHost err = 0 [12:38:01]CheckOFDResponse [12:38:01]1017 (14) - 77093643461234 [12:38:01]1041 (16) - 0000000000871792 [12:38:01]1040 (4) - 156274 [12:38:01]1012 (4) - 26.10.2024 06:11 [12:38:01]1206 (1) - 0 [12:38:01]OFD Sender: Remove packet 156274 [12:38:01]ProducePacketName [12:38:01]name=ofd_packets/00156274 [12:38:01]NVStorageDeleteData [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:23]accept exits with 7 [12:38:23]New connection [12:38:23]New thread 3066469732 created [12:38:23]Thread 3066613092 joined [12:38:23]Waiting for new connection... [12:38:23] Sock 7.Parse request [12:38:23]Sock 7.Check first char [12:38:23]Sock 7.First char is OK [12:38:23]request: POST /json_proto HTTP/1.0 [12:38:23]Method: POST [12:38:23]URL: /json_proto [12:38:23]Method is POST - this is cgi request [12:38:23]url: /json_proto [12:38:23]query_string will be loaded in cgi processing [12:38:23]execute_cgi json_proto POST (null) [12:38:23]execute_cgi path=json_proto method=POST [12:38:23]POST find Content-Length [12:38:23]Host: 172.17.63.3:8080 [12:38:23]Content-Length: 676 [12:38:23]Content-Type: application/json [12:38:23] [12:38:23]POST finish read [12:38:23]Found Content-Length = 676 [12:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:23]execute_script... [12:38:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:23]POST & json_proto [12:38:23]process_json_proto [12:38:23]json parsed OK: [12:38:23]protocol is kg_v1.0 [12:38:23]action value=close_receipt [12:38:23]process_action close_receipt [12:38:23]cmd_close_receipt [12:38:23]MH_GetDate [12:38:23]Write to MH i2c: F0 00 00 5F 39 87 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: F0 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: F0 09 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: F0 09 00 5F 39 00 C3 E2 1C 67 50 D1 6C 64 A9 [12:38:23]GetLastDocTimeStamp 1729946212 [12:38:23]current date 1729946307 [12:38:23]FM_GetShiftState [12:38:23]SAM_PROTO_GetShiftState [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 13 01 00 [12:38:23]Write to MH i2c: E2 08 00 60 39 80 13 01 00 00 00 00 00 16 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0E 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0E 00 60 39 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4B [12:38:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:38:23]wFMCommunicate OK [12:38:23]SAM_PROTO_GetShiftState done [12:38:23]FM_GetShiftState done [12:38:23]opened in 1729902702 [12:38:23]opened+sec_in_day 1729989102 [12:38:23]quantity*price = 17059 [12:38:23]sum+1 = 17061 [12:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.12 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 176 26.10.2024 12:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156275 ФПД: 270840345352442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123827&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156275&fm=270840345352442&tin=02508201610067®Number=0000000000091693&sum=17000 [12:38:24]StoreToDocumentArchive [12:38:24]shift 536 fd 156275 [12:38:24]save to /storage/0536/doc_00156275 [12:38:24]save last doc name /storage/0536/doc_00156275 to /storage/kkm_last_doc_name [12:38:24]save OK [12:38:24]Clear old archive folders... [12:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:24]tlvbuf is 00D51E80 [12:38:24]SAM_PROTO_ClearQueue [12:38:24]wFMCommunicate request_size=4 [12:38:24]MH_SAM_APDU [12:38:24]CAPDU: 80 09 00 00 [12:38:24]Write to MH i2c: E2 08 00 6D 39 80 09 00 00 00 00 00 00 18 [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:24]Read from MH i2c: E2 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 6D 39 00 90 00 1A [12:38:24]RAPDU: 90 00 [12:38:24]wFMCommunicate OK [12:38:24]SAM_PROTO_ClearQueue done [12:38:24]KKMCreateOFDPacket [12:38:24]OFDProtocolAddRootSTLVToBuf [12:38:24]FM_MakeSignedData [12:38:24]FM_MakeSignedData [12:38:24]SAM_PROTO_SignData [12:38:24]wFMCommunicate request_size=4 [12:38:24]MH_SAM_APDU [12:38:24]CAPDU: 80 0D 01 02 [12:38:24]Write to MH i2c: E2 08 00 6E 39 80 0D 01 02 00 00 00 00 20 [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:24]Read from MH i2c: E2 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 6E 39 00 90 00 1B [12:38:24]RAPDU: 90 00 [12:38:24]wFMCommunicate OK [12:38:24]wFMCommunicate request_size=255 [12:38:24]MH_SAM_APDU [12:38:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C3 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 62 02 00 35 04 06 00 F6 [12:38:24]Write to MH i2c: E2 02 01 6F 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C3 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 62 02 00 35 04 06 00 F6 00 00 15 [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:24]Read from MH i2c: E2 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 6F 39 00 90 00 1C [12:38:24]RAPDU: 90 00 [12:38:24]wFMCommunicate OK [12:38:24]wFMCommunicate request_size=10 [12:38:24]MH_SAM_APDU [12:38:24]CAPDU: 80 0D 02 02 05 53 EE 93 58 FA [12:38:24]Write to MH i2c: E2 0D 00 70 39 80 0D 02 02 05 00 53 EE 93 58 FA 00 00 53 [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:24]Read from MH i2c: E2 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 03 00 70 39 00 90 00 1D [12:38:24]RAPDU: 90 00 [12:38:24]wFMCommunicate OK [12:38:24]wFMCommunicate request_size=4 [12:38:24]MH_SAM_APDU [12:38:24]CAPDU: 80 0D 03 02 [12:38:24]Write to MH i2c: E2 08 00 71 39 80 0D 03 02 00 00 00 00 25 [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:24]Read from MH i2c: E2 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 0B 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 0B 00 71 39 00 DE 1E 14 A4 7D 3E E8 C5 90 00 42 [12:38:24]RAPDU: DE 1E 14 A4 7D 3E E8 C5 90 00 [12:38:24]wFMCommunicate OK [12:38:24]SAM_PROTO_SignData done [12:38:24]FM_MakeSignedData done [12:38:24]CreateOFDProtocolMessage [12:38:24]wFMCommunicate request_size=4 [12:38:24]MH_SAM_APDU [12:38:24]CAPDU: 80 11 00 00 [12:38:24]Write to MH i2c: E2 08 00 72 39 80 11 00 00 00 00 00 00 25 [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:24]Read from MH i2c: E2 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 17 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: E2 17 00 72 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7A [12:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:38:24]wFMCommunicate OK [12:38:24]CreateOFDProtocolMessage done [12:38:24]OFDSenderStorePacket 156275 [12:38:24]StoreOFDPacket docnum=156275 [12:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 35 E3 07 01 17 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C3 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 62 02 00 35 04 06 00 F6 53 EE 93 58 FA DE 1E 14 A4 7D 3E E8 C5 [12:38:24]CheckFolder [12:38:24]dirname=/storage/ofd_packets [12:38:24]CheckFolder done [12:38:24]ProducePacketName [12:38:24]name=ofd_packets/00156275 [12:38:24]NVStorageSaveData ofd_packets/00156275 [12:38:24]File name is /storage/ofd_packets/00156275 [12:38:24]Write 301 bytes [12:38:24]NVStorageSaveData done [12:38:24]OFDSenderStorePacket done [12:38:24]KKMCreateOFDPacket done [12:38:24]NVStorageSaveData kkm_last_timestamp [12:38:24]File name is /storage/kkm_last_timestamp [12:38:24]Write 4 bytes [12:38:24]NVStorageSaveData done [12:38:24]ExternCall_PrintAddStr [12:38:24]wPrintStart [12:38:24]Write to MH i2c: 01 00 00 73 39 AC [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: 01 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: 01 07 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: 01 07 00 73 39 00 00 00 00 00 FF 0F C1 [12:38:24]RasterBufferAndPrint [12:38:24]line Счет N : (1)99090 [12:38:24]line ИНН: 02508201610067 [12:38:24]line Контрольно-Кассовый Чек [12:38:24]line ПРОДАЖА [12:38:24]line ТРК (МРК, ГНК) : 11 [12:38:24]line Товар: 2710124130 [12:38:24]line Аи-92-К-5 [12:38:24]line 2.550 * 66.90 [12:38:24]line = 170.60 [12:38:24]line НДС 12% НСП 1% [12:38:24]line > о реализуемом товаре [12:38:24]line ОКРУГЛЕНИЕ: -0.60 [12:38:24]line ИТОГО: 170.00 [12:38:24]line Внесено: 170.00 [12:38:24]line СДАЧА: 0.00 [12:38:24]line НСП 1% : 1.51 [12:38:24]line НДС 12% : 18.12 [12:38:24]line Наличными: 170.00 [12:38:24]line Безнал.: 0.00 [12:38:24]line Место: АЗС № 143 "Партнер Нефть" [12:38:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:38:24]line СНО: Общий режим [12:38:24]line Чек 176 26.10.2024 12:38 [12:38:24]line Смена: 536 ФФД: 1.0 [12:38:24]line ЗНМ: 0300000096 [12:38:24]line РНМ: 0000000000091693 [12:38:24]line Версия ККМ: 001 [12:38:24]line ФМ: 0000000000871792 [12:38:24]line ФД: 156275 [12:38:24]line ФПД: 270840345352442 [12:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123827&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156275&fm=270840345352442&tin=02508201610067®Number=0000000000091693&sum=17000 [12:38:25]OFD Sender: Processing packet 156275 [packets to send 31, broken 30] [12:38:25]ProducePacketName [12:38:25]name=ofd_packets/00156275 [12:38:25]OFD Sender: To server: pG, [12:38:25]CommunicateWithHost lk.salyk.kg:30040 [12:38:25]ConnectInit lk.salyk.kg [12:38:25]written 0, free lines is 4095 [12:38:25]Connected sock=10 [12:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 35 E3 07 01 17 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C3 E2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 62 02 00 35 04 06 00 F6 53 EE 93 58 FA DE 1E 14 A4 7D 3E E8 C5 [12:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D9 AF 47 00 74 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 62 02 00 F4 03 04 00 36 88 1C 67 B6 04 01 00 00 FC 15 42 22 33 C1 BD 08 [12:38:25]CommunicateWithHost err = 0 [12:38:25]CheckOFDResponse [12:38:25]1017 (14) - 77093643461234 [12:38:25]1041 (16) - 0000000000871792 [12:38:25]1040 (4) - 156275 [12:38:25]1012 (4) - 26.10.2024 06:12 [12:38:25]1206 (1) - 0 [12:38:25]OFD Sender: Remove packet 156275 [12:38:25]ProducePacketName [12:38:25]name=ofd_packets/00156275 [12:38:25]NVStorageDeleteData [12:38:25]Write to MH i2c: 01 00 00 9E 39 D7 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: 01 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: 01 07 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: 01 07 00 9E 39 00 00 00 00 00 E0 0C CA [12:38:25]RasterBufferAndPrint [12:38:25]line [12:38:25]line [12:38:25]line [12:38:25]line [12:38:25]line [12:38:25]written 0, free lines is 3302 [12:38:25]process_action close_receipt done [12:38:25]requested_data is exist [12:38:25]produce_requested_data [12:38:25]requested_item fm.sn is exist - process it [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 11 00 00 [12:38:25]Write to MH i2c: E2 08 00 A5 39 80 11 00 00 00 00 00 00 58 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 17 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 17 00 A5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [12:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:38:25]wFMCommunicate OK [12:38:25]requested_item fd.num is exist - process it [12:38:25]SAM_PROTO_GetFieldsCounters [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 13 00 00 [12:38:25]Write to MH i2c: E2 08 00 A6 39 80 13 00 00 00 00 00 00 5B [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 62 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 62 00 A6 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 73 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [12:38:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 73 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:25]wFMCommunicate OK [12:38:25]SAM_PROTO_GetFieldsCounters done [12:38:25]requested_item shift.num is exist - process it [12:38:25]requested_item shift.opened is exist - process it [12:38:25]req_shift_opened [12:38:25]FM_GetShiftState [12:38:25]SAM_PROTO_GetShiftState [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 13 01 00 [12:38:25]Write to MH i2c: E2 08 00 A7 39 80 13 01 00 00 00 00 00 5D [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 0E 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 0E 00 A7 39 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 92 [12:38:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:38:25]wFMCommunicate OK [12:38:25]SAM_PROTO_GetShiftState done [12:38:25]FM_GetShiftState done [12:38:25]req_shift_opened done [12:38:25]requested_item shift.open_date is exist - process it [12:38:25]req_shift_open_date [12:38:25]req_shift_open_date done [12:38:25]produce_requested_data done [12:38:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156275,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:38:25]process_action_free close_receipt [12:38:25]json_value_free [12:38:25]json_value_free done [12:38:25]process_json_proto returns [12:38:25]Send response to host [12:38:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156275,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:38:25]free response buf [12:38:25]execute_script done [12:38:25]execute_script returns [12:38:25]free content buf [12:38:25]Sock 7.Close socket [12:38:25]Sock 7.Thread stoped [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]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:30]accept exits with 9 [12:42:30]New connection [12:42:30]New thread 3066613092 created [12:42:30]Thread 3066469732 joined [12:42:30]Waiting for new connection... [12:42:30] Sock 9.Parse request [12:42:30]Sock 9.Check first char [12:42:30]Sock 9.First char is OK [12:42:30]request: POST /json_proto HTTP/1.0 [12:42:30]Method: POST [12:42:30]URL: /json_proto [12:42:30]Method is POST - this is cgi request [12:42:30]url: /json_proto [12:42:30]query_string will be loaded in cgi processing [12:42:30]execute_cgi json_proto POST (null) [12:42:30]execute_cgi path=json_proto method=POST [12:42:30]POST find Content-Length [12:42:30]Host: 172.17.63.3:8080 [12:42:30]Content-Length: 681 [12:42:30]Content-Type: application/json [12:42:30] [12:42:30]POST finish read [12:42:30]Found Content-Length = 681 [12:42:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:30]execute_script... [12:42:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:30]POST & json_proto [12:42:30]process_json_proto [12:42:30]json parsed OK: [12:42:30]protocol is kg_v1.0 [12:42:30]action value=close_receipt [12:42:30]process_action close_receipt [12:42:30]cmd_close_receipt [12:42:30]MH_GetDate [12:42:30]Write to MH i2c: F0 00 00 A8 39 D0 [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: F0 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: F0 09 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: F0 09 00 A8 39 00 BA E3 1C 67 50 D1 6C 64 EA [12:42:30]GetLastDocTimeStamp 1729946307 [12:42:30]current date 1729946554 [12:42:30]FM_GetShiftState [12:42:30]SAM_PROTO_GetShiftState [12:42:30]wFMCommunicate request_size=4 [12:42:30]MH_SAM_APDU [12:42:30]CAPDU: 80 13 01 00 [12:42:30]Write to MH i2c: E2 08 00 A9 39 80 13 01 00 00 00 00 00 5F [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 0E 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 0E 00 A9 39 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 94 [12:42:30]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:42:30]wFMCommunicate OK [12:42:30]SAM_PROTO_GetShiftState done [12:42:30]FM_GetShiftState done [12:42:30]opened in 1729902702 [12:42:30]opened+sec_in_day 1729989102 [12:42:30]quantity*price = 150056 [12:42:30]sum+1 = 150058 [12:42:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 177 26.10.2024 12:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156276 ФПД: 179099695792910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124234&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156276&fm=179099695792910&tin=02508201610067®Number=0000000000091693&sum=150000 [12:42:31]StoreToDocumentArchive [12:42:31]shift 536 fd 156276 [12:42:31]save to /storage/0536/doc_00156276 [12:42:31]save last doc name /storage/0536/doc_00156276 to /storage/kkm_last_doc_name [12:42:31]save OK [12:42:31]Clear old archive folders... [12:42:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:31]tlvbuf is 00D21070 [12:42:31]SAM_PROTO_ClearQueue [12:42:31]wFMCommunicate request_size=4 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 09 00 00 [12:42:31]Write to MH i2c: E2 08 00 B6 39 80 09 00 00 00 00 00 00 61 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 B6 39 00 90 00 63 [12:42:31]RAPDU: 90 00 [12:42:31]wFMCommunicate OK [12:42:31]SAM_PROTO_ClearQueue done [12:42:31]KKMCreateOFDPacket [12:42:31]OFDProtocolAddRootSTLVToBuf [12:42:31]FM_MakeSignedData [12:42:31]FM_MakeSignedData [12:42:31]SAM_PROTO_SignData [12:42:31]wFMCommunicate request_size=4 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 0D 01 02 [12:42:31]Write to MH i2c: E2 08 00 B7 39 80 0D 01 02 00 00 00 00 69 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 B7 39 00 90 00 64 [12:42:31]RAPDU: 90 00 [12:42:31]wFMCommunicate OK [12:42:31]wFMCommunicate request_size=255 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 BA E3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 62 02 00 35 04 06 00 A2 [12:42:31]Write to MH i2c: E2 02 01 B8 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 BA E3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 62 02 00 35 04 06 00 A2 00 00 AB [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 B8 39 00 90 00 65 [12:42:31]RAPDU: 90 00 [12:42:31]wFMCommunicate OK [12:42:31]wFMCommunicate request_size=10 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 0D 02 02 05 E3 E5 BF 43 0E [12:42:31]Write to MH i2c: E2 0D 00 B9 39 80 0D 02 02 05 00 E3 E5 BF 43 0E 00 00 4E [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:32]Read from MH i2c: E2 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: E2 03 00 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: E2 03 00 B9 39 00 90 00 66 [12:42:32]RAPDU: 90 00 [12:42:32]wFMCommunicate OK [12:42:32]wFMCommunicate request_size=4 [12:42:32]MH_SAM_APDU [12:42:32]CAPDU: 80 0D 03 02 [12:42:32]Write to MH i2c: E2 08 00 BA 39 80 0D 03 02 00 00 00 00 6E [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:32]Read from MH i2c: E2 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: E2 0B 00 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: E2 0B 00 BA 39 00 FF 4E 47 9C 23 F5 D6 BC 90 00 49 [12:42:32]RAPDU: FF 4E 47 9C 23 F5 D6 BC 90 00 [12:42:32]wFMCommunicate OK [12:42:32]SAM_PROTO_SignData done [12:42:32]FM_MakeSignedData done [12:42:32]CreateOFDProtocolMessage [12:42:32]wFMCommunicate request_size=4 [12:42:32]MH_SAM_APDU [12:42:32]CAPDU: 80 11 00 00 [12:42:32]Write to MH i2c: E2 08 00 BB 39 80 11 00 00 00 00 00 00 6E [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:32]Read from MH i2c: E2 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: E2 17 00 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: E2 17 00 BB 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C3 [12:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:42:32]wFMCommunicate OK [12:42:32]CreateOFDProtocolMessage done [12:42:32]OFDSenderStorePacket 156276 [12:42:32]StoreOFDPacket docnum=156276 [12:42:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D C2 07 01 A6 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 BA E3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 62 02 00 35 04 06 00 A2 E3 E5 BF 43 0E FF 4E 47 9C 23 F5 D6 BC [12:42:32]CheckFolder [12:42:32]dirname=/storage/ofd_packets [12:42:32]CheckFolder done [12:42:32]ProducePacketName [12:42:32]name=ofd_packets/00156276 [12:42:32]NVStorageSaveData ofd_packets/00156276 [12:42:32]File name is /storage/ofd_packets/00156276 [12:42:32]Write 301 bytes [12:42:32]NVStorageSaveData done [12:42:32]OFDSenderStorePacket done [12:42:32]KKMCreateOFDPacket done [12:42:32]NVStorageSaveData kkm_last_timestamp [12:42:32]File name is /storage/kkm_last_timestamp [12:42:32]Write 4 bytes [12:42:32]NVStorageSaveData done [12:42:32]ExternCall_PrintAddStr [12:42:32]wPrintStart [12:42:32]Write to MH i2c: 01 00 00 BC 39 F5 [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 07 00 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 07 00 BC 39 00 00 00 00 00 FF 0F 0A [12:42:32]RasterBufferAndPrint [12:42:32]line Счет N : (1)99091 [12:42:32]line ИНН: 02508201610067 [12:42:32]line Контрольно-Кассовый Чек [12:42:32]line ПРОДАЖА [12:42:32]line ТРК (МРК, ГНК) : 21 [12:42:32]line Товар: 2710124130 [12:42:32]line Аи-92-К-5 [12:42:32]line 22.430 * 66.90 [12:42:32]line = 1500.57 [12:42:32]line НДС 12% НСП 1% [12:42:32]line > о реализуемом товаре [12:42:32]line ОКРУГЛЕНИЕ: -0.57 [12:42:32]line ИТОГО: 1500.00 [12:42:32]line Внесено: 1500.00 [12:42:32]line СДАЧА: 0.00 [12:42:32]line НСП 1% : 13.28 [12:42:32]line НДС 12% : 159.35 [12:42:32]line Наличными: 1500.00 [12:42:32]line Безнал.: 0.00 [12:42:32]line Место: АЗС № 143 "Партнер Нефть" [12:42:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:42:32]line СНО: Общий режим [12:42:32]line Чек 177 26.10.2024 12:42 [12:42:32]line Смена: 536 ФФД: 1.0 [12:42:32]line ЗНМ: 0300000096 [12:42:32]line РНМ: 0000000000091693 [12:42:32]line Версия ККМ: 001 [12:42:32]line ФМ: 0000000000871792 [12:42:32]line ФД: 156276 [12:42:32]line ФПД: 179099695792910 [12:42:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124234&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156276&fm=179099695792910&tin=02508201610067®Number=0000000000091693&sum=150000 [12:42:32]OFD Sender: Processing packet 156276 [packets to send 31, broken 30] [12:42:32]ProducePacketName [12:42:32]name=ofd_packets/00156276 [12:42:32]OFD Sender: To server: pG, [12:42:32]CommunicateWithHost lk.salyk.kg:30040 [12:42:32]ConnectInit lk.salyk.kg [12:42:32]written 0, free lines is 4095 [12:42:32]Connected sock=10 [12:42:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D C2 07 01 A6 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 BA E3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 62 02 00 35 04 06 00 A2 E3 E5 BF 43 0E FF 4E 47 9C 23 F5 D6 BC [12:42:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 78 C8 47 00 91 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 62 02 00 F4 03 04 00 2D 89 1C 67 B6 04 01 00 00 FE CE C1 D6 42 D8 67 1A [12:42:32]CommunicateWithHost err = 0 [12:42:32]CheckOFDResponse [12:42:32]1017 (14) - 77093643461234 [12:42:32]1041 (16) - 0000000000871792 [12:42:32]1040 (4) - 156276 [12:42:32]1012 (4) - 26.10.2024 06:16 [12:42:32]1206 (1) - 0 [12:42:32]OFD Sender: Remove packet 156276 [12:42:32]ProducePacketName [12:42:32]name=ofd_packets/00156276 [12:42:32]NVStorageDeleteData [12:42:32]Write to MH i2c: 01 00 00 E7 39 20 [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 07 00 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 07 00 E7 39 00 00 00 00 00 EE 0C 21 [12:42:32]RasterBufferAndPrint [12:42:32]line [12:42:32]line [12:42:32]line [12:42:32]line [12:42:32]line [12:42:32]written 0, free lines is 3316 [12:42:32]process_action close_receipt done [12:42:32]requested_data is exist [12:42:32]produce_requested_data [12:42:32]requested_item fm.sn is exist - process it [12:42:32]wFMCommunicate request_size=4 [12:42:32]MH_SAM_APDU [12:42:32]CAPDU: 80 11 00 00 [12:42:32]Write to MH i2c: E2 08 00 EE 39 80 11 00 00 00 00 00 00 A1 [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:32]Read from MH i2c: E2 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: E2 17 00 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: E2 17 00 EE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F6 [12:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:42:32]wFMCommunicate OK [12:42:32]requested_item fd.num is exist - process it [12:42:32]SAM_PROTO_GetFieldsCounters [12:42:32]wFMCommunicate request_size=4 [12:42:32]MH_SAM_APDU [12:42:32]CAPDU: 80 13 00 00 [12:42:32]Write to MH i2c: E2 08 00 EF 39 80 13 00 00 00 00 00 00 A4 [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:33]Read from MH i2c: E2 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 62 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 62 00 EF 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 74 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [12:42: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 74 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:33]wFMCommunicate OK [12:42:33]SAM_PROTO_GetFieldsCounters done [12:42:33]requested_item shift.num is exist - process it [12:42:33]requested_item shift.opened is exist - process it [12:42:33]req_shift_opened [12:42:33]FM_GetShiftState [12:42:33]SAM_PROTO_GetShiftState [12:42:33]wFMCommunicate request_size=4 [12:42:33]MH_SAM_APDU [12:42:33]CAPDU: 80 13 01 00 [12:42:33]Write to MH i2c: E2 08 00 F0 39 80 13 01 00 00 00 00 00 A6 [12:42:33]Write i2c OK [12:42:33]MH_I2C_Read... [12:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:33]Read from MH i2c: E2 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 0E 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 0E 00 F0 39 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DB [12:42:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:42:33]wFMCommunicate OK [12:42:33]SAM_PROTO_GetShiftState done [12:42:33]FM_GetShiftState done [12:42:33]req_shift_opened done [12:42:33]requested_item shift.open_date is exist - process it [12:42:33]req_shift_open_date [12:42:33]req_shift_open_date done [12:42:33]produce_requested_data done [12:42:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156276,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:42:33]process_action_free close_receipt [12:42:33]json_value_free [12:42:33]json_value_free done [12:42:33]process_json_proto returns [12:42:33]Send response to host [12:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156276,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:42:33]free response buf [12:42:33]execute_script done [12:42:33]execute_script returns [12:42:33]free content buf [12:42:33]Sock 9.Close socket [12:42:33]Sock 9.Thread stoped [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:44:58]int [12:44:58]Write to MH i2c: 01 00 00 F1 39 2A [12:44:58]*** FLAG_PRN_KEY set [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 07 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 07 00 F1 39 00 08 00 00 00 FF 0F 47 [12:44:58]state=0 [12:44:58]Key pressed [12:44:58]Feed [12:44:58]Write to MH i2c: D8 00 00 F2 39 02 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: D8 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: D8 01 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: D8 01 00 F2 39 00 03 [12:44:58]int [12:44:58]Write to MH i2c: 01 00 00 F3 39 2C [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 07 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 07 00 F3 39 00 48 00 00 00 3D 00 B8 [12:44:58]state=2 [12:44:58]Key pressed [12:44:59]int [12:44:59]Write to MH i2c: 01 00 00 F4 39 2D [12:44:59]*** FLAG_PRN_KEY reset [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 07 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 07 00 F4 39 00 00 00 00 00 F6 0F 39 [12:44:59]state=2 [12:44:59]Stop feed [12:45:03]OFD Sender: No OFD packet to send [12:45:03]int [12:45:03]Write to MH i2c: 01 00 00 F5 39 2E [12:45:03]*** FLAG_PRN_PAP1 set [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 F5 39 00 01 00 00 00 FF 0F 44 [12:45:03]state=0 [12:45:03]No paper [12:45:03]int [12:45:03]Write to MH i2c: 01 00 00 F6 39 2F [12:45:03]*** FLAG_PRN_PAP2 set [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 F6 39 00 03 00 00 00 FF 0F 47 [12:45:03]state=0 [12:45:03]No paper [12:45:03]Cover opened [12:45:06]int [12:45:06]Write to MH i2c: 01 00 00 F7 39 30 [12:45:06]*** FLAG_PRN_PAP2 reset [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: 01 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: 01 07 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: 01 07 00 F7 39 00 01 00 00 00 FF 0F 46 [12:45:06]state=3 [12:45:06]No paper [12:45:06]Cover closed [12:45:06]int [12:45:06]Write to MH i2c: 01 00 00 F8 39 31 [12:45:06]*** FLAG_PRN_PAP1 reset [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: 01 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: 01 07 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: 01 07 00 F8 39 00 00 00 00 00 FF 0F 46 [12:45:06]state=0 [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:24]accept exits with 7 [12:49:24]New connection [12:49:24]New thread 3066469732 created [12:49:24]Thread 3066613092 joined [12:49:24]Waiting for new connection... [12:49:24] Sock 7.Parse request [12:49:24]Sock 7.Check first char [12:49:24]Sock 7.First char is OK [12:49:24]request: POST /json_proto HTTP/1.0 [12:49:24]Method: POST [12:49:24]URL: /json_proto [12:49:24]Method is POST - this is cgi request [12:49:24]url: /json_proto [12:49:24]query_string will be loaded in cgi processing [12:49:24]execute_cgi json_proto POST (null) [12:49:24]execute_cgi path=json_proto method=POST [12:49:24]POST find Content-Length [12:49:24]Host: 172.17.63.3:8080 [12:49:24]Content-Length: 681 [12:49:24]Content-Type: application/json [12:49:24] [12:49:24]POST finish read [12:49:24]Found Content-Length = 681 [12:49:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:24]execute_script... [12:49:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:24]POST & json_proto [12:49:24]process_json_proto [12:49:24]json parsed OK: [12:49:24]protocol is kg_v1.0 [12:49:24]action value=close_receipt [12:49:24]process_action close_receipt [12:49:24]cmd_close_receipt [12:49:24]MH_GetDate [12:49:24]Write to MH i2c: F0 00 00 F9 39 21 [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: F0 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: F0 09 00 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: F0 09 00 F9 39 00 59 E5 1C 67 50 D1 6C 64 DC [12:49:24]GetLastDocTimeStamp 1729946554 [12:49:24]current date 1729946969 [12:49:24]FM_GetShiftState [12:49:24]SAM_PROTO_GetShiftState [12:49:24]wFMCommunicate request_size=4 [12:49:24]MH_SAM_APDU [12:49:24]CAPDU: 80 13 01 00 [12:49:24]Write to MH i2c: E2 08 00 FA 39 80 13 01 00 00 00 00 00 B0 [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:24]Read from MH i2c: E2 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 0E 00 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 0E 00 FA 39 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E5 [12:49:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:49:24]wFMCommunicate OK [12:49:24]SAM_PROTO_GetShiftState done [12:49:24]FM_GetShiftState done [12:49:24]opened in 1729902702 [12:49:24]opened+sec_in_day 1729989102 [12:49:24]quantity*price = 100015 [12:49:24]sum+1 = 100017 [12:49:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 178 26.10.2024 12:49 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156277 ФПД: 271750596802602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124929&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156277&fm=271750596802602&tin=02508201610067®Number=0000000000091693&sum=100000 [12:49:25]StoreToDocumentArchive [12:49:25]shift 536 fd 156277 [12:49:25]save to /storage/0536/doc_00156277 [12:49:25]save last doc name /storage/0536/doc_00156277 to /storage/kkm_last_doc_name [12:49:25]save OK [12:49:25]Clear old archive folders... [12:49:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:25]tlvbuf is 00D720C0 [12:49:25]SAM_PROTO_ClearQueue [12:49:25]wFMCommunicate request_size=4 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 09 00 00 [12:49:25]Write to MH i2c: E2 08 00 07 3A 80 09 00 00 00 00 00 00 B3 [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:25]Read from MH i2c: E2 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 03 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 03 00 07 3A 00 90 00 B5 [12:49:25]RAPDU: 90 00 [12:49:25]wFMCommunicate OK [12:49:25]SAM_PROTO_ClearQueue done [12:49:25]KKMCreateOFDPacket [12:49:25]OFDProtocolAddRootSTLVToBuf [12:49:25]FM_MakeSignedData [12:49:25]FM_MakeSignedData [12:49:25]SAM_PROTO_SignData [12:49:25]wFMCommunicate request_size=4 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 0D 01 02 [12:49:25]Write to MH i2c: E2 08 00 08 3A 80 0D 01 02 00 00 00 00 BB [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:25]Read from MH i2c: E2 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 03 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 03 00 08 3A 00 90 00 B6 [12:49:25]RAPDU: 90 00 [12:49:25]wFMCommunicate OK [12:49:25]wFMCommunicate request_size=255 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 59 E5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 62 02 00 35 04 06 00 F7 [12:49:25]Write to MH i2c: E2 02 01 09 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 59 E5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 62 02 00 35 04 06 00 F7 00 00 A6 [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:26]Read from MH i2c: E2 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 03 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 03 00 09 3A 00 90 00 B7 [12:49:26]RAPDU: 90 00 [12:49:26]wFMCommunicate OK [12:49:26]wFMCommunicate request_size=10 [12:49:26]MH_SAM_APDU [12:49:26]CAPDU: 80 0D 02 02 05 27 DD CA 38 2A [12:49:26]Write to MH i2c: E2 0D 00 0A 3A 80 0D 02 02 05 00 27 DD CA 38 2A 00 00 F8 [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:26]Read from MH i2c: E2 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 03 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 03 00 0A 3A 00 90 00 B8 [12:49:26]RAPDU: 90 00 [12:49:26]wFMCommunicate OK [12:49:26]wFMCommunicate request_size=4 [12:49:26]MH_SAM_APDU [12:49:26]CAPDU: 80 0D 03 02 [12:49:26]Write to MH i2c: E2 08 00 0B 3A 80 0D 03 02 00 00 00 00 C0 [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:26]Read from MH i2c: E2 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 0B 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 0B 00 0B 3A 00 3B 73 7C 3F AD 66 BA 0F 90 00 06 [12:49:26]RAPDU: 3B 73 7C 3F AD 66 BA 0F 90 00 [12:49:26]wFMCommunicate OK [12:49:26]SAM_PROTO_SignData done [12:49:26]FM_MakeSignedData done [12:49:26]CreateOFDProtocolMessage [12:49:26]wFMCommunicate request_size=4 [12:49:26]MH_SAM_APDU [12:49:26]CAPDU: 80 11 00 00 [12:49:26]Write to MH i2c: E2 08 00 0C 3A 80 11 00 00 00 00 00 00 C0 [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:26]Read from MH i2c: E2 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 17 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 17 00 0C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [12:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:49:26]wFMCommunicate OK [12:49:26]CreateOFDProtocolMessage done [12:49:26]OFDSenderStorePacket 156277 [12:49:26]StoreOFDPacket docnum=156277 [12:49:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7E 45 07 01 B7 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 59 E5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 62 02 00 35 04 06 00 F7 27 DD CA 38 2A 3B 73 7C 3F AD 66 BA 0F [12:49:26]CheckFolder [12:49:26]dirname=/storage/ofd_packets [12:49:26]CheckFolder done [12:49:26]ProducePacketName [12:49:26]name=ofd_packets/00156277 [12:49:26]NVStorageSaveData ofd_packets/00156277 [12:49:26]File name is /storage/ofd_packets/00156277 [12:49:26]Write 301 bytes [12:49:26]NVStorageSaveData done [12:49:26]OFDSenderStorePacket done [12:49:26]KKMCreateOFDPacket done [12:49:26]NVStorageSaveData kkm_last_timestamp [12:49:26]File name is /storage/kkm_last_timestamp [12:49:26]Write 4 bytes [12:49:26]NVStorageSaveData done [12:49:26]ExternCall_PrintAddStr [12:49:26]wPrintStart [12:49:26]Write to MH i2c: 01 00 00 0D 3A 47 [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: 01 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: 01 07 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: 01 07 00 0D 3A 00 00 00 00 00 FF 0F 5C [12:49:26]RasterBufferAndPrint [12:49:26]line Счет N : (1)99092 [12:49:26]line ИНН: 02508201610067 [12:49:26]line Контрольно-Кассовый Чек [12:49:26]line ПРОДАЖА [12:49:26]line ТРК (МРК, ГНК) : 31 [12:49:26]line Товар: 2710124130 [12:49:26]line Аи-92-К-5 [12:49:26]line 14.950 * 66.90 [12:49:26]line = 1000.16 [12:49:26]line НДС 12% НСП 1% [12:49:26]line > о реализуемом товаре [12:49:26]line ОКРУГЛЕНИЕ: -0.16 [12:49:26]line ИТОГО: 1000.00 [12:49:26]line Внесено: 1000.00 [12:49:26]line СДАЧА: 0.00 [12:49:26]line НСП 1% : 8.85 [12:49:26]line НДС 12% : 106.21 [12:49:26]line Наличными: 1000.00 [12:49:26]line Безнал.: 0.00 [12:49:26]line Место: АЗС № 143 "Партнер Нефть" [12:49:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:49:26]line СНО: Общий режим [12:49:26]line Чек 178 26.10.2024 12:49 [12:49:26]line Смена: 536 ФФД: 1.0 [12:49:26]line ЗНМ: 0300000096 [12:49:26]line РНМ: 0000000000091693 [12:49:26]line Версия ККМ: 001 [12:49:26]line ФМ: 0000000000871792 [12:49:26]line ФД: 156277 [12:49:26]line ФПД: 271750596802602 [12:49:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124929&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156277&fm=271750596802602&tin=02508201610067®Number=0000000000091693&sum=100000 [12:49:26]OFD Sender: Processing packet 156277 [packets to send 31, broken 30] [12:49:26]ProducePacketName [12:49:26]name=ofd_packets/00156277 [12:49:26]OFD Sender: To server: pG, [12:49:26]CommunicateWithHost lk.salyk.kg:30040 [12:49:26]ConnectInit lk.salyk.kg [12:49:26]written 0, free lines is 4095 [12:49:26]Connected sock=10 [12:49:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7E 45 07 01 B7 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 59 E5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 62 02 00 35 04 06 00 F7 27 DD CA 38 2A 3B 73 7C 3F AD 66 BA 0F [12:49:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 65 23 47 00 CC 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 31 37 39 32 10 04 04 00 75 62 02 00 F4 03 04 00 CB 8A 1C 67 B6 04 01 00 00 F4 46 E6 94 8D 84 54 BF [12:49:27]CommunicateWithHost err = 0 [12:49:27]CheckOFDResponse [12:49:27]1017 (14) - 77093643461234 [12:49:27]1041 (16) - 0000000000871792 [12:49:27]1040 (4) - 156277 [12:49:27]1012 (4) - 26.10.2024 06:23 [12:49:27]1206 (1) - 0 [12:49:27]OFD Sender: Remove packet 156277 [12:49:27]ProducePacketName [12:49:27]name=ofd_packets/00156277 [12:49:27]NVStorageDeleteData [12:49:27]Write to MH i2c: 01 00 00 38 3A 72 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: 01 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: 01 07 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: 01 07 00 38 3A 00 00 00 00 00 E4 0C 69 [12:49:27]RasterBufferAndPrint [12:49:27]line [12:49:27]line [12:49:27]line [12:49:27]line [12:49:27]line [12:49:27]written 0, free lines is 3306 [12:49:27]process_action close_receipt done [12:49:27]requested_data is exist [12:49:27]produce_requested_data [12:49:27]requested_item fm.sn is exist - process it [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 11 00 00 [12:49:27]Write to MH i2c: E2 08 00 3F 3A 80 11 00 00 00 00 00 00 F3 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 17 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 17 00 3F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [12:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:49:27]wFMCommunicate OK [12:49:27]requested_item fd.num is exist - process it [12:49:27]SAM_PROTO_GetFieldsCounters [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 13 00 00 [12:49:27]Write to MH i2c: E2 08 00 40 3A 80 13 00 00 00 00 00 00 F6 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 62 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 62 00 40 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 75 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [12:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 75 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:27]wFMCommunicate OK [12:49:27]SAM_PROTO_GetFieldsCounters done [12:49:27]requested_item shift.num is exist - process it [12:49:27]requested_item shift.opened is exist - process it [12:49:27]req_shift_opened [12:49:27]FM_GetShiftState [12:49:27]SAM_PROTO_GetShiftState [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 13 01 00 [12:49:27]Write to MH i2c: E2 08 00 41 3A 80 13 01 00 00 00 00 00 F8 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 0E 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 0E 00 41 3A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2D [12:49:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:49:27]wFMCommunicate OK [12:49:27]SAM_PROTO_GetShiftState done [12:49:27]FM_GetShiftState done [12:49:27]req_shift_opened done [12:49:27]requested_item shift.open_date is exist - process it [12:49:27]req_shift_open_date [12:49:27]req_shift_open_date done [12:49:27]produce_requested_data done [12:49:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156277,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:49:27]process_action_free close_receipt [12:49:27]json_value_free [12:49:27]json_value_free done [12:49:27]process_json_proto returns [12:49:27]Send response to host [12:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156277,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:49:27]free response buf [12:49:27]execute_script done [12:49:27]execute_script returns [12:49:27]free content buf [12:49:27]Sock 7.Close socket [12:49:27]Sock 7.Thread stoped [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:20]accept exits with 9 [12:52:20]New connection [12:52:20]New thread 3066613092 created [12:52:20]Thread 3066469732 joined [12:52:20]Waiting for new connection... [12:52:20] Sock 9.Parse request [12:52:20]Sock 9.Check first char [12:52:20]Sock 9.First char is OK [12:52:20]request: POST /json_proto HTTP/1.0 [12:52:20]Method: POST [12:52:20]URL: /json_proto [12:52:20]Method is POST - this is cgi request [12:52:20]url: /json_proto [12:52:20]query_string will be loaded in cgi processing [12:52:20]execute_cgi json_proto POST (null) [12:52:20]execute_cgi path=json_proto method=POST [12:52:20]POST find Content-Length [12:52:20]Host: 172.17.63.3:8080 [12:52:20]Content-Length: 676 [12:52:20]Content-Type: application/json [12:52:20] [12:52:20]POST finish read [12:52:20]Found Content-Length = 676 [12:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:20]execute_script... [12:52:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:20]POST & json_proto [12:52:20]process_json_proto [12:52:20]json parsed OK: [12:52:20]protocol is kg_v1.0 [12:52:20]action value=close_receipt [12:52:20]process_action close_receipt [12:52:20]cmd_close_receipt [12:52:20]MH_GetDate [12:52:20]Write to MH i2c: F0 00 00 42 3A 6B [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: F0 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: F0 09 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: F0 09 00 42 3A 00 09 E6 1C 67 50 D1 6C 64 D7 [12:52:20]GetLastDocTimeStamp 1729946969 [12:52:20]current date 1729947145 [12:52:20]FM_GetShiftState [12:52:20]SAM_PROTO_GetShiftState [12:52:20]wFMCommunicate request_size=4 [12:52:20]MH_SAM_APDU [12:52:20]CAPDU: 80 13 01 00 [12:52:20]Write to MH i2c: E2 08 00 43 3A 80 13 01 00 00 00 00 00 FA [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:20]Read from MH i2c: E2 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 0E 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 0E 00 43 3A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2F [12:52:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:52:20]wFMCommunicate OK [12:52:20]SAM_PROTO_GetShiftState done [12:52:20]FM_GetShiftState done [12:52:20]opened in 1729902702 [12:52:20]opened+sec_in_day 1729989102 [12:52:20]quantity*price = 35055 [12:52:20]sum+1 = 35057 [12:52:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 179 26.10.2024 12:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156278 ФПД: 58877926909044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125225&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156278&fm=58877926909044&tin=02508201610067®Number=0000000000091693&sum=35000 [12:52:22]StoreToDocumentArchive [12:52:22]shift 536 fd 156278 [12:52:22]save to /storage/0536/doc_00156278 [12:52:22]save last doc name /storage/0536/doc_00156278 to /storage/kkm_last_doc_name [12:52:22]save OK [12:52:22]Clear old archive folders... [12:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:22]tlvbuf is 00D7D160 [12:52:22]SAM_PROTO_ClearQueue [12:52:22]wFMCommunicate request_size=4 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 09 00 00 [12:52:22]Write to MH i2c: E2 08 00 50 3A 80 09 00 00 00 00 00 00 FC [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 50 3A 00 90 00 FE [12:52:22]RAPDU: 90 00 [12:52:22]wFMCommunicate OK [12:52:22]SAM_PROTO_ClearQueue done [12:52:22]KKMCreateOFDPacket [12:52:22]OFDProtocolAddRootSTLVToBuf [12:52:22]FM_MakeSignedData [12:52:22]FM_MakeSignedData [12:52:22]SAM_PROTO_SignData [12:52:22]wFMCommunicate request_size=4 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 0D 01 02 [12:52:22]Write to MH i2c: E2 08 00 51 3A 80 0D 01 02 00 00 00 00 04 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 51 3A 00 90 00 FF [12:52:22]RAPDU: 90 00 [12:52:22]wFMCommunicate OK [12:52:22]wFMCommunicate request_size=255 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 09 E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 62 02 00 35 04 06 00 35 [12:52:22]Write to MH i2c: E2 02 01 52 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 09 E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 62 02 00 35 04 06 00 35 00 00 F1 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 52 3A 00 90 00 00 [12:52:22]RAPDU: 90 00 [12:52:22]wFMCommunicate OK [12:52:22]wFMCommunicate request_size=10 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 0D 02 02 05 8C 95 EB 24 74 [12:52:22]Write to MH i2c: E2 0D 00 53 3A 80 0D 02 02 05 00 8C 95 EB 24 74 00 00 B5 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 53 3A 00 90 00 01 [12:52:22]RAPDU: 90 00 [12:52:22]wFMCommunicate OK [12:52:22]wFMCommunicate request_size=4 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 0D 03 02 [12:52:22]Write to MH i2c: E2 08 00 54 3A 80 0D 03 02 00 00 00 00 09 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 0B 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 0B 00 54 3A 00 87 C8 85 C8 2B B2 20 3D 90 00 E0 [12:52:22]RAPDU: 87 C8 85 C8 2B B2 20 3D 90 00 [12:52:22]wFMCommunicate OK [12:52:22]SAM_PROTO_SignData done [12:52:22]FM_MakeSignedData done [12:52:22]CreateOFDProtocolMessage [12:52:22]wFMCommunicate request_size=4 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 11 00 00 [12:52:22]Write to MH i2c: E2 08 00 55 3A 80 11 00 00 00 00 00 00 09 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 17 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 17 00 55 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [12:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:52:22]wFMCommunicate OK [12:52:22]CreateOFDProtocolMessage done [12:52:22]OFDSenderStorePacket 156278 [12:52:22]StoreOFDPacket docnum=156278 [12:52:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 12 3B 07 01 3C 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 09 E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 62 02 00 35 04 06 00 35 8C 95 EB 24 74 87 C8 85 C8 2B B2 20 3D [12:52:22]CheckFolder [12:52:22]dirname=/storage/ofd_packets [12:52:22]CheckFolder done [12:52:22]ProducePacketName [12:52:22]name=ofd_packets/00156278 [12:52:22]NVStorageSaveData ofd_packets/00156278 [12:52:22]File name is /storage/ofd_packets/00156278 [12:52:22]Write 301 bytes [12:52:22]NVStorageSaveData done [12:52:22]OFDSenderStorePacket done [12:52:22]KKMCreateOFDPacket done [12:52:22]NVStorageSaveData kkm_last_timestamp [12:52:22]File name is /storage/kkm_last_timestamp [12:52:22]Write 4 bytes [12:52:22]NVStorageSaveData done [12:52:22]ExternCall_PrintAddStr [12:52:22]wPrintStart [12:52:22]Write to MH i2c: 01 00 00 56 3A 90 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: 01 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: 01 07 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: 01 07 00 56 3A 00 00 00 00 00 FF 0F A5 [12:52:22]RasterBufferAndPrint [12:52:22]line Счет N : (1)99093 [12:52:22]line ИНН: 02508201610067 [12:52:22]line Контрольно-Кассовый Чек [12:52:22]line ПРОДАЖА [12:52:22]line ТРК (МРК, ГНК) : 21 [12:52:22]line Товар: 2710124130 [12:52:22]line Аи-92-К-5 [12:52:22]line 5.240 * 66.90 [12:52:22]line = 350.56 [12:52:22]line НДС 12% НСП 1% [12:52:22]line > о реализуемом товаре [12:52:22]line ОКРУГЛЕНИЕ: -0.56 [12:52:22]line ИТОГО: 350.00 [12:52:22]line Внесено: 350.00 [12:52:22]line СДАЧА: 0.00 [12:52:22]line НСП 1% : 3.10 [12:52:22]line НДС 12% : 37.23 [12:52:22]line Наличными: 350.00 [12:52:22]line Безнал.: 0.00 [12:52:22]line Место: АЗС № 143 "Партнер Нефть" [12:52:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:52:22]line СНО: Общий режим [12:52:22]line Чек 179 26.10.2024 12:52 [12:52:22]line Смена: 536 ФФД: 1.0 [12:52:22]line ЗНМ: 0300000096 [12:52:22]line РНМ: 0000000000091693 [12:52:22]line Версия ККМ: 001 [12:52:22]line ФМ: 0000000000871792 [12:52:22]line ФД: 156278 [12:52:22]line ФПД: 58877926909044 [12:52:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125225&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156278&fm=58877926909044&tin=02508201610067®Number=0000000000091693&sum=35000 [12:52:22]OFD Sender: Processing packet 156278 [packets to send 31, broken 30] [12:52:22]ProducePacketName [12:52:22]name=ofd_packets/00156278 [12:52:22]OFD Sender: To server: pG, [12:52:22]CommunicateWithHost lk.salyk.kg:30040 [12:52:22]ConnectInit lk.salyk.kg [12:52:22]written 0, free lines is 4095 [12:52:23]Connected sock=10 [12:52:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 12 3B 07 01 3C 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 09 E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 62 02 00 35 04 06 00 35 8C 95 EB 24 74 87 C8 85 C8 2B B2 20 3D [12:52:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B5 1E 47 00 01 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 31 37 39 32 10 04 04 00 76 62 02 00 F4 03 04 00 7B 8B 1C 67 B6 04 01 00 00 FA C0 7A D5 C2 CF 70 14 [12:52:23]CommunicateWithHost err = 0 [12:52:23]CheckOFDResponse [12:52:23]1017 (14) - 77093643461234 [12:52:23]1041 (16) - 0000000000871792 [12:52:23]1040 (4) - 156278 [12:52:23]1012 (4) - 26.10.2024 06:26 [12:52:23]1206 (1) - 0 [12:52:23]OFD Sender: Remove packet 156278 [12:52:23]ProducePacketName [12:52:23]name=ofd_packets/00156278 [12:52:23]NVStorageDeleteData [12:52:23]Write to MH i2c: 01 00 00 81 3A BB [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 07 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 07 00 81 3A 00 00 00 00 00 F5 0C C3 [12:52:23]RasterBufferAndPrint [12:52:23]line [12:52:23]line [12:52:23]line [12:52:23]line [12:52:23]line [12:52:23]written 0, free lines is 3327 [12:52:23]process_action close_receipt done [12:52:23]requested_data is exist [12:52:23]produce_requested_data [12:52:23]requested_item fm.sn is exist - process it [12:52:23]wFMCommunicate request_size=4 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 11 00 00 [12:52:23]Write to MH i2c: E2 08 00 88 3A 80 11 00 00 00 00 00 00 3C [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 17 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 17 00 88 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 91 [12:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:52:23]wFMCommunicate OK [12:52:23]requested_item fd.num is exist - process it [12:52:23]SAM_PROTO_GetFieldsCounters [12:52:23]wFMCommunicate request_size=4 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 13 00 00 [12:52:23]Write to MH i2c: E2 08 00 89 3A 80 13 00 00 00 00 00 00 3F [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 62 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 62 00 89 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 76 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [12:52:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 76 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:23]wFMCommunicate OK [12:52:23]SAM_PROTO_GetFieldsCounters done [12:52:23]requested_item shift.num is exist - process it [12:52:23]requested_item shift.opened is exist - process it [12:52:23]req_shift_opened [12:52:23]FM_GetShiftState [12:52:23]SAM_PROTO_GetShiftState [12:52:23]wFMCommunicate request_size=4 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 13 01 00 [12:52:23]Write to MH i2c: E2 08 00 8A 3A 80 13 01 00 00 00 00 00 41 [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 0E 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 0E 00 8A 3A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 76 [12:52:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:52:23]wFMCommunicate OK [12:52:23]SAM_PROTO_GetShiftState done [12:52:23]FM_GetShiftState done [12:52:23]req_shift_opened done [12:52:23]requested_item shift.open_date is exist - process it [12:52:23]req_shift_open_date [12:52:23]req_shift_open_date done [12:52:23]produce_requested_data done [12:52:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156278,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:52:23]process_action_free close_receipt [12:52:23]json_value_free [12:52:23]json_value_free done [12:52:23]process_json_proto returns [12:52:23]Send response to host [12:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156278,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:52:23]free response buf [12:52:23]execute_script done [12:52:23]execute_script returns [12:52:23]free content buf [12:52:23]Sock 9.Close socket [12:52:23]Sock 9.Thread stoped [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:06]accept exits with 7 [12:53:06]New connection [12:53:06]New thread 3066469732 created [12:53:06]Thread 3066613092 joined [12:53:06]Waiting for new connection... [12:53:06] Sock 7.Parse request [12:53:06]Sock 7.Check first char [12:53:06]Sock 7.First char is OK [12:53:06]request: POST /json_proto HTTP/1.0 [12:53:06]Method: POST [12:53:06]URL: /json_proto [12:53:06]Method is POST - this is cgi request [12:53:06]url: /json_proto [12:53:06]query_string will be loaded in cgi processing [12:53:06]execute_cgi json_proto POST (null) [12:53:06]execute_cgi path=json_proto method=POST [12:53:06]POST find Content-Length [12:53:06]Host: 172.17.63.3:8080 [12:53:06]Content-Length: 677 [12:53:06]Content-Type: application/json [12:53:06] [12:53:06]POST finish read [12:53:06]Found Content-Length = 677 [12:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:06]execute_script... [12:53:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:06]POST & json_proto [12:53:06]process_json_proto [12:53:06]json parsed OK: [12:53:06]protocol is kg_v1.0 [12:53:06]action value=close_receipt [12:53:06]process_action close_receipt [12:53:06]cmd_close_receipt [12:53:06]MH_GetDate [12:53:06]Write to MH i2c: F0 00 00 8B 3A B4 [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 09 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 09 00 8B 3A 00 36 E6 1C 67 50 D1 6C 64 4D [12:53:06]GetLastDocTimeStamp 1729947145 [12:53:06]current date 1729947190 [12:53:06]FM_GetShiftState [12:53:06]SAM_PROTO_GetShiftState [12:53:06]wFMCommunicate request_size=4 [12:53:06]MH_SAM_APDU [12:53:06]CAPDU: 80 13 01 00 [12:53:06]Write to MH i2c: E2 08 00 8C 3A 80 13 01 00 00 00 00 00 43 [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:06]Read from MH i2c: E2 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 0E 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 0E 00 8C 3A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 78 [12:53:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:53:06]wFMCommunicate OK [12:53:06]SAM_PROTO_GetShiftState done [12:53:06]FM_GetShiftState done [12:53:06]opened in 1729902702 [12:53:06]opened+sec_in_day 1729989102 [12:53:06]quantity*price = 75061 [12:53:06]sum+1 = 75063 [12:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 180 26.10.2024 12:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156279 ФПД: 165773674731893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125310&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156279&fm=165773674731893&tin=02508201610067®Number=0000000000091693&sum=75000 [12:53:07]StoreToDocumentArchive [12:53:07]shift 536 fd 156279 [12:53:07]save to /storage/0536/doc_00156279 [12:53:07]save last doc name /storage/0536/doc_00156279 to /storage/kkm_last_doc_name [12:53:07]save OK [12:53:07]Clear old archive folders... [12:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:07]tlvbuf is B6E874E0 [12:53:07]SAM_PROTO_ClearQueue [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 09 00 00 [12:53:07]Write to MH i2c: E2 08 00 99 3A 80 09 00 00 00 00 00 00 45 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 99 3A 00 90 00 47 [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]SAM_PROTO_ClearQueue done [12:53:07]KKMCreateOFDPacket [12:53:07]OFDProtocolAddRootSTLVToBuf [12:53:07]FM_MakeSignedData [12:53:07]FM_MakeSignedData [12:53:07]SAM_PROTO_SignData [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 01 02 [12:53:07]Write to MH i2c: E2 08 00 9A 3A 80 0D 01 02 00 00 00 00 4D [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 9A 3A 00 90 00 48 [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]wFMCommunicate request_size=255 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 36 E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 62 02 00 35 04 06 00 96 [12:53:07]Write to MH i2c: E2 02 01 9B 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 36 E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 62 02 00 35 04 06 00 96 00 00 E7 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 9B 3A 00 90 00 49 [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]wFMCommunicate request_size=10 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 02 02 05 C5 30 FE D9 75 [12:53:07]Write to MH i2c: E2 0D 00 9C 3A 80 0D 02 02 05 00 C5 30 FE D9 75 00 00 9B [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 9C 3A 00 90 00 4A [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 03 02 [12:53:07]Write to MH i2c: E2 08 00 9D 3A 80 0D 03 02 00 00 00 00 52 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 0B 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 0B 00 9D 3A 00 90 3F 86 11 75 07 DE 5D 90 00 70 [12:53:07]RAPDU: 90 3F 86 11 75 07 DE 5D 90 00 [12:53:07]wFMCommunicate OK [12:53:07]SAM_PROTO_SignData done [12:53:07]FM_MakeSignedData done [12:53:07]CreateOFDProtocolMessage [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 11 00 00 [12:53:07]Write to MH i2c: E2 08 00 9E 3A 80 11 00 00 00 00 00 00 52 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 17 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 17 00 9E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [12:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:53:07]wFMCommunicate OK [12:53:07]CreateOFDProtocolMessage done [12:53:07]OFDSenderStorePacket 156279 [12:53:07]StoreOFDPacket docnum=156279 [12:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FD 99 07 01 7B D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 36 E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 62 02 00 35 04 06 00 96 C5 30 FE D9 75 90 3F 86 11 75 07 DE 5D [12:53:07]CheckFolder [12:53:07]dirname=/storage/ofd_packets [12:53:07]CheckFolder done [12:53:07]ProducePacketName [12:53:07]name=ofd_packets/00156279 [12:53:07]NVStorageSaveData ofd_packets/00156279 [12:53:07]File name is /storage/ofd_packets/00156279 [12:53:07]Write 301 bytes [12:53:07]NVStorageSaveData done [12:53:07]OFDSenderStorePacket done [12:53:07]KKMCreateOFDPacket done [12:53:07]NVStorageSaveData kkm_last_timestamp [12:53:07]File name is /storage/kkm_last_timestamp [12:53:07]Write 4 bytes [12:53:07]NVStorageSaveData done [12:53:07]ExternCall_PrintAddStr [12:53:07]wPrintStart [12:53:07]Write to MH i2c: 01 00 00 9F 3A D9 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: 01 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: 01 07 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: 01 07 00 9F 3A 00 00 00 00 00 FF 0F EE [12:53:07]RasterBufferAndPrint [12:53:07]line Счет N : (1)99094 [12:53:07]line ИНН: 02508201610067 [12:53:07]line Контрольно-Кассовый Чек [12:53:07]line ПРОДАЖА [12:53:07]line ТРК (МРК, ГНК) : 11 [12:53:07]line Товар: 2710124130 [12:53:07]line Аи-92-К-5 [12:53:07]line 11.220 * 66.90 [12:53:07]line = 750.62 [12:53:07]line НДС 12% НСП 1% [12:53:07]line > о реализуемом товаре [12:53:07]line ОКРУГЛЕНИЕ: -0.62 [12:53:07]line ИТОГО: 750.00 [12:53:07]line Внесено: 750.00 [12:53:07]line СДАЧА: 0.00 [12:53:07]line НСП 1% : 6.64 [12:53:07]line НДС 12% : 79.71 [12:53:07]line Наличными: 750.00 [12:53:07]line Безнал.: 0.00 [12:53:07]line Место: АЗС № 143 "Партнер Нефть" [12:53:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:53:07]line СНО: Общий режим [12:53:07]line Чек 180 26.10.2024 12:53 [12:53:07]line Смена: 536 ФФД: 1.0 [12:53:07]line ЗНМ: 0300000096 [12:53:07]line РНМ: 0000000000091693 [12:53:07]line Версия ККМ: 001 [12:53:07]line ФМ: 0000000000871792 [12:53:07]line ФД: 156279 [12:53:07]line ФПД: 165773674731893 [12:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125310&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156279&fm=165773674731893&tin=02508201610067®Number=0000000000091693&sum=75000 [12:53:08]OFD Sender: Processing packet 156279 [packets to send 31, broken 30] [12:53:08]ProducePacketName [12:53:08]name=ofd_packets/00156279 [12:53:08]OFD Sender: To server: pG, [12:53:08]CommunicateWithHost lk.salyk.kg:30040 [12:53:08]ConnectInit lk.salyk.kg [12:53:08]written 0, free lines is 4095 [12:53:08]Write to MH i2c: 01 00 00 CA 3A 04 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 07 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 07 00 CA 3A 00 00 00 00 00 E1 0C F8 [12:53:08]RasterBufferAndPrint [12:53:08]line [12:53:08]line [12:53:08]line [12:53:08]line [12:53:08]line [12:53:08]written 0, free lines is 3303 [12:53:08]process_action close_receipt done [12:53:08]requested_data is exist [12:53:08]produce_requested_data [12:53:08]requested_item fm.sn is exist - process it [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 11 00 00 [12:53:08]Write to MH i2c: E2 08 00 D1 3A 80 11 00 00 00 00 00 00 85 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 D1 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DA [12:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:53:08]wFMCommunicate OK [12:53:08]requested_item fd.num is exist - process it [12:53:08]SAM_PROTO_GetFieldsCounters [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 13 00 00 [12:53:08]Write to MH i2c: E2 08 00 D2 3A 80 13 00 00 00 00 00 00 88 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 62 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 62 00 D2 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 77 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [12:53:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 77 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_GetFieldsCounters done [12:53:08]requested_item shift.num is exist - process it [12:53:08]requested_item shift.opened is exist - process it [12:53:08]req_shift_opened [12:53:08]FM_GetShiftState [12:53:08]SAM_PROTO_GetShiftState [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 13 01 00 [12:53:08]Write to MH i2c: E2 08 00 D3 3A 80 13 01 00 00 00 00 00 8A [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0E 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0E 00 D3 3A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BF [12:53:08]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_GetShiftState done [12:53:08]FM_GetShiftState done [12:53:08]req_shift_opened done [12:53:08]requested_item shift.open_date is exist - process it [12:53:08]req_shift_open_date [12:53:08]req_shift_open_date done [12:53:08]produce_requested_data done [12:53:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156279,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:53:08]process_action_free close_receipt [12:53:08]json_value_free [12:53:08]json_value_free done [12:53:08]process_json_proto returns [12:53:08]Send response to host [12:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156279,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:53:08]free response buf [12:53:08]execute_script done [12:53:08]execute_script returns [12:53:08]free content buf [12:53:08]Sock 7.Close socket [12:53:08]Sock 7.Thread stoped [12:54:01]accept exits with 9 [12:54:01]New connection [12:54:01]New thread 3066613092 created [12:54:01]Thread 3066469732 joined [12:54:01]Waiting for new connection... [12:54:01] Sock 9.Parse request [12:54:01]Sock 9.Check first char [12:54:01]Sock 9.First char is OK [12:54:01]request: POST /json_proto HTTP/1.0 [12:54:01]Method: POST [12:54:01]URL: /json_proto [12:54:01]Method is POST - this is cgi request [12:54:01]url: /json_proto [12:54:01]query_string will be loaded in cgi processing [12:54:01]execute_cgi json_proto POST (null) [12:54:01]execute_cgi path=json_proto method=POST [12:54:01]POST find Content-Length [12:54:01]Host: 172.17.63.3:8080 [12:54:01]Content-Length: 677 [12:54:01]Content-Type: application/json [12:54:01] [12:54:01]POST finish read [12:54:01]Found Content-Length = 677 [12:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:01]execute_script... [12:54:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:01]POST & json_proto [12:54:01]process_json_proto [12:54:01]json parsed OK: [12:54:01]protocol is kg_v1.0 [12:54:01]action value=close_receipt [12:54:01]process_action close_receipt [12:54:01]cmd_close_receipt [12:54:01]MH_GetDate [12:54:01]Write to MH i2c: F0 00 00 D4 3A FD [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: F0 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: F0 09 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: F0 09 00 D4 3A 00 6E E6 1C 67 50 D1 6C 64 CE [12:54:01]GetLastDocTimeStamp 1729947190 [12:54:01]current date 1729947246 [12:54:01]FM_GetShiftState [12:54:01]SAM_PROTO_GetShiftState [12:54:01]wFMCommunicate request_size=4 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 13 01 00 [12:54:01]Write to MH i2c: E2 08 00 D5 3A 80 13 01 00 00 00 00 00 8C [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 0E 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 0E 00 D5 3A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C1 [12:54:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:54:01]wFMCommunicate OK [12:54:01]SAM_PROTO_GetShiftState done [12:54:01]FM_GetShiftState done [12:54:01]opened in 1729902702 [12:54:01]opened+sec_in_day 1729989102 [12:54:01]quantity*price = 70044 [12:54:01]sum+1 = 70045 [12:54:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 181 26.10.2024 12:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156280 ФПД: 24779148466213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125406&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156280&fm=24779148466213&tin=02508201610067®Number=0000000000091693&sum=70000 [12:54:03]StoreToDocumentArchive [12:54:03]shift 536 fd 156280 [12:54:03]save to /storage/0536/doc_00156280 [12:54:03]save last doc name /storage/0536/doc_00156280 to /storage/kkm_last_doc_name [12:54:03]save OK [12:54:03]Clear old archive folders... [12:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:03]tlvbuf is 00D1E6B0 [12:54:03]SAM_PROTO_ClearQueue [12:54:03]wFMCommunicate request_size=4 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 09 00 00 [12:54:03]Write to MH i2c: E2 08 00 E2 3A 80 09 00 00 00 00 00 00 8E [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 03 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 03 00 E2 3A 00 90 00 90 [12:54:03]RAPDU: 90 00 [12:54:03]wFMCommunicate OK [12:54:03]SAM_PROTO_ClearQueue done [12:54:03]KKMCreateOFDPacket [12:54:03]OFDProtocolAddRootSTLVToBuf [12:54:03]FM_MakeSignedData [12:54:03]FM_MakeSignedData [12:54:03]SAM_PROTO_SignData [12:54:03]wFMCommunicate request_size=4 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 0D 01 02 [12:54:03]Write to MH i2c: E2 08 00 E3 3A 80 0D 01 02 00 00 00 00 96 [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 03 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 03 00 E3 3A 00 90 00 91 [12:54:03]RAPDU: 90 00 [12:54:03]wFMCommunicate OK [12:54:03]wFMCommunicate request_size=255 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6E E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 62 02 00 35 04 06 00 16 [12:54:03]Write to MH i2c: E2 02 01 E4 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6E E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 62 02 00 35 04 06 00 16 00 00 D2 [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 03 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 03 00 E4 3A 00 90 00 92 [12:54:03]RAPDU: 90 00 [12:54:03]wFMCommunicate OK [12:54:03]wFMCommunicate request_size=10 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 0D 02 02 05 89 58 57 98 25 [12:54:03]Write to MH i2c: E2 0D 00 E5 3A 80 0D 02 02 05 00 89 58 57 98 25 00 00 98 [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 03 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 03 00 E5 3A 00 90 00 93 [12:54:03]RAPDU: 90 00 [12:54:03]wFMCommunicate OK [12:54:03]wFMCommunicate request_size=4 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 0D 03 02 [12:54:03]Write to MH i2c: E2 08 00 E6 3A 80 0D 03 02 00 00 00 00 9B [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 0B 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 0B 00 E6 3A 00 81 91 BB EA B7 2A 1A A9 90 00 F7 [12:54:03]RAPDU: 81 91 BB EA B7 2A 1A A9 90 00 [12:54:03]wFMCommunicate OK [12:54:03]SAM_PROTO_SignData done [12:54:03]FM_MakeSignedData done [12:54:03]CreateOFDProtocolMessage [12:54:03]wFMCommunicate request_size=4 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 11 00 00 [12:54:03]Write to MH i2c: E2 08 00 E7 3A 80 11 00 00 00 00 00 00 9B [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 17 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 17 00 E7 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F0 [12:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:54:03]wFMCommunicate OK [12:54:03]CreateOFDProtocolMessage done [12:54:03]OFDSenderStorePacket 156280 [12:54:03]StoreOFDPacket docnum=156280 [12:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 C7 07 01 8A 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6E E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 62 02 00 35 04 06 00 16 89 58 57 98 25 81 91 BB EA B7 2A 1A A9 [12:54:03]CheckFolder [12:54:03]dirname=/storage/ofd_packets [12:54:03]CheckFolder done [12:54:03]ProducePacketName [12:54:03]name=ofd_packets/00156280 [12:54:03]NVStorageSaveData ofd_packets/00156280 [12:54:03]File name is /storage/ofd_packets/00156280 [12:54:03]Write 301 bytes [12:54:03]NVStorageSaveData done [12:54:03]OFDSenderStorePacket done [12:54:03]KKMCreateOFDPacket done [12:54:03]NVStorageSaveData kkm_last_timestamp [12:54:03]File name is /storage/kkm_last_timestamp [12:54:03]Write 4 bytes [12:54:03]NVStorageSaveData done [12:54:03]ExternCall_PrintAddStr [12:54:03]wPrintStart [12:54:03]Write to MH i2c: 01 00 00 E8 3A 22 [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: 01 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: 01 07 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: 01 07 00 E8 3A 00 00 00 00 00 FF 0F 37 [12:54:03]RasterBufferAndPrint [12:54:03]line Счет N : (1)99095 [12:54:03]line ИНН: 02508201610067 [12:54:03]line Контрольно-Кассовый Чек [12:54:03]line ПРОДАЖА [12:54:03]line ТРК (МРК, ГНК) : 21 [12:54:03]line Товар: 2710124130 [12:54:03]line Аи-92-К-5 [12:54:03]line 10.470 * 66.90 [12:54:03]line = 700.44 [12:54:03]line НДС 12% НСП 1% [12:54:03]line > о реализуемом товаре [12:54:03]line ОКРУГЛЕНИЕ: -0.44 [12:54:03]line ИТОГО: 700.00 [12:54:03]line Внесено: 700.00 [12:54:03]line СДАЧА: 0.00 [12:54:03]line НСП 1% : 6.20 [12:54:03]line НДС 12% : 74.38 [12:54:03]line Наличными: 700.00 [12:54:03]line Безнал.: 0.00 [12:54:03]line Место: АЗС № 143 "Партнер Нефть" [12:54:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:54:03]line СНО: Общий режим [12:54:03]line Чек 181 26.10.2024 12:54 [12:54:03]line Смена: 536 ФФД: 1.0 [12:54:03]line ЗНМ: 0300000096 [12:54:03]line РНМ: 0000000000091693 [12:54:03]line Версия ККМ: 001 [12:54:03]line ФМ: 0000000000871792 [12:54:03]line ФД: 156280 [12:54:03]line ФПД: 24779148466213 [12:54:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125406&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156280&fm=24779148466213&tin=02508201610067®Number=0000000000091693&sum=70000 [12:54:03]written 0, free lines is 4095 [12:54:04]Write to MH i2c: 01 00 00 13 3B 4E [12:54:04]Write i2c OK [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: 01 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: 01 07 00 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: 01 07 00 13 3B 00 00 00 00 00 E7 0C 48 [12:54:04]RasterBufferAndPrint [12:54:04]line [12:54:04]line [12:54:04]line [12:54:04]line [12:54:04]line [12:54:04]written 0, free lines is 3310 [12:54:04]process_action close_receipt done [12:54:04]requested_data is exist [12:54:04]produce_requested_data [12:54:04]requested_item fm.sn is exist - process it [12:54:04]wFMCommunicate request_size=4 [12:54:04]MH_SAM_APDU [12:54:04]CAPDU: 80 11 00 00 [12:54:04]Write to MH i2c: E2 08 00 1A 3B 80 11 00 00 00 00 00 00 CF [12:54:04]Write i2c OK [12:54:04]MH_I2C_Read... [12:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:04]Read from MH i2c: E2 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 17 00 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 17 00 1A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [12:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:54:04]wFMCommunicate OK [12:54:04]requested_item fd.num is exist - process it [12:54:04]SAM_PROTO_GetFieldsCounters [12:54:04]wFMCommunicate request_size=4 [12:54:04]MH_SAM_APDU [12:54:04]CAPDU: 80 13 00 00 [12:54:04]Write to MH i2c: E2 08 00 1B 3B 80 13 00 00 00 00 00 00 D2 [12:54:04]Write i2c OK [12:54:04]MH_I2C_Read... [12:54:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:04]Read from MH i2c: E2 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 62 00 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 62 00 1B 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 78 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [12:54:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 78 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:04]wFMCommunicate OK [12:54:04]SAM_PROTO_GetFieldsCounters done [12:54:04]requested_item shift.num is exist - process it [12:54:04]requested_item shift.opened is exist - process it [12:54:04]req_shift_opened [12:54:04]FM_GetShiftState [12:54:04]SAM_PROTO_GetShiftState [12:54:04]wFMCommunicate request_size=4 [12:54:04]MH_SAM_APDU [12:54:04]CAPDU: 80 13 01 00 [12:54:04]Write to MH i2c: E2 08 00 1C 3B 80 13 01 00 00 00 00 00 D4 [12:54:04]Write i2c OK [12:54:04]MH_I2C_Read... [12:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:04]Read from MH i2c: E2 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 0E 00 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 0E 00 1C 3B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 09 [12:54:04]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:54:04]wFMCommunicate OK [12:54:04]SAM_PROTO_GetShiftState done [12:54:04]FM_GetShiftState done [12:54:04]req_shift_opened done [12:54:04]requested_item shift.open_date is exist - process it [12:54:04]req_shift_open_date [12:54:04]req_shift_open_date done [12:54:04]produce_requested_data done [12:54:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156280,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:54:04]process_action_free close_receipt [12:54:04]json_value_free [12:54:04]json_value_free done [12:54:04]process_json_proto returns [12:54:04]Send response to host [12:54:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156280,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:54:04]free response buf [12:54:04]execute_script done [12:54:04]execute_script returns [12:54:04]free content buf [12:54:04]Sock 9.Close socket [12:54:04]Sock 9.Thread stoped [12:55:18]ConnectInit Can't connect to host [12:55:18]CommunicateWithHost connect error [12:55:18]CommunicateWithHost err = -1 [12:55:18]OFD Sender: Server communicate error [12:55:19]OFD Sender: Processing packet 156279 [packets to send 32, broken 30] [12:55:19]ProducePacketName [12:55:19]name=ofd_packets/00156279 [12:55:19]OFD Sender: To server: pG, [12:55:19]CommunicateWithHost lk.salyk.kg:30040 [12:55:19]ConnectInit lk.salyk.kg [12:55:19]Connected sock=9 [12:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FD 99 07 01 7B D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 36 E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 62 02 00 35 04 06 00 96 C5 30 FE D9 75 90 3F 86 11 75 07 DE 5D [12:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 08 42 47 00 2B 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 62 02 00 F4 03 04 00 2C 8C 1C 67 B6 04 01 00 00 8F 45 71 67 8B 09 F4 84 [12:55:19]CommunicateWithHost err = 0 [12:55:19]CheckOFDResponse [12:55:19]1017 (14) - 77093643461234 [12:55:19]1041 (16) - 0000000000871792 [12:55:19]1040 (4) - 156279 [12:55:19]1012 (4) - 26.10.2024 06:29 [12:55:19]1206 (1) - 0 [12:55:19]OFD Sender: Remove packet 156279 [12:55:19]ProducePacketName [12:55:19]name=ofd_packets/00156279 [12:55:19]NVStorageDeleteData [12:55:19]OFD Sender: Processing packet 156280 [packets to send 31, broken 30] [12:55:19]ProducePacketName [12:55:19]name=ofd_packets/00156280 [12:55:19]OFD Sender: To server: pG, [12:55:19]CommunicateWithHost lk.salyk.kg:30040 [12:55:19]ConnectInit lk.salyk.kg [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]/dev/ttyS4 opened [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 92 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 37 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572592 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 45094436+1684853072=1729947508 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 92 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 38 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 75 E7 1C 67 50 D1 6C 64 CF [12:58:29]Current date/time: 26.10.2024 12:58 [12:58:29]FM_Init [12:58:29]wFMConnect [12:58:29]MH_SAM_On [12:58:29]Write to MH i2c: E0 00 00 08 00 E7 [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_init finished! [12:58:29]*** atr: [12:58:29]*** 0F 3B D5 18 FF 81 91 FE [12:58:29]*** 1F C3 80 73 C8 21 10 0A [12:58:29]*** 00 00 00 00 00 00 00 00 [12:58:29]*** 00 00 00 00 00 00 00 00 [12:58:29]*** 00 00 00 00 00 00 00 00 [12:58:29]*** 00 00 00 00 00 00 00 00 [12:58:29]*** 00 00 00 00 00 00 00 00 [12:58:29]*** 00 00 00 00 00 00 00 00 [12:58:29]Read from MH i2c: E0 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E0 10 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:58:29]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:58:29]wFMCommunicate request_size=10 [12:58:29]MH_SAM_APDU [12:58:29]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:58:29]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 03 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:58:29]RAPDU: 90 00 [12:58:29]wFMCommunicate OK [12:58:29]wFMCommunicate request_size=4 [12:58:29]MH_SAM_APDU [12:58:29]CAPDU: 80 11 00 00 [12:58:29]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 17 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D9 [12:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:58:29]wFMCommunicate OK [12:58:29]Detected FM SN is 0000000000871792 [12:58:29]Stored FM SN is 0000000000871792 [12:58:29]wFMCommunicate request_size=9 [12:58:29]MH_SAM_APDU [12:58:29]CAPDU: 80 16 00 00 04 59 28 00 00 [12:58:29]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 59 28 00 00 00 00 13 [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 03 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:58:29]RAPDU: 90 00 [12:58:29]wFMCommunicate OK [12:58:29]FM PIN OK [12:58:29]wFMCommunicate request_size=8 [12:58:29]MH_SAM_APDU [12:58:29]CAPDU: 80 14 04 00 03 02 00 01 [12:58:29]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 03 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:58:29]RAPDU: 90 00 [12:58:29]wFMCommunicate OK [12:58:29]wFMCommunicate request_size=13 [12:58:29]MH_SAM_APDU [12:58:29]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:58:29]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 03 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:58:29]RAPDU: 90 00 [12:58:29]wFMCommunicate OK [12:58:29]wFMCommunicate request_size=4 [12:58:29]MH_SAM_APDU [12:58:29]CAPDU: 80 11 00 00 [12:58:29]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 17 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DD [12:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:58:29]wFMCommunicate OK [12:58:29]DocumentArchiveInit [12:58:29]Start Httpd... [12:58:29]Httpd thread 3067264356 created [12:58:29]Write to MH i2c: 01 00 00 0F 00 0F [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: 01 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: 01 07 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:58:29]MH Int Process started [12:58:29]Allocated Socket 7 [12:58:29]Bind OK [12:58:29]Listen OK [12:58:29]httpd running on port 8080 [12:58:29]Waiting for new connection... [12:58:29]OFD Sender: Processing packet 156280 [packets to send 31, broken 30] [12:58:29]ProducePacketName [12:58:29]name=ofd_packets/00156280 [12:58:29]OFD Sender: To server: pG, [12:58:29]CommunicateWithHost lk.salyk.kg:30040 [12:58:29]ConnectInit lk.salyk.kg [12:58:34]ConnectInit Can't take IP for lk.salyk.kg [12:58:34]CommunicateWithHost connect error [12:58:34]CommunicateWithHost err = -1 [12:58:34]OFD Sender: Server communicate error [12:58:37]accept exits with 8 [12:58:37]New connection [12:58:37]New thread 3066977636 created [12:58:37]Waiting for new connection... [12:58:37] Sock 8.Parse request [12:58:37]Sock 8.Check first char [12:58:37]Sock 8.First char is OK [12:58:37]request: POST /json_proto HTTP/1.0 [12:58:37]Method: POST [12:58:37]URL: /json_proto [12:58:37]Method is POST - this is cgi request [12:58:37]url: /json_proto [12:58:37]query_string will be loaded in cgi processing [12:58:37]execute_cgi json_proto POST (null) [12:58:37]execute_cgi path=json_proto method=POST [12:58:37]POST find Content-Length [12:58:37]Host: 172.17.63.3:8080 [12:58:37]Content-Length: 215 [12:58:37]Content-Type: application/json [12:58:37] [12:58:37]POST finish read [12:58:37]Found Content-Length = 215 [12:58:37]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" ] } } [12:58:37]execute_script... [12:58:37]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" ] } } [12:58:37]POST & json_proto [12:58:37]process_json_proto [12:58:37]json parsed OK: [12:58:37]protocol is kg_v1.0 [12:58:37]action value=get_value [12:58:37]process_action get_value [12:58:37]cmd_get_value [12:58:37]process_action get_value done [12:58:37]requested_data is exist [12:58:37]produce_requested_data [12:58:37]requested_item kkm.sn is exist - process it [12:58:37]requested_item kkm.ver is exist - process it [12:58:37]requested_item fm.sn is exist - process it [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 11 00 00 [12:58:37]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 17 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DF [12:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:58:37]wFMCommunicate OK [12:58:37]requested_item fd.num is exist - process it [12:58:37]SAM_PROTO_GetFieldsCounters [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 13 00 00 [12:58:37]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 62 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 78 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [12:58: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 78 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:37]wFMCommunicate OK [12:58:37]SAM_PROTO_GetFieldsCounters done [12:58:37]requested_item shift.num is exist - process it [12:58:37]requested_item shift.opened is exist - process it [12:58:37]req_shift_opened [12:58:37]FM_GetShiftState [12:58:37]SAM_PROTO_GetShiftState [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 13 01 00 [12:58:37]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 0E 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C4 [12:58:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:58:37]wFMCommunicate OK [12:58:37]SAM_PROTO_GetShiftState done [12:58:37]FM_GetShiftState done [12:58:37]req_shift_opened done [12:58:37]requested_item shift.open_date is exist - process it [12:58:37]req_shift_open_date [12:58:37]req_shift_open_date done [12:58:37]produce_requested_data done [12:58:37]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156280,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:58:37]process_action_free get_value [12:58:37]json_value_free [12:58:37]json_value_free done [12:58:37]process_json_proto returns [12:58:37]Send response to host [12:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156280,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:58:37]free response buf [12:58:37]execute_script done [12:58:37]execute_script returns [12:58:37]free content buf [12:58:37]Sock 8.Close socket [12:58:37]Sock 8.Thread stoped [12:58:37]accept exits with 6 [12:58:37]New connection [12:58:37]New thread 3066834276 created [12:58:37]Thread 3066977636 joined [12:58:37]Waiting for new connection... [12:58:37] Sock 6.Parse request [12:58:37]Sock 6.Check first char [12:58:37]Sock 6.First char is OK [12:58:37]request: POST /json_proto HTTP/1.0 [12:58:37]Method: POST [12:58:37]URL: /json_proto [12:58:37]Method is POST - this is cgi request [12:58:37]url: /json_proto [12:58:37]query_string will be loaded in cgi processing [12:58:37]execute_cgi json_proto POST (null) [12:58:37]execute_cgi path=json_proto method=POST [12:58:37]POST find Content-Length [12:58:37]Host: 172.17.63.3:8080 [12:58:37]Content-Length: 331 [12:58:37]Content-Type: application/json [12:58:37] [12:58:37]POST finish read [12:58:37]Found Content-Length = 331 [12:58: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" ] } } [12:58:37]execute_script... [12:58: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" ] } } [12:58:37]POST & json_proto [12:58:37]process_json_proto [12:58:37]json parsed OK: [12:58:37]protocol is kg_v1.0 [12:58:37]action value=get_value [12:58:37]process_action get_value [12:58:37]cmd_get_value [12:58:37]process_action get_value done [12:58:37]requested_data is exist [12:58:37]produce_requested_data [12:58:37]requested_item fm.sale.total is exist - process it [12:58:37]SAM_PROTO_GetFMData [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 13 03 00 [12:58:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:58:38]Read from MH i2c: E2 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 FD 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 48 5E 02 00 69 04 A3 00 6F 04 04 00 39 5E 02 00 B1 04 05 00 C3 3F EB 70 02 70 04 05 00 A4 55 D4 2F 02 72 04 04 00 1F EA 16 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C7 56 64 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 40 88 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 94 [12:58:38]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 48 5E 02 00 69 04 A3 00 6F 04 04 00 39 5E 02 00 B1 04 05 00 C3 3F EB 70 02 70 04 05 00 A4 55 D4 2F 02 72 04 04 00 1F EA 16 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C7 56 64 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 40 88 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [12:58:38]wFMCommunicate OK [12:58:38]wFMCommunicate request_size=4 [12:58:38]MH_SAM_APDU [12:58:38]CAPDU: 80 17 00 00 [12:58:38]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:58:38]Read from MH i2c: E2 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 FD 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 03 [12:58:38]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:58:38]wFMCommunicate OK [12:58:38]wFMCommunicate request_size=4 [12:58:38]MH_SAM_APDU [12:58:38]CAPDU: 80 17 00 00 [12:58:38]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:58:38]Read from MH i2c: E2 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 FD 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [12:58:38]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:58:38]wFMCommunicate OK [12:58:38]wFMCommunicate request_size=4 [12:58:38]MH_SAM_APDU [12:58:38]CAPDU: 80 17 00 00 [12:58:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 FD 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [12:58:39]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:58:39]wFMCommunicate OK [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 17 00 00 [12:58:39]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 DF 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [12:58:39]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:58:39]wFMCommunicate OK [12:58:39]SAM_PROTO_GetFMData done [12:58:39]requested_item fm.sale_refund.total is exist - process it [12:58:39]requested_item fm.buy.total is exist - process it [12:58:39]requested_item shift.sale.total is exist - process it [12:58:39]SAM_PROTO_GetShiftData [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 13 02 00 [12:58:39]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]OFD Sender: Processing packet 156280 [packets to send 31, broken 30] [12:58:39]ProducePacketName [12:58:39]name=ofd_packets/00156280 [12:58:39]OFD Sender: To server: pG, [12:58:39]CommunicateWithHost lk.salyk.kg:30040 [12:58:39]ConnectInit lk.salyk.kg [12:58:39]Connected sock=10 [12:58:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 C7 07 01 8A 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6E E6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 62 02 00 35 04 06 00 16 89 58 57 98 25 81 91 BB EA B7 2A 1A A9 [12:58:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 FD 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 B5 00 00 00 69 04 9C 00 6F 04 04 00 B5 00 00 00 B1 04 03 00 6B 39 EF 70 04 03 00 5C 3D C5 72 04 03 00 0F FC 29 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 58 69 19 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 1C 1E 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 0B [12:58:39]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 B5 00 00 00 69 04 9C 00 6F 04 04 00 B5 00 00 00 B1 04 03 00 6B 39 EF 70 04 03 00 5C 3D C5 72 04 03 00 0F FC 29 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 58 69 19 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 1C 1E 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [12:58:39]wFMCommunicate OK [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 17 00 00 [12:58:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5B DB 47 00 4C 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 31 37 39 32 10 04 04 00 78 62 02 00 F4 03 04 00 F0 8C 1C 67 B6 04 01 00 00 9A 0F CA 4A 44 CB 37 ED [12:58:39]CommunicateWithHost err = 0 [12:58:39]CheckOFDResponse [12:58:39]1017 (14) - 77093643461234 [12:58:39]1041 (16) - 0000000000871792 [12:58:39]1040 (4) - 156280 [12:58:39]1012 (4) - 26.10.2024 06:32 [12:58:39]1206 (1) - 0 [12:58:39]OFD Sender: Remove packet 156280 [12:58:39]ProducePacketName [12:58:39]name=ofd_packets/00156280 [12:58:39]NVStorageDeleteData [12:58:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 FD 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [12:58:40]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [12:58:40]wFMCommunicate OK [12:58:40]wFMCommunicate request_size=4 [12:58:40]MH_SAM_APDU [12:58:40]CAPDU: 80 17 00 00 [12:58:40]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:58:40]Write i2c OK [12:58:40]MH_I2C_Read... [12:58:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 FD 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [12:58:40]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [12:58:40]wFMCommunicate OK [12:58:40]wFMCommunicate request_size=4 [12:58:40]MH_SAM_APDU [12:58:40]CAPDU: 80 17 00 00 [12:58:40]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:58:40]OFD Sender: No OFD packet to send [12:58:40]Write i2c OK [12:58:40]MH_I2C_Read... [12:58:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 FD 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [12:58:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:58:40]wFMCommunicate OK [12:58:40]wFMCommunicate request_size=4 [12:58:40]MH_SAM_APDU [12:58:40]CAPDU: 80 17 00 00 [12:58:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:58:40]Write i2c OK [12:58:40]MH_I2C_Read... [12:58:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 CC 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [12:58:40]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:58:40]wFMCommunicate OK [12:58:40]SAM_PROTO_GetShiftData done [12:58:40]requested_item shift.sale.total_cash is exist - process it [12:58:40]requested_item shift.sale_refund.total is exist - process it [12:58:40]requested_item shift.sale_refund.total_cash is exist - process it [12:58:40]requested_item shift.buy.total is exist - process it [12:58:40]requested_item shift.buy.total_cash is exist - process it [12:58:40]produce_requested_data done [12:58:40]produce_requested_data return {"fm.sale.total":104844000.67,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":156778.03,"shift.sale.total_cash":129263.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} [12:58:40]process_action_free get_value [12:58:40]json_value_free [12:58:40]json_value_free done [12:58:40]process_json_proto returns [12:58:40]Send response to host [12:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104844000.67,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":156778.03,"shift.sale.total_cash":129263.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}}} [12:58:40]free response buf [12:58:40]execute_script done [12:58:40]execute_script returns [12:58:40]free content buf [12:58:40]Sock 6.Close socket [12:58:40]Sock 6.Thread stoped [12:58:41]accept exits with 8 [12:58:41]New connection [12:58:41]New thread 3066977636 created [12:58:41]Thread 3066834276 joined [12:58:41]Waiting for new connection... [12:58:41] Sock 8.Parse request [12:58:41]Sock 8.Check first char [12:58:41]Sock 8.First char is OK [12:58:41]request: POST /json_proto HTTP/1.0 [12:58:41]Method: POST [12:58:41]URL: /json_proto [12:58:41]Method is POST - this is cgi request [12:58:41]url: /json_proto [12:58:41]query_string will be loaded in cgi processing [12:58:41]execute_cgi json_proto POST (null) [12:58:41]execute_cgi path=json_proto method=POST [12:58:41]POST find Content-Length [12:58:41]Host: 172.17.63.3:8080 [12:58:41]Content-Length: 676 [12:58:41]Content-Type: application/json [12:58:41] [12:58:41]POST finish read [12:58:41]Found Content-Length = 676 [12:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:41]execute_script... [12:58:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:41]POST & json_proto [12:58:41]process_json_proto [12:58:41]json parsed OK: [12:58:41]protocol is kg_v1.0 [12:58:41]action value=close_receipt [12:58:41]process_action close_receipt [12:58:41]cmd_close_receipt [12:58:41]MH_GetDate [12:58:41]Write to MH i2c: F0 00 00 1D 00 0C [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 09 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 09 00 1D 00 00 81 E7 1C 67 50 D1 6C 64 F1 [12:58:41]GetLastDocTimeStamp 1729947246 [12:58:41]current date 1729947521 [12:58:41]FM_GetShiftState [12:58:41]SAM_PROTO_GetShiftState [12:58:41]wFMCommunicate request_size=4 [12:58:41]MH_SAM_APDU [12:58:41]CAPDU: 80 13 01 00 [12:58:41]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:41]Read from MH i2c: E2 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 0E 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D0 [12:58:41]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:58:41]wFMCommunicate OK [12:58:41]SAM_PROTO_GetShiftState done [12:58:41]FM_GetShiftState done [12:58:41]opened in 1729902702 [12:58:41]opened+sec_in_day 1729989102 [12:58:41]quantity*price = 30038 [12:58:41]sum+1 = 30039 [12:58:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 182 26.10.2024 12:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156281 ФПД: 124195164206320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125841&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156281&fm=124195164206320&tin=02508201610067®Number=0000000000091693&sum=30000 [12:58:42]StoreToDocumentArchive [12:58:42]shift 536 fd 156281 [12:58:42]save to /storage/0536/doc_00156281 [12:58:42]save last doc name /storage/0536/doc_00156281 to /storage/kkm_last_doc_name [12:58:42]save OK [12:58:42]Clear old archive folders... [12:58:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:42]tlvbuf is 016D1520 [12:58:42]SAM_PROTO_ClearQueue [12:58:42]wFMCommunicate request_size=4 [12:58:42]MH_SAM_APDU [12:58:42]CAPDU: 80 09 00 00 [12:58:42]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:42]Read from MH i2c: E2 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 03 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:58:42]RAPDU: 90 00 [12:58:42]wFMCommunicate OK [12:58:42]SAM_PROTO_ClearQueue done [12:58:42]KKMCreateOFDPacket [12:58:42]OFDProtocolAddRootSTLVToBuf [12:58:42]FM_MakeSignedData [12:58:42]FM_MakeSignedData [12:58:42]SAM_PROTO_SignData [12:58:42]wFMCommunicate request_size=4 [12:58:42]MH_SAM_APDU [12:58:42]CAPDU: 80 0D 01 02 [12:58:42]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:42]Read from MH i2c: E2 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 03 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:58:42]RAPDU: 90 00 [12:58:42]wFMCommunicate OK [12:58:42]wFMCommunicate request_size=255 [12:58:42]MH_SAM_APDU [12:58:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 81 E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 62 02 00 35 04 06 00 70 [12:58:42]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 81 E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 62 02 00 35 04 06 00 70 00 00 35 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=10 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 02 02 05 F4 70 A5 34 F0 [12:58:43]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 F4 70 A5 34 F0 00 00 DF [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 03 02 [12:58:43]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 0B 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 0B 00 2F 00 00 68 31 CC FC 28 B7 61 31 90 00 7D [12:58:43]RAPDU: 68 31 CC FC 28 B7 61 31 90 00 [12:58:43]wFMCommunicate OK [12:58:43]SAM_PROTO_SignData done [12:58:43]FM_MakeSignedData done [12:58:43]CreateOFDProtocolMessage [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 11 00 00 [12:58:43]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 17 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [12:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:58:43]wFMCommunicate OK [12:58:43]CreateOFDProtocolMessage done [12:58:43]OFDSenderStorePacket 156281 [12:58:43]StoreOFDPacket docnum=156281 [12:58:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D 7F 07 01 D1 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 81 E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 62 02 00 35 04 06 00 70 F4 70 A5 34 F0 68 31 CC FC 28 B7 61 31 [12:58:43]CheckFolder [12:58:43]dirname=/storage/ofd_packets [12:58:43]CheckFolder done [12:58:43]ProducePacketName [12:58:43]name=ofd_packets/00156281 [12:58:43]NVStorageSaveData ofd_packets/00156281 [12:58:43]File name is /storage/ofd_packets/00156281 [12:58:43]Write 301 bytes [12:58:43]NVStorageSaveData done [12:58:43]OFDSenderStorePacket done [12:58:43]KKMCreateOFDPacket done [12:58:43]NVStorageSaveData kkm_last_timestamp [12:58:43]File name is /storage/kkm_last_timestamp [12:58:43]Write 4 bytes [12:58:43]NVStorageSaveData done [12:58:43]ExternCall_PrintAddStr [12:58:43]wPrintStart [12:58:43]Write to MH i2c: 01 00 00 31 00 31 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:58:43]RasterBufferAndPrint [12:58:43]line Счет N : (1)99096 [12:58:43]OFD Sender: Processing packet 156281 [packets to send 31, broken 30] [12:58:43]ProducePacketName [12:58:43]name=ofd_packets/00156281 [12:58:43]OFD Sender: To server: pG, [12:58:43]CommunicateWithHost lk.salyk.kg:30040 [12:58:43]ConnectInit lk.salyk.kg [12:58:43]line ИНН: 02508201610067 [12:58:43]line Контрольно-Кассовый Чек [12:58:43]line ПРОДАЖА [12:58:43]line ТРК (МРК, ГНК) : 31 [12:58:43]line Товар: 2710124130 [12:58:43]line Аи-92-К-5 [12:58:43]line 4.490 * 66.90 [12:58:43]line = 300.38 [12:58:43]line НДС 12% НСП 1% [12:58:43]line > о реализуемом товаре [12:58:43]line ОКРУГЛЕНИЕ: -0.38 [12:58:43]line ИТОГО: 300.00 [12:58:43]line Внесено: 300.00 [12:58:43]line СДАЧА: 0.00 [12:58:43]line НСП 1% : 2.66 [12:58:43]line НДС 12% : 31.90 [12:58:43]line Наличными: 300.00 [12:58:43]line Безнал.: 0.00 [12:58:43]line Место: АЗС № 143 "Партнер Нефть" [12:58:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:58:43]line СНО: Общий режим [12:58:43]line Чек 182 26.10.2024 12:58 [12:58:43]line Смена: 536 ФФД: 1.0 [12:58:43]line ЗНМ: 0300000096 [12:58:43]line РНМ: 0000000000091693 [12:58:43]line Версия ККМ: 001 [12:58:43]line ФМ: 0000000000871792 [12:58:43]line ФД: 156281 [12:58:43]line ФПД: 124195164206320 [12:58:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125841&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156281&fm=124195164206320&tin=02508201610067®Number=0000000000091693&sum=30000 [12:58:43]written 0, free lines is 4095 [12:58:43]Connected sock=10 [12:58:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D 7F 07 01 D1 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 81 E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 62 02 00 35 04 06 00 70 F4 70 A5 34 F0 68 31 CC FC 28 B7 61 31 [12:58:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B9 53 47 00 48 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 31 37 39 32 10 04 04 00 79 62 02 00 F4 03 04 00 F4 8C 1C 67 B6 04 01 00 00 28 E3 D6 7C 03 3C 33 12 [12:58:43]CommunicateWithHost err = 0 [12:58:43]CheckOFDResponse [12:58:43]1017 (14) - 77093643461234 [12:58:43]1041 (16) - 0000000000871792 [12:58:43]1040 (4) - 156281 [12:58:43]1012 (4) - 26.10.2024 06:32 [12:58:43]1206 (1) - 0 [12:58:43]OFD Sender: Remove packet 156281 [12:58:43]ProducePacketName [12:58:43]name=ofd_packets/00156281 [12:58:43]NVStorageDeleteData [12:58:43]Write to MH i2c: 01 00 00 5C 00 5C [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F5 0C 64 [12:58:43]RasterBufferAndPrint [12:58:43]line [12:58:43]line [12:58:43]line [12:58:43]line [12:58:43]line [12:58:43]written 0, free lines is 3341 [12:58:44]process_action close_receipt done [12:58:44]requested_data is exist [12:58:44]produce_requested_data [12:58:44]requested_item fm.sn is exist - process it [12:58:44]wFMCommunicate request_size=4 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 11 00 00 [12:58:44]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 17 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 32 [12:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:58:44]wFMCommunicate OK [12:58:44]requested_item fd.num is exist - process it [12:58:44]SAM_PROTO_GetFieldsCounters [12:58:44]wFMCommunicate request_size=4 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 13 00 00 [12:58:44]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 62 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 62 00 64 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 79 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:58: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 79 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:44]wFMCommunicate OK [12:58:44]SAM_PROTO_GetFieldsCounters done [12:58:44]requested_item shift.num is exist - process it [12:58:44]requested_item shift.opened is exist - process it [12:58:44]req_shift_opened [12:58:44]FM_GetShiftState [12:58:44]SAM_PROTO_GetShiftState [12:58:44]wFMCommunicate request_size=4 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 13 01 00 [12:58:44]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0E 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 17 [12:58:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:58:44]wFMCommunicate OK [12:58:44]SAM_PROTO_GetShiftState done [12:58:44]FM_GetShiftState done [12:58:44]req_shift_opened done [12:58:44]requested_item shift.open_date is exist - process it [12:58:44]req_shift_open_date [12:58:44]req_shift_open_date done [12:58:44]produce_requested_data done [12:58:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156281,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:58:44]process_action_free close_receipt [12:58:44]json_value_free [12:58:44]json_value_free done [12:58:44]process_json_proto returns [12:58:44]Send response to host [12:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156281,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:58:44]free response buf [12:58:44]execute_script done [12:58:44]execute_script returns [12:58:44]free content buf [12:58:44]Sock 8.Close socket [12:58:44]Sock 8.Thread stoped [12:58:44]OFD Sender: No OFD packet to send [12:58:44]accept exits with 6 [12:58:44]New connection [12:58:44]New thread 3066834276 created [12:58:44]Thread 3066977636 joined [12:58:44]Waiting for new connection... [12:58:44] Sock 6.Parse request [12:58:44]Sock 6.Check first char [12:58:44]Sock 6.First char is OK [12:58:44]request: POST /json_proto HTTP/1.0 [12:58:44]Method: POST [12:58:44]URL: /json_proto [12:58:44]Method is POST - this is cgi request [12:58:44]url: /json_proto [12:58:44]query_string will be loaded in cgi processing [12:58:44]execute_cgi json_proto POST (null) [12:58:44]execute_cgi path=json_proto method=POST [12:58:44]POST find Content-Length [12:58:44]Host: 172.17.63.3:8080 [12:58:44]Content-Length: 641 [12:58:44]Content-Type: application/json [12:58:44] [12:58:44]POST finish read [12:58:44]Found Content-Length = 641 [12:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:44]execute_script... [12: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 : (1)99097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:44]POST & json_proto [12:58:44]process_json_proto [12:58:44]json parsed OK: [12:58:44]protocol is kg_v1.0 [12:58:44]action value=close_receipt [12:58:44]process_action close_receipt [12:58:44]cmd_close_receipt [12:58:44]MH_GetDate [12:58:44]Write to MH i2c: F0 00 00 66 00 55 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 09 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 09 00 66 00 00 84 E7 1C 67 50 D1 6C 64 3D [12:58:44]GetLastDocTimeStamp 1729947521 [12:58:44]current date 1729947524 [12:58:44]FM_GetShiftState [12:58:44]SAM_PROTO_GetShiftState [12:58:44]wFMCommunicate request_size=4 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 13 01 00 [12:58:44]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0E 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 19 [12:58:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:58:44]wFMCommunicate OK [12:58:44]SAM_PROTO_GetShiftState done [12:58:44]FM_GetShiftState done [12:58:44]opened in 1729902702 [12:58:44]opened+sec_in_day 1729989102 [12:58:44]quantity*price = 133800 [12:58:44]sum+1 = 133801 [12:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 183 26.10.2024 12:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156282 ФПД: 123709594095733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125845&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156282&fm=123709594095733&tin=02508201610067®Number=0000000000091693&sum=133800 [12:58:46]StoreToDocumentArchive [12:58:46]shift 536 fd 156282 [12:58:46]save to /storage/0536/doc_00156282 [12:58:46]save last doc name /storage/0536/doc_00156282 to /storage/kkm_last_doc_name [12:58:46]save OK [12:58:46]Clear old archive folders... [12:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:46]tlvbuf is 0167A080 [12:58:46]SAM_PROTO_ClearQueue [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 09 00 00 [12:58:46]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:46]E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [12:58:46]RAPDU: 90 00 [12:58:46]wFMCommunicate OK [12:58:46]SAM_PROTO_ClearQueue done [12:58:46]KKMCreateOFDPacket [12:58:46]OFDProtocolAddRootSTLVToBuf [12:58:46]FM_MakeSignedData [12:58:46]FM_MakeSignedData [12:58:46]SAM_PROTO_SignData [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 0D 01 02 [12:58:46]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [12:58:46]RAPDU: 90 00 [12:58:46]wFMCommunicate OK [12:58:46]wFMCommunicate request_size=255 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 85 E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 62 02 00 35 04 06 00 70 [12:58:46]Write to MH i2c: E2 02 01 76 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 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 85 E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 62 02 00 35 04 06 00 70 00 00 2D [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:58:46]RAPDU: 90 00 [12:58:46]wFMCommunicate OK [12:58:46]wFMCommunicate request_size=10 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 0D 02 02 05 83 62 69 50 75 [12:58:46]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 83 62 69 50 75 00 00 0E [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [12:58:46]RAPDU: 90 00 [12:58:46]wFMCommunicate OK [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 0D 03 02 [12:58:46]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 0B 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 0B 00 78 00 00 09 1B D3 A4 EE E1 0A 64 90 00 CC [12:58:46]RAPDU: 09 1B D3 A4 EE E1 0A 64 90 00 [12:58:46]wFMCommunicate OK [12:58:46]SAM_PROTO_SignData done [12:58:46]FM_MakeSignedData done [12:58:46]CreateOFDProtocolMessage [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 11 00 00 [12:58:46]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 17 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [12:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:58:46]wFMCommunicate OK [12:58:46]CreateOFDProtocolMessage done [12:58:46]OFDSenderStorePacket 156282 [12:58:46]StoreOFDPacket docnum=156282 [12:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0F 13 07 01 17 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 85 E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 62 02 00 35 04 06 00 70 83 62 69 50 75 09 1B D3 A4 EE E1 0A 64 [12:58:46]CheckFolder [12:58:46]dirname=/storage/ofd_packets [12:58:46]CheckFolder done [12:58:46]ProducePacketName [12:58:46]name=ofd_packets/00156282 [12:58:46]NVStorageSaveData ofd_packets/00156282 [12:58:46]File name is /storage/ofd_packets/00156282 [12:58:46]Write 301 bytes [12:58:46]NVStorageSaveData done [12:58:46]OFDSenderStorePacket done [12:58:46]KKMCreateOFDPacket done [12:58:46]NVStorageSaveData kkm_last_timestamp [12:58:46]File name is /storage/kkm_last_timestamp [12:58:46]Write 4 bytes [12:58:46]NVStorageSaveData done [12:58:46]ExternCall_PrintAddStr [12:58:46]wPrintStart [12:58:46]Write to MH i2c: 01 00 00 7A 00 7A [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 07 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [12:58:46]RasterBufferAndPrint [12:58:46]line Счет N : (1)99097 [12:58:46]line ИНН: 02508201610067 [12:58:46]line Контрольно-Кассовый Чек [12:58:46]line ПРОДАЖА [12:58:46]line ТРК (МРК, ГНК) : 21 [12:58:46]line Товар: 2710124130 [12:58:46]line Аи-92-К-5 [12:58:46]line 20.000 * 66.90 [12:58:46]line = 1338.00 [12:58:46]line НДС 12% НСП 1% [12:58:46]line > о реализуемом товаре [12:58:46]line ИТОГО: 1338.00 [12:58:46]line НСП 1% : 11.84 [12:58:46]line НДС 12% : 142.09 [12:58:46]line Наличными: 1338.00 [12:58:46]line Безнал.: 0.00 [12:58:46]line Место: АЗС № 143 "Партнер Нефть" [12:58:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:58:46]line СНО: Общий режим [12:58:46]line Чек 183 26.10.2024 12:58 [12:58:46]line Смена: 536 ФФД: 1.0 [12:58:46]line ЗНМ: 0300000096 [12:58:46]line РНМ: 0000000000091693 [12:58:46]line Версия ККМ: 001 [12:58:46]line ФМ: 0000000000871792 [12:58:46]line ФД: 156282 [12:58:46]line ФПД: 123709594095733 [12:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125845&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156282&fm=123709594095733&tin=02508201610067®Number=0000000000091693&sum=133800 [12:58:46]written 0, free lines is 4095 [12:58:47]OFD Sender: Processing packet 156282 [packets to send 31, broken 30] [12:58:47]ProducePacketName [12:58:47]name=ofd_packets/00156282 [12:58:47]OFD Sender: To server: pG, [12:58:47]CommunicateWithHost lk.salyk.kg:30040 [12:58:47]ConnectInit lk.salyk.kg [12:58:47]Connected sock=10 [12:58:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0F 13 07 01 17 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 85 E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 62 02 00 35 04 06 00 70 83 62 69 50 75 09 1B D3 A4 EE E1 0A 64 [12:58:47]Write to MH i2c: 01 00 00 A2 00 A2 [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 07 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 2F 0D E5 [12:58:47]RasterBufferAndPrint [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]written 0, free lines is 3399 [12:58:47]process_action close_receipt done [12:58:47]requested_data is exist [12:58:47]produce_requested_data [12:58:47]requested_item fm.sn is exist - process it [12:58:47]wFMCommunicate request_size=4 [12:58:47]MH_SAM_APDU [12:58:47]CAPDU: 80 11 00 00 [12:58:47]Write to MH i2c: E2 08 00 A9 00 80 11 00 00 00 00 00 00 23 [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EB DF 47 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:47]00 74 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 62 02 00 F4 03 04 00 F8 8C 1C 67 B6 04 01 00 00 3F 41 1F 4D 2D FC 8F 05 [12:58:47]CommunicateWithHost err = 0 [12:58:47]CheckOFDResponse [12:58:47]1017 (14) - 77093643461234 [12:58:47]1041 (16) - 0000000000871792 [12:58:47]1040 (4) - 156282 [12:58:47]1012 (4) - 26.10.2024 06:32 [12:58:47]1206 (1) - 0 [12:58:47]OFD Sender: Remove packet 156282 [12:58:47]ProducePacketName [12:58:47]name=ofd_packets/00156282 [12:58:47]NVStorageDeleteData [12:58:47]Read from MH i2c: E2 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 17 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 17 00 A9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 78 [12:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:58:47]wFMCommunicate OK [12:58:47]requested_item fd.num is exist - process it [12:58:47]SAM_PROTO_GetFieldsCounters [12:58:47]wFMCommunicate request_size=4 [12:58:47]MH_SAM_APDU [12:58:47]CAPDU: 80 13 00 00 [12:58:47]Write to MH i2c: E2 08 00 AA 00 80 13 00 00 00 00 00 00 26 [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:47]Read from MH i2c: E2 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 62 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 62 00 AA 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:58:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:47]wFMCommunicate OK [12:58:47]SAM_PROTO_GetFieldsCounters done [12:58:47]requested_item shift.num is exist - process it [12:58:47]requested_item shift.opened is exist - process it [12:58:47]req_shift_opened [12:58:47]FM_GetShiftState [12:58:47]SAM_PROTO_GetShiftState [12:58:47]wFMCommunicate request_size=4 [12:58:47]MH_SAM_APDU [12:58:47]CAPDU: 80 13 01 00 [12:58:47]Write to MH i2c: E2 08 00 AB 00 80 13 01 00 00 00 00 00 28 [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:47]Read from MH i2c: E2 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 0E 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 0E 00 AB 00 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5D [12:58:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:58:47]wFMCommunicate OK [12:58:47]SAM_PROTO_GetShiftState done [12:58:47]FM_GetShiftState done [12:58:47]req_shift_opened done [12:58:47]requested_item shift.open_date is exist - process it [12:58:47]req_shift_open_date [12:58:47]req_shift_open_date done [12:58:47]produce_requested_data done [12:58:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156282,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:58:47]process_action_free close_receipt [12:58:47]json_value_free [12:58:47]json_value_free done [12:58:47]process_json_proto returns [12:58:47]Send response to host [12:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156282,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:58:47]free response buf [12:58:47]execute_script done [12:58:47]execute_script returns [12:58:47]free content buf [12:58:47]Sock 6.Close socket [12:58:47]Sock 6.Thread stoped [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:26]accept exits with 9 [12:59:26]New connection [12:59:26]New thread 3066977636 created [12:59:26]Thread 3066834276 joined [12:59:26]Waiting for new connection... [12:59:26] Sock 9.Parse request [12:59:26]Sock 9.Check first char [12:59:26]Sock 9.First char is OK [12:59:26]request: POST /json_proto HTTP/1.0 [12:59:26]Method: POST [12:59:26]URL: /json_proto [12:59:26]Method is POST - this is cgi request [12:59:26]url: /json_proto [12:59:26]query_string will be loaded in cgi processing [12:59:26]execute_cgi json_proto POST (null) [12:59:26]execute_cgi path=json_proto method=POST [12:59:26]POST find Content-Length [12:59:26]Host: 172.17.63.3:8080 [12:59:26]Content-Length: 796 [12:59:26]Content-Type: application/json [12:59:26] [12:59:26]POST finish read [12:59:26]Found Content-Length = 796 [12:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4379642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:26]execute_script... [12:59: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)99098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4379642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:26]POST & json_proto [12:59:26]process_json_proto [12:59:26]json parsed OK: [12:59:26]protocol is kg_v1.0 [12:59:26]action value=close_receipt [12:59:26]process_action close_receipt [12:59:26]cmd_close_receipt [12:59:26]MH_GetDate [12:59:26]Write to MH i2c: F0 00 00 AC 00 9B [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: F0 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: F0 09 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: F0 09 00 AC 00 00 AE E7 1C 67 50 D1 6C 64 AD [12:59:26]GetLastDocTimeStamp 1729947525 [12:59:26]current date 1729947566 [12:59:26]FM_GetShiftState [12:59:26]SAM_PROTO_GetShiftState [12:59:26]wFMCommunicate request_size=4 [12:59:26]MH_SAM_APDU [12:59:26]CAPDU: 80 13 01 00 [12:59:26]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:26]Read from MH i2c: E2 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 0E 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5F [12:59:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:59:26]wFMCommunicate OK [12:59:26]SAM_PROTO_GetShiftState done [12:59:26]FM_GetShiftState done [12:59:26]opened in 1729902702 [12:59:26]opened+sec_in_day 1729989102 [12:59:26]quantity*price = 0 [12:59:26]sum+1 = 1 [12:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 184 26.10.2024 12:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4379642 ФМ: 0000000000871792 ФД: 156283 ФПД: 143619659218109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125926&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156283&fm=143619659218109&tin=02508201610067®Number=0000000000091693&sum=0 [12:59:27]StoreToDocumentArchive [12:59:27]shift 536 fd 156283 [12:59:27]save to /storage/0536/doc_00156283 [12:59:27]save last doc name /storage/0536/doc_00156283 to /storage/kkm_last_doc_name [12:59:27]save OK [12:59:27]Clear old archive folders... [12:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:59:27]tlvbuf is 016E8700 [12:59:27]SAM_PROTO_ClearQueue [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 09 00 00 [12:59:27]Write to MH i2c: E2 08 00 BA 00 80 09 00 00 00 00 00 00 2C [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]SAM_PROTO_ClearQueue done [12:59:27]KKMCreateOFDPacket [12:59:27]OFDProtocolAddRootSTLVToBuf [12:59:27]FM_MakeSignedData [12:59:27]FM_MakeSignedData [12:59:27]SAM_PROTO_SignData [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 01 02 [12:59:27]Write to MH i2c: E2 08 00 BB 00 80 0D 01 02 00 00 00 00 34 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]wFMCommunicate request_size=255 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 AE E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 62 02 00 35 04 06 00 82 9F 0E C5 [12:59:27]Write to MH i2c: E2 02 01 BC 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 AE E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 62 02 00 35 04 06 00 82 9F 0E C5 00 00 C1 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]wFMCommunicate request_size=7 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 02 02 02 3C BD [12:59:27]Write to MH i2c: E2 0A 00 BD 00 80 0D 02 02 02 00 3C BD 00 00 34 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 03 02 [12:59:27]Write to MH i2c: E2 08 00 BE 00 80 0D 03 02 00 00 00 00 39 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 0B 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 0B 00 BE 00 00 47 2D F4 4F 8B 18 E8 A6 90 00 22 [12:59:27]RAPDU: 47 2D F4 4F 8B 18 E8 A6 90 00 [12:59:27]wFMCommunicate OK [12:59:27]SAM_PROTO_SignData done [12:59:27]FM_MakeSignedData done [12:59:27]CreateOFDProtocolMessage [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 11 00 00 [12:59:27]Write to MH i2c: E2 08 00 BF 00 80 11 00 00 00 00 00 00 39 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 17 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 17 00 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8E [12:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:59:27]wFMCommunicate OK [12:59:27]CreateOFDProtocolMessage done [12:59:27]OFDSenderStorePacket 156283 [12:59:27]StoreOFDPacket docnum=156283 [12:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 01 42 04 01 95 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 AE E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 62 02 00 35 04 06 00 82 9F 0E C5 3C BD 47 2D F4 4F 8B 18 E8 A6 [12:59:27]CheckFolder [12:59:27]dirname=/storage/ofd_packets [12:59:27]CheckFolder done [12:59:27]ProducePacketName [12:59:27]name=ofd_packets/00156283 [12:59:27]NVStorageSaveData ofd_packets/00156283 [12:59:27]File name is /storage/ofd_packets/00156283 [12:59:27]Write 298 bytes [12:59:27]NVStorageSaveData done [12:59:27]OFDSenderStorePacket done [12:59:27]KKMCreateOFDPacket done [12:59:27]NVStorageSaveData kkm_last_timestamp [12:59:27]File name is /storage/kkm_last_timestamp [12:59:27]Write 4 bytes [12:59:27]NVStorageSaveData done [12:59:27]ExternCall_PrintAddStr [12:59:27]wPrintStart [12:59:27]Write to MH i2c: 01 00 00 C0 00 C0 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 07 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 07 00 C0 00 00 00 00 00 00 FF 0F D5 [12:59:27]RasterBufferAndPrint [12:59:27]line Счет N : (1)99098 [12:59:27]line ИНН: 02508201610067 [12:59:27]line Контрольно-Кассовый Чек [12:59:27]line ПРОДАЖА [12:59:27]line ТРК (МРК, ГНК) : 32 [12:59:27]line Товар: 2710194210 [12:59:27]line ДТ-К-5 [12:59:27]line 20.000 * 0.00 [12:59:27]line = 0.00 [12:59:27]line НДС 12% НСП 1% [12:59:27]line > о реализуемом товаре [12:59:27]line ИТОГО: 0.00 [12:59:27]line НСП 1% : 0.00 [12:59:27]line НДС 12% : 0.00 [12:59:27]line Наличными: 0.00 [12:59:27]line Безнал.: 0.00 [12:59:27]line Место: АЗС № 143 "Партнер Нефть" [12:59:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:59:27]line СНО: Общий режим [12:59:27]line Чек 184 26.10.2024 12:59 [12:59:27]line Смена: 536 ФФД: 1.0 [12:59:27]line ЗНМ: 0300000096 [12:59:27]line РНМ: 0000000000091693 [12:59:27]line Версия ККМ: 001 [12:59:27]line Талоны: Топливные Талоны [12:59:27]line 4379642 [12:59:27]line ФМ: 0000000000871792 [12:59:27]line ФД: 156283 [12:59:27]line ФПД: 143619659218109 [12:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125926&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156283&fm=143619659218109&tin=02508201610067®Number=0000000000091693&sum=0 [12:59:27]written 0, free lines is 4095 [12:59:27]OFD Sender: Processing packet 156283 [packets to send 31, broken 30] [12:59:27]ProducePacketName [12:59:27]name=ofd_packets/00156283 [12:59:27]OFD Sender: To server: pG, [12:59:27]CommunicateWithHost lk.salyk.kg:30040 [12:59:27]ConnectInit lk.salyk.kg [12:59:27]Connected sock=11 [12: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 31 37 39 32 0C 01 00 00 01 42 04 01 95 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 AE E7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 62 02 00 35 04 06 00 82 9F 0E C5 3C BD 47 2D F4 4F 8B 18 E8 A6 [12:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9E 5C 47 00 63 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 62 02 00 F4 03 04 00 20 8D 1C 67 B6 04 01 00 00 7F 66 26 8D 6A 15 CC AF [12:59:28]CommunicateWithHost err = 0 [12:59:28]CheckOFDResponse [12:59:28]1017 (14) - 77093643461234 [12:59:28]1041 (16) - 0000000000871792 [12:59:28]1040 (4) - 156283 [12:59:28]1012 (4) - 26.10.2024 06:33 [12:59:28]1206 (1) - 0 [12:59:28]OFD Sender: Remove packet 156283 [12:59:28]ProducePacketName [12:59:28]name=ofd_packets/00156283 [12:59:28]NVStorageDeleteData [12:59:28]Write to MH i2c: 01 00 00 EA 00 EA [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 07 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 07 00 EA 00 00 00 00 00 00 F4 0C F1 [12:59:28]RasterBufferAndPrint [12:59:28]line [12:59:28]line [12:59:28]line [12:59:28]line [12:59:28]line [12:59:28]written 0, free lines is 3323 [12:59:28]process_action close_receipt done [12:59:28]requested_data is exist [12:59:28]produce_requested_data [12:59:28]requested_item fm.sn is exist - process it [12:59:28]wFMCommunicate request_size=4 [12:59:28]MH_SAM_APDU [12:59:28]CAPDU: 80 11 00 00 [12:59:28]Write to MH i2c: E2 08 00 F1 00 80 11 00 00 00 00 00 00 6B [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 17 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 17 00 F1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C0 [12:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:59:28]wFMCommunicate OK [12:59:28]requested_item fd.num is exist - process it [12:59:28]SAM_PROTO_GetFieldsCounters [12:59:28]wFMCommunicate request_size=4 [12:59:28]MH_SAM_APDU [12:59:28]CAPDU: 80 13 00 00 [12:59:28]Write to MH i2c: E2 08 00 F2 00 80 13 00 00 00 00 00 00 6E [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 62 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 62 00 F2 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [12:59: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:28]wFMCommunicate OK [12:59:28]SAM_PROTO_GetFieldsCounters done [12:59:28]requested_item shift.num is exist - process it [12:59:28]requested_item shift.opened is exist - process it [12:59:28]req_shift_opened [12:59:28]FM_GetShiftState [12:59:28]SAM_PROTO_GetShiftState [12:59:28]wFMCommunicate request_size=4 [12:59:28]MH_SAM_APDU [12:59:28]CAPDU: 80 13 01 00 [12:59:28]Write to MH i2c: E2 08 00 F3 00 80 13 01 00 00 00 00 00 70 [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 0E 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 0E 00 F3 00 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A5 [12:59:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [12:59:28]wFMCommunicate OK [12:59:28]SAM_PROTO_GetShiftState done [12:59:28]FM_GetShiftState done [12:59:28]req_shift_opened done [12:59:28]requested_item shift.open_date is exist - process it [12:59:28]req_shift_open_date [12:59:28]req_shift_open_date done [12:59:28]produce_requested_data done [12:59:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156283,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [12:59:28]process_action_free close_receipt [12:59:28]json_value_free [12:59:28]json_value_free done [12:59:28]process_json_proto returns [12:59:28]Send response to host [12:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156283,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [12:59:28]free response buf [12:59:28]execute_script done [12:59:28]execute_script returns [12:59:28]free content buf [12:59:28]Sock 9.Close socket [12:59:28]Sock 9.Thread stoped [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]accept exits with 8 [13:01:43]New connection [13:01:43]New thread 3066834276 created [13:01:43]Thread 3066977636 joined [13:01:43]Waiting for new connection... [13:01:43] Sock 8.Parse request [13:01:43]Sock 8.Check first char [13:01:43]Sock 8.First char is OK [13:01:43]request: POST /json_proto HTTP/1.0 [13:01:43]Method: POST [13:01:43]URL: /json_proto [13:01:43]Method is POST - this is cgi request [13:01:43]url: /json_proto [13:01:43]query_string will be loaded in cgi processing [13:01:43]execute_cgi json_proto POST (null) [13:01:43]execute_cgi path=json_proto method=POST [13:01:43]POST find Content-Length [13:01:43]Host: 172.17.63.3:8080 [13:01:43]Content-Length: 677 [13:01:43]Content-Type: application/json [13:01:43] [13:01:43]POST finish read [13:01:43]Found Content-Length = 677 [13:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:43]execute_script... [13:01:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:43]POST & json_proto [13:01:43]process_json_proto [13:01:43]json parsed OK: [13:01:43]protocol is kg_v1.0 [13:01:43]action value=close_receipt [13:01:43]process_action close_receipt [13:01:43]cmd_close_receipt [13:01:43]MH_GetDate [13:01:43]Write to MH i2c: F0 00 00 F4 00 E3 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: F0 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: F0 09 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: F0 09 00 F4 00 00 37 E8 1C 67 50 D1 6C 64 7F [13:01:43]GetLastDocTimeStamp 1729947566 [13:01:43]current date 1729947703 [13:01:43]FM_GetShiftState [13:01:43]SAM_PROTO_GetShiftState [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 13 01 00 [13:01:43]Write to MH i2c: E2 08 00 F5 00 80 13 01 00 00 00 00 00 72 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 0E 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 0E 00 F5 00 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A7 [13:01:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:01:43]wFMCommunicate OK [13:01:43]SAM_PROTO_GetShiftState done [13:01:43]FM_GetShiftState done [13:01:43]opened in 1729902702 [13:01:43]opened+sec_in_day 1729989102 [13:01:43]quantity*price = 70044 [13:01:43]sum+1 = 70045 [13:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 185 26.10.2024 13:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156284 ФПД: 199703494980021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130143&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156284&fm=199703494980021&tin=02508201610067®Number=0000000000091693&sum=70000 [13:01:44]StoreToDocumentArchive [13:01:44]shift 536 fd 156284 [13:01:44]save to /storage/0536/doc_00156284 [13:01:44]save last doc name /storage/0536/doc_00156284 to /storage/kkm_last_doc_name [13:01:44]save OK [13:01:44]Clear old archive folders... [13:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:44]tlvbuf is 01670020 [13:01:44]SAM_PROTO_ClearQueue [13:01:44]wFMCommunicate request_size=4 [13:01:44]MH_SAM_APDU [13:01:44]CAPDU: 80 09 00 00 [13:01:44]Write to MH i2c: E2 08 00 02 01 80 09 00 00 00 00 00 00 75 [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:44]Read from MH i2c: E2 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: E2 03 00 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [13:01:44]RAPDU: 90 00 [13:01:44]wFMCommunicate OK [13:01:44]SAM_PROTO_ClearQueue done [13:01:44]KKMCreateOFDPacket [13:01:44]OFDProtocolAddRootSTLVToBuf [13:01:44]FM_MakeSignedData [13:01:44]FM_MakeSignedData [13:01:44]SAM_PROTO_SignData [13:01:44]wFMCommunicate request_size=4 [13:01:44]MH_SAM_APDU [13:01:44]CAPDU: 80 0D 01 02 [13:01:44]Write to MH i2c: E2 08 00 03 01 80 0D 01 02 00 00 00 00 7D [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:44]Read from MH i2c: E2 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: E2 03 00 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [13:01:44]RAPDU: 90 00 [13:01:44]wFMCommunicate OK [13:01:44]wFMCommunicate request_size=255 [13:01:44]MH_SAM_APDU [13:01:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 37 E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 62 02 00 35 04 06 00 B5 [13:01:44]Write to MH i2c: E2 02 01 04 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 37 E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 62 02 00 35 04 06 00 B5 00 00 2B [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 03 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [13:01:45]RAPDU: 90 00 [13:01:45]wFMCommunicate OK [13:01:45]wFMCommunicate request_size=10 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 0D 02 02 05 A1 17 E0 F1 B5 [13:01:45]Write to MH i2c: E2 0D 00 05 01 80 0D 02 02 05 00 A1 17 E0 F1 B5 00 00 C8 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 03 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [13:01:45]RAPDU: 90 00 [13:01:45]wFMCommunicate OK [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 0D 03 02 [13:01:45]Write to MH i2c: E2 08 00 06 01 80 0D 03 02 00 00 00 00 82 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 0B 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 0B 00 06 01 00 CC 01 20 AF E2 7E FA 43 90 00 BC [13:01:45]RAPDU: CC 01 20 AF E2 7E FA 43 90 00 [13:01:45]wFMCommunicate OK [13:01:45]SAM_PROTO_SignData done [13:01:45]FM_MakeSignedData done [13:01:45]CreateOFDProtocolMessage [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 11 00 00 [13:01:45]Write to MH i2c: E2 08 00 07 01 80 11 00 00 00 00 00 00 82 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 17 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 17 00 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [13:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:01:45]wFMCommunicate OK [13:01:45]CreateOFDProtocolMessage done [13:01:45]OFDSenderStorePacket 156284 [13:01:45]StoreOFDPacket docnum=156284 [13:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9B 82 07 01 1C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 37 E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 62 02 00 35 04 06 00 B5 A1 17 E0 F1 B5 CC 01 20 AF E2 7E FA 43 [13:01:45]CheckFolder [13:01:45]dirname=/storage/ofd_packets [13:01:45]CheckFolder done [13:01:45]ProducePacketName [13:01:45]name=ofd_packets/00156284 [13:01:45]NVStorageSaveData ofd_packets/00156284 [13:01:45]File name is /storage/ofd_packets/00156284 [13:01:45]Write 301 bytes [13:01:45]NVStorageSaveData done [13:01:45]OFDSenderStorePacket done [13:01:45]KKMCreateOFDPacket done [13:01:45]NVStorageSaveData kkm_last_timestamp [13:01:45]File name is /storage/kkm_last_timestamp [13:01:45]Write 4 bytes [13:01:45]NVStorageSaveData done [13:01:45]ExternCall_PrintAddStr [13:01:45]wPrintStart [13:01:45]Write to MH i2c: 01 00 00 08 01 09 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 07 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 07 00 08 01 00 00 00 00 00 FF 0F 1E [13:01:45]RasterBufferAndPrint [13:01:45]line Счет N : (1)99100 [13:01:45]line ИНН: 02508201610067 [13:01:45]line Контрольно-Кассовый Чек [13:01:45]line ПРОДАЖА [13:01:45]line ТРК (МРК, ГНК) : 31 [13:01:45]line Товар: 2710124130 [13:01:45]line Аи-92-К-5 [13:01:45]line 10.470 * 66.90 [13:01:45]line = 700.44 [13:01:45]line НДС 12% НСП 1% [13:01:45]line > о реализуемом товаре [13:01:45]line ОКРУГЛЕНИЕ: -0.44 [13:01:45]line ИТОГО: 700.00 [13:01:45]line Внесено: 700.00 [13:01:45]line СДАЧА: 0.00 [13:01:45]line НСП 1% : 6.20 [13:01:45]line НДС 12% : 74.38 [13:01:45]line Наличными: 700.00 [13:01:45]line Безнал.: 0.00 [13:01:45]line Место: АЗС № 143 "Партнер Нефть" [13:01:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:01:45]line СНО: Общий режим [13:01:45]line Чек 185 26.10.2024 13:01 [13:01:45]line Смена: 536 ФФД: 1.0 [13:01:45]line ЗНМ: 0300000096 [13:01:45]line РНМ: 0000000000091693 [13:01:45]line Версия ККМ: 001 [13:01:45]line ФМ: 0000000000871792 [13:01:45]line ФД: 156284 [13:01:45]line ФПД: 199703494980021 [13:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130143&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156284&fm=199703494980021&tin=02508201610067®Number=0000000000091693&sum=70000 [13:01:45]OFD Sender: Processing packet 156284 [packets to send 31, broken 30] [13:01:45]ProducePacketName [13:01:45]name=ofd_packets/00156284 [13:01:45]OFD Sender: To server: pG, [13:01:45]CommunicateWithHost lk.salyk.kg:30040 [13:01:45]ConnectInit lk.salyk.kg [13:01:45]written 0, free lines is 4095 [13:01:45]Connected sock=11 [13:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9B 82 07 01 1C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 37 E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 62 02 00 35 04 06 00 B5 A1 17 E0 F1 B5 CC 01 20 AF E2 7E FA 43 [13:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 28 45 47 00 7F 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 31 37 39 32 10 04 04 00 7C 62 02 00 F4 03 04 00 AA 8D 1C 67 B6 04 01 00 00 CA FE 57 1E 74 B0 C3 0F [13:01:45]CommunicateWithHost err = 0 [13:01:45]CheckOFDResponse [13:01:45]1017 (14) - 77093643461234 [13:01:45]1041 (16) - 0000000000871792 [13:01:45]1040 (4) - 156284 [13:01:45]1012 (4) - 26.10.2024 06:35 [13:01:45]1206 (1) - 0 [13:01:45]OFD Sender: Remove packet 156284 [13:01:45]ProducePacketName [13:01:45]name=ofd_packets/00156284 [13:01:45]NVStorageDeleteData [13:01:46]Write to MH i2c: 01 00 00 33 01 34 [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 07 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 E6 0C 2D [13:01:46]RasterBufferAndPrint [13:01:46]line [13:01:46]line [13:01:46]line [13:01:46]line [13:01:46]line [13:01:46]written 0, free lines is 3308 [13:01:46]process_action close_receipt done [13:01:46]requested_data is exist [13:01:46]produce_requested_data [13:01:46]requested_item fm.sn is exist - process it [13:01:46]wFMCommunicate request_size=4 [13:01:46]MH_SAM_APDU [13:01:46]CAPDU: 80 11 00 00 [13:01:46]Write to MH i2c: E2 08 00 3A 01 80 11 00 00 00 00 00 00 B5 [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:46]Read from MH i2c: E2 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 17 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 17 00 3A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0A [13:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:01:46]wFMCommunicate OK [13:01:46]requested_item fd.num is exist - process it [13:01:46]SAM_PROTO_GetFieldsCounters [13:01:46]wFMCommunicate request_size=4 [13:01:46]MH_SAM_APDU [13:01:46]CAPDU: 80 13 00 00 [13:01:46]Write to MH i2c: E2 08 00 3B 01 80 13 00 00 00 00 00 00 B8 [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:46]Read from MH i2c: E2 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 62 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 62 00 3B 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [13:01: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:46]wFMCommunicate OK [13:01:46]SAM_PROTO_GetFieldsCounters done [13:01:46]requested_item shift.num is exist - process it [13:01:46]requested_item shift.opened is exist - process it [13:01:46]req_shift_opened [13:01:46]FM_GetShiftState [13:01:46]SAM_PROTO_GetShiftState [13:01:46]wFMCommunicate request_size=4 [13:01:46]MH_SAM_APDU [13:01:46]CAPDU: 80 13 01 00 [13:01:46]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:46]Read from MH i2c: E2 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 0E 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 EF [13:01:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:01:46]wFMCommunicate OK [13:01:46]SAM_PROTO_GetShiftState done [13:01:46]FM_GetShiftState done [13:01:46]req_shift_opened done [13:01:46]requested_item shift.open_date is exist - process it [13:01:46]req_shift_open_date [13:01:46]req_shift_open_date done [13:01:46]produce_requested_data done [13:01:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156284,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:01:46]process_action_free close_receipt [13:01:46]json_value_free [13:01:46]json_value_free done [13:01:46]process_json_proto returns [13:01:46]Send response to host [13:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156284,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:01:46]free response buf [13:01:46]execute_script done [13:01:46]execute_script returns [13:01:46]free content buf [13:01:46]Sock 8.Close socket [13:01:46]Sock 8.Thread stoped [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:07]accept exits with 9 [13:02:07]New connection [13:02:07]New thread 3066977636 created [13:02:07]Thread 3066834276 joined [13:02:07]Waiting for new connection... [13:02:07] Sock 9.Parse request [13:02:07]Sock 9.Check first char [13:02:07]Sock 9.First char is OK [13:02:07]request: POST /json_proto HTTP/1.0 [13:02:07]Method: POST [13:02:07]URL: /json_proto [13:02:07]Method is POST - this is cgi request [13:02:07]url: /json_proto [13:02:07]query_string will be loaded in cgi processing [13:02:07]execute_cgi json_proto POST (null) [13:02:07]execute_cgi path=json_proto method=POST [13:02:07]POST find Content-Length [13:02:07]Host: 172.17.63.3:8080 [13:02:07]Content-Length: 676 [13:02:07]Content-Type: application/json [13:02:07] [13:02:07]POST finish read [13:02:07]Found Content-Length = 676 [13:02:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:07]execute_script... [13:02:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:07]POST & json_proto [13:02:07]process_json_proto [13:02:07]json parsed OK: [13:02:07]protocol is kg_v1.0 [13:02:07]action value=close_receipt [13:02:07]process_action close_receipt [13:02:07]cmd_close_receipt [13:02:07]MH_GetDate [13:02:07]Write to MH i2c: F0 00 00 3D 01 2D [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: F0 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: F0 09 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: F0 09 00 3D 01 00 4F E8 1C 67 50 D1 6C 64 E1 [13:02:07]GetLastDocTimeStamp 1729947703 [13:02:07]current date 1729947727 [13:02:07]FM_GetShiftState [13:02:07]SAM_PROTO_GetShiftState [13:02:07]wFMCommunicate request_size=4 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 13 01 00 [13:02:07]Write to MH i2c: E2 08 00 3E 01 80 13 01 00 00 00 00 00 BC [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 0E 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 0E 00 3E 01 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F1 [13:02:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:02:07]wFMCommunicate OK [13:02:07]SAM_PROTO_GetShiftState done [13:02:07]FM_GetShiftState done [13:02:07]opened in 1729902702 [13:02:07]opened+sec_in_day 1729989102 [13:02:07]quantity*price = 20003 [13:02:07]sum+1 = 20004 [13:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 186 26.10.2024 13:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156285 ФПД: 92792791300219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130207&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156285&fm=92792791300219&tin=02508201610067®Number=0000000000091693&sum=20000 [13:02:08]StoreToDocumentArchive [13:02:08]shift 536 fd 156285 [13:02:08]save to /storage/0536/doc_00156285 [13:02:08]save last doc name /storage/0536/doc_00156285 to /storage/kkm_last_doc_name [13:02:08]save OK [13:02:08]Clear old archive folders... [13:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:08]tlvbuf is 01685F40 [13:02:08]SAM_PROTO_ClearQueue [13:02:08]wFMCommunicate request_size=4 [13:02:08]MH_SAM_APDU [13:02:08]CAPDU: 80 09 00 00 [13:02:08]Write to MH i2c: E2 08 00 4B 01 80 09 00 00 00 00 00 00 BE [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:08]Read from MH i2c: E2 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 03 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [13:02:08]RAPDU: 90 00 [13:02:08]wFMCommunicate OK [13:02:08]SAM_PROTO_ClearQueue done [13:02:08]KKMCreateOFDPacket [13:02:08]OFDProtocolAddRootSTLVToBuf [13:02:08]FM_MakeSignedData [13:02:08]FM_MakeSignedData [13:02:08]SAM_PROTO_SignData [13:02:08]wFMCommunicate request_size=4 [13:02:08]MH_SAM_APDU [13:02:08]CAPDU: 80 0D 01 02 [13:02:08]Write to MH i2c: E2 08 00 4C 01 80 0D 01 02 00 00 00 00 C6 [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:08]Read from MH i2c: E2 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 03 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [13:02:08]RAPDU: 90 00 [13:02:08]wFMCommunicate OK [13:02:08]wFMCommunicate request_size=255 [13:02:08]MH_SAM_APDU [13:02:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 4F E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 62 02 00 35 04 06 00 54 [13:02:08]Write to MH i2c: E2 02 01 4D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 4F E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 62 02 00 35 04 06 00 54 00 00 DF [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:08]Read from MH i2c: E2 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 03 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [13:02:08]RAPDU: 90 00 [13:02:08]wFMCommunicate OK [13:02:08]wFMCommunicate request_size=10 [13:02:08]MH_SAM_APDU [13:02:08]CAPDU: 80 0D 02 02 05 65 01 5C F8 7B [13:02:08]Write to MH i2c: E2 0D 00 4E 01 80 0D 02 02 05 00 65 01 5C F8 7B 00 00 08 [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:08]Read from MH i2c: E2 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 03 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [13:02:08]RAPDU: 90 00 [13:02:08]wFMCommunicate OK [13:02:08]wFMCommunicate request_size=4 [13:02:08]MH_SAM_APDU [13:02:08]CAPDU: 80 0D 03 02 [13:02:08]Write to MH i2c: E2 08 00 4F 01 80 0D 03 02 00 00 00 00 CB [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:08]Read from MH i2c: E2 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 0B 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 0B 00 4F 01 00 5E CC F7 34 27 7B D8 2F 90 00 CA [13:02:08]RAPDU: 5E CC F7 34 27 7B D8 2F 90 00 [13:02:08]wFMCommunicate OK [13:02:08]SAM_PROTO_SignData done [13:02:08]FM_MakeSignedData done [13:02:08]CreateOFDProtocolMessage [13:02:08]wFMCommunicate request_size=4 [13:02:08]MH_SAM_APDU [13:02:08]CAPDU: 80 11 00 00 [13:02:08]Write to MH i2c: E2 08 00 50 01 80 11 00 00 00 00 00 00 CB [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:08]Read from MH i2c: E2 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 17 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 17 00 50 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [13:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:02:08]wFMCommunicate OK [13:02:08]CreateOFDProtocolMessage done [13:02:08]OFDSenderStorePacket 156285 [13:02:08]StoreOFDPacket docnum=156285 [13:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 00 FD 07 01 C1 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 4F E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 62 02 00 35 04 06 00 54 65 01 5C F8 7B 5E CC F7 34 27 7B D8 2F [13:02:08]CheckFolder [13:02:08]dirname=/storage/ofd_packets [13:02:08]CheckFolder done [13:02:08]ProducePacketName [13:02:08]name=ofd_packets/00156285 [13:02:08]NVStorageSaveData ofd_packets/00156285 [13:02:08]File name is /storage/ofd_packets/00156285 [13:02:08]Write 301 bytes [13:02:08]NVStorageSaveData done [13:02:08]OFDSenderStorePacket done [13:02:08]KKMCreateOFDPacket done [13:02:08]NVStorageSaveData kkm_last_timestamp [13:02:08]File name is /storage/kkm_last_timestamp [13:02:08]Write 4 bytes [13:02:08]NVStorageSaveData done [13:02:08]ExternCall_PrintAddStr [13:02:08]wPrintStart [13:02:08]Write to MH i2c: 01 00 00 51 01 52 [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: 01 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: 01 07 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: 01 07 00 51 01 00 00 00 00 00 FF 0F 67 [13:02:08]RasterBufferAndPrint [13:02:08]line Счет N : (1)99099 [13:02:08]line ИНН: 02508201610067 [13:02:08]line Контрольно-Кассовый Чек [13:02:08]line ПРОДАЖА [13:02:08]line ТРК (МРК, ГНК) : 21 [13:02:08]line Товар: 2710124130 [13:02:08]line Аи-92-К-5 [13:02:08]line 2.990 * 66.90 [13:02:08]line = 200.03 [13:02:08]line НДС 12% НСП 1% [13:02:08]line > о реализуемом товаре [13:02:08]line ОКРУГЛЕНИЕ: -0.03 [13:02:08]line ИТОГО: 200.00 [13:02:08]line Внесено: 200.00 [13:02:08]line СДАЧА: 0.00 [13:02:08]line НСП 1% : 1.77 [13:02:08]line НДС 12% : 21.24 [13:02:08]line Наличными: 200.00 [13:02:08]line Безнал.: 0.00 [13:02:08]line Место: АЗС № 143 "Партнер Нефть" [13:02:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:02:08]line СНО: Общий режим [13:02:08]line Чек 186 26.10.2024 13:02 [13:02:08]line Смена: 536 ФФД: 1.0 [13:02:08]line ЗНМ: 0300000096 [13:02:08]line РНМ: 0000000000091693 [13:02:08]line Версия ККМ: 001 [13:02:08]line ФМ: 0000000000871792 [13:02:08]line ФД: 156285 [13:02:08]line ФПД: 92792791300219 [13:02:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130207&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156285&fm=92792791300219&tin=02508201610067®Number=0000000000091693&sum=20000 [13:02:09]OFD Sender: Processing packet 156285 [packets to send 31, broken 30] [13:02:09]ProducePacketName [13:02:09]name=ofd_packets/00156285 [13:02:09]OFD Sender: To server: pG, [13:02:09]CommunicateWithHost lk.salyk.kg:30040 [13:02:09]ConnectInit lk.salyk.kg [13:02:09]written 0, free lines is 4095 [13:02:09]Connected sock=10 [13:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 00 FD 07 01 C1 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 4F E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 62 02 00 35 04 06 00 54 65 01 5C F8 7B 5E CC F7 34 27 7B D8 2F [13:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 76 8B 47 00 C6 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 62 02 00 F4 03 04 00 C2 8D 1C 67 B6 04 01 00 00 4D 23 1E 9D CD 80 3E 8F [13:02:09]CommunicateWithHost err = 0 [13:02:09]CheckOFDResponse [13:02:09]1017 (14) - 77093643461234 [13:02:09]1041 (16) - 0000000000871792 [13:02:09]1040 (4) - 156285 [13:02:09]1012 (4) - 26.10.2024 06:35 [13:02:09]1206 (1) - 0 [13:02:09]OFD Sender: Remove packet 156285 [13:02:09]ProducePacketName [13:02:09]name=ofd_packets/00156285 [13:02:09]NVStorageDeleteData [13:02:09]Write to MH i2c: 01 00 00 7C 01 7D [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: 01 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: 01 07 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: 01 07 00 7C 01 00 00 00 00 00 F1 0C 81 [13:02:09]RasterBufferAndPrint [13:02:09]line [13:02:09]line [13:02:09]line [13:02:09]line [13:02:09]line [13:02:09]written 0, free lines is 3319 [13:02:09]process_action close_receipt done [13:02:09]requested_data is exist [13:02:09]produce_requested_data [13:02:09]requested_item fm.sn is exist - process it [13:02:09]wFMCommunicate request_size=4 [13:02:09]MH_SAM_APDU [13:02:09]CAPDU: 80 11 00 00 [13:02:09]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:09]Read from MH i2c: E2 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 17 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [13:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:02:09]wFMCommunicate OK [13:02:09]requested_item fd.num is exist - process it [13:02:09]SAM_PROTO_GetFieldsCounters [13:02:09]wFMCommunicate request_size=4 [13:02:09]MH_SAM_APDU [13:02:09]CAPDU: 80 13 00 00 [13:02:09]Write to MH i2c: E2 08 00 84 01 80 13 00 00 00 00 00 00 01 [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:10]Read from MH i2c: E2 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 62 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 62 00 84 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [13:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:10]wFMCommunicate OK [13:02:10]SAM_PROTO_GetFieldsCounters done [13:02:10]requested_item shift.num is exist - process it [13:02:10]requested_item shift.opened is exist - process it [13:02:10]req_shift_opened [13:02:10]FM_GetShiftState [13:02:10]SAM_PROTO_GetShiftState [13:02:10]wFMCommunicate request_size=4 [13:02:10]MH_SAM_APDU [13:02:10]CAPDU: 80 13 01 00 [13:02:10]Write to MH i2c: E2 08 00 85 01 80 13 01 00 00 00 00 00 03 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:10]Read from MH i2c: E2 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 0E 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 0E 00 85 01 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 38 [13:02:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:02:10]wFMCommunicate OK [13:02:10]SAM_PROTO_GetShiftState done [13:02:10]FM_GetShiftState done [13:02:10]req_shift_opened done [13:02:10]requested_item shift.open_date is exist - process it [13:02:10]req_shift_open_date [13:02:10]req_shift_open_date done [13:02:10]produce_requested_data done [13:02:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156285,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:02:10]process_action_free close_receipt [13:02:10]json_value_free [13:02:10]json_value_free done [13:02:10]process_json_proto returns [13:02:10]Send response to host [13:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156285,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:02:10]free response buf [13:02:10]execute_script done [13:02:10]execute_script returns [13:02:10]free content buf [13:02:10]Sock 9.Close socket [13:02:10]Sock 9.Thread stoped [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:03:56]accept exits with 8 [13:03:56]New connection [13:03:56]New thread 3066834276 created [13:03:56]Thread 3066977636 joined [13:03:56]Waiting for new connection... [13:03:56] Sock 8.Parse request [13:03:56]Sock 8.Check first char [13:03:56]Sock 8.First char is OK [13:03:56]request: POST /json_proto HTTP/1.0 [13:03:56]Method: POST [13:03:56]URL: /json_proto [13:03:56]Method is POST - this is cgi request [13:03:56]url: /json_proto [13:03:56]query_string will be loaded in cgi processing [13:03:56]execute_cgi json_proto POST (null) [13:03:56]execute_cgi path=json_proto method=POST [13:03:56]POST find Content-Length [13:03:56]Host: 172.17.63.3:8080 [13:03:56]Content-Length: 678 [13:03:56]Content-Type: application/json [13:03:56] [13:03:56]POST finish read [13:03:56]Found Content-Length = 678 [13:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:56]execute_script... [13:03: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)99101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:56]POST & json_proto [13:03:56]process_json_proto [13:03:56]json parsed OK: [13:03:56]protocol is kg_v1.0 [13:03:56]action value=close_receipt [13:03:56]process_action close_receipt [13:03:56]cmd_close_receipt [13:03:56]MH_GetDate [13:03:56]Write to MH i2c: F0 00 00 86 01 76 [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: F0 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: F0 09 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: F0 09 00 86 01 00 BC E8 1C 67 50 D1 6C 64 97 [13:03:56]GetLastDocTimeStamp 1729947727 [13:03:56]current date 1729947836 [13:03:56]FM_GetShiftState [13:03:56]SAM_PROTO_GetShiftState [13:03:56]wFMCommunicate request_size=4 [13:03:56]MH_SAM_APDU [13:03:56]CAPDU: 80 13 01 00 [13:03:56]Write to MH i2c: E2 08 00 87 01 80 13 01 00 00 00 00 00 05 [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:56]Read from MH i2c: E2 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 0E 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 0E 00 87 01 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 3A [13:03:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:03:56]wFMCommunicate OK [13:03:56]SAM_PROTO_GetShiftState done [13:03:56]FM_GetShiftState done [13:03:56]opened in 1729902702 [13:03:56]opened+sec_in_day 1729989102 [13:03:56]quantity*price = 100050 [13:03:56]sum+1 = 100052 [13:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 187 26.10.2024 13:03 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156286 ФПД: 278862728693402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130357&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156286&fm=278862728693402&tin=02508201610067®Number=0000000000091693&sum=100000 [13:03:57]StoreToDocumentArchive [13:03:57]shift 536 fd 156286 [13:03:57]save to /storage/0536/doc_00156286 [13:03:57]save last doc name /storage/0536/doc_00156286 to /storage/kkm_last_doc_name [13:03:57]save OK [13:03:57]Clear old archive folders... [13:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:03:57]tlvbuf is 01686A10 [13:03:57]SAM_PROTO_ClearQueue [13:03:57]wFMCommunicate request_size=4 [13:03:57]MH_SAM_APDU [13:03:57]CAPDU: 80 09 00 00 [13:03:57]Write to MH i2c: E2 08 00 94 01 80 09 00 00 00 00 00 00 07 [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:57]Read from MH i2c: E2 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 03 00 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [13:03:57]RAPDU: 90 00 [13:03:57]wFMCommunicate OK [13:03:57]SAM_PROTO_ClearQueue done [13:03:57]KKMCreateOFDPacket [13:03:57]OFDProtocolAddRootSTLVToBuf [13:03:57]FM_MakeSignedData [13:03:57]FM_MakeSignedData [13:03:57]SAM_PROTO_SignData [13:03:57]wFMCommunicate request_size=4 [13:03:57]MH_SAM_APDU [13:03:57]CAPDU: 80 0D 01 02 [13:03:57]Write to MH i2c: E2 08 00 95 01 80 0D 01 02 00 00 00 00 0F [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:57]Read from MH i2c: E2 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 03 00 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [13:03:57]RAPDU: 90 00 [13:03:57]wFMCommunicate OK [13:03:57]wFMCommunicate request_size=255 [13:03:57]MH_SAM_APDU [13:03:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 BD E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 62 02 00 35 04 06 00 FD 9F C9 E2 [13:03:57]Write to MH i2c: E2 02 01 96 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 BD E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 62 02 00 35 04 06 00 FD 9F C9 E2 00 00 BF [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 03 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [13:03:58]RAPDU: 90 00 [13:03:58]wFMCommunicate OK [13:03:58]wFMCommunicate request_size=7 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 0D 02 02 02 86 9A [13:03:58]Write to MH i2c: E2 0A 00 97 01 80 0D 02 02 02 00 86 9A 00 00 36 [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 03 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [13:03:58]RAPDU: 90 00 [13:03:58]wFMCommunicate OK [13:03:58]wFMCommunicate request_size=4 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 0D 03 02 [13:03:58]Write to MH i2c: E2 08 00 98 01 80 0D 03 02 00 00 00 00 14 [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 0B 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 0B 00 98 01 00 D7 F5 3D B2 54 C6 3E 52 90 00 7A [13:03:58]RAPDU: D7 F5 3D B2 54 C6 3E 52 90 00 [13:03:58]wFMCommunicate OK [13:03:58]SAM_PROTO_SignData done [13:03:58]FM_MakeSignedData done [13:03:58]CreateOFDProtocolMessage [13:03:58]wFMCommunicate request_size=4 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 11 00 00 [13:03:58]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 17 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [13:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:03:58]wFMCommunicate OK [13:03:58]CreateOFDProtocolMessage done [13:03:58]OFDSenderStorePacket 156286 [13:03:58]StoreOFDPacket docnum=156286 [13:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A5 3D 04 01 51 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 BD E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 62 02 00 35 04 06 00 FD 9F C9 E2 86 9A D7 F5 3D B2 54 C6 3E 52 [13:03:58]CheckFolder [13:03:58]dirname=/storage/ofd_packets [13:03:58]CheckFolder done [13:03:58]ProducePacketName [13:03:58]name=ofd_packets/00156286 [13:03:58]NVStorageSaveData ofd_packets/00156286 [13:03:58]File name is /storage/ofd_packets/00156286 [13:03:58]Write 298 bytes [13:03:58]NVStorageSaveData done [13:03:58]OFDSenderStorePacket done [13:03:58]KKMCreateOFDPacket done [13:03:58]NVStorageSaveData kkm_last_timestamp [13:03:58]File name is /storage/kkm_last_timestamp [13:03:58]Write 4 bytes [13:03:58]NVStorageSaveData done [13:03:58]ExternCall_PrintAddStr [13:03:58]wPrintStart [13:03:58]Write to MH i2c: 01 00 00 9A 01 9B [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 07 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 FF 0F B0 [13:03:58]RasterBufferAndPrint [13:03:58]line Счет N : (1)99101 [13:03:58]line ИНН: 02508201610067 [13:03:58]line Контрольно-Кассовый Чек [13:03:58]line ПРОДАЖА [13:03:58]line ТРК (МРК, ГНК) : 32 [13:03:58]line Товар: 2710194210 [13:03:58]line ДТ-К-5 [13:03:58]line 13.130 * 76.20 [13:03:58]line = 1000.51 [13:03:58]line НДС 12% НСП 1% [13:03:58]line > о реализуемом товаре [13:03:58]line ОКРУГЛЕНИЕ: -0.51 [13:03:58]line ИТОГО: 1000.00 [13:03:58]line Внесено: 1000.00 [13:03:58]line СДАЧА: 0.00 [13:03:58]line НСП 1% : 8.85 [13:03:58]line НДС 12% : 106.25 [13:03:58]line Наличными: 1000.00 [13:03:58]line Безнал.: 0.00 [13:03:58]line Место: АЗС № 143 "Партнер Нефть" [13:03:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:03:58]line СНО: Общий режим [13:03:58]line Чек 187 26.10.2024 13:03 [13:03:58]line Смена: 536 ФФД: 1.0 [13:03:58]line ЗНМ: 0300000096 [13:03:58]line РНМ: 0000000000091693 [13:03:58]line Версия ККМ: 001 [13:03:58]line ФМ: 0000000000871792 [13:03:58]line ФД: 156286 [13:03:58]line ФПД: 278862728693402 [13:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130357&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156286&fm=278862728693402&tin=02508201610067®Number=0000000000091693&sum=100000 [13:03:58]OFD Sender: Processing packet 156286 [packets to send 31, broken 30] [13:03:58]ProducePacketName [13:03:58]name=ofd_packets/00156286 [13:03:58]OFD Sender: To server: pG, [13:03:58]CommunicateWithHost lk.salyk.kg:30040 [13:03:58]ConnectInit lk.salyk.kg [13:03:58]written 0, free lines is 4095 [13:03:58]Connected sock=10 [13:03:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A5 3D 04 01 51 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 BD E8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 62 02 00 35 04 06 00 FD 9F C9 E2 86 9A D7 F5 3D B2 54 C6 3E 52 [13:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3E A0 47 00 62 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 62 02 00 F4 03 04 00 2F 8E 1C 67 B6 04 01 00 00 CE 95 C1 E2 E9 9E AF C0 [13:03:59]CommunicateWithHost err = 0 [13:03:59]CheckOFDResponse [13:03:59]1017 (14) - 77093643461234 [13:03:59]1041 (16) - 0000000000871792 [13:03:59]1040 (4) - 156286 [13:03:59]1012 (4) - 26.10.2024 06:37 [13:03:59]1206 (1) - 0 [13:03:59]OFD Sender: Remove packet 156286 [13:03:59]ProducePacketName [13:03:59]name=ofd_packets/00156286 [13:03:59]NVStorageDeleteData [13:03:59]Write to MH i2c: 01 00 00 C5 01 C6 [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: 01 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: 01 07 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 ED 0C C6 [13:03:59]RasterBufferAndPrint [13:03:59]line [13:03:59]line [13:03:59]line [13:03:59]line [13:03:59]line [13:03:59]written 0, free lines is 3315 [13:03:59]process_action close_receipt done [13:03:59]requested_data is exist [13:03:59]produce_requested_data [13:03:59]requested_item fm.sn is exist - process it [13:03:59]wFMCommunicate request_size=4 [13:03:59]MH_SAM_APDU [13:03:59]CAPDU: 80 11 00 00 [13:03:59]Write to MH i2c: E2 08 00 CC 01 80 11 00 00 00 00 00 00 47 [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 17 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 17 00 CC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [13:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:03:59]wFMCommunicate OK [13:03:59]requested_item fd.num is exist - process it [13:03:59]SAM_PROTO_GetFieldsCounters [13:03:59]wFMCommunicate request_size=4 [13:03:59]MH_SAM_APDU [13:03:59]CAPDU: 80 13 00 00 [13:03:59]Write to MH i2c: E2 08 00 CD 01 80 13 00 00 00 00 00 00 4A [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 62 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 62 00 CD 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [13:03: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:59]wFMCommunicate OK [13:03:59]SAM_PROTO_GetFieldsCounters done [13:03:59]requested_item shift.num is exist - process it [13:03:59]requested_item shift.opened is exist - process it [13:03:59]req_shift_opened [13:03:59]FM_GetShiftState [13:03:59]SAM_PROTO_GetShiftState [13:03:59]wFMCommunicate request_size=4 [13:03:59]MH_SAM_APDU [13:03:59]CAPDU: 80 13 01 00 [13:03:59]Write to MH i2c: E2 08 00 CE 01 80 13 01 00 00 00 00 00 4C [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 0E 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 0E 00 CE 01 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 81 [13:03:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:03:59]wFMCommunicate OK [13:03:59]SAM_PROTO_GetShiftState done [13:03:59]FM_GetShiftState done [13:03:59]req_shift_opened done [13:03:59]requested_item shift.open_date is exist - process it [13:03:59]req_shift_open_date [13:03:59]req_shift_open_date done [13:03:59]produce_requested_data done [13:03:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156286,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:03:59]process_action_free close_receipt [13:03:59]json_value_free [13:03:59]json_value_free done [13:03:59]process_json_proto returns [13:03:59]Send response to host [13:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156286,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:03:59]free response buf [13:03:59]execute_script done [13:03:59]execute_script returns [13:03:59]free content buf [13:03:59]Sock 8.Close socket [13:03:59]Sock 8.Thread stoped [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]accept exits with 9 [13:05:24]New connection [13:05:24]New thread 3066977636 created [13:05:24]Thread 3066834276 joined [13:05:24]Waiting for new connection... [13:05:24] Sock 9.Parse request [13:05:24]Sock 9.Check first char [13:05:24]Sock 9.First char is OK [13:05:24]request: POST /json_proto HTTP/1.0 [13:05:24]Method: POST [13:05:24]URL: /json_proto [13:05:24]Method is POST - this is cgi request [13:05:24]url: /json_proto [13:05:24]query_string will be loaded in cgi processing [13:05:24]execute_cgi json_proto POST (null) [13:05:24]execute_cgi path=json_proto method=POST [13:05:24]POST find Content-Length [13:05:24]Host: 172.17.63.3:8080 [13:05:24]Content-Length: 676 [13:05:24]Content-Type: application/json [13:05:24] [13:05:24]POST finish read [13:05:24]Found Content-Length = 676 [13:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:24]execute_script... [13:05:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:24]POST & json_proto [13:05:24]process_json_proto [13:05:24]json parsed OK: [13:05:24]protocol is kg_v1.0 [13:05:24]action value=close_receipt [13:05:24]process_action close_receipt [13:05:24]cmd_close_receipt [13:05:24]MH_GetDate [13:05:24]Write to MH i2c: F0 00 00 CF 01 BF [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 09 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 09 00 CF 01 00 14 E9 1C 67 50 D1 6C 64 39 [13:05:24]GetLastDocTimeStamp 1729947837 [13:05:24]current date 1729947924 [13:05:24]FM_GetShiftState [13:05:24]SAM_PROTO_GetShiftState [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 13 01 00 [13:05:24]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 83 [13:05:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:05:24]wFMCommunicate OK [13:05:24]SAM_PROTO_GetShiftState done [13:05:24]FM_GetShiftState done [13:05:24]opened in 1729902702 [13:05:24]opened+sec_in_day 1729989102 [13:05:24]quantity*price = 50041 [13:05:24]sum+1 = 50042 [13:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 188 26.10.2024 13:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156287 ФПД: 196825157630709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130524&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156287&fm=196825157630709&tin=02508201610067®Number=0000000000091693&sum=50000 [13:05:25]StoreToDocumentArchive [13:05:25]shift 536 fd 156287 [13:05:25]save to /storage/0536/doc_00156287 [13:05:25]save last doc name /storage/0536/doc_00156287 to /storage/kkm_last_doc_name [13:05:25]save OK [13:05:25]Clear old archive folders... [13:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:25]tlvbuf is 01672F30 [13:05:25]SAM_PROTO_ClearQueue [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 09 00 00 [13:05:25]Write to MH i2c: E2 08 00 DD 01 80 09 00 00 00 00 00 00 50 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_ClearQueue done [13:05:25]KKMCreateOFDPacket [13:05:25]OFDProtocolAddRootSTLVToBuf [13:05:25]FM_MakeSignedData [13:05:25]FM_MakeSignedData [13:05:25]SAM_PROTO_SignData [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 01 02 [13:05:25]Write to MH i2c: E2 08 00 DE 01 80 0D 01 02 00 00 00 00 58 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=255 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 14 E9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 62 02 00 35 04 06 00 B3 [13:05:25]Write to MH i2c: E2 02 01 DF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 14 E9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 62 02 00 35 04 06 00 B3 00 00 D8 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=10 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 02 02 05 02 ED 9A 7A F5 [13:05:26]Write to MH i2c: E2 0D 00 E0 01 80 0D 02 02 05 00 02 ED 9A 7A F5 00 00 5D [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 03 02 [13:05:26]Write to MH i2c: E2 08 00 E1 01 80 0D 03 02 00 00 00 00 5D [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 0B 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 0B 00 E1 01 00 0B 0F 6E 91 9F A8 7F 97 90 00 D4 [13:05:26]RAPDU: 0B 0F 6E 91 9F A8 7F 97 90 00 [13:05:26]wFMCommunicate OK [13:05:26]SAM_PROTO_SignData done [13:05:26]FM_MakeSignedData done [13:05:26]CreateOFDProtocolMessage [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 11 00 00 [13:05:26]Write to MH i2c: E2 08 00 E2 01 80 11 00 00 00 00 00 00 5D [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 17 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 17 00 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B2 [13:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:05:26]wFMCommunicate OK [13:05:26]CreateOFDProtocolMessage done [13:05:26]OFDSenderStorePacket 156287 [13:05:26]StoreOFDPacket docnum=156287 [13:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE C1 07 01 38 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 14 E9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 62 02 00 35 04 06 00 B3 02 ED 9A 7A F5 0B 0F 6E 91 9F A8 7F 97 [13:05:26]CheckFolder [13:05:26]dirname=/storage/ofd_packets [13:05:26]CheckFolder done [13:05:26]ProducePacketName [13:05:26]name=ofd_packets/00156287 [13:05:26]NVStorageSaveData ofd_packets/00156287 [13:05:26]File name is /storage/ofd_packets/00156287 [13:05:26]Write 301 bytes [13:05:26]NVStorageSaveData done [13:05:26]OFDSenderStorePacket done [13:05:26]KKMCreateOFDPacket done [13:05:26]NVStorageSaveData kkm_last_timestamp [13:05:26]File name is /storage/kkm_last_timestamp [13:05:26]Write 4 bytes [13:05:26]NVStorageSaveData done [13:05:26]ExternCall_PrintAddStr [13:05:26]wPrintStart [13:05:26]Write to MH i2c: 01 00 00 E3 01 E4 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 E3 01 00 00 00 00 00 FF 0F F9 [13:05:26]RasterBufferAndPrint [13:05:26]line Счет N : (1)99102 [13:05:26]line ИНН: 02508201610067 [13:05:26]line Контрольно-Кассовый Чек [13:05:26]line ПРОДАЖА [13:05:26]line ТРК (МРК, ГНК) : 11 [13:05:26]line Товар: 2710124130 [13:05:26]line Аи-92-К-5 [13:05:26]line 7.480 * 66.90 [13:05:26]line = 500.41 [13:05:26]line НДС 12% НСП 1% [13:05:26]line > о реализуемом товаре [13:05:26]line ОКРУГЛЕНИЕ: -0.41 [13:05:26]line ИТОГО: 500.00 [13:05:26]line Внесено: 500.00 [13:05:26]line СДАЧА: 0.00 [13:05:26]line НСП 1% : 4.43 [13:05:26]line НДС 12% : 53.14 [13:05:26]line Наличными: 500.00 [13:05:26]line Безнал.: 0.00 [13:05:26]line Место: АЗС № 143 "Партнер Нефть" [13:05:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:05:26]line СНО: Общий режим [13:05:26]line Чек 188 26.10.2024 13:05 [13:05:26]line Смена: 536 ФФД: 1.0 [13:05:26]line ЗНМ: 0300000096 [13:05:26]line РНМ: 0000000000091693 [13:05:26]line Версия ККМ: 001 [13:05:26]line ФМ: 0000000000871792 [13:05:26]line ФД: 156287 [13:05:26]line ФПД: 196825157630709 [13:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130524&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156287&fm=196825157630709&tin=02508201610067®Number=0000000000091693&sum=50000 [13:05:26]OFD Sender: Processing packet 156287 [packets to send 31, broken 30] [13:05:26]ProducePacketName [13:05:26]name=ofd_packets/00156287 [13:05:26]OFD Sender: To server: pG, [13:05:26]CommunicateWithHost lk.salyk.kg:30040 [13:05:26]ConnectInit lk.salyk.kg [13:05:26]written 0, free lines is 4095 [13:05:26]Connected sock=10 [13:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE C1 07 01 38 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 14 E9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 62 02 00 35 04 06 00 B3 02 ED 9A 7A F5 0B 0F 6E 91 9F A8 7F 97 [13:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EE 08 47 00 D2 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 31 37 39 32 10 04 04 00 7F 62 02 00 F4 03 04 00 87 8E 1C 67 B6 04 01 00 00 CB C9 67 0C 70 3D 15 78 [13:05:26]CommunicateWithHost err = 0 [13:05:26]CheckOFDResponse [13:05:26]1017 (14) - 77093643461234 [13:05:26]1041 (16) - 0000000000871792 [13:05:26]1040 (4) - 156287 [13:05:26]1012 (4) - 26.10.2024 06:39 [13:05:26]1206 (1) - 0 [13:05:26]OFD Sender: Remove packet 156287 [13:05:26]ProducePacketName [13:05:26]name=ofd_packets/00156287 [13:05:26]NVStorageDeleteData [13:05:26]Write to MH i2c: 01 00 00 0E 02 10 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 F7 0C 1A [13:05:26]RasterBufferAndPrint [13:05:26]line [13:05:26]line [13:05:26]line [13:05:26]line [13:05:26]line [13:05:26]written 0, free lines is 3326 [13:05:26]process_action close_receipt done [13:05:26]requested_data is exist [13:05:26]produce_requested_data [13:05:26]requested_item fm.sn is exist - process it [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 11 00 00 [13:05:26]Write to MH i2c: E2 08 00 15 02 80 11 00 00 00 00 00 00 91 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 17 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 17 00 15 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E6 [13:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:05:27]wFMCommunicate OK [13:05:27]requested_item fd.num is exist - process it [13:05:27]SAM_PROTO_GetFieldsCounters [13:05:27]wFMCommunicate request_size=4 [13:05:27]MH_SAM_APDU [13:05:27]CAPDU: 80 13 00 00 [13:05:27]Write to MH i2c: E2 08 00 16 02 80 13 00 00 00 00 00 00 94 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 62 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 62 00 16 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [13:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:27]wFMCommunicate OK [13:05:27]SAM_PROTO_GetFieldsCounters done [13:05:27]requested_item shift.num is exist - process it [13:05:27]requested_item shift.opened is exist - process it [13:05:27]req_shift_opened [13:05:27]FM_GetShiftState [13:05:27]SAM_PROTO_GetShiftState [13:05:27]wFMCommunicate request_size=4 [13:05:27]MH_SAM_APDU [13:05:27]CAPDU: 80 13 01 00 [13:05:27]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 0E 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CB [13:05:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:05:27]wFMCommunicate OK [13:05:27]SAM_PROTO_GetShiftState done [13:05:27]FM_GetShiftState done [13:05:27]req_shift_opened done [13:05:27]requested_item shift.open_date is exist - process it [13:05:27]req_shift_open_date [13:05:27]req_shift_open_date done [13:05:27]produce_requested_data done [13:05:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156287,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:05:27]process_action_free close_receipt [13:05:27]json_value_free [13:05:27]json_value_free done [13:05:27]process_json_proto returns [13:05:27]Send response to host [13:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156287,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:05:27]free response buf [13:05:27]execute_script done [13:05:27]execute_script returns [13:05:27]free content buf [13:05:27]Sock 9.Close socket [13:05:27]Sock 9.Thread stoped [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:47]accept exits with 8 [13:09:47]New connection [13:09:47]New thread 3066834276 created [13:09:47]Thread 3066977636 joined [13:09:47]Waiting for new connection... [13:09:47] Sock 8.Parse request [13:09:47]Sock 8.Check first char [13:09:47]Sock 8.First char is OK [13:09:47]request: POST /json_proto HTTP/1.0 [13:09:47]Method: POST [13:09:47]URL: /json_proto [13:09:47]Method is POST - this is cgi request [13:09:47]url: /json_proto [13:09:47]query_string will be loaded in cgi processing [13:09:47]execute_cgi json_proto POST (null) [13:09:47]execute_cgi path=json_proto method=POST [13:09:47]POST find Content-Length [13:09:47]Host: 172.17.63.3:8080 [13:09:47]Content-Length: 768 [13:09:47]Content-Type: application/json [13:09:47] [13:09:47]POST finish read [13:09:47]Found Content-Length = 768 [13:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:47]execute_script... [13:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:47]POST & json_proto [13:09:47]process_json_proto [13:09:47]json parsed OK: [13:09:47]protocol is kg_v1.0 [13:09:47]action value=close_receipt [13:09:47]process_action close_receipt [13:09:47]cmd_close_receipt [13:09:47]MH_GetDate [13:09:47]Write to MH i2c: F0 00 00 18 02 09 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 09 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 09 00 18 02 00 1C EA 1C 67 50 D1 6C 64 8C [13:09:47]GetLastDocTimeStamp 1729947924 [13:09:47]current date 1729948188 [13:09:47]FM_GetShiftState [13:09:47]SAM_PROTO_GetShiftState [13:09:47]wFMCommunicate request_size=4 [13:09:47]MH_SAM_APDU [13:09:48]CAPDU: 80 13 01 00 [13:09:48]Write to MH i2c: E2 08 00 19 02 80 13 01 00 00 00 00 00 98 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 0E 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 0E 00 19 02 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CD [13:09:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:09:48]wFMCommunicate OK [13:09:48]SAM_PROTO_GetShiftState done [13:09:48]FM_GetShiftState done [13:09:48]opened in 1729902702 [13:09:48]opened+sec_in_day 1729989102 [13:09:48]quantity*price = 100015 [13:09:48]sum+1 = 100017 [13:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 189 26.10.2024 13:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156288 ФПД: 126313333955312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130948&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156288&fm=126313333955312&tin=02508201610067®Number=0000000000091693&sum=100016 [13:09:49]StoreToDocumentArchive [13:09:49]shift 536 fd 156288 [13:09:49]save to /storage/0536/doc_00156288 [13:09:49]save last doc name /storage/0536/doc_00156288 to /storage/kkm_last_doc_name [13:09:49]save OK [13:09:49]Clear old archive folders... [13:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:49]tlvbuf is 016863D0 [13:09:49]SAM_PROTO_ClearQueue [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 09 00 00 [13:09:49]Write to MH i2c: E2 08 00 26 02 80 09 00 00 00 00 00 00 9A [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]SAM_PROTO_ClearQueue done [13:09:49]KKMCreateOFDPacket [13:09:49]OFDProtocolAddRootSTLVToBuf [13:09:49]FM_MakeSignedData [13:09:49]FM_MakeSignedData [13:09:49]SAM_PROTO_SignData [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 01 02 [13:09:49]Write to MH i2c: E2 08 00 27 02 80 0D 01 02 00 00 00 00 A2 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]wFMCommunicate request_size=255 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1C EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 62 02 00 35 04 06 00 72 [13:09:49]Write to MH i2c: E2 02 01 28 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1C EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 62 02 00 35 04 06 00 72 00 00 06 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]wFMCommunicate request_size=10 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 02 02 05 E1 9D 66 9A F0 [13:09:49]Write to MH i2c: E2 0D 00 29 02 80 0D 02 02 05 00 E1 9D 66 9A F0 00 00 1D [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 03 02 [13:09:49]Write to MH i2c: E2 08 00 2A 02 80 0D 03 02 00 00 00 00 A7 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 0B 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 0B 00 2A 02 00 FA 3B 6E 8D 9D EC 5C 5E 90 00 1B [13:09:49]RAPDU: FA 3B 6E 8D 9D EC 5C 5E 90 00 [13:09:49]wFMCommunicate OK [13:09:49]SAM_PROTO_SignData done [13:09:49]FM_MakeSignedData done [13:09:49]CreateOFDProtocolMessage [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 11 00 00 [13:09:49]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 17 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 17 00 2B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FC [13:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:09:49]wFMCommunicate OK [13:09:49]CreateOFDProtocolMessage done [13:09:49]OFDSenderStorePacket 156288 [13:09:49]StoreOFDPacket docnum=156288 [13:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E2 F2 07 01 EB 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1C EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 62 02 00 35 04 06 00 72 E1 9D 66 9A F0 FA 3B 6E 8D 9D EC 5C 5E [13:09:49]CheckFolder [13:09:49]dirname=/storage/ofd_packets [13:09:49]CheckFolder done [13:09:49]ProducePacketName [13:09:49]name=ofd_packets/00156288 [13:09:49]NVStorageSaveData ofd_packets/00156288 [13:09:49]File name is /storage/ofd_packets/00156288 [13:09:49]Write 301 bytes [13:09:49]NVStorageSaveData done [13:09:49]OFDSenderStorePacket done [13:09:49]KKMCreateOFDPacket done [13:09:49]NVStorageSaveData kkm_last_timestamp [13:09:49]File name is /storage/kkm_last_timestamp [13:09:49]Write 4 bytes [13:09:49]NVStorageSaveData done [13:09:49]ExternCall_PrintAddStr [13:09:49]wPrintStart [13:09:49]Write to MH i2c: 01 00 00 2C 02 2E [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 FF 0F 43 [13:09:49]RasterBufferAndPrint [13:09:49]line Счет N : (1)99103 [13:09:49]line ИНН: 02508201610067 [13:09:49]line Контрольно-Кассовый Чек [13:09:49]line ПРОДАЖА [13:09:49]line ТРК (МРК, ГНК) : 21 [13:09:49]line Товар: 2710124130 [13:09:49]line Аи-92-К-5 [13:09:49]line 14.950 * 66.90 [13:09:49]line = 1000.16 [13:09:49]line НДС 12% НСП 1% [13:09:49]line > о реализуемом товаре [13:09:49]line ИТОГО: 1000.16 [13:09:49]line НСП 1% : 8.85 [13:09:49]line НДС 12% : 106.21 [13:09:49]line Наличными: 0.00 [13:09:49]line Безнал.: 1000.16 [13:09:49]line Место: АЗС № 143 "Партнер Нефть" [13:09:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:09:49]line СНО: Общий режим [13:09:49]line Чек 189 26.10.2024 13:09 [13:09:49]line Смена: 536 ФФД: 1.0 [13:09:49]line ЗНМ: 0300000096 [13:09:49]line РНМ: 0000000000091693 [13:09:49]line Версия ККМ: 001 [13:09:49]line Платежная система: Mbank [13:09:49]line ФМ: 0000000000871792 [13:09:49]line ФД: 156288 [13:09:49]line ФПД: 126313333955312 [13:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130948&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156288&fm=126313333955312&tin=02508201610067®Number=0000000000091693&sum=100016 [13:09:50]written 0, free lines is 4095 [13:09:50]OFD Sender: Processing packet 156288 [packets to send 31, broken 30] [13:09:50]ProducePacketName [13:09:50]name=ofd_packets/00156288 [13:09:50]OFD Sender: To server: pG, [13:09:50]CommunicateWithHost lk.salyk.kg:30040 [13:09:50]ConnectInit lk.salyk.kg [13:09:50]Connected sock=6 [13:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E2 F2 07 01 EB 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1C EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 62 02 00 35 04 06 00 72 E1 9D 66 9A F0 FA 3B 6E 8D 9D EC 5C 5E [13:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 86 95 47 00 7B 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 62 02 00 F4 03 04 00 8E 8F 1C 67 B6 04 01 00 00 AF 52 A6 11 5F 09 37 93 [13:09:50]CommunicateWithHost err = 0 [13:09:50]CheckOFDResponse [13:09:50]1017 (14) - 77093643461234 [13:09:50]1041 (16) - 0000000000871792 [13:09:50]1040 (4) - 156288 [13:09:50]1012 (4) - 26.10.2024 06:43 [13:09:50]1206 (1) - 0 [13:09:50]OFD Sender: Remove packet 156288 [13:09:50]ProducePacketName [13:09:50]name=ofd_packets/00156288 [13:09:50]NVStorageDeleteData [13:09:50]Write to MH i2c: 01 00 00 55 02 57 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 0C 0D 77 [13:09:50]RasterBufferAndPrint [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]written 0, free lines is 3347 [13:09:50]process_action close_receipt done [13:09:50]requested_data is exist [13:09:50]produce_requested_data [13:09:50]requested_item fm.sn is exist - process it [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 11 00 00 [13:09:50]Write to MH i2c: E2 08 00 5C 02 80 11 00 00 00 00 00 00 D8 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 17 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 17 00 5C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2D [13:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:09:50]wFMCommunicate OK [13:09:50]requested_item fd.num is exist - process it [13:09:50]SAM_PROTO_GetFieldsCounters [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 13 00 00 [13:09:50]Write to MH i2c: E2 08 00 5D 02 80 13 00 00 00 00 00 00 DB [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 62 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 62 00 5D 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 80 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [13:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 80 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:50]wFMCommunicate OK [13:09:50]SAM_PROTO_GetFieldsCounters done [13:09:50]requested_item shift.num is exist - process it [13:09:50]requested_item shift.opened is exist - process it [13:09:50]req_shift_opened [13:09:50]FM_GetShiftState [13:09:50]SAM_PROTO_GetShiftState [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 13 01 00 [13:09:50]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 0E 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 12 [13:09:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:09:50]wFMCommunicate OK [13:09:50]SAM_PROTO_GetShiftState done [13:09:50]FM_GetShiftState done [13:09:50]req_shift_opened done [13:09:50]requested_item shift.open_date is exist - process it [13:09:50]req_shift_open_date [13:09:50]req_shift_open_date done [13:09:50]produce_requested_data done [13:09:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156288,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:09:50]process_action_free close_receipt [13:09:50]json_value_free [13:09:50]json_value_free done [13:09:50]process_json_proto returns [13:09:50]Send response to host [13:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156288,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:09:50]free response buf [13:09:50]execute_script done [13:09:50]execute_script returns [13:09:50]free content buf [13:09:50]Sock 8.Close socket [13:09:50]Sock 8.Thread stoped [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:21]accept exits with 9 [13:11:21]New connection [13:11:21]New thread 3066977636 created [13:11:21]Thread 3066834276 joined [13:11:21]Waiting for new connection... [13:11:21] Sock 9.Parse request [13:11:21]Sock 9.Check first char [13:11:21]Sock 9.First char is OK [13:11:21]request: POST /json_proto HTTP/1.0 [13:11:21]Method: POST [13:11:21]URL: /json_proto [13:11:21]Method is POST - this is cgi request [13:11:21]url: /json_proto [13:11:21]query_string will be loaded in cgi processing [13:11:21]execute_cgi json_proto POST (null) [13:11:21]execute_cgi path=json_proto method=POST [13:11:21]POST find Content-Length [13:11:21]Host: 172.17.63.3:8080 [13:11:21]Content-Length: 676 [13:11:21]Content-Type: application/json [13:11:21] [13:11:21]POST finish read [13:11:21]Found Content-Length = 676 [13:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:21]execute_script... [13:11:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:21]POST & json_proto [13:11:21]process_json_proto [13:11:21]json parsed OK: [13:11:21]protocol is kg_v1.0 [13:11:21]action value=close_receipt [13:11:21]process_action close_receipt [13:11:21]cmd_close_receipt [13:11:21]MH_GetDate [13:11:21]Write to MH i2c: F0 00 00 5F 02 50 [13:11:21]Write i2c OK [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: F0 [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: F0 09 00 [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: F0 09 00 5F 02 00 79 EA 1C 67 50 D1 6C 64 30 [13:11:21]GetLastDocTimeStamp 1729948188 [13:11:21]current date 1729948281 [13:11:21]FM_GetShiftState [13:11:21]SAM_PROTO_GetShiftState [13:11:21]wFMCommunicate request_size=4 [13:11:21]MH_SAM_APDU [13:11:21]CAPDU: 80 13 01 00 [13:11:21]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [13:11:21]Write i2c OK [13:11:21]MH_I2C_Read... [13:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:21]Read from MH i2c: E2 [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: E2 0E 00 [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 14 [13:11:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:11:21]wFMCommunicate OK [13:11:21]SAM_PROTO_GetShiftState done [13:11:21]FM_GetShiftState done [13:11:21]opened in 1729902702 [13:11:21]opened+sec_in_day 1729989102 [13:11:21]quantity*price = 40006 [13:11:21]sum+1 = 40007 [13:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 190 26.10.2024 13:11 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156289 ФПД: 163845355366756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131121&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156289&fm=163845355366756&tin=02508201610067®Number=0000000000091693&sum=40000 [13:11:22]StoreToDocumentArchive [13:11:22]shift 536 fd 156289 [13:11:22]save to /storage/0536/doc_00156289 [13:11:22]save last doc name /storage/0536/doc_00156289 to /storage/kkm_last_doc_name [13:11:22]save OK [13:11:22]Clear old archive folders... [13:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:22]tlvbuf is 01674400 [13:11:22]SAM_PROTO_ClearQueue [13:11:22]wFMCommunicate request_size=4 [13:11:22]MH_SAM_APDU [13:11:22]CAPDU: 80 09 00 00 [13:11:22]Write to MH i2c: E2 08 00 6D 02 80 09 00 00 00 00 00 00 E1 [13:11:22]Write i2c OK [13:11:22]MH_I2C_Read... [13:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:22]Read from MH i2c: E2 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 03 00 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [13:11:22]RAPDU: 90 00 [13:11:22]wFMCommunicate OK [13:11:22]SAM_PROTO_ClearQueue done [13:11:22]KKMCreateOFDPacket [13:11:22]OFDProtocolAddRootSTLVToBuf [13:11:22]FM_MakeSignedData [13:11:22]FM_MakeSignedData [13:11:22]SAM_PROTO_SignData [13:11:22]wFMCommunicate request_size=4 [13:11:22]MH_SAM_APDU [13:11:22]CAPDU: 80 0D 01 02 [13:11:22]Write to MH i2c: E2 08 00 6E 02 80 0D 01 02 00 00 00 00 E9 [13:11:22]Write i2c OK [13:11:22]MH_I2C_Read... [13:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:22]Read from MH i2c: E2 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 03 00 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [13:11:22]RAPDU: 90 00 [13:11:22]wFMCommunicate OK [13:11:22]wFMCommunicate request_size=255 [13:11:22]MH_SAM_APDU [13:11:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 79 EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 62 02 00 35 04 06 00 95 [13:11:22]Write to MH i2c: E2 02 01 6F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 79 EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 62 02 00 35 04 06 00 95 00 00 84 [13:11:22]Write i2c OK [13:11:22]MH_I2C_Read... [13:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:23]Read from MH i2c: E2 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 03 00 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [13:11:23]RAPDU: 90 00 [13:11:23]wFMCommunicate OK [13:11:23]wFMCommunicate request_size=10 [13:11:23]MH_SAM_APDU [13:11:23]CAPDU: 80 0D 02 02 05 04 38 34 69 64 [13:11:23]Write to MH i2c: E2 0D 00 70 02 80 0D 02 02 05 00 04 38 34 69 64 00 00 33 [13:11:23]Write i2c OK [13:11:23]MH_I2C_Read... [13:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:23]Read from MH i2c: E2 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 03 00 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [13:11:23]RAPDU: 90 00 [13:11:23]wFMCommunicate OK [13:11:23]wFMCommunicate request_size=4 [13:11:23]MH_SAM_APDU [13:11:23]CAPDU: 80 0D 03 02 [13:11:23]Write to MH i2c: E2 08 00 71 02 80 0D 03 02 00 00 00 00 EE [13:11:23]Write i2c OK [13:11:23]MH_I2C_Read... [13:11:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:23]Read from MH i2c: E2 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 0B 00 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 0B 00 71 02 00 74 89 B0 0D 04 73 15 0E 90 00 43 [13:11:23]RAPDU: 74 89 B0 0D 04 73 15 0E 90 00 [13:11:23]wFMCommunicate OK [13:11:23]SAM_PROTO_SignData done [13:11:23]FM_MakeSignedData done [13:11:23]CreateOFDProtocolMessage [13:11:23]wFMCommunicate request_size=4 [13:11:23]MH_SAM_APDU [13:11:23]CAPDU: 80 11 00 00 [13:11:23]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [13:11:23]Write i2c OK [13:11:23]MH_I2C_Read... [13:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:23]Read from MH i2c: E2 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 17 00 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [13:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:11:23]wFMCommunicate OK [13:11:23]CreateOFDProtocolMessage done [13:11:23]OFDSenderStorePacket 156289 [13:11:23]StoreOFDPacket docnum=156289 [13:11:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CE 14 07 01 C4 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 79 EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 62 02 00 35 04 06 00 95 04 38 34 69 64 74 89 B0 0D 04 73 15 0E [13:11:23]CheckFolder [13:11:23]dirname=/storage/ofd_packets [13:11:23]CheckFolder done [13:11:23]ProducePacketName [13:11:23]name=ofd_packets/00156289 [13:11:23]NVStorageSaveData ofd_packets/00156289 [13:11:23]File name is /storage/ofd_packets/00156289 [13:11:23]Write 301 bytes [13:11:23]NVStorageSaveData done [13:11:23]OFDSenderStorePacket done [13:11:23]KKMCreateOFDPacket done [13:11:23]NVStorageSaveData kkm_last_timestamp [13:11:23]File name is /storage/kkm_last_timestamp [13:11:23]Write 4 bytes [13:11:23]NVStorageSaveData done [13:11:23]ExternCall_PrintAddStr [13:11:23]wPrintStart [13:11:23]Write to MH i2c: 01 00 00 73 02 75 [13:11:23]Write i2c OK [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: 01 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: 01 07 00 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 FF 0F 8A [13:11:23]RasterBufferAndPrint [13:11:23]line Счет N : (1)99104 [13:11:23]line ИНН: 02508201610067 [13:11:23]line Контрольно-Кассовый Чек [13:11:23]line ПРОДАЖА [13:11:23]line ТРК (МРК, ГНК) : 21 [13:11:23]line Товар: 2710124130 [13:11:23]line Аи-92-К-5 [13:11:23]line 5.980 * 66.90 [13:11:23]line = 400.06 [13:11:23]line НДС 12% НСП 1% [13:11:23]line > о реализуемом товаре [13:11:23]line ОКРУГЛЕНИЕ: -0.06 [13:11:23]line ИТОГО: 400.00 [13:11:23]line Внесено: 400.00 [13:11:23]line СДАЧА: 0.00 [13:11:23]line НСП 1% : 3.54 [13:11:23]line НДС 12% : 42.48 [13:11:23]line Наличными: 400.00 [13:11:23]line Безнал.: 0.00 [13:11:23]line Место: АЗС № 143 "Партнер Нефть" [13:11:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:11:23]line СНО: Общий режим [13:11:23]line Чек 190 26.10.2024 13:11 [13:11:23]line Смена: 536 ФФД: 1.0 [13:11:23]line ЗНМ: 0300000096 [13:11:23]line РНМ: 0000000000091693 [13:11:23]line Версия ККМ: 001 [13:11:23]line ФМ: 0000000000871792 [13:11:23]line ФД: 156289 [13:11:23]line ФПД: 163845355366756 [13:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131121&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156289&fm=163845355366756&tin=02508201610067®Number=0000000000091693&sum=40000 [13:11:23]OFD Sender: Processing packet 156289 [packets to send 31, broken 30] [13:11:23]ProducePacketName [13:11:23]name=ofd_packets/00156289 [13:11:23]OFD Sender: To server: pG, [13:11:23]CommunicateWithHost lk.salyk.kg:30040 [13:11:23]ConnectInit lk.salyk.kg [13:11:23]written 0, free lines is 4095 [13:11:23]Connected sock=10 [13:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CE 14 07 01 C4 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 79 EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 62 02 00 35 04 06 00 95 04 38 34 69 64 74 89 B0 0D 04 73 15 0E [13:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 37 6A 47 00 39 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 62 02 00 F4 03 04 00 EC 8F 1C 67 B6 04 01 00 00 D0 44 E9 8D 3C 61 B2 C9 [13:11:23]CommunicateWithHost err = 0 [13:11:23]CheckOFDResponse [13:11:23]1017 (14) - 77093643461234 [13:11:23]1041 (16) - 0000000000871792 [13:11:23]1040 (4) - 156289 [13:11:23]1012 (4) - 26.10.2024 06:45 [13:11:23]1206 (1) - 0 [13:11:23]OFD Sender: Remove packet 156289 [13:11:23]ProducePacketName [13:11:23]name=ofd_packets/00156289 [13:11:23]NVStorageDeleteData [13:11:23]Write to MH i2c: 01 00 00 9E 02 A0 [13:11:23]Write i2c OK [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: 01 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: 01 07 00 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: 01 07 00 9E 02 00 00 00 00 00 FE 0C B1 [13:11:23]RasterBufferAndPrint [13:11:23]line [13:11:23]line [13:11:23]line [13:11:23]line [13:11:23]line [13:11:23]written 0, free lines is 3332 [13:11:23]process_action close_receipt done [13:11:23]requested_data is exist [13:11:23]produce_requested_data [13:11:23]requested_item fm.sn is exist - process it [13:11:23]wFMCommunicate request_size=4 [13:11:23]MH_SAM_APDU [13:11:23]CAPDU: 80 11 00 00 [13:11:23]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [13:11:23]Write i2c OK [13:11:23]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 17 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 17 00 A5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 76 [13:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:11:24]wFMCommunicate OK [13:11:24]requested_item fd.num is exist - process it [13:11:24]SAM_PROTO_GetFieldsCounters [13:11:24]wFMCommunicate request_size=4 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 13 00 00 [13:11:24]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 62 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 62 00 A6 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 81 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [13:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 81 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:24]wFMCommunicate OK [13:11:24]SAM_PROTO_GetFieldsCounters done [13:11:24]requested_item shift.num is exist - process it [13:11:24]requested_item shift.opened is exist - process it [13:11:24]req_shift_opened [13:11:24]FM_GetShiftState [13:11:24]SAM_PROTO_GetShiftState [13:11:24]wFMCommunicate request_size=4 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 13 01 00 [13:11:24]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 0E 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5B [13:11:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:11:24]wFMCommunicate OK [13:11:24]SAM_PROTO_GetShiftState done [13:11:24]FM_GetShiftState done [13:11:24]req_shift_opened done [13:11:24]requested_item shift.open_date is exist - process it [13:11:24]req_shift_open_date [13:11:24]req_shift_open_date done [13:11:24]produce_requested_data done [13:11:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156289,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:11:24]process_action_free close_receipt [13:11:24]json_value_free [13:11:24]json_value_free done [13:11:24]process_json_proto returns [13:11:24]Send response to host [13:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156289,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:11:24]free response buf [13:11:24]execute_script done [13:11:24]execute_script returns [13:11:24]free content buf [13:11:24]Sock 9.Close socket [13:11:24]Sock 9.Thread stoped [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:58]accept exits with 8 [13:12:58]New connection [13:12:58]New thread 3066834276 created [13:12:58]Thread 3066977636 joined [13:12:58]Waiting for new connection... [13:12:58] Sock 8.Parse request [13:12:58]Sock 8.Check first char [13:12:58]Sock 8.First char is OK [13:12:58]request: POST /json_proto HTTP/1.0 [13:12:58]Method: POST [13:12:58]URL: /json_proto [13:12:58]Method is POST - this is cgi request [13:12:58]url: /json_proto [13:12:58]query_string will be loaded in cgi processing [13:12:58]execute_cgi json_proto POST (null) [13:12:58]execute_cgi path=json_proto method=POST [13:12:58]POST find Content-Length [13:12:58]Host: 172.17.63.3:8080 [13:12:58]Content-Length: 681 [13:12:58]Content-Type: application/json [13:12:58] [13:12:58]POST finish read [13:12:58]Found Content-Length = 681 [13:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:58]execute_script... [13:12:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:58]POST & json_proto [13:12:58]process_json_proto [13:12:58]json parsed OK: [13:12:58]protocol is kg_v1.0 [13:12:58]action value=close_receipt [13:12:58]process_action close_receipt [13:12:58]cmd_close_receipt [13:12:58]MH_GetDate [13:12:58]Write to MH i2c: F0 00 00 A8 02 99 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: F0 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: F0 09 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: F0 09 00 A8 02 00 DB EA 1C 67 50 D1 6C 64 DB [13:12:58]GetLastDocTimeStamp 1729948281 [13:12:58]current date 1729948379 [13:12:58]FM_GetShiftState [13:12:58]SAM_PROTO_GetShiftState [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 13 01 00 [13:12:58]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 0E 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5D [13:12:58]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:12:58]wFMCommunicate OK [13:12:58]SAM_PROTO_GetShiftState done [13:12:58]FM_GetShiftState done [13:12:58]opened in 1729902702 [13:12:58]opened+sec_in_day 1729989102 [13:12:58]quantity*price = 100015 [13:12:58]sum+1 = 100017 [13:12:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 191 26.10.2024 13:12 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156290 ФПД: 182267009366549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131259&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156290&fm=182267009366549&tin=02508201610067®Number=0000000000091693&sum=100000 [13:13:00]StoreToDocumentArchive [13:13:00]shift 536 fd 156290 [13:13:00]save to /storage/0536/doc_00156290 [13:13:00]save last doc name /storage/0536/doc_00156290 to /storage/kkm_last_doc_name [13:13:00]save OK [13:13:00]Clear old archive folders... [13:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:00]tlvbuf is 01672B50 [13:13:00]SAM_PROTO_ClearQueue [13:13:00]wFMCommunicate request_size=4 [13:13:00]MH_SAM_APDU [13:13:00]CAPDU: 80 09 00 00 [13:13:00]Write to MH i2c: E2 08 00 B6 02 80 09 00 00 00 00 00 00 2A [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:00]Read from MH i2c: E2 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 03 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [13:13:00]RAPDU: 90 00 [13:13:00]wFMCommunicate OK [13:13:00]SAM_PROTO_ClearQueue done [13:13:00]KKMCreateOFDPacket [13:13:00]OFDProtocolAddRootSTLVToBuf [13:13:00]FM_MakeSignedData [13:13:00]FM_MakeSignedData [13:13:00]SAM_PROTO_SignData [13:13:00]wFMCommunicate request_size=4 [13:13:00]MH_SAM_APDU [13:13:00]CAPDU: 80 0D 01 02 [13:13:00]Write to MH i2c: E2 08 00 B7 02 80 0D 01 02 00 00 00 00 32 [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:00]Read from MH i2c: E2 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 03 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [13:13:00]RAPDU: 90 00 [13:13:00]wFMCommunicate OK [13:13:00]wFMCommunicate request_size=255 [13:13:00]MH_SAM_APDU [13:13:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DB EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 62 02 00 35 04 06 00 A5 [13:13:00]Write to MH i2c: E2 02 01 B8 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DB EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 62 02 00 35 04 06 00 A5 00 00 6C [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:00]Read from MH i2c: E2 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 03 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [13:13:00]RAPDU: 90 00 [13:13:00]wFMCommunicate OK [13:13:00]wFMCommunicate request_size=10 [13:13:00]MH_SAM_APDU [13:13:00]CAPDU: 80 0D 02 02 05 C5 58 58 FA 15 [13:13:00]Write to MH i2c: E2 0D 00 B9 02 80 0D 02 02 05 00 C5 58 58 FA 15 00 00 C3 [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:00]Read from MH i2c: E2 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 03 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [13:13:00]RAPDU: 90 00 [13:13:00]wFMCommunicate OK [13:13:00]wFMCommunicate request_size=4 [13:13:00]MH_SAM_APDU [13:13:00]CAPDU: 80 0D 03 02 [13:13:00]Write to MH i2c: E2 08 00 BA 02 80 0D 03 02 00 00 00 00 37 [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:00]Read from MH i2c: E2 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 0B 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 0B 00 BA 02 00 1B EF 65 5F CF F4 9A 96 90 00 F9 [13:13:00]RAPDU: 1B EF 65 5F CF F4 9A 96 90 00 [13:13:00]wFMCommunicate OK [13:13:00]SAM_PROTO_SignData done [13:13:00]FM_MakeSignedData done [13:13:00]CreateOFDProtocolMessage [13:13:00]wFMCommunicate request_size=4 [13:13:00]MH_SAM_APDU [13:13:00]CAPDU: 80 11 00 00 [13:13:00]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:00]Read from MH i2c: E2 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 17 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [13:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:13:00]wFMCommunicate OK [13:13:00]CreateOFDProtocolMessage done [13:13:00]OFDSenderStorePacket 156290 [13:13:00]StoreOFDPacket docnum=156290 [13:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7B 20 07 01 5E 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DB EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 62 02 00 35 04 06 00 A5 C5 58 58 FA 15 1B EF 65 5F CF F4 9A 96 [13:13:00]CheckFolder [13:13:00]dirname=/storage/ofd_packets [13:13:00]CheckFolder done [13:13:00]ProducePacketName [13:13:00]name=ofd_packets/00156290 [13:13:00]NVStorageSaveData ofd_packets/00156290 [13:13:00]File name is /storage/ofd_packets/00156290 [13:13:00]Write 301 bytes [13:13:00]NVStorageSaveData done [13:13:00]OFDSenderStorePacket done [13:13:00]KKMCreateOFDPacket done [13:13:00]NVStorageSaveData kkm_last_timestamp [13:13:00]File name is /storage/kkm_last_timestamp [13:13:00]Write 4 bytes [13:13:00]NVStorageSaveData done [13:13:00]ExternCall_PrintAddStr [13:13:00]wPrintStart [13:13:00]Write to MH i2c: 01 00 00 BC 02 BE [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: 01 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: 01 07 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [13:13:00]RasterBufferAndPrint [13:13:00]line Счет N : (1)99105 [13:13:00]line ИНН: 02508201610067 [13:13:00]line Контрольно-Кассовый Чек [13:13:00]line ПРОДАЖА [13:13:00]line ТРК (МРК, ГНК) : 31 [13:13:00]line Товар: 2710124130 [13:13:00]line Аи-92-К-5 [13:13:00]line 14.950 * 66.90 [13:13:00]line = 1000.16 [13:13:00]line НДС 12% НСП 1% [13:13:00]line > о реализуемом товаре [13:13:00]line ОКРУГЛЕНИЕ: -0.16 [13:13:00]line ИТОГО: 1000.00 [13:13:00]line Внесено: 1000.00 [13:13:00]line СДАЧА: 0.00 [13:13:00]line НСП 1% : 8.85 [13:13:00]line НДС 12% : 106.21 [13:13:00]line Наличными: 1000.00 [13:13:00]line Безнал.: 0.00 [13:13:00]line Место: АЗС № 143 "Партнер Нефть" [13:13:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:13:00]line СНО: Общий режим [13:13:00]line Чек 191 26.10.2024 13:12 [13:13:00]line Смена: 536 ФФД: 1.0 [13:13:00]line ЗНМ: 0300000096 [13:13:00]line РНМ: 0000000000091693 [13:13:00]line Версия ККМ: 001 [13:13:00]line ФМ: 0000000000871792 [13:13:00]line ФД: 156290 [13:13:00]line ФПД: 182267009366549 [13:13:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131259&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156290&fm=182267009366549&tin=02508201610067®Number=0000000000091693&sum=100000 [13:13:00]OFD Sender: Processing packet 156290 [packets to send 31, broken 30] [13:13:00]ProducePacketName [13:13:00]name=ofd_packets/00156290 [13:13:00]OFD Sender: To server: pG, [13:13:00]CommunicateWithHost lk.salyk.kg:30040 [13:13:00]ConnectInit lk.salyk.kg [13:13:00]written 0, free lines is 4095 [13:13:01]Connected sock=10 [13: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 31 37 39 32 0F 01 00 00 7B 20 07 01 5E 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DB EA 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 62 02 00 35 04 06 00 A5 C5 58 58 FA 15 1B EF 65 5F CF F4 9A 96 [13:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5B 84 47 00 72 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 31 37 39 32 10 04 04 00 82 62 02 00 F4 03 04 00 4D 90 1C 67 B6 04 01 00 00 8A 71 65 5C 4B 5A 2E 8A [13:13:01]CommunicateWithHost err = 0 [13:13:01]CheckOFDResponse [13:13:01]1017 (14) - 77093643461234 [13:13:01]1041 (16) - 0000000000871792 [13:13:01]1040 (4) - 156290 [13:13:01]1012 (4) - 26.10.2024 06:46 [13:13:01]1206 (1) - 0 [13:13:01]OFD Sender: Remove packet 156290 [13:13:01]ProducePacketName [13:13:01]name=ofd_packets/00156290 [13:13:01]NVStorageDeleteData [13:13:01]Write to MH i2c: 01 00 00 E7 02 E9 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 07 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 F5 0C F1 [13:13:01]RasterBufferAndPrint [13:13:01]line [13:13:01]line [13:13:01]line [13:13:01]line [13:13:01]line [13:13:01]written 0, free lines is 3323 [13:13:01]process_action close_receipt done [13:13:01]requested_data is exist [13:13:01]produce_requested_data [13:13:01]requested_item fm.sn is exist - process it [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 11 00 00 [13:13:01]Write to MH i2c: E2 08 00 EE 02 80 11 00 00 00 00 00 00 6A [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 17 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 17 00 EE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BF [13:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:13:01]wFMCommunicate OK [13:13:01]requested_item fd.num is exist - process it [13:13:01]SAM_PROTO_GetFieldsCounters [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 13 00 00 [13:13:01]Write to MH i2c: E2 08 00 EF 02 80 13 00 00 00 00 00 00 6D [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 62 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 62 00 EF 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 82 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [13:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 82 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_GetFieldsCounters done [13:13:01]requested_item shift.num is exist - process it [13:13:01]requested_item shift.opened is exist - process it [13:13:01]req_shift_opened [13:13:01]FM_GetShiftState [13:13:01]SAM_PROTO_GetShiftState [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 13 01 00 [13:13:01]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0E 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A4 [13:13:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_GetShiftState done [13:13:01]FM_GetShiftState done [13:13:01]req_shift_opened done [13:13:01]requested_item shift.open_date is exist - process it [13:13:01]req_shift_open_date [13:13:01]req_shift_open_date done [13:13:01]produce_requested_data done [13:13:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156290,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:13:01]process_action_free close_receipt [13:13:01]json_value_free [13:13:01]json_value_free done [13:13:01]process_json_proto returns [13:13:01]Send response to host [13:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156290,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:13:01]free response buf [13:13:01]execute_script done [13:13:01]execute_script returns [13:13:01]free content buf [13:13:01]Sock 8.Close socket [13:13:01]Sock 8.Thread stoped [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:27]accept exits with 9 [13:15:27]New connection [13:15:27]New thread 3066977636 created [13:15:27]Thread 3066834276 joined [13:15:27]Waiting for new connection... [13:15:27] Sock 9.Parse request [13:15:27]Sock 9.Check first char [13:15:27]Sock 9.First char is OK [13:15:27]request: POST /json_proto HTTP/1.0 [13:15:27]Method: POST [13:15:27]URL: /json_proto [13:15:27]Method is POST - this is cgi request [13:15:27]url: /json_proto [13:15:27]query_string will be loaded in cgi processing [13:15:27]execute_cgi json_proto POST (null) [13:15:27]execute_cgi path=json_proto method=POST [13:15:27]POST find Content-Length [13:15:27]Host: 172.17.63.3:8080 [13:15:27]Content-Length: 676 [13:15:27]Content-Type: application/json [13:15:27] [13:15:27]POST finish read [13:15:27]Found Content-Length = 676 [13:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:27]execute_script... [13:15: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)99106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:27]POST & json_proto [13:15:27]process_json_proto [13:15:27]json parsed OK: [13:15:27]protocol is kg_v1.0 [13:15:27]action value=close_receipt [13:15:27]process_action close_receipt [13:15:27]cmd_close_receipt [13:15:27]MH_GetDate [13:15:27]Write to MH i2c: F0 00 00 F1 02 E2 [13:15:27]Write i2c OK [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: F0 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: F0 09 00 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: F0 09 00 F1 02 00 6F EB 1C 67 50 D1 6C 64 B9 [13:15:27]GetLastDocTimeStamp 1729948379 [13:15:27]current date 1729948527 [13:15:27]FM_GetShiftState [13:15:27]SAM_PROTO_GetShiftState [13:15:27]wFMCommunicate request_size=4 [13:15:27]MH_SAM_APDU [13:15:27]CAPDU: 80 13 01 00 [13:15:27]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [13:15:27]Write i2c OK [13:15:27]MH_I2C_Read... [13:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:27]Read from MH i2c: E2 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: E2 0E 00 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A6 [13:15:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:15:27]wFMCommunicate OK [13:15:27]SAM_PROTO_GetShiftState done [13:15:27]FM_GetShiftState done [13:15:27]opened in 1729902702 [13:15:27]opened+sec_in_day 1729989102 [13:15:27]quantity*price = 20003 [13:15:27]sum+1 = 20004 [13:15:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 192 26.10.2024 13:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156291 ФПД: 136298743397137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131527&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156291&fm=136298743397137&tin=02508201610067®Number=0000000000091693&sum=20000 [13:15:28]StoreToDocumentArchive [13:15:28]shift 536 fd 156291 [13:15:28]save to /storage/0536/doc_00156291 [13:15:28]save last doc name /storage/0536/doc_00156291 to /storage/kkm_last_doc_name [13:15:28]save OK [13:15:28]Clear old archive folders... [13:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:28]tlvbuf is 016E6F90 [13:15:28]SAM_PROTO_ClearQueue [13:15:28]wFMCommunicate request_size=4 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 09 00 00 [13:15:28]Write to MH i2c: E2 08 00 FF 02 80 09 00 00 00 00 00 00 73 [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [13:15:28]RAPDU: 90 00 [13:15:28]wFMCommunicate OK [13:15:28]SAM_PROTO_ClearQueue done [13:15:28]KKMCreateOFDPacket [13:15:28]OFDProtocolAddRootSTLVToBuf [13:15:28]FM_MakeSignedData [13:15:28]FM_MakeSignedData [13:15:28]SAM_PROTO_SignData [13:15:28]wFMCommunicate request_size=4 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 0D 01 02 [13:15:28]Write to MH i2c: E2 08 00 00 03 80 0D 01 02 00 00 00 00 7C [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [13:15:28]RAPDU: 90 00 [13:15:28]wFMCommunicate OK [13:15:28]wFMCommunicate request_size=255 [13:15:28]MH_SAM_APDU [13:15: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 6F EB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 62 02 00 35 04 06 00 7B [13:15:28]Write to MH i2c: E2 02 01 01 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 6F EB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 62 02 00 35 04 06 00 7B 00 00 EB [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [13:15:28]RAPDU: 90 00 [13:15:28]wFMCommunicate OK [13:15:28]wFMCommunicate request_size=10 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 0D 02 02 05 F6 86 2E FB 11 [13:15:28]Write to MH i2c: E2 0D 00 02 03 80 0D 02 02 05 00 F6 86 2E FB 11 00 00 3F [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [13:15:28]RAPDU: 90 00 [13:15:28]wFMCommunicate OK [13:15:28]wFMCommunicate request_size=4 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 0D 03 02 [13:15:28]Write to MH i2c: E2 08 00 03 03 80 0D 03 02 00 00 00 00 81 [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 0B 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 0B 00 03 03 00 E5 9C A3 24 99 1E 5E E3 90 00 C2 [13:15:28]RAPDU: E5 9C A3 24 99 1E 5E E3 90 00 [13:15:28]wFMCommunicate OK [13:15:28]SAM_PROTO_SignData done [13:15:28]FM_MakeSignedData done [13:15:28]CreateOFDProtocolMessage [13:15:28]wFMCommunicate request_size=4 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 11 00 00 [13:15:28]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 17 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [13:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:15:28]wFMCommunicate OK [13:15:28]CreateOFDProtocolMessage done [13:15:28]OFDSenderStorePacket 156291 [13:15:28]StoreOFDPacket docnum=156291 [13:15:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F6 32 07 01 D2 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 6F EB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 62 02 00 35 04 06 00 7B F6 86 2E FB 11 E5 9C A3 24 99 1E 5E E3 [13:15:28]CheckFolder [13:15:28]dirname=/storage/ofd_packets [13:15:28]CheckFolder done [13:15:28]ProducePacketName [13:15:28]name=ofd_packets/00156291 [13:15:28]NVStorageSaveData ofd_packets/00156291 [13:15:28]File name is /storage/ofd_packets/00156291 [13:15:28]Write 301 bytes [13:15:28]NVStorageSaveData done [13:15:28]OFDSenderStorePacket done [13:15:28]KKMCreateOFDPacket done [13:15:28]NVStorageSaveData kkm_last_timestamp [13:15:28]File name is /storage/kkm_last_timestamp [13:15:28]Write 4 bytes [13:15:28]NVStorageSaveData done [13:15:28]ExternCall_PrintAddStr [13:15:28]wPrintStart [13:15:28]Write to MH i2c: 01 00 00 05 03 08 [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: 01 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: 01 07 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [13:15:28]RasterBufferAndPrint [13:15:28]line Счет N : (1)99106 [13:15:28]line ИНН: 02508201610067 [13:15:28]line Контрольно-Кассовый Чек [13:15:28]line ПРОДАЖА [13:15:28]line ТРК (МРК, ГНК) : 21 [13:15:28]line Товар: 2710124130 [13:15:28]line Аи-92-К-5 [13:15:28]line 2.990 * 66.90 [13:15:28]line = 200.03 [13:15:28]line НДС 12% НСП 1% [13:15:28]line > о реализуемом товаре [13:15:28]line ОКРУГЛЕНИЕ: -0.03 [13:15:28]line ИТОГО: 200.00 [13:15:28]line Внесено: 200.00 [13:15:28]line СДАЧА: 0.00 [13:15:28]line НСП 1% : 1.77 [13:15:28]line НДС 12% : 21.24 [13:15:28]line Наличными: 200.00 [13:15:28]line Безнал.: 0.00 [13:15:28]line Место: АЗС № 143 "Партнер Нефть" [13:15:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:15:28]line СНО: Общий режим [13:15:28]line Чек 192 26.10.2024 13:15 [13:15:28]line Смена: 536 ФФД: 1.0 [13:15:28]line ЗНМ: 0300000096 [13:15:28]line РНМ: 0000000000091693 [13:15:28]line Версия ККМ: 001 [13:15:28]line ФМ: 0000000000871792 [13:15:28]line ФД: 156291 [13:15:28]line ФПД: 136298743397137 [13:15:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131527&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156291&fm=136298743397137&tin=02508201610067®Number=0000000000091693&sum=20000 [13:15:29]OFD Sender: Processing packet 156291 [packets to send 31, broken 30] [13:15:29]ProducePacketName [13:15:29]name=ofd_packets/00156291 [13:15:29]OFD Sender: To server: pG, [13:15:29]CommunicateWithHost lk.salyk.kg:30040 [13:15:29]ConnectInit lk.salyk.kg [13:15:29]written 0, free lines is 4095 [13:15:29]Connected sock=10 [13:15:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F6 32 07 01 D2 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 6F EB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 62 02 00 35 04 06 00 7B F6 86 2E FB 11 E5 9C A3 24 99 1E 5E E3 [13:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2B 19 47 00 74 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 31 37 39 32 10 04 04 00 83 62 02 00 F4 03 04 00 E2 90 1C 67 B6 04 01 00 00 58 BC CC EB 5E 70 B3 A0 [13:15:29]CommunicateWithHost err = 0 [13:15:29]CheckOFDResponse [13:15:29]1017 (14) - 77093643461234 [13:15:29]1041 (16) - 0000000000871792 [13:15:29]1040 (4) - 156291 [13:15:29]1012 (4) - 26.10.2024 06:49 [13:15:29]1206 (1) - 0 [13:15:29]OFD Sender: Remove packet 156291 [13:15:29]ProducePacketName [13:15:29]name=ofd_packets/00156291 [13:15:29]NVStorageDeleteData [13:15:29]Write to MH i2c: 01 00 00 30 03 33 [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: 01 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: 01 07 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 E4 0C 2A [13:15:29]RasterBufferAndPrint [13:15:29]line [13:15:29]line [13:15:29]line [13:15:29]line [13:15:29]line [13:15:29]written 0, free lines is 3306 [13:15:29]process_action close_receipt done [13:15:29]requested_data is exist [13:15:29]produce_requested_data [13:15:29]requested_item fm.sn is exist - process it [13:15:29]wFMCommunicate request_size=4 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 11 00 00 [13:15:29]Write to MH i2c: E2 08 00 37 03 80 11 00 00 00 00 00 00 B4 [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 17 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 17 00 37 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [13:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:15:29]wFMCommunicate OK [13:15:29]requested_item fd.num is exist - process it [13:15:29]SAM_PROTO_GetFieldsCounters [13:15:29]wFMCommunicate request_size=4 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 13 00 00 [13:15:29]Write to MH i2c: E2 08 00 38 03 80 13 00 00 00 00 00 00 B7 [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 62 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 62 00 38 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 83 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [13:15: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 83 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:29]wFMCommunicate OK [13:15:29]SAM_PROTO_GetFieldsCounters done [13:15:29]requested_item shift.num is exist - process it [13:15:29]requested_item shift.opened is exist - process it [13:15:29]req_shift_opened [13:15:29]FM_GetShiftState [13:15:29]SAM_PROTO_GetShiftState [13:15:29]wFMCommunicate request_size=4 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 13 01 00 [13:15:29]Write to MH i2c: E2 08 00 39 03 80 13 01 00 00 00 00 00 B9 [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 0E 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 0E 00 39 03 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 EE [13:15:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:15:29]wFMCommunicate OK [13:15:29]SAM_PROTO_GetShiftState done [13:15:29]FM_GetShiftState done [13:15:29]req_shift_opened done [13:15:29]requested_item shift.open_date is exist - process it [13:15:29]req_shift_open_date [13:15:29]req_shift_open_date done [13:15:29]produce_requested_data done [13:15:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156291,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:15:29]process_action_free close_receipt [13:15:29]json_value_free [13:15:29]json_value_free done [13:15:29]process_json_proto returns [13:15:29]Send response to host [13:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156291,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:15:29]free response buf [13:15:29]execute_script done [13:15:29]execute_script returns [13:15:29]free content buf [13:15:29]Sock 9.Close socket [13:15:29]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21: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:24]accept exits with 8 [13:23:24]New connection [13:23:24]New thread 3066834276 created [13:23:24]Thread 3066977636 joined [13:23:24]Waiting for new connection... [13:23:24] Sock 8.Parse request [13:23:24]Sock 8.Check first char [13:23:24]Sock 8.First char is OK [13:23:24]request: POST /json_proto HTTP/1.0 [13:23:24]Method: POST [13:23:24]URL: /json_proto [13:23:24]Method is POST - this is cgi request [13:23:24]url: /json_proto [13:23:24]query_string will be loaded in cgi processing [13:23:24]execute_cgi json_proto POST (null) [13:23:24]execute_cgi path=json_proto method=POST [13:23:24]POST find Content-Length [13:23:24]Host: 172.17.63.3:8080 [13:23:24]Content-Length: 676 [13:23:24]Content-Type: application/json [13:23:24] [13:23:24]POST finish read [13:23:24]Found Content-Length = 676 [13:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:24]execute_script... [13:23:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:24]POST & json_proto [13:23:24]process_json_proto [13:23:24]json parsed OK: [13:23:24]protocol is kg_v1.0 [13:23:24]action value=close_receipt [13:23:24]process_action close_receipt [13:23:24]cmd_close_receipt [13:23:24]MH_GetDate [13:23:24]Write to MH i2c: F0 00 00 3A 03 2C [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: F0 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: F0 09 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: F0 09 00 3A 03 00 4D ED 1C 67 50 D1 6C 64 E3 [13:23:24]GetLastDocTimeStamp 1729948527 [13:23:24]current date 1729949005 [13:23:24]FM_GetShiftState [13:23:24]SAM_PROTO_GetShiftState [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 13 01 00 [13:23:24]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0E 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F0 [13:23:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_GetShiftState done [13:23:24]FM_GetShiftState done [13:23:24]opened in 1729902702 [13:23:24]opened+sec_in_day 1729989102 [13:23:24]quantity*price = 20003 [13:23:24]sum+1 = 20004 [13:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 193 26.10.2024 13:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156292 ФПД: 201437052362874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132325&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156292&fm=201437052362874&tin=02508201610067®Number=0000000000091693&sum=20000 [13:23:25]StoreToDocumentArchive [13:23:25]shift 536 fd 156292 [13:23:25]save to /storage/0536/doc_00156292 [13:23:25]save last doc name /storage/0536/doc_00156292 to /storage/kkm_last_doc_name [13:23:25]save OK [13:23:25]Clear old archive folders... [13:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:26]tlvbuf is 01657470 [13:23:26]SAM_PROTO_ClearQueue [13:23:26]wFMCommunicate request_size=4 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 09 00 00 [13:23:26]Write to MH i2c: E2 08 00 48 03 80 09 00 00 00 00 00 00 BD [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [13:23:26]RAPDU: 90 00 [13:23:26]wFMCommunicate OK [13:23:26]SAM_PROTO_ClearQueue done [13:23:26]KKMCreateOFDPacket [13:23:26]OFDProtocolAddRootSTLVToBuf [13:23:26]FM_MakeSignedData [13:23:26]FM_MakeSignedData [13:23:26]SAM_PROTO_SignData [13:23:26]wFMCommunicate request_size=4 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 0D 01 02 [13:23:26]Write to MH i2c: E2 08 00 49 03 80 0D 01 02 00 00 00 00 C5 [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [13:23:26]RAPDU: 90 00 [13:23:26]wFMCommunicate OK [13:23:26]wFMCommunicate request_size=255 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 4D ED 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 62 02 00 35 04 06 00 B7 [13:23:26]Write to MH i2c: E2 02 01 4A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 4D ED 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 62 02 00 35 04 06 00 B7 00 00 52 [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [13:23:26]RAPDU: 90 00 [13:23:26]wFMCommunicate OK [13:23:26]wFMCommunicate request_size=10 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 0D 02 02 05 34 B7 F3 60 7A [13:23:26]Write to MH i2c: E2 0D 00 4B 03 80 0D 02 02 05 00 34 B7 F3 60 7A 00 00 8A [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [13:23:26]RAPDU: 90 00 [13:23:26]wFMCommunicate OK [13:23:26]wFMCommunicate request_size=4 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 0D 03 02 [13:23:26]Write to MH i2c: E2 08 00 4C 03 80 0D 03 02 00 00 00 00 CA [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 0B 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 0B 00 4C 03 00 6A F0 9B 08 75 8D 20 63 90 00 4D [13:23:26]RAPDU: 6A F0 9B 08 75 8D 20 63 90 00 [13:23:26]wFMCommunicate OK [13:23:26]SAM_PROTO_SignData done [13:23:26]FM_MakeSignedData done [13:23:26]CreateOFDProtocolMessage [13:23:26]wFMCommunicate request_size=4 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 11 00 00 [13:23:26]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 17 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [13:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:23:26]wFMCommunicate OK [13:23:26]CreateOFDProtocolMessage done [13:23:26]OFDSenderStorePacket 156292 [13:23:26]StoreOFDPacket docnum=156292 [13:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AD E1 07 01 73 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 4D ED 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 62 02 00 35 04 06 00 B7 34 B7 F3 60 7A 6A F0 9B 08 75 8D 20 63 [13:23:26]CheckFolder [13:23:26]dirname=/storage/ofd_packets [13:23:26]CheckFolder done [13:23:26]ProducePacketName [13:23:26]name=ofd_packets/00156292 [13:23:26]NVStorageSaveData ofd_packets/00156292 [13:23:26]File name is /storage/ofd_packets/00156292 [13:23:26]Write 301 bytes [13:23:26]NVStorageSaveData done [13:23:26]OFDSenderStorePacket done [13:23:26]KKMCreateOFDPacket done [13:23:26]NVStorageSaveData kkm_last_timestamp [13:23:26]File name is /storage/kkm_last_timestamp [13:23:26]Write 4 bytes [13:23:26]NVStorageSaveData done [13:23:26]OFD Sender: Processing packet 156292 [packets to send 31, broken 30] [13:23:26]ProducePacketName [13:23:26]name=ofd_packets/00156292 [13:23:26]OFD Sender: To server: pG, [13:23:26]CommunicateWithHost lk.salyk.kg:30040 [13:23:26]ConnectInit lk.salyk.kg [13:23:26]ExternCall_PrintAddStr [13:23:26]wPrintStart [13:23:26]Write to MH i2c: 01 00 00 4E 03 51 [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 07 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [13:23:26]RasterBufferAndPrint [13:23:26]line Счет N : (1)99107 [13:23:26]line ИНН: 02508201610067 [13:23:26]line Контрольно-Кассовый Чек [13:23:26]line ПРОДАЖА [13:23:26]line ТРК (МРК, ГНК) : 11 [13:23:26]line Товар: 2710124130 [13:23:26]line Аи-92-К-5 [13:23:26]line 2.990 * 66.90 [13:23:26]line = 200.03 [13:23:26]line НДС 12% НСП 1% [13:23:26]line > о реализуемом товаре [13:23:26]line ОКРУГЛЕНИЕ: -0.03 [13:23:26]line ИТОГО: 200.00 [13:23:26]line Внесено: 200.00 [13:23:26]line СДАЧА: 0.00 [13:23:26]line НСП 1% : 1.77 [13:23:26]line НДС 12% : 21.24 [13:23:26]line Наличными: 200.00 [13:23:26]line Безнал.: 0.00 [13:23:26]line Место: АЗС № 143 "Партнер Нефть" [13:23:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:23:26]line СНО: Общий режим [13:23:26]line Чек 193 26.10.2024 13:23 [13:23:26]line Смена: 536 ФФД: 1.0 [13:23:26]line ЗНМ: 0300000096 [13:23:26]line РНМ: 0000000000091693 [13:23:26]line Версия ККМ: 001 [13:23:26]line ФМ: 0000000000871792 [13:23:26]line ФД: 156292 [13:23:26]line ФПД: 201437052362874 [13:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132325&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156292&fm=201437052362874&tin=02508201610067®Number=0000000000091693&sum=20000 [13:23:26]Connected sock=11 [13:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AD E1 07 01 73 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 4D ED 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 62 02 00 35 04 06 00 B7 34 B7 F3 60 7A 6A F0 9B 08 75 8D 20 63 [13:23:26]written 0, free lines is 4095 [13:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B1 9B 47 00 F4 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 62 02 00 F4 03 04 00 BF 92 1C 67 B6 04 01 00 00 47 B9 95 F6 5B 65 96 74 [13:23:27]CommunicateWithHost err = 0 [13:23:27]CheckOFDResponse [13:23:27]1017 (14) - 77093643461234 [13:23:27]1041 (16) - 0000000000871792 [13:23:27]1040 (4) - 156292 [13:23:27]1012 (4) - 26.10.2024 06:57 [13:23:27]1206 (1) - 0 [13:23:27]OFD Sender: Remove packet 156292 [13:23:27]ProducePacketName [13:23:27]name=ofd_packets/00156292 [13:23:27]NVStorageDeleteData [13:23:27]Write to MH i2c: 01 00 00 79 03 7C [13:23:27]Write i2c OK [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: 01 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: 01 07 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 EB 0C 7A [13:23:27]RasterBufferAndPrint [13:23:27]line [13:23:27]line [13:23:27]line [13:23:27]line [13:23:27]line [13:23:27]written 0, free lines is 3313 [13:23:27]process_action close_receipt done [13:23:27]requested_data is exist [13:23:27]produce_requested_data [13:23:27]requested_item fm.sn is exist - process it [13:23:27]wFMCommunicate request_size=4 [13:23:27]MH_SAM_APDU [13:23:27]CAPDU: 80 11 00 00 [13:23:27]Write to MH i2c: E2 08 00 80 03 80 11 00 00 00 00 00 00 FD [13:23:27]Write i2c OK [13:23:27]MH_I2C_Read... [13:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:27]Read from MH i2c: E2 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 17 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 17 00 80 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [13:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:23:27]wFMCommunicate OK [13:23:27]requested_item fd.num is exist - process it [13:23:27]SAM_PROTO_GetFieldsCounters [13:23:27]wFMCommunicate request_size=4 [13:23:27]MH_SAM_APDU [13:23:27]CAPDU: 80 13 00 00 [13:23:27]Write to MH i2c: E2 08 00 81 03 80 13 00 00 00 00 00 00 00 [13:23:27]Write i2c OK [13:23:27]MH_I2C_Read... [13:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:27]Read from MH i2c: E2 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 62 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 62 00 81 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 84 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 84 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:27]wFMCommunicate OK [13:23:27]SAM_PROTO_GetFieldsCounters done [13:23:27]requested_item shift.num is exist - process it [13:23:27]requested_item shift.opened is exist - process it [13:23:27]req_shift_opened [13:23:27]FM_GetShiftState [13:23:27]SAM_PROTO_GetShiftState [13:23:27]wFMCommunicate request_size=4 [13:23:27]MH_SAM_APDU [13:23:27]CAPDU: 80 13 01 00 [13:23:27]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [13:23:27]Write i2c OK [13:23:27]MH_I2C_Read... [13:23:27]OFD Sender: No OFD packet to send [13:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:27]Read from MH i2c: E2 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 0E 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 37 [13:23:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:23:27]wFMCommunicate OK [13:23:27]SAM_PROTO_GetShiftState done [13:23:27]FM_GetShiftState done [13:23:27]req_shift_opened done [13:23:27]requested_item shift.open_date is exist - process it [13:23:27]req_shift_open_date [13:23:27]req_shift_open_date done [13:23:27]produce_requested_data done [13:23:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156292,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:23:27]process_action_free close_receipt [13:23:27]json_value_free [13:23:27]json_value_free done [13:23:27]process_json_proto returns [13:23:27]Send response to host [13:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156292,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:23:27]free response buf [13:23:27]execute_script done [13:23:27]execute_script returns [13:23:27]free content buf [13:23:27]Sock 8.Close socket [13:23:27]Sock 8.Thread stoped [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:14]accept exits with 9 [13:24:14]New connection [13:24:14]New thread 3066977636 created [13:24:14]Thread 3066834276 joined [13:24:14]Waiting for new connection... [13:24:14] Sock 9.Parse request [13:24:14]Sock 9.Check first char [13:24:14]Sock 9.First char is OK [13:24:14]request: POST /json_proto HTTP/1.0 [13:24:14]Method: POST [13:24:14]URL: /json_proto [13:24:14]Method is POST - this is cgi request [13:24:14]url: /json_proto [13:24:14]query_string will be loaded in cgi processing [13:24:14]execute_cgi json_proto POST (null) [13:24:14]execute_cgi path=json_proto method=POST [13:24:14]POST find Content-Length [13:24:14]Host: 172.17.63.3:8080 [13:24:14]Content-Length: 678 [13:24:14]Content-Type: application/json [13:24:14] [13:24:14]POST finish read [13:24:14]Found Content-Length = 678 [13:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:14]execute_script... [13:24:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:14]POST & json_proto [13:24:14]process_json_proto [13:24:14]json parsed OK: [13:24:14]protocol is kg_v1.0 [13:24:14]action value=close_receipt [13:24:14]process_action close_receipt [13:24:14]cmd_close_receipt [13:24:14]MH_GetDate [13:24:14]Write to MH i2c: F0 00 00 83 03 75 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: F0 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: F0 09 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: F0 09 00 83 03 00 7E ED 1C 67 50 D1 6C 64 5D [13:24:14]GetLastDocTimeStamp 1729949005 [13:24:14]current date 1729949054 [13:24:14]FM_GetShiftState [13:24:14]SAM_PROTO_GetShiftState [13:24:14]wFMCommunicate request_size=4 [13:24:14]MH_SAM_APDU [13:24:14]CAPDU: 80 13 01 00 [13:24:14]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 0E 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 39 [13:24:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:24:14]wFMCommunicate OK [13:24:14]SAM_PROTO_GetShiftState done [13:24:14]FM_GetShiftState done [13:24:14]opened in 1729902702 [13:24:14]opened+sec_in_day 1729989102 [13:24:14]quantity*price = 100050 [13:24:14]sum+1 = 100052 [13:24:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 194 26.10.2024 13:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156293 ФПД: 170187327155094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132414&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156293&fm=170187327155094&tin=02508201610067®Number=0000000000091693&sum=100000 [13:24:15]StoreToDocumentArchive [13:24:15]shift 536 fd 156293 [13:24:15]save to /storage/0536/doc_00156293 [13:24:15]save last doc name /storage/0536/doc_00156293 to /storage/kkm_last_doc_name [13:24:15]save OK [13:24:15]Clear old archive folders... [13:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:24:15]tlvbuf is 01689FC0 [13:24:15]SAM_PROTO_ClearQueue [13:24:15]wFMCommunicate request_size=4 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 09 00 00 [13:24:15]Write to MH i2c: E2 08 00 91 03 80 09 00 00 00 00 00 00 06 [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:15]Read from MH i2c: E2 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 03 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [13:24:15]RAPDU: 90 00 [13:24:15]wFMCommunicate OK [13:24:15]SAM_PROTO_ClearQueue done [13:24:15]KKMCreateOFDPacket [13:24:15]OFDProtocolAddRootSTLVToBuf [13:24:15]FM_MakeSignedData [13:24:15]FM_MakeSignedData [13:24:15]SAM_PROTO_SignData [13:24:15]wFMCommunicate request_size=4 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 0D 01 02 [13:24:15]Write to MH i2c: E2 08 00 92 03 80 0D 01 02 00 00 00 00 0E [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:15]Read from MH i2c: E2 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 03 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [13:24:15]RAPDU: 90 00 [13:24:15]wFMCommunicate OK [13:24:15]wFMCommunicate request_size=255 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 7E ED 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 62 02 00 35 04 06 00 9A C8 D3 2E [13:24:15]Write to MH i2c: E2 02 01 93 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 7E ED 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 62 02 00 35 04 06 00 9A C8 D3 2E 00 00 AE [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 03 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [13:24:16]RAPDU: 90 00 [13:24:16]wFMCommunicate OK [13:24:16]wFMCommunicate request_size=7 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 0D 02 02 02 2B 96 [13:24:16]Write to MH i2c: E2 0A 00 94 03 80 0D 02 02 02 00 2B 96 00 00 D6 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 03 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [13:24:16]RAPDU: 90 00 [13:24:16]wFMCommunicate OK [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 0D 03 02 [13:24:16]Write to MH i2c: E2 08 00 95 03 80 0D 03 02 00 00 00 00 13 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0B 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0B 00 95 03 00 13 FA D4 25 75 B4 A2 0E 90 00 F3 [13:24:16]RAPDU: 13 FA D4 25 75 B4 A2 0E 90 00 [13:24:16]wFMCommunicate OK [13:24:16]SAM_PROTO_SignData done [13:24:16]FM_MakeSignedData done [13:24:16]CreateOFDProtocolMessage [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 11 00 00 [13:24:16]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 17 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [13:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:24:16]wFMCommunicate OK [13:24:16]CreateOFDProtocolMessage done [13:24:16]OFDSenderStorePacket 156293 [13:24:16]StoreOFDPacket docnum=156293 [13:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 FA 5B 04 01 C6 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 7E ED 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 62 02 00 35 04 06 00 9A C8 D3 2E 2B 96 13 FA D4 25 75 B4 A2 0E [13:24:16]CheckFolder [13:24:16]dirname=/storage/ofd_packets [13:24:16]CheckFolder done [13:24:16]ProducePacketName [13:24:16]name=ofd_packets/00156293 [13:24:16]NVStorageSaveData ofd_packets/00156293 [13:24:16]File name is /storage/ofd_packets/00156293 [13:24:16]Write 298 bytes [13:24:16]NVStorageSaveData done [13:24:16]OFDSenderStorePacket done [13:24:16]KKMCreateOFDPacket done [13:24:16]NVStorageSaveData kkm_last_timestamp [13:24:16]File name is /storage/kkm_last_timestamp [13:24:16]Write 4 bytes [13:24:16]NVStorageSaveData done [13:24:16]ExternCall_PrintAddStr [13:24:16]wPrintStart [13:24:16]Write to MH i2c: 01 00 00 97 03 9A [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: 01 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: 01 07 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [13:24:16]RasterBufferAndPrint [13:24:16]line Счет N : (1)99108 [13:24:16]line ИНН: 02508201610067 [13:24:16]line Контрольно-Кассовый Чек [13:24:16]line ПРОДАЖА [13:24:16]line ТРК (МРК, ГНК) : 32 [13:24:16]line Товар: 2710194210 [13:24:16]line ДТ-К-5 [13:24:16]line 13.130 * 76.20 [13:24:16]line = 1000.51 [13:24:16]line НДС 12% НСП 1% [13:24:16]line > о реализуемом товаре [13:24:16]line ОКРУГЛЕНИЕ: -0.51 [13:24:16]line ИТОГО: 1000.00 [13:24:16]line Внесено: 1000.00 [13:24:16]line СДАЧА: 0.00 [13:24:16]line НСП 1% : 8.85 [13:24:16]line НДС 12% : 106.25 [13:24:16]line Наличными: 1000.00 [13:24:16]line Безнал.: 0.00 [13:24:16]line Место: АЗС № 143 "Партнер Нефть" [13:24:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:24:16]line СНО: Общий режим [13:24:16]line Чек 194 26.10.2024 13:24 [13:24:16]line Смена: 536 ФФД: 1.0 [13:24:16]line ЗНМ: 0300000096 [13:24:16]line РНМ: 0000000000091693 [13:24:16]line Версия ККМ: 001 [13:24:16]line ФМ: 0000000000871792 [13:24:16]line ФД: 156293 [13:24:16]line ФПД: 170187327155094 [13:24:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132414&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156293&fm=170187327155094&tin=02508201610067®Number=0000000000091693&sum=100000 [13:24:16]OFD Sender: Processing packet 156293 [packets to send 31, broken 30] [13:24:16]ProducePacketName [13:24:16]name=ofd_packets/00156293 [13:24:16]OFD Sender: To server: pG, [13:24:16]CommunicateWithHost lk.salyk.kg:30040 [13:24:16]ConnectInit lk.salyk.kg [13:24:16]written 0, free lines is 4095 [13:24:16]Connected sock=10 [13:24:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 FA 5B 04 01 C6 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 7E ED 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 62 02 00 35 04 06 00 9A C8 D3 2E 2B 96 13 FA D4 25 75 B4 A2 0E [13:24:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 52 5A 47 00 27 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 31 37 39 32 10 04 04 00 85 62 02 00 F4 03 04 00 F1 92 1C 67 B6 04 01 00 00 2E FD 25 C8 5D 68 F8 BB [13:24:16]CommunicateWithHost err = 0 [13:24:16]CheckOFDResponse [13:24:16]1017 (14) - 77093643461234 [13:24:16]1041 (16) - 0000000000871792 [13:24:16]1040 (4) - 156293 [13:24:16]1012 (4) - 26.10.2024 06:57 [13:24:16]1206 (1) - 0 [13:24:16]OFD Sender: Remove packet 156293 [13:24:16]ProducePacketName [13:24:16]name=ofd_packets/00156293 [13:24:16]NVStorageDeleteData [13:24:17]Write to MH i2c: 01 00 00 C2 03 C5 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 C2 03 00 00 00 00 00 EB 0C C3 [13:24:17]RasterBufferAndPrint [13:24:17]line [13:24:17]line [13:24:17]line [13:24:17]line [13:24:17]line [13:24:17]written 0, free lines is 3313 [13:24:17]process_action close_receipt done [13:24:17]requested_data is exist [13:24:17]produce_requested_data [13:24:17]requested_item fm.sn is exist - process it [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 11 00 00 [13:24:17]Write to MH i2c: E2 08 00 C9 03 80 11 00 00 00 00 00 00 46 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 17 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 17 00 C9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [13:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:24:17]wFMCommunicate OK [13:24:17]requested_item fd.num is exist - process it [13:24:17]SAM_PROTO_GetFieldsCounters [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 13 00 00 [13:24:17]Write to MH i2c: E2 08 00 CA 03 80 13 00 00 00 00 00 00 49 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 62 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 62 00 CA 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 85 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [13:24:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 85 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:17]wFMCommunicate OK [13:24:17]SAM_PROTO_GetFieldsCounters done [13:24:17]requested_item shift.num is exist - process it [13:24:17]requested_item shift.opened is exist - process it [13:24:17]req_shift_opened [13:24:17]FM_GetShiftState [13:24:17]SAM_PROTO_GetShiftState [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 13 01 00 [13:24:17]Write to MH i2c: E2 08 00 CB 03 80 13 01 00 00 00 00 00 4B [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 0E 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 0E 00 CB 03 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 80 [13:24:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:24:17]wFMCommunicate OK [13:24:17]SAM_PROTO_GetShiftState done [13:24:17]FM_GetShiftState done [13:24:17]req_shift_opened done [13:24:17]requested_item shift.open_date is exist - process it [13:24:17]req_shift_open_date [13:24:17]req_shift_open_date done [13:24:17]produce_requested_data done [13:24:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156293,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:24:17]process_action_free close_receipt [13:24:17]json_value_free [13:24:17]json_value_free done [13:24:17]process_json_proto returns [13:24:17]Send response to host [13:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156293,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:24:17]free response buf [13:24:17]execute_script done [13:24:17]execute_script returns [13:24:17]free content buf [13:24:17]Sock 9.Close socket [13:24:17]Sock 9.Thread stoped [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:50]accept exits with 8 [13:26:50]New connection [13:26:50]New thread 3066834276 created [13:26:50]Thread 3066977636 joined [13:26:50]Waiting for new connection... [13:26:50] Sock 8.Parse request [13:26:50]Sock 8.Check first char [13:26:50]Sock 8.First char is OK [13:26:50]request: POST /json_proto HTTP/1.0 [13:26:50]Method: POST [13:26:50]URL: /json_proto [13:26:50]Method is POST - this is cgi request [13:26:50]url: /json_proto [13:26:50]query_string will be loaded in cgi processing [13:26:50]execute_cgi json_proto POST (null) [13:26:50]execute_cgi path=json_proto method=POST [13:26:50]POST find Content-Length [13:26:50]Host: 172.17.63.3:8080 [13:26:50]Content-Length: 681 [13:26:50]Content-Type: application/json [13:26:50] [13:26:50]POST finish read [13:26:50]Found Content-Length = 681 [13:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:50]execute_script... [13:26:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:50]POST & json_proto [13:26:50]process_json_proto [13:26:50]json parsed OK: [13:26:50]protocol is kg_v1.0 [13:26:50]action value=close_receipt [13:26:50]process_action close_receipt [13:26:50]cmd_close_receipt [13:26:50]MH_GetDate [13:26:50]Write to MH i2c: F0 00 00 CC 03 BE [13:26:50]Write i2c OK [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: F0 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: F0 09 00 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: F0 09 00 CC 03 00 1A EE 1C 67 50 D1 6C 64 43 [13:26:50]GetLastDocTimeStamp 1729949054 [13:26:50]current date 1729949210 [13:26:50]FM_GetShiftState [13:26:50]SAM_PROTO_GetShiftState [13:26:50]wFMCommunicate request_size=4 [13:26:50]MH_SAM_APDU [13:26:50]CAPDU: 80 13 01 00 [13:26:50]Write to MH i2c: E2 08 00 CD 03 80 13 01 00 00 00 00 00 4D [13:26:50]Write i2c OK [13:26:50]MH_I2C_Read... [13:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:50]Read from MH i2c: E2 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: E2 0E 00 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: E2 0E 00 CD 03 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 82 [13:26:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:26:50]wFMCommunicate OK [13:26:50]SAM_PROTO_GetShiftState done [13:26:50]FM_GetShiftState done [13:26:50]opened in 1729902702 [13:26:50]opened+sec_in_day 1729989102 [13:26:50]quantity*price = 100015 [13:26:50]sum+1 = 100017 [13:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 195 26.10.2024 13:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156294 ФПД: 113139969141952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132651&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156294&fm=113139969141952&tin=02508201610067®Number=0000000000091693&sum=100000 [13:26:51]StoreToDocumentArchive [13:26:51]shift 536 fd 156294 [13:26:51]save to /storage/0536/doc_00156294 [13:26:51]save last doc name /storage/0536/doc_00156294 to /storage/kkm_last_doc_name [13:26:51]save OK [13:26:51]Clear old archive folders... [13:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:51]tlvbuf is B6F5B880 [13:26:51]SAM_PROTO_ClearQueue [13:26:51]wFMCommunicate request_size=4 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 09 00 00 [13:26:51]Write to MH i2c: E2 08 00 DA 03 80 09 00 00 00 00 00 00 4F [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [13:26:51]RAPDU: 90 00 [13:26:51]wFMCommunicate OK [13:26:51]SAM_PROTO_ClearQueue done [13:26:51]KKMCreateOFDPacket [13:26:51]OFDProtocolAddRootSTLVToBuf [13:26:51]FM_MakeSignedData [13:26:51]FM_MakeSignedData [13:26:51]SAM_PROTO_SignData [13:26:51]wFMCommunicate request_size=4 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 0D 01 02 [13:26:51]Write to MH i2c: E2 08 00 DB 03 80 0D 01 02 00 00 00 00 57 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:51]Read from MH i2c: E2 03 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [13:26:51]RAPDU: 90 00 [13:26:51]wFMCommunicate OK [13:26:51]wFMCommunicate request_size=255 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 1B EE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 62 02 00 35 04 06 00 66 [13:26:51]Write to MH i2c: E2 02 01 DC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 1B EE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 62 02 00 35 04 06 00 66 00 00 9E [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]wFMCommunicate request_size=10 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 02 02 05 E6 73 AB AC C0 [13:26:52]Write to MH i2c: E2 0D 00 DD 03 80 0D 02 02 05 00 E6 73 AB AC C0 00 00 D4 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 03 02 [13:26:52]Write to MH i2c: E2 08 00 DE 03 80 0D 03 02 00 00 00 00 5C [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 0B 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 0B 00 DE 03 00 21 7B 32 A5 88 0E E5 91 90 00 DC [13:26:52]RAPDU: 21 7B 32 A5 88 0E E5 91 90 00 [13:26:52]wFMCommunicate OK [13:26:52]SAM_PROTO_SignData done [13:26:52]FM_MakeSignedData done [13:26:52]CreateOFDProtocolMessage [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 11 00 00 [13:26:52]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 17 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [13:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:26:52]wFMCommunicate OK [13:26:52]CreateOFDProtocolMessage done [13:26:52]OFDSenderStorePacket 156294 [13:26:52]StoreOFDPacket docnum=156294 [13:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 CE 07 01 4D A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 1B EE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 62 02 00 35 04 06 00 66 E6 73 AB AC C0 21 7B 32 A5 88 0E E5 91 [13:26:52]CheckFolder [13:26:52]dirname=/storage/ofd_packets [13:26:52]CheckFolder done [13:26:52]ProducePacketName [13:26:52]name=ofd_packets/00156294 [13:26:52]NVStorageSaveData ofd_packets/00156294 [13:26:52]File name is /storage/ofd_packets/00156294 [13:26:52]Write 301 bytes [13:26:52]NVStorageSaveData done [13:26:52]OFDSenderStorePacket done [13:26:52]KKMCreateOFDPacket done [13:26:52]NVStorageSaveData kkm_last_timestamp [13:26:52]File name is /storage/kkm_last_timestamp [13:26:52]Write 4 bytes [13:26:52]NVStorageSaveData done [13:26:52]ExternCall_PrintAddStr [13:26:52]wPrintStart [13:26:52]Write to MH i2c: 01 00 00 E0 03 E3 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 FF 0F F8 [13:26:52]RasterBufferAndPrint [13:26:52]line Счет N : (1)99109 [13:26:52]line ИНН: 02508201610067 [13:26:52]line Контрольно-Кассовый Чек [13:26:52]line ПРОДАЖА [13:26:52]line ТРК (МРК, ГНК) : 21 [13:26:52]line Товар: 2710124130 [13:26:52]line Аи-92-К-5 [13:26:52]line 14.950 * 66.90 [13:26:52]line = 1000.16 [13:26:52]line НДС 12% НСП 1% [13:26:52]line > о реализуемом товаре [13:26:52]line ОКРУГЛЕНИЕ: -0.16 [13:26:52]line ИТОГО: 1000.00 [13:26:52]line Внесено: 1000.00 [13:26:52]line СДАЧА: 0.00 [13:26:52]line НСП 1% : 8.85 [13:26:52]line НДС 12% : 106.21 [13:26:52]line Наличными: 1000.00 [13:26:52]line Безнал.: 0.00 [13:26:52]line Место: АЗС № 143 "Партнер Нефть" [13:26:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:26:52]line СНО: Общий режим [13:26:52]line Чек 195 26.10.2024 13:26 [13:26:52]line Смена: 536 ФФД: 1.0 [13:26:52]line ЗНМ: 0300000096 [13:26:52]line РНМ: 0000000000091693 [13:26:52]line Версия ККМ: 001 [13:26:52]line ФМ: 0000000000871792 [13:26:52]line ФД: 156294 [13:26:52]line ФПД: 113139969141952 [13:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132651&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156294&fm=113139969141952&tin=02508201610067®Number=0000000000091693&sum=100000 [13:26:52]OFD Sender: Processing packet 156294 [packets to send 31, broken 30] [13:26:52]ProducePacketName [13:26:52]name=ofd_packets/00156294 [13:26:52]OFD Sender: To server: pG, [13:26:52]CommunicateWithHost lk.salyk.kg:30040 [13:26:52]ConnectInit lk.salyk.kg [13:26:52]written 0, free lines is 4095 [13:26:52]Connected sock=10 [13:26:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 CE 07 01 4D A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 1B EE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 62 02 00 35 04 06 00 66 E6 73 AB AC C0 21 7B 32 A5 88 0E E5 91 [13:26:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1F 50 47 00 32 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 62 02 00 F4 03 04 00 8D 93 1C 67 B6 04 01 00 00 08 94 2D 7B B8 91 6D 0B [13:26:52]CommunicateWithHost err = 0 [13:26:52]CheckOFDResponse [13:26:52]1017 (14) - 77093643461234 [13:26:52]1041 (16) - 0000000000871792 [13:26:52]1040 (4) - 156294 [13:26:52]1012 (4) - 26.10.2024 07:00 [13:26:52]1206 (1) - 0 [13:26:52]OFD Sender: Remove packet 156294 [13:26:52]ProducePacketName [13:26:52]name=ofd_packets/00156294 [13:26:52]NVStorageDeleteData [13:26:53]Write to MH i2c: 01 00 00 0B 04 0F [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 07 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 07 00 0B 04 00 00 00 00 00 EC 0C 0E [13:26:53]RasterBufferAndPrint [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]written 0, free lines is 3314 [13:26:53]process_action close_receipt done [13:26:53]requested_data is exist [13:26:53]produce_requested_data [13:26:53]requested_item fm.sn is exist - process it [13:26:53]wFMCommunicate request_size=4 [13:26:53]MH_SAM_APDU [13:26:53]CAPDU: 80 11 00 00 [13:26:53]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 17 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E5 [13:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:26:53]wFMCommunicate OK [13:26:53]requested_item fd.num is exist - process it [13:26:53]SAM_PROTO_GetFieldsCounters [13:26:53]wFMCommunicate request_size=4 [13:26:53]MH_SAM_APDU [13:26:53]CAPDU: 80 13 00 00 [13:26:53]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 62 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 62 00 13 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 86 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [13:26: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 86 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:53]wFMCommunicate OK [13:26:53]SAM_PROTO_GetFieldsCounters done [13:26:53]requested_item shift.num is exist - process it [13:26:53]requested_item shift.opened is exist - process it [13:26:53]req_shift_opened [13:26:53]FM_GetShiftState [13:26:53]SAM_PROTO_GetShiftState [13:26:53]wFMCommunicate request_size=4 [13:26:53]MH_SAM_APDU [13:26:53]CAPDU: 80 13 01 00 [13:26:53]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CA [13:26:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:26:53]wFMCommunicate OK [13:26:53]SAM_PROTO_GetShiftState done [13:26:53]FM_GetShiftState done [13:26:53]req_shift_opened done [13:26:53]requested_item shift.open_date is exist - process it [13:26:53]req_shift_open_date [13:26:53]req_shift_open_date done [13:26:53]produce_requested_data done [13:26:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156294,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:26:53]process_action_free close_receipt [13:26:53]json_value_free [13:26:53]json_value_free done [13:26:53]process_json_proto returns [13:26:53]Send response to host [13:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156294,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:26:53]free response buf [13:26:53]execute_script done [13:26:53]execute_script returns [13:26:53]free content buf [13:26:53]Sock 8.Close socket [13:26:53]Sock 8.Thread stoped [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:15]accept exits with 9 [13:32:15]New connection [13:32:15]New thread 3066977636 created [13:32:15]Thread 3066834276 joined [13:32:15]Waiting for new connection... [13:32:15] Sock 9.Parse request [13:32:15]Sock 9.Check first char [13:32:15]Sock 9.First char is OK [13:32:15]request: POST /json_proto HTTP/1.0 [13:32:15]Method: POST [13:32:15]URL: /json_proto [13:32:15]Method is POST - this is cgi request [13:32:15]url: /json_proto [13:32:15]query_string will be loaded in cgi processing [13:32:15]execute_cgi json_proto POST (null) [13:32:15]execute_cgi path=json_proto method=POST [13:32:15]POST find Content-Length [13:32:15]Host: 172.17.63.3:8080 [13:32:15]Content-Length: 676 [13:32:15]Content-Type: application/json [13:32:15] [13:32:15]POST finish read [13:32:15]Found Content-Length = 676 [13:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:15]execute_script... [13:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:15]POST & json_proto [13:32:15]process_json_proto [13:32:15]json parsed OK: [13:32:15]protocol is kg_v1.0 [13:32:15]action value=close_receipt [13:32:15]process_action close_receipt [13:32:15]cmd_close_receipt [13:32:15]MH_GetDate [13:32:15]Write to MH i2c: F0 00 00 15 04 08 [13:32:15]Write i2c OK [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: F0 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: F0 09 00 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: F0 09 00 15 04 00 60 EF 1C 67 50 D1 6C 64 D4 [13:32:15]GetLastDocTimeStamp 1729949211 [13:32:15]current date 1729949536 [13:32:15]FM_GetShiftState [13:32:15]SAM_PROTO_GetShiftState [13:32:15]wFMCommunicate request_size=4 [13:32:15]MH_SAM_APDU [13:32:15]CAPDU: 80 13 01 00 [13:32:15]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [13:32:15]Write i2c OK [13:32:15]MH_I2C_Read... [13:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:15]Read from MH i2c: E2 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: E2 0E 00 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CC [13:32:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:32:15]wFMCommunicate OK [13:32:15]SAM_PROTO_GetShiftState done [13:32:15]FM_GetShiftState done [13:32:15]opened in 1729902702 [13:32:15]opened+sec_in_day 1729989102 [13:32:15]quantity*price = 50041 [13:32:15]sum+1 = 50042 [13:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 196 26.10.2024 13:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156295 ФПД: 598155551183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133216&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156295&fm=598155551183&tin=02508201610067®Number=0000000000091693&sum=50000 [13:32:17]StoreToDocumentArchive [13:32:17]shift 536 fd 156295 [13:32:17]save to /storage/0536/doc_00156295 [13:32:17]save last doc name /storage/0536/doc_00156295 to /storage/kkm_last_doc_name [13:32:17]save OK [13:32:17]Clear old archive folders... [13:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:17]tlvbuf is 016799A0 [13:32:17]SAM_PROTO_ClearQueue [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 09 00 00 [13:32:17]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [13:32:17]RAPDU: 90 00 [13:32:17]wFMCommunicate OK [13:32:17]SAM_PROTO_ClearQueue done [13:32:17]KKMCreateOFDPacket [13:32:17]OFDProtocolAddRootSTLVToBuf [13:32:17]FM_MakeSignedData [13:32:17]FM_MakeSignedData [13:32:17]SAM_PROTO_SignData [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 0D 01 02 [13:32:17]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [13:32:17]RAPDU: 90 00 [13:32:17]wFMCommunicate OK [13:32:17]wFMCommunicate request_size=255 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 60 EF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 62 02 00 35 04 06 00 00 [13:32:17]Write to MH i2c: E2 02 01 25 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 60 EF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 62 02 00 35 04 06 00 00 00 00 D0 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [13:32:17]RAPDU: 90 00 [13:32:17]wFMCommunicate OK [13:32:17]wFMCommunicate request_size=10 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 0D 02 02 05 8B 44 D9 61 CF [13:32:17]Write to MH i2c: E2 0D 00 26 04 80 0D 02 02 05 00 8B 44 D9 61 CF 00 00 86 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [13:32:17]RAPDU: 90 00 [13:32:17]wFMCommunicate OK [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 0D 03 02 [13:32:17]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 0B 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 0B 00 27 04 00 C5 B3 BB 4A A5 3C 78 A1 90 00 1E [13:32:17]RAPDU: C5 B3 BB 4A A5 3C 78 A1 90 00 [13:32:17]wFMCommunicate OK [13:32:17]SAM_PROTO_SignData done [13:32:17]FM_MakeSignedData done [13:32:17]CreateOFDProtocolMessage [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 11 00 00 [13:32:17]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 17 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [13:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:32:17]wFMCommunicate OK [13:32:17]CreateOFDProtocolMessage done [13:32:17]OFDSenderStorePacket 156295 [13:32:17]StoreOFDPacket docnum=156295 [13:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 59 46 07 01 98 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 60 EF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 62 02 00 35 04 06 00 00 8B 44 D9 61 CF C5 B3 BB 4A A5 3C 78 A1 [13:32:17]CheckFolder [13:32:17]dirname=/storage/ofd_packets [13:32:17]CheckFolder done [13:32:17]ProducePacketName [13:32:17]name=ofd_packets/00156295 [13:32:17]NVStorageSaveData ofd_packets/00156295 [13:32:17]File name is /storage/ofd_packets/00156295 [13:32:17]Write 301 bytes [13:32:17]NVStorageSaveData done [13:32:17]OFDSenderStorePacket done [13:32:17]KKMCreateOFDPacket done [13:32:17]NVStorageSaveData kkm_last_timestamp [13:32:17]File name is /storage/kkm_last_timestamp [13:32:17]Write 4 bytes [13:32:17]NVStorageSaveData done [13:32:17]ExternCall_PrintAddStr [13:32:17]wPrintStart [13:32:17]Write to MH i2c: 01 00 00 29 04 2D [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: 01 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: 01 07 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [13:32:17]RasterBufferAndPrint [13:32:17]line Счет N : (1)99110 [13:32:17]line ИНН: 02508201610067 [13:32:17]line Контрольно-Кассовый Чек [13:32:17]line ПРОДАЖА [13:32:17]line ТРК (МРК, ГНК) : 31 [13:32:17]line Товар: 2710124130 [13:32:17]line Аи-92-К-5 [13:32:17]line 7.480 * 66.90 [13:32:17]line = 500.41 [13:32:17]line НДС 12% НСП 1% [13:32:17]line > о реализуемом товаре [13:32:17]line ОКРУГЛЕНИЕ: -0.41 [13:32:17]line ИТОГО: 500.00 [13:32:17]line Внесено: 500.00 [13:32:17]line СДАЧА: 0.00 [13:32:17]line НСП 1% : 4.43 [13:32:17]line НДС 12% : 53.14 [13:32:17]line Наличными: 500.00 [13:32:17]line Безнал.: 0.00 [13:32:17]line Место: АЗС № 143 "Партнер Нефть" [13:32:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:32:17]line СНО: Общий режим [13:32:17]line Чек 196 26.10.2024 13:32 [13:32:17]line Смена: 536 ФФД: 1.0 [13:32:17]line ЗНМ: 0300000096 [13:32:17]line РНМ: 0000000000091693 [13:32:17]line Версия ККМ: 001 [13:32:17]line ФМ: 0000000000871792 [13:32:17]line ФД: 156295 [13:32:17]line ФПД: 598155551183 [13:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133216&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156295&fm=598155551183&tin=02508201610067®Number=0000000000091693&sum=50000 [13:32:17]OFD Sender: Processing packet 156295 [packets to send 31, broken 30] [13:32:17]ProducePacketName [13:32:17]name=ofd_packets/00156295 [13:32:17]OFD Sender: To server: pG, [13:32:17]CommunicateWithHost lk.salyk.kg:30040 [13:32:17]ConnectInit lk.salyk.kg [13:32:17]written 0, free lines is 4095 [13:32:18]Connected sock=10 [13:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 59 46 07 01 98 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 60 EF 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 62 02 00 35 04 06 00 00 8B 44 D9 61 CF C5 B3 BB 4A A5 3C 78 A1 [13:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4A 3A 47 00 73 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 31 37 39 32 10 04 04 00 87 62 02 00 F4 03 04 00 D2 94 1C 67 B6 04 01 00 00 04 71 47 D8 89 F6 18 0F [13:32:18]CommunicateWithHost err = 0 [13:32:18]CheckOFDResponse [13:32:18]1017 (14) - 77093643461234 [13:32:18]1041 (16) - 0000000000871792 [13:32:18]1040 (4) - 156295 [13:32:18]1012 (4) - 26.10.2024 07:05 [13:32:18]1206 (1) - 0 [13:32:18]OFD Sender: Remove packet 156295 [13:32:18]ProducePacketName [13:32:18]name=ofd_packets/00156295 [13:32:18]NVStorageDeleteData [13:32:18]Write to MH i2c: 01 00 00 54 04 58 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 54 04 00 00 00 00 00 EA 0C 55 [13:32:18]RasterBufferAndPrint [13:32:18]line [13:32:18]line [13:32:18]line [13:32:18]line [13:32:18]line [13:32:18]written 0, free lines is 3313 [13:32:18]process_action close_receipt done [13:32:18]requested_data is exist [13:32:18]produce_requested_data [13:32:18]requested_item fm.sn is exist - process it [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 11 00 00 [13:32:18]Write to MH i2c: E2 08 00 5B 04 80 11 00 00 00 00 00 00 D9 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 5B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [13:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:32:18]wFMCommunicate OK [13:32:18]requested_item fd.num is exist - process it [13:32:18]SAM_PROTO_GetFieldsCounters [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 13 00 00 [13:32:18]Write to MH i2c: E2 08 00 5C 04 80 13 00 00 00 00 00 00 DC [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 62 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 62 00 5C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 87 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 87 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_GetFieldsCounters done [13:32:18]requested_item shift.num is exist - process it [13:32:18]requested_item shift.opened is exist - process it [13:32:18]req_shift_opened [13:32:18]FM_GetShiftState [13:32:18]SAM_PROTO_GetShiftState [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 13 01 00 [13:32:18]Write to MH i2c: E2 08 00 5D 04 80 13 01 00 00 00 00 00 DE [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0E 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0E 00 5D 04 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 13 [13:32:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_GetShiftState done [13:32:18]FM_GetShiftState done [13:32:18]req_shift_opened done [13:32:18]requested_item shift.open_date is exist - process it [13:32:18]req_shift_open_date [13:32:18]req_shift_open_date done [13:32:18]produce_requested_data done [13:32:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156295,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:32:18]process_action_free close_receipt [13:32:18]json_value_free [13:32:18]json_value_free done [13:32:18]process_json_proto returns [13:32:18]Send response to host [13:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156295,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:32:18]free response buf [13:32:18]execute_script done [13:32:18]execute_script returns [13:32:18]free content buf [13:32:18]Sock 9.Close socket [13:32:18]Sock 9.Thread stoped [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:45]accept exits with 8 [13:36:45]New connection [13:36:45]New thread 3066834276 created [13:36:45]Thread 3066977636 joined [13:36:45]Waiting for new connection... [13:36:45] Sock 8.Parse request [13:36:45]Sock 8.Check first char [13:36:45]Sock 8.First char is OK [13:36:45]request: POST /json_proto HTTP/1.0 [13:36:45]Method: POST [13:36:45]URL: /json_proto [13:36:45]Method is POST - this is cgi request [13:36:45]url: /json_proto [13:36:45]query_string will be loaded in cgi processing [13:36:45]execute_cgi json_proto POST (null) [13:36:45]execute_cgi path=json_proto method=POST [13:36:45]POST find Content-Length [13:36:45]Host: 172.17.63.3:8080 [13:36:45]Content-Length: 676 [13:36:45]Content-Type: application/json [13:36:45] [13:36:45]POST finish read [13:36:45]Found Content-Length = 676 [13:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:45]execute_script... [13:36:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:45]POST & json_proto [13:36:45]process_json_proto [13:36:45]json parsed OK: [13:36:45]protocol is kg_v1.0 [13:36:45]action value=close_receipt [13:36:45]process_action close_receipt [13:36:45]cmd_close_receipt [13:36:45]MH_GetDate [13:36:45]Write to MH i2c: F0 00 00 5E 04 51 [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: F0 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: F0 09 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: F0 09 00 5E 04 00 6D F0 1C 67 50 D1 6C 64 2B [13:36:45]GetLastDocTimeStamp 1729949536 [13:36:45]current date 1729949805 [13:36:45]FM_GetShiftState [13:36:45]SAM_PROTO_GetShiftState [13:36:45]wFMCommunicate request_size=4 [13:36:45]MH_SAM_APDU [13:36:45]CAPDU: 80 13 01 00 [13:36:45]Write to MH i2c: E2 08 00 5F 04 80 13 01 00 00 00 00 00 E0 [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:45]Read from MH i2c: E2 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 0E 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 0E 00 5F 04 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 15 [13:36:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:36:45]wFMCommunicate OK [13:36:45]SAM_PROTO_GetShiftState done [13:36:45]FM_GetShiftState done [13:36:45]opened in 1729902702 [13:36:45]opened+sec_in_day 1729989102 [13:36:45]quantity*price = 25020 [13:36:45]sum+1 = 25022 [13:36:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 197 26.10.2024 13:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156296 ФПД: 271765881937201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133645&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156296&fm=271765881937201&tin=02508201610067®Number=0000000000091693&sum=25000 [13:36:46]StoreToDocumentArchive [13:36:46]shift 536 fd 156296 [13:36:46]save to /storage/0536/doc_00156296 [13:36:46]save last doc name /storage/0536/doc_00156296 to /storage/kkm_last_doc_name [13:36:46]save OK [13:36:46]Clear old archive folders... [13:36:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:46]tlvbuf is 016E6360 [13:36:46]SAM_PROTO_ClearQueue [13:36:46]wFMCommunicate request_size=4 [13:36:46]MH_SAM_APDU [13:36:46]CAPDU: 80 09 00 00 [13:36:46]Write to MH i2c: E2 08 00 6C 04 80 09 00 00 00 00 00 00 E2 [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:46]Read from MH i2c: E2 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [13:36:46]RAPDU: 90 00 [13:36:46]wFMCommunicate OK [13:36:46]SAM_PROTO_ClearQueue done [13:36:46]KKMCreateOFDPacket [13:36:46]OFDProtocolAddRootSTLVToBuf [13:36:46]FM_MakeSignedData [13:36:46]FM_MakeSignedData [13:36:46]SAM_PROTO_SignData [13:36:46]wFMCommunicate request_size=4 [13:36:46]MH_SAM_APDU [13:36:46]CAPDU: 80 0D 01 02 [13:36:46]Write to MH i2c: E2 08 00 6D 04 80 0D 01 02 00 00 00 00 EA [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:46]Read from MH i2c: E2 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [13:36:46]RAPDU: 90 00 [13:36:46]wFMCommunicate OK [13:36:46]wFMCommunicate request_size=255 [13:36:46]MH_SAM_APDU [13:36:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6D F0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 62 02 00 35 04 06 00 F7 [13:36:46]Write to MH i2c: E2 02 01 6E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6D F0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 62 02 00 35 04 06 00 F7 00 00 F9 [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]wFMCommunicate request_size=10 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 0D 02 02 05 2B 6C DA DD 31 [13:36:47]Write to MH i2c: E2 0D 00 6F 04 80 0D 02 02 05 00 2B 6C DA DD 31 00 00 76 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]wFMCommunicate request_size=4 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 0D 03 02 [13:36:47]Write to MH i2c: E2 08 00 70 04 80 0D 03 02 00 00 00 00 EF [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 0B 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 0B 00 70 04 00 E9 91 3E 7C ED EC 3C A5 90 00 DE [13:36:47]RAPDU: E9 91 3E 7C ED EC 3C A5 90 00 [13:36:47]wFMCommunicate OK [13:36:47]SAM_PROTO_SignData done [13:36:47]FM_MakeSignedData done [13:36:47]CreateOFDProtocolMessage [13:36:47]wFMCommunicate request_size=4 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 11 00 00 [13:36:47]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 17 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 17 00 71 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [13:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:36:47]wFMCommunicate OK [13:36:47]CreateOFDProtocolMessage done [13:36:47]OFDSenderStorePacket 156296 [13:36:47]StoreOFDPacket docnum=156296 [13:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 60 07 01 6E 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6D F0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 62 02 00 35 04 06 00 F7 2B 6C DA DD 31 E9 91 3E 7C ED EC 3C A5 [13:36:47]CheckFolder [13:36:47]dirname=/storage/ofd_packets [13:36:47]CheckFolder done [13:36:47]ProducePacketName [13:36:47]name=ofd_packets/00156296 [13:36:47]NVStorageSaveData ofd_packets/00156296 [13:36:47]File name is /storage/ofd_packets/00156296 [13:36:47]Write 301 bytes [13:36:47]NVStorageSaveData done [13:36:47]OFDSenderStorePacket done [13:36:47]KKMCreateOFDPacket done [13:36:47]NVStorageSaveData kkm_last_timestamp [13:36:47]File name is /storage/kkm_last_timestamp [13:36:47]Write 4 bytes [13:36:47]NVStorageSaveData done [13:36:47]ExternCall_PrintAddStr [13:36:47]wPrintStart [13:36:47]Write to MH i2c: 01 00 00 72 04 76 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 07 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 FF 0F 8B [13:36:47]RasterBufferAndPrint [13:36:47]line Счет N : (1)99111 [13:36:47]line ИНН: 02508201610067 [13:36:47]line Контрольно-Кассовый Чек [13:36:47]line ПРОДАЖА [13:36:47]line ТРК (МРК, ГНК) : 21 [13:36:47]line Товар: 2710124130 [13:36:47]line Аи-92-К-5 [13:36:47]line 3.740 * 66.90 [13:36:47]line = 250.21 [13:36:47]line НДС 12% НСП 1% [13:36:47]line > о реализуемом товаре [13:36:47]line ОКРУГЛЕНИЕ: -0.21 [13:36:47]line ИТОГО: 250.00 [13:36:47]line Внесено: 250.00 [13:36:47]line СДАЧА: 0.00 [13:36:47]line НСП 1% : 2.21 [13:36:47]line НДС 12% : 26.57 [13:36:47]line Наличными: 250.00 [13:36:47]line Безнал.: 0.00 [13:36:47]line Место: АЗС № 143 "Партнер Нефть" [13:36:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:36:47]line СНО: Общий режим [13:36:47]line Чек 197 26.10.2024 13:36 [13:36:47]line Смена: 536 ФФД: 1.0 [13:36:47]line ЗНМ: 0300000096 [13:36:47]line РНМ: 0000000000091693 [13:36:47]line Версия ККМ: 001 [13:36:47]line ФМ: 0000000000871792 [13:36:47]line ФД: 156296 [13:36:47]line ФПД: 271765881937201 [13:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133645&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156296&fm=271765881937201&tin=02508201610067®Number=0000000000091693&sum=25000 [13:36:47]OFD Sender: Processing packet 156296 [packets to send 31, broken 30] [13:36:47]ProducePacketName [13:36:47]name=ofd_packets/00156296 [13:36:47]OFD Sender: To server: pG, [13:36:47]CommunicateWithHost lk.salyk.kg:30040 [13:36:47]ConnectInit lk.salyk.kg [13:36:47]written 0, free lines is 4095 [13:36:47]Connected sock=10 [13:36:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 60 07 01 6E 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6D F0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 62 02 00 35 04 06 00 F7 2B 6C DA DD 31 E9 91 3E 7C ED EC 3C A5 [13:36:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 53 1F 47 00 AD 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 62 02 00 F4 03 04 00 E0 95 1C 67 B6 04 01 00 00 E7 5F C7 4F 4F 14 90 84 [13:36:47]CommunicateWithHost err = 0 [13:36:47]CheckOFDResponse [13:36:47]1017 (14) - 77093643461234 [13:36:47]1041 (16) - 0000000000871792 [13:36:47]1040 (4) - 156296 [13:36:47]1012 (4) - 26.10.2024 07:10 [13:36:47]1206 (1) - 0 [13:36:47]OFD Sender: Remove packet 156296 [13:36:47]ProducePacketName [13:36:47]name=ofd_packets/00156296 [13:36:47]NVStorageDeleteData [13:36:47]Write to MH i2c: 01 00 00 9D 04 A1 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 07 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 F2 0C A6 [13:36:47]RasterBufferAndPrint [13:36:47]line [13:36:47]line [13:36:47]line [13:36:47]line [13:36:47]line [13:36:47]written 0, free lines is 3320 [13:36:48]process_action close_receipt done [13:36:48]requested_data is exist [13:36:48]produce_requested_data [13:36:48]requested_item fm.sn is exist - process it [13:36:48]wFMCommunicate request_size=4 [13:36:48]MH_SAM_APDU [13:36:48]CAPDU: 80 11 00 00 [13:36:48]Write to MH i2c: E2 08 00 A4 04 80 11 00 00 00 00 00 00 22 [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:48]Read from MH i2c: E2 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: E2 17 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: E2 17 00 A4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 77 [13:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:36:48]wFMCommunicate OK [13:36:48]requested_item fd.num is exist - process it [13:36:48]SAM_PROTO_GetFieldsCounters [13:36:48]wFMCommunicate request_size=4 [13:36:48]MH_SAM_APDU [13:36:48]CAPDU: 80 13 00 00 [13:36:48]Write to MH i2c: E2 08 00 A5 04 80 13 00 00 00 00 00 00 25 [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:48]Read from MH i2c: E2 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: E2 62 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: E2 62 00 A5 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 88 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [13:36: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 88 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:48]wFMCommunicate OK [13:36:48]SAM_PROTO_GetFieldsCounters done [13:36:48]requested_item shift.num is exist - process it [13:36:48]requested_item shift.opened is exist - process it [13:36:48]req_shift_opened [13:36:48]FM_GetShiftState [13:36:48]SAM_PROTO_GetShiftState [13:36:48]wFMCommunicate request_size=4 [13:36:48]MH_SAM_APDU [13:36:48]CAPDU: 80 13 01 00 [13:36:48]Write to MH i2c: E2 08 00 A6 04 80 13 01 00 00 00 00 00 27 [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:48]Read from MH i2c: E2 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: E2 0E 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: E2 0E 00 A6 04 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5C [13:36:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:36:48]wFMCommunicate OK [13:36:48]SAM_PROTO_GetShiftState done [13:36:48]FM_GetShiftState done [13:36:48]req_shift_opened done [13:36:48]requested_item shift.open_date is exist - process it [13:36:48]req_shift_open_date [13:36:48]req_shift_open_date done [13:36:48]produce_requested_data done [13:36:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156296,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:36:48]process_action_free close_receipt [13:36:48]json_value_free [13:36:48]json_value_free done [13:36:48]process_json_proto returns [13:36:48]Send response to host [13:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156296,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:36:48]free response buf [13:36:48]execute_script done [13:36:48]execute_script returns [13:36:48]free content buf [13:36:48]Sock 8.Close socket [13:36:48]Sock 8.Thread stoped [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:57]accept exits with 9 [13:38:57]New connection [13:38:57]New thread 3066977636 created [13:38:57]Thread 3066834276 joined [13:38:57]Waiting for new connection... [13:38:57] Sock 9.Parse request [13:38:57]Sock 9.Check first char [13:38:57]Sock 9.First char is OK [13:38:57]request: POST /json_proto HTTP/1.0 [13:38:57]Method: POST [13:38:57]URL: /json_proto [13:38:57]Method is POST - this is cgi request [13:38:57]url: /json_proto [13:38:57]query_string will be loaded in cgi processing [13:38:57]execute_cgi json_proto POST (null) [13:38:57]execute_cgi path=json_proto method=POST [13:38:57]POST find Content-Length [13:38:57]Host: 172.17.63.3:8080 [13:38:57]Content-Length: 676 [13:38:57]Content-Type: application/json [13:38:57] [13:38:57]POST finish read [13:38:57]Found Content-Length = 676 [13:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:57]execute_script... [13:38:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:57]POST & json_proto [13:38:57]process_json_proto [13:38:57]json parsed OK: [13:38:57]protocol is kg_v1.0 [13:38:57]action value=close_receipt [13:38:57]process_action close_receipt [13:38:57]cmd_close_receipt [13:38:57]MH_GetDate [13:38:57]Write to MH i2c: F0 00 00 A7 04 9A [13:38:57]Write i2c OK [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: F0 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: F0 09 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: F0 09 00 A7 04 00 F2 F0 1C 67 50 D1 6C 64 F9 [13:38:57]GetLastDocTimeStamp 1729949805 [13:38:57]current date 1729949938 [13:38:57]FM_GetShiftState [13:38:57]SAM_PROTO_GetShiftState [13:38:57]wFMCommunicate request_size=4 [13:38:57]MH_SAM_APDU [13:38:57]CAPDU: 80 13 01 00 [13:38:57]Write to MH i2c: E2 08 00 A8 04 80 13 01 00 00 00 00 00 29 [13:38:57]Write i2c OK [13:38:57]MH_I2C_Read... [13:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:57]Read from MH i2c: E2 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 0E 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 0E 00 A8 04 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5E [13:38:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:38:57]wFMCommunicate OK [13:38:57]SAM_PROTO_GetShiftState done [13:38:57]FM_GetShiftState done [13:38:57]opened in 1729902702 [13:38:57]opened+sec_in_day 1729989102 [13:38:57]quantity*price = 50041 [13:38:57]sum+1 = 50042 [13:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 198 26.10.2024 13:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156297 ФПД: 104418162609790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133858&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156297&fm=104418162609790&tin=02508201610067®Number=0000000000091693&sum=50000 [13:38:58]StoreToDocumentArchive [13:38:58]shift 536 fd 156297 [13:38:58]save to /storage/0536/doc_00156297 [13:38:58]save last doc name /storage/0536/doc_00156297 to /storage/kkm_last_doc_name [13:38:58]save OK [13:38:58]Clear old archive folders... [13:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:58]tlvbuf is 016E9FF0 [13:38:58]SAM_PROTO_ClearQueue [13:38:58]wFMCommunicate request_size=4 [13:38:58]MH_SAM_APDU [13:38:58]CAPDU: 80 09 00 00 [13:38:58]Write to MH i2c: E2 08 00 B5 04 80 09 00 00 00 00 00 00 2B [13:38:58]Write i2c OK [13:38:58]MH_I2C_Read... [13:38:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:59]Read from MH i2c: E2 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 03 00 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [13:38:59]RAPDU: 90 00 [13:38:59]wFMCommunicate OK [13:38:59]SAM_PROTO_ClearQueue done [13:38:59]KKMCreateOFDPacket [13:38:59]OFDProtocolAddRootSTLVToBuf [13:38:59]FM_MakeSignedData [13:38:59]FM_MakeSignedData [13:38:59]SAM_PROTO_SignData [13:38:59]wFMCommunicate request_size=4 [13:38:59]MH_SAM_APDU [13:38:59]CAPDU: 80 0D 01 02 [13:38:59]Write to MH i2c: E2 08 00 B6 04 80 0D 01 02 00 00 00 00 33 [13:38:59]Write i2c OK [13:38:59]MH_I2C_Read... [13:38:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:59]Read from MH i2c: E2 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 03 00 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [13:38:59]RAPDU: 90 00 [13:38:59]wFMCommunicate OK [13:38:59]wFMCommunicate request_size=255 [13:38:59]MH_SAM_APDU [13:38:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F2 F0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 62 02 00 35 04 06 00 5E [13:38:59]Write to MH i2c: E2 02 01 B7 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F2 F0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 62 02 00 35 04 06 00 5E 00 00 57 [13:38:59]Write i2c OK [13:38:59]MH_I2C_Read... [13:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:59]Read from MH i2c: E2 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 03 00 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [13:38:59]RAPDU: 90 00 [13:38:59]wFMCommunicate OK [13:38:59]wFMCommunicate request_size=10 [13:38:59]MH_SAM_APDU [13:38:59]CAPDU: 80 0D 02 02 05 F7 BF 7D 8E 7E [13:38:59]Write to MH i2c: E2 0D 00 B8 04 80 0D 02 02 05 00 F7 BF 7D 8E 7E 00 00 7F [13:38:59]Write i2c OK [13:38:59]MH_I2C_Read... [13:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:59]Read from MH i2c: E2 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 03 00 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [13:38:59]RAPDU: 90 00 [13:38:59]wFMCommunicate OK [13:38:59]wFMCommunicate request_size=4 [13:38:59]MH_SAM_APDU [13:38:59]CAPDU: 80 0D 03 02 [13:38:59]Write to MH i2c: E2 08 00 B9 04 80 0D 03 02 00 00 00 00 38 [13:38:59]Write i2c OK [13:38:59]MH_I2C_Read... [13:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:59]Read from MH i2c: E2 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 0B 00 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 0B 00 B9 04 00 AB EC 84 42 85 AA 85 88 90 00 D2 [13:38:59]RAPDU: AB EC 84 42 85 AA 85 88 90 00 [13:38:59]wFMCommunicate OK [13:38:59]SAM_PROTO_SignData done [13:38:59]FM_MakeSignedData done [13:38:59]CreateOFDProtocolMessage [13:38:59]wFMCommunicate request_size=4 [13:38:59]MH_SAM_APDU [13:38:59]CAPDU: 80 11 00 00 [13:38:59]Write to MH i2c: E2 08 00 BA 04 80 11 00 00 00 00 00 00 38 [13:38:59]Write i2c OK [13:38:59]MH_I2C_Read... [13:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:59]Read from MH i2c: E2 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 17 00 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: E2 17 00 BA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [13:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:38:59]wFMCommunicate OK [13:38:59]CreateOFDProtocolMessage done [13:38:59]OFDSenderStorePacket 156297 [13:38:59]StoreOFDPacket docnum=156297 [13:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A3 C4 07 01 45 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F2 F0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 62 02 00 35 04 06 00 5E F7 BF 7D 8E 7E AB EC 84 42 85 AA 85 88 [13:38:59]CheckFolder [13:38:59]dirname=/storage/ofd_packets [13:38:59]CheckFolder done [13:38:59]ProducePacketName [13:38:59]name=ofd_packets/00156297 [13:38:59]NVStorageSaveData ofd_packets/00156297 [13:38:59]File name is /storage/ofd_packets/00156297 [13:38:59]Write 301 bytes [13:38:59]NVStorageSaveData done [13:38:59]OFDSenderStorePacket done [13:38:59]KKMCreateOFDPacket done [13:38:59]NVStorageSaveData kkm_last_timestamp [13:38:59]File name is /storage/kkm_last_timestamp [13:38:59]Write 4 bytes [13:38:59]NVStorageSaveData done [13:38:59]ExternCall_PrintAddStr [13:38:59]wPrintStart [13:38:59]Write to MH i2c: 01 00 00 BB 04 BF [13:38:59]Write i2c OK [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: 01 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: 01 07 00 [13:38:59]MH_I2C_Read... [13:38:59]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [13:38:59]RasterBufferAndPrint [13:38:59]line Счет N : (1)99112 [13:38:59]line ИНН: 02508201610067 [13:38:59]line Контрольно-Кассовый Чек [13:38:59]line ПРОДАЖА [13:38:59]line ТРК (МРК, ГНК) : 11 [13:38:59]line Товар: 2710124130 [13:38:59]line Аи-92-К-5 [13:38:59]line 7.480 * 66.90 [13:38:59]line = 500.41 [13:38:59]line НДС 12% НСП 1% [13:38:59]line > о реализуемом товаре [13:38:59]line ОКРУГЛЕНИЕ: -0.41 [13:38:59]line ИТОГО: 500.00 [13:38:59]line Внесено: 500.00 [13:38:59]line СДАЧА: 0.00 [13:38:59]line НСП 1% : 4.43 [13:38:59]line НДС 12% : 53.14 [13:38:59]line Наличными: 500.00 [13:38:59]line Безнал.: 0.00 [13:38:59]line Место: АЗС № 143 "Партнер Нефть" [13:38:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:38:59]line СНО: Общий режим [13:38:59]line Чек 198 26.10.2024 13:38 [13:38:59]line Смена: 536 ФФД: 1.0 [13:38:59]line ЗНМ: 0300000096 [13:38:59]line РНМ: 0000000000091693 [13:38:59]line Версия ККМ: 001 [13:38:59]line ФМ: 0000000000871792 [13:38:59]line ФД: 156297 [13:38:59]line ФПД: 104418162609790 [13:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133858&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156297&fm=104418162609790&tin=02508201610067®Number=0000000000091693&sum=50000 [13:38:59]OFD Sender: Processing packet 156297 [packets to send 31, broken 30] [13:38:59]ProducePacketName [13:38:59]name=ofd_packets/00156297 [13:38:59]OFD Sender: To server: pG, [13:38:59]CommunicateWithHost lk.salyk.kg:30040 [13:38:59]ConnectInit lk.salyk.kg [13:38:59]written 0, free lines is 4095 [13:38:59]Connected sock=10 [13:38:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A3 C4 07 01 45 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F2 F0 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 62 02 00 35 04 06 00 5E F7 BF 7D 8E 7E AB EC 84 42 85 AA 85 88 [13:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 46 03 47 00 EC D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 62 02 00 F4 03 04 00 64 96 1C 67 B6 04 01 00 00 5A 77 6A 11 E4 36 33 EB [13:39:00]CommunicateWithHost err = 0 [13:39:00]CheckOFDResponse [13:39:00]1017 (14) - 77093643461234 [13:39:00]1041 (16) - 0000000000871792 [13:39:00]1040 (4) - 156297 [13:39:00]1012 (4) - 26.10.2024 07:12 [13:39:00]1206 (1) - 0 [13:39:00]OFD Sender: Remove packet 156297 [13:39:00]ProducePacketName [13:39:00]name=ofd_packets/00156297 [13:39:00]NVStorageDeleteData [13:39:00]Write to MH i2c: 01 00 00 E6 04 EA [13:39:00]Write i2c OK [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: 01 [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: 01 07 00 [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: 01 07 00 E6 04 00 00 00 00 00 F0 0C ED [13:39:00]RasterBufferAndPrint [13:39:00]line [13:39:00]line [13:39:00]line [13:39:00]line [13:39:00]line [13:39:00]written 0, free lines is 3318 [13:39:00]process_action close_receipt done [13:39:00]requested_data is exist [13:39:00]produce_requested_data [13:39:00]requested_item fm.sn is exist - process it [13:39:00]wFMCommunicate request_size=4 [13:39:00]MH_SAM_APDU [13:39:00]CAPDU: 80 11 00 00 [13:39:00]Write to MH i2c: E2 08 00 ED 04 80 11 00 00 00 00 00 00 6B [13:39:00]Write i2c OK [13:39:00]MH_I2C_Read... [13:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:00]Read from MH i2c: E2 [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: E2 17 00 [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: E2 17 00 ED 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C0 [13:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:39:00]wFMCommunicate OK [13:39:00]requested_item fd.num is exist - process it [13:39:00]SAM_PROTO_GetFieldsCounters [13:39:00]wFMCommunicate request_size=4 [13:39:00]MH_SAM_APDU [13:39:00]CAPDU: 80 13 00 00 [13:39:00]Write to MH i2c: E2 08 00 EE 04 80 13 00 00 00 00 00 00 6E [13:39:00]Write i2c OK [13:39:00]MH_I2C_Read... [13:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:00]Read from MH i2c: E2 [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: E2 62 00 [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: E2 62 00 EE 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 89 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [13:39: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 89 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:00]wFMCommunicate OK [13:39:00]SAM_PROTO_GetFieldsCounters done [13:39:00]requested_item shift.num is exist - process it [13:39:00]requested_item shift.opened is exist - process it [13:39:00]req_shift_opened [13:39:00]FM_GetShiftState [13:39:00]SAM_PROTO_GetShiftState [13:39:00]wFMCommunicate request_size=4 [13:39:00]MH_SAM_APDU [13:39:00]CAPDU: 80 13 01 00 [13:39:00]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [13:39:00]Write i2c OK [13:39:00]MH_I2C_Read... [13:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:00]Read from MH i2c: E2 [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: E2 0E 00 [13:39:00]MH_I2C_Read... [13:39:00]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A5 [13:39:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:39:00]wFMCommunicate OK [13:39:00]SAM_PROTO_GetShiftState done [13:39:00]FM_GetShiftState done [13:39:00]req_shift_opened done [13:39:00]requested_item shift.open_date is exist - process it [13:39:00]req_shift_open_date [13:39:00]req_shift_open_date done [13:39:00]produce_requested_data done [13:39:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156297,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:39:00]process_action_free close_receipt [13:39:00]json_value_free [13:39:00]json_value_free done [13:39:00]process_json_proto returns [13:39:00]Send response to host [13:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156297,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:39:00]free response buf [13:39:00]execute_script done [13:39:00]execute_script returns [13:39:00]free content buf [13:39:00]Sock 9.Close socket [13:39:00]Sock 9.Thread stoped [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]accept exits with 8 [13:43:50]New connection [13:43:50]New thread 3066834276 created [13:43:50]Thread 3066977636 joined [13:43:50]Waiting for new connection... [13:43:50] Sock 8.Parse request [13:43:50]Sock 8.Check first char [13:43:50]Sock 8.First char is OK [13:43:50]request: POST /json_proto HTTP/1.0 [13:43:50]Method: POST [13:43:50]URL: /json_proto [13:43:50]Method is POST - this is cgi request [13:43:50]url: /json_proto [13:43:50]query_string will be loaded in cgi processing [13:43:50]execute_cgi json_proto POST (null) [13:43:50]execute_cgi path=json_proto method=POST [13:43:50]POST find Content-Length [13:43:50]Host: 172.17.63.3:8080 [13:43:50]Content-Length: 676 [13:43:50]Content-Type: application/json [13:43:50] [13:43:50]POST finish read [13:43:50]Found Content-Length = 676 [13:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:50]execute_script... [13:43:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:50]POST & json_proto [13:43:50]process_json_proto [13:43:50]json parsed OK: [13:43:50]protocol is kg_v1.0 [13:43:50]action value=close_receipt [13:43:50]process_action close_receipt [13:43:50]cmd_close_receipt [13:43:50]MH_GetDate [13:43:50]Write to MH i2c: F0 00 00 F0 04 E3 [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: F0 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: F0 09 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: F0 09 00 F0 04 00 16 F2 1C 67 50 D1 6C 64 68 [13:43:50]GetLastDocTimeStamp 1729949938 [13:43:50]current date 1729950230 [13:43:50]FM_GetShiftState [13:43:50]SAM_PROTO_GetShiftState [13:43:50]wFMCommunicate request_size=4 [13:43:50]MH_SAM_APDU [13:43:50]CAPDU: 80 13 01 00 [13:43:50]Write to MH i2c: E2 08 00 F1 04 80 13 01 00 00 00 00 00 72 [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:50]Read from MH i2c: E2 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: E2 0E 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: E2 0E 00 F1 04 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A7 [13:43:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:43:50]wFMCommunicate OK [13:43:50]SAM_PROTO_GetShiftState done [13:43:50]FM_GetShiftState done [13:43:50]opened in 1729902702 [13:43:50]opened+sec_in_day 1729989102 [13:43:50]quantity*price = 10035 [13:43:50]sum+1 = 10036 [13:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 199 26.10.2024 13:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156298 ФПД: 64192390698444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134350&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156298&fm=64192390698444&tin=02508201610067®Number=0000000000091693&sum=10000 [13:43:51]StoreToDocumentArchive [13:43:51]shift 536 fd 156298 [13:43:51]save to /storage/0536/doc_00156298 [13:43:51]save last doc name /storage/0536/doc_00156298 to /storage/kkm_last_doc_name [13:43:51]save OK [13:43:51]Clear old archive folders... [13:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:51]tlvbuf is 0167D420 [13:43:51]SAM_PROTO_ClearQueue [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 09 00 00 [13:43:51]Write to MH i2c: E2 08 00 FE 04 80 09 00 00 00 00 00 00 74 [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [13:43:51]RAPDU: 90 00 [13:43:51]wFMCommunicate OK [13:43:51]SAM_PROTO_ClearQueue done [13:43:51]KKMCreateOFDPacket [13:43:51]OFDProtocolAddRootSTLVToBuf [13:43:51]FM_MakeSignedData [13:43:51]FM_MakeSignedData [13:43:51]SAM_PROTO_SignData [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 0D 01 02 [13:43:51]Write to MH i2c: E2 08 00 FF 04 80 0D 01 02 00 00 00 00 7C [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [13:43:51]RAPDU: 90 00 [13:43:51]wFMCommunicate OK [13:43:51]wFMCommunicate request_size=255 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 16 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 62 02 00 35 04 06 00 3A [13:43:51]Write to MH i2c: E2 02 01 00 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 16 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 62 02 00 35 04 06 00 3A 00 00 8C [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [13:43:51]RAPDU: 90 00 [13:43:51]wFMCommunicate OK [13:43:51]wFMCommunicate request_size=10 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 0D 02 02 05 61 F4 A5 15 CC [13:43:51]Write to MH i2c: E2 0D 00 01 05 80 0D 02 02 05 00 61 F4 A5 15 CC 00 00 65 [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [13:43:51]RAPDU: 90 00 [13:43:51]wFMCommunicate OK [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 0D 03 02 [13:43:51]Write to MH i2c: E2 08 00 02 05 80 0D 03 02 00 00 00 00 82 [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 0B 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 0B 00 02 05 00 93 8B F5 E9 96 09 94 CC 90 00 7E [13:43:51]RAPDU: 93 8B F5 E9 96 09 94 CC 90 00 [13:43:51]wFMCommunicate OK [13:43:51]SAM_PROTO_SignData done [13:43:51]FM_MakeSignedData done [13:43:51]CreateOFDProtocolMessage [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 11 00 00 [13:43:51]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 17 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [13:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:43:52]wFMCommunicate OK [13:43:52]CreateOFDProtocolMessage done [13:43:52]OFDSenderStorePacket 156298 [13:43:52]StoreOFDPacket docnum=156298 [13:43:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B 22 07 01 F2 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 16 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 62 02 00 35 04 06 00 3A 61 F4 A5 15 CC 93 8B F5 E9 96 09 94 CC [13:43:52]CheckFolder [13:43:52]dirname=/storage/ofd_packets [13:43:52]CheckFolder done [13:43:52]ProducePacketName [13:43:52]name=ofd_packets/00156298 [13:43:52]NVStorageSaveData ofd_packets/00156298 [13:43:52]File name is /storage/ofd_packets/00156298 [13:43:52]Write 301 bytes [13:43:52]NVStorageSaveData done [13:43:52]OFDSenderStorePacket done [13:43:52]KKMCreateOFDPacket done [13:43:52]NVStorageSaveData kkm_last_timestamp [13:43:52]File name is /storage/kkm_last_timestamp [13:43:52]Write 4 bytes [13:43:52]NVStorageSaveData done [13:43:52]ExternCall_PrintAddStr [13:43:52]wPrintStart [13:43:52]Write to MH i2c: 01 00 00 04 05 09 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 07 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 07 00 04 05 00 00 00 00 00 FF 0F 1E [13:43:52]RasterBufferAndPrint [13:43:52]line Счет N : (1)99113 [13:43:52]line ИНН: 02508201610067 [13:43:52]line Контрольно-Кассовый Чек [13:43:52]line ПРОДАЖА [13:43:52]line ТРК (МРК, ГНК) : 21 [13:43:52]line Товар: 2710124130 [13:43:52]line Аи-92-К-5 [13:43:52]line 1.500 * 66.90 [13:43:52]line = 100.35 [13:43:52]line НДС 12% НСП 1% [13:43:52]line > о реализуемом товаре [13:43:52]line ОКРУГЛЕНИЕ: -0.35 [13:43:52]line ИТОГО: 100.00 [13:43:52]line Внесено: 100.00 [13:43:52]line СДАЧА: 0.00 [13:43:52]line НСП 1% : 0.89 [13:43:52]line НДС 12% : 10.66 [13:43:52]line Наличными: 100.00 [13:43:52]line Безнал.: 0.00 [13:43:52]line Место: АЗС № 143 "Партнер Нефть" [13:43:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:43:52]line СНО: Общий режим [13:43:52]line Чек 199 26.10.2024 13:43 [13:43:52]line Смена: 536 ФФД: 1.0 [13:43:52]line ЗНМ: 0300000096 [13:43:52]line РНМ: 0000000000091693 [13:43:52]line Версия ККМ: 001 [13:43:52]line ФМ: 0000000000871792 [13:43:52]line ФД: 156298 [13:43:52]line ФПД: 64192390698444 [13:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134350&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156298&fm=64192390698444&tin=02508201610067®Number=0000000000091693&sum=10000 [13:43:52]OFD Sender: Processing packet 156298 [packets to send 31, broken 30] [13:43:52]ProducePacketName [13:43:52]name=ofd_packets/00156298 [13:43:52]OFD Sender: To server: pG, [13:43:52]CommunicateWithHost lk.salyk.kg:30040 [13:43:52]ConnectInit lk.salyk.kg [13:43:52]written 0, free lines is 4095 [13:43:52]Connected sock=10 [13:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B 22 07 01 F2 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 16 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 62 02 00 35 04 06 00 3A 61 F4 A5 15 CC 93 8B F5 E9 96 09 94 CC [13:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1E D3 47 00 C3 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 31 37 39 32 10 04 04 00 8A 62 02 00 F4 03 04 00 89 97 1C 67 B6 04 01 00 00 14 07 1F E4 B3 DA 20 3F [13:43:52]CommunicateWithHost err = 0 [13:43:52]CheckOFDResponse [13:43:52]1017 (14) - 77093643461234 [13:43:52]1041 (16) - 0000000000871792 [13:43:52]1040 (4) - 156298 [13:43:52]1012 (4) - 26.10.2024 07:17 [13:43:52]1206 (1) - 0 [13:43:52]OFD Sender: Remove packet 156298 [13:43:52]ProducePacketName [13:43:52]name=ofd_packets/00156298 [13:43:52]NVStorageDeleteData [13:43:52]Write to MH i2c: 01 00 00 2F 05 34 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 07 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 07 00 2F 05 00 00 00 00 00 F2 0C 39 [13:43:52]RasterBufferAndPrint [13:43:52]line [13:43:52]line [13:43:52]line [13:43:52]line [13:43:52]line [13:43:52]written 0, free lines is 3320 [13:43:52]process_action close_receipt done [13:43:52]requested_data is exist [13:43:52]produce_requested_data [13:43:52]requested_item fm.sn is exist - process it [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 11 00 00 [13:43:52]Write to MH i2c: E2 08 00 36 05 80 11 00 00 00 00 00 00 B5 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 17 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 17 00 36 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0A [13:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:43:52]wFMCommunicate OK [13:43:52]requested_item fd.num is exist - process it [13:43:52]SAM_PROTO_GetFieldsCounters [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 13 00 00 [13:43:52]Write to MH i2c: E2 08 00 37 05 80 13 00 00 00 00 00 00 B8 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:53]Read from MH i2c: E2 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 62 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 62 00 37 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [13:43: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:53]wFMCommunicate OK [13:43:53]SAM_PROTO_GetFieldsCounters done [13:43:53]requested_item shift.num is exist - process it [13:43:53]requested_item shift.opened is exist - process it [13:43:53]req_shift_opened [13:43:53]FM_GetShiftState [13:43:53]SAM_PROTO_GetShiftState [13:43:53]wFMCommunicate request_size=4 [13:43:53]MH_SAM_APDU [13:43:53]CAPDU: 80 13 01 00 [13:43:53]Write to MH i2c: E2 08 00 38 05 80 13 01 00 00 00 00 00 BA [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:53]Read from MH i2c: E2 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 0E 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 0E 00 38 05 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 EF [13:43:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:43:53]wFMCommunicate OK [13:43:53]SAM_PROTO_GetShiftState done [13:43:53]FM_GetShiftState done [13:43:53]req_shift_opened done [13:43:53]requested_item shift.open_date is exist - process it [13:43:53]req_shift_open_date [13:43:53]req_shift_open_date done [13:43:53]produce_requested_data done [13:43:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156298,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:43:53]process_action_free close_receipt [13:43:53]json_value_free [13:43:53]json_value_free done [13:43:53]process_json_proto returns [13:43:53]Send response to host [13:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156298,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:43:53]free response buf [13:43:53]execute_script done [13:43:53]execute_script returns [13:43:53]free content buf [13:43:53]Sock 8.Close socket [13:43:53]Sock 8.Thread stoped [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:36]accept exits with 9 [13:44:36]New connection [13:44:36]New thread 3066977636 created [13:44:36]Thread 3066834276 joined [13:44:36]Waiting for new connection... [13:44:36] Sock 9.Parse request [13:44:36]Sock 9.Check first char [13:44:36]Sock 9.First char is OK [13:44:36]request: POST /json_proto HTTP/1.0 [13:44:36]Method: POST [13:44:36]URL: /json_proto [13:44:36]Method is POST - this is cgi request [13:44:36]url: /json_proto [13:44:36]query_string will be loaded in cgi processing [13:44:36]execute_cgi json_proto POST (null) [13:44:36]execute_cgi path=json_proto method=POST [13:44:36]POST find Content-Length [13:44:36]Host: 172.17.63.3:8080 [13:44:36]Content-Length: 676 [13:44:36]Content-Type: application/json [13:44:36] [13:44:36]POST finish read [13:44:36]Found Content-Length = 676 [13:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:36]execute_script... [13:44:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:36]POST & json_proto [13:44:36]process_json_proto [13:44:36]json parsed OK: [13:44:36]protocol is kg_v1.0 [13:44:36]action value=close_receipt [13:44:36]process_action close_receipt [13:44:36]cmd_close_receipt [13:44:36]MH_GetDate [13:44:36]Write to MH i2c: F0 00 00 39 05 2D [13:44:36]Write i2c OK [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: F0 [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: F0 09 00 [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: F0 09 00 39 05 00 44 F2 1C 67 50 D1 6C 64 E0 [13:44:36]GetLastDocTimeStamp 1729950230 [13:44:36]current date 1729950276 [13:44:36]FM_GetShiftState [13:44:36]SAM_PROTO_GetShiftState [13:44:36]wFMCommunicate request_size=4 [13:44:36]MH_SAM_APDU [13:44:36]CAPDU: 80 13 01 00 [13:44:36]Write to MH i2c: E2 08 00 3A 05 80 13 01 00 00 00 00 00 BC [13:44:36]Write i2c OK [13:44:36]MH_I2C_Read... [13:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:36]Read from MH i2c: E2 [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: E2 0E 00 [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: E2 0E 00 3A 05 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F1 [13:44:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:44:36]wFMCommunicate OK [13:44:36]SAM_PROTO_GetShiftState done [13:44:36]FM_GetShiftState done [13:44:36]opened in 1729902702 [13:44:36]opened+sec_in_day 1729989102 [13:44:36]quantity*price = 22010 [13:44:36]sum+1 = 22011 [13:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 200 26.10.2024 13:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156299 ФПД: 269673763391851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134436&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156299&fm=269673763391851&tin=02508201610067®Number=0000000000091693&sum=22000 [13:44:37]StoreToDocumentArchive [13:44:37]shift 536 fd 156299 [13:44:37]save to /storage/0536/doc_00156299 [13:44:37]save last doc name /storage/0536/doc_00156299 to /storage/kkm_last_doc_name [13:44:37]save OK [13:44:37]Clear old archive folders... [13:44:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:37]tlvbuf is 0167E620 [13:44:37]SAM_PROTO_ClearQueue [13:44:37]wFMCommunicate request_size=4 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 09 00 00 [13:44:37]Write to MH i2c: E2 08 00 47 05 80 09 00 00 00 00 00 00 BE [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [13:44:37]RAPDU: 90 00 [13:44:37]wFMCommunicate OK [13:44:37]SAM_PROTO_ClearQueue done [13:44:37]KKMCreateOFDPacket [13:44:37]OFDProtocolAddRootSTLVToBuf [13:44:37]FM_MakeSignedData [13:44:37]FM_MakeSignedData [13:44:37]SAM_PROTO_SignData [13:44:37]wFMCommunicate request_size=4 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 0D 01 02 [13:44:37]Write to MH i2c: E2 08 00 48 05 80 0D 01 02 00 00 00 00 C6 [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [13:44:37]RAPDU: 90 00 [13:44:37]wFMCommunicate OK [13:44:37]wFMCommunicate request_size=255 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 44 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 62 02 00 35 04 06 00 F5 [13:44:37]Write to MH i2c: E2 02 01 49 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 44 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 62 02 00 35 04 06 00 F5 00 00 3C [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [13:44:37]RAPDU: 90 00 [13:44:37]wFMCommunicate OK [13:44:37]wFMCommunicate request_size=10 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 0D 02 02 05 44 50 DF 49 6B [13:44:37]Write to MH i2c: E2 0D 00 4A 05 80 0D 02 02 05 00 44 50 DF 49 6B 00 00 FA [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [13:44:37]RAPDU: 90 00 [13:44:37]wFMCommunicate OK [13:44:37]wFMCommunicate request_size=4 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 0D 03 02 [13:44:37]Write to MH i2c: E2 08 00 4B 05 80 0D 03 02 00 00 00 00 CB [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 0B 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 0B 00 4B 05 00 4B 21 D1 82 7C 18 A3 5E 90 00 20 [13:44:37]RAPDU: 4B 21 D1 82 7C 18 A3 5E 90 00 [13:44:37]wFMCommunicate OK [13:44:37]SAM_PROTO_SignData done [13:44:37]FM_MakeSignedData done [13:44:37]CreateOFDProtocolMessage [13:44:37]wFMCommunicate request_size=4 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 11 00 00 [13:44:37]Write to MH i2c: E2 08 00 4C 05 80 11 00 00 00 00 00 00 CB [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 17 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 17 00 4C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [13:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:44:37]wFMCommunicate OK [13:44:37]CreateOFDProtocolMessage done [13:44:37]OFDSenderStorePacket 156299 [13:44:37]StoreOFDPacket docnum=156299 [13:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE 89 07 01 AD 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 44 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 62 02 00 35 04 06 00 F5 44 50 DF 49 6B 4B 21 D1 82 7C 18 A3 5E [13:44:37]CheckFolder [13:44:37]dirname=/storage/ofd_packets [13:44:37]CheckFolder done [13:44:37]ProducePacketName [13:44:37]name=ofd_packets/00156299 [13:44:37]NVStorageSaveData ofd_packets/00156299 [13:44:37]File name is /storage/ofd_packets/00156299 [13:44:37]Write 301 bytes [13:44:37]NVStorageSaveData done [13:44:37]OFDSenderStorePacket done [13:44:37]KKMCreateOFDPacket done [13:44:37]NVStorageSaveData kkm_last_timestamp [13:44:37]File name is /storage/kkm_last_timestamp [13:44:37]Write 4 bytes [13:44:37]NVStorageSaveData done [13:44:37]OFD Sender: Processing packet 156299 [packets to send 31, broken 30] [13:44:37]ProducePacketName [13:44:37]name=ofd_packets/00156299 [13:44:37]OFD Sender: To server: pG, [13:44:37]CommunicateWithHost lk.salyk.kg:30040 [13:44:37]ConnectInit lk.salyk.kg [13:44:37]ExternCall_PrintAddStr [13:44:37]wPrintStart [13:44:37]Write to MH i2c: 01 00 00 4D 05 52 [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: 01 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: 01 07 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [13:44:37]RasterBufferAndPrint [13:44:37]line Счет N : (1)99114 [13:44:37]line ИНН: 02508201610067 [13:44:37]line Контрольно-Кассовый Чек [13:44:37]line ПРОДАЖА [13:44:37]line ТРК (МРК, ГНК) : 31 [13:44:37]line Товар: 2710124130 [13:44:37]line Аи-92-К-5 [13:44:37]line 3.290 * 66.90 [13:44:37]line = 220.10 [13:44:37]line НДС 12% НСП 1% [13:44:37]line > о реализуемом товаре [13:44:37]line ОКРУГЛЕНИЕ: -0.10 [13:44:37]line ИТОГО: 220.00 [13:44:37]line Внесено: 220.00 [13:44:37]line СДАЧА: 0.00 [13:44:37]line НСП 1% : 1.95 [13:44:37]line НДС 12% : 23.37 [13:44:37]line Наличными: 220.00 [13:44:37]line Безнал.: 0.00 [13:44:37]line Место: АЗС № 143 "Партнер Нефть" [13:44:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:44:37]line СНО: Общий режим [13:44:37]line Чек 200 26.10.2024 13:44 [13:44:37]line Смена: 536 ФФД: 1.0 [13:44:37]line ЗНМ: 0300000096 [13:44:37]line РНМ: 0000000000091693 [13:44:37]line Версия ККМ: 001 [13:44:37]line ФМ: 0000000000871792 [13:44:37]line ФД: 156299 [13:44:37]line ФПД: 269673763391851 [13:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134436&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156299&fm=269673763391851&tin=02508201610067®Number=0000000000091693&sum=22000 [13:44:38]Connected sock=11 [13:44:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE 89 07 01 AD 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 44 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 62 02 00 35 04 06 00 F5 44 50 DF 49 6B 4B 21 D1 82 7C 18 A3 5E [13:44:38]written 0, free lines is 4095 [13:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 49 E7 47 00 6E 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 62 02 00 F4 03 04 00 B7 97 1C 67 B6 04 01 00 00 F2 F3 7C 5E 81 2D 56 CE [13:44:38]CommunicateWithHost err = 0 [13:44:38]CheckOFDResponse [13:44:38]1017 (14) - 77093643461234 [13:44:38]1041 (16) - 0000000000871792 [13:44:38]1040 (4) - 156299 [13:44:38]1012 (4) - 26.10.2024 07:18 [13:44:38]1206 (1) - 0 [13:44:38]OFD Sender: Remove packet 156299 [13:44:38]ProducePacketName [13:44:38]name=ofd_packets/00156299 [13:44:38]NVStorageDeleteData [13:44:38]Write to MH i2c: 01 00 00 78 05 7D [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 07 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 07 00 78 05 00 00 00 00 00 F2 0C 82 [13:44:38]RasterBufferAndPrint [13:44:38]line [13:44:38]line [13:44:38]line [13:44:38]line [13:44:38]line [13:44:38]written 0, free lines is 3320 [13:44:38]process_action close_receipt done [13:44:38]requested_data is exist [13:44:38]produce_requested_data [13:44:38]requested_item fm.sn is exist - process it [13:44:38]wFMCommunicate request_size=4 [13:44:38]MH_SAM_APDU [13:44:38]CAPDU: 80 11 00 00 [13:44:38]Write to MH i2c: E2 08 00 7F 05 80 11 00 00 00 00 00 00 FE [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:38]Read from MH i2c: E2 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: E2 17 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: E2 17 00 7F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [13:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:44:38]wFMCommunicate OK [13:44:38]requested_item fd.num is exist - process it [13:44:38]SAM_PROTO_GetFieldsCounters [13:44:38]wFMCommunicate request_size=4 [13:44:38]MH_SAM_APDU [13:44:38]CAPDU: 80 13 00 00 [13:44:38]Write to MH i2c: E2 08 00 80 05 80 13 00 00 00 00 00 00 01 [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:38]Read from MH i2c: E2 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: E2 62 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: E2 62 00 80 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [13:44: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:39]wFMCommunicate OK [13:44:39]SAM_PROTO_GetFieldsCounters done [13:44:39]requested_item shift.num is exist - process it [13:44:39]requested_item shift.opened is exist - process it [13:44:39]req_shift_opened [13:44:39]FM_GetShiftState [13:44:39]SAM_PROTO_GetShiftState [13:44:39]wFMCommunicate request_size=4 [13:44:39]MH_SAM_APDU [13:44:39]CAPDU: 80 13 01 00 [13:44:39]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [13:44:39]OFD Sender: No OFD packet to send [13:44:39]Write i2c OK [13:44:39]MH_I2C_Read... [13:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:39]Read from MH i2c: E2 [13:44:39]MH_I2C_Read... [13:44:39]Read from MH i2c: E2 0E 00 [13:44:39]MH_I2C_Read... [13:44:39]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 38 [13:44:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:44:39]wFMCommunicate OK [13:44:39]SAM_PROTO_GetShiftState done [13:44:39]FM_GetShiftState done [13:44:39]req_shift_opened done [13:44:39]requested_item shift.open_date is exist - process it [13:44:39]req_shift_open_date [13:44:39]req_shift_open_date done [13:44:39]produce_requested_data done [13:44:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156299,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:44:39]process_action_free close_receipt [13:44:39]json_value_free [13:44:39]json_value_free done [13:44:39]process_json_proto returns [13:44:39]Send response to host [13:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156299,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:44:39]free response buf [13:44:39]execute_script done [13:44:39]execute_script returns [13:44:39]free content buf [13:44:39]Sock 9.Close socket [13:44:39]Sock 9.Thread stoped [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:24]accept exits with 8 [13:46:24]New connection [13:46:24]New thread 3066834276 created [13:46:24]Thread 3066977636 joined [13:46:24]Waiting for new connection... [13:46:24] Sock 8.Parse request [13:46:24]Sock 8.Check first char [13:46:24]Sock 8.First char is OK [13:46:24]request: POST /json_proto HTTP/1.0 [13:46:24]Method: POST [13:46:24]URL: /json_proto [13:46:24]Method is POST - this is cgi request [13:46:24]url: /json_proto [13:46:24]query_string will be loaded in cgi processing [13:46:24]execute_cgi json_proto POST (null) [13:46:24]execute_cgi path=json_proto method=POST [13:46:24]POST find Content-Length [13:46:24]Host: 172.17.63.3:8080 [13:46:24]Content-Length: 672 [13:46:24]Content-Type: application/json [13:46:24] [13:46:24]POST finish read [13:46:24]Found Content-Length = 672 [13:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:24]execute_script... [13:46:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:24]POST & json_proto [13:46:24]process_json_proto [13:46:24]json parsed OK: [13:46:24]protocol is kg_v1.0 [13:46:24]action value=close_receipt [13:46:24]process_action close_receipt [13:46:24]cmd_close_receipt [13:46:24]MH_GetDate [13:46:24]Write to MH i2c: F0 00 00 82 05 76 [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 09 00 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 09 00 82 05 00 B0 F2 1C 67 50 D1 6C 64 95 [13:46:24]GetLastDocTimeStamp 1729950276 [13:46:24]current date 1729950384 [13:46:24]FM_GetShiftState [13:46:24]SAM_PROTO_GetShiftState [13:46:24]wFMCommunicate request_size=4 [13:46:24]MH_SAM_APDU [13:46:24]CAPDU: 80 13 01 00 [13:46:24]Write to MH i2c: E2 08 00 83 05 80 13 01 00 00 00 00 00 05 [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:24]Read from MH i2c: E2 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: E2 0E 00 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: E2 0E 00 83 05 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 3A [13:46:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:46:24]wFMCommunicate OK [13:46:24]SAM_PROTO_GetShiftState done [13:46:24]FM_GetShiftState done [13:46:24]opened in 1729902702 [13:46:24]opened+sec_in_day 1729989102 [13:46:24]quantity*price = 7024 [13:46:24]sum+1 = 7026 [13:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.46 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 201 26.10.2024 13:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156300 ФПД: 55619881089465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134624&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156300&fm=55619881089465&tin=02508201610067®Number=0000000000091693&sum=7000 [13:46:25]StoreToDocumentArchive [13:46:25]shift 536 fd 156300 [13:46:25]save to /storage/0536/doc_00156300 [13:46:25]save last doc name /storage/0536/doc_00156300 to /storage/kkm_last_doc_name [13:46:25]save OK [13:46:25]Clear old archive folders... [13:46:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:25]tlvbuf is 016FB320 [13:46:25]SAM_PROTO_ClearQueue [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 09 00 00 [13:46:25]Write to MH i2c: E2 08 00 90 05 80 09 00 00 00 00 00 00 07 [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 03 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [13:46:25]RAPDU: 90 00 [13:46:25]wFMCommunicate OK [13:46:25]SAM_PROTO_ClearQueue done [13:46:25]KKMCreateOFDPacket [13:46:25]OFDProtocolAddRootSTLVToBuf [13:46:25]FM_MakeSignedData [13:46:25]FM_MakeSignedData [13:46:25]SAM_PROTO_SignData [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 0D 01 02 [13:46:25]Write to MH i2c: E2 08 00 91 05 80 0D 01 02 00 00 00 00 0F [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 03 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [13:46:25]RAPDU: 90 00 [13:46:25]wFMCommunicate OK [13:46:25]wFMCommunicate request_size=255 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 C9 00 00 00 F4 03 04 00 B0 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 62 02 00 35 04 06 00 32 [13:46:25]Write to MH i2c: E2 02 01 92 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 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 C9 00 00 00 F4 03 04 00 B0 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 62 02 00 35 04 06 00 32 00 00 3E [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 03 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [13:46:25]RAPDU: 90 00 [13:46:25]wFMCommunicate OK [13:46:25]wFMCommunicate request_size=10 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 0D 02 02 05 96 03 41 39 B9 [13:46:25]Write to MH i2c: E2 0D 00 93 05 80 0D 02 02 05 00 96 03 41 39 B9 00 00 E8 [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 03 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [13:46:25]RAPDU: 90 00 [13:46:25]wFMCommunicate OK [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 0D 03 02 [13:46:25]Write to MH i2c: E2 08 00 94 05 80 0D 03 02 00 00 00 00 14 [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 0B 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 0B 00 94 05 00 6E A1 18 CC 0B BE 59 30 90 00 5A [13:46:25]RAPDU: 6E A1 18 CC 0B BE 59 30 90 00 [13:46:25]wFMCommunicate OK [13:46:25]SAM_PROTO_SignData done [13:46:25]FM_MakeSignedData done [13:46:25]CreateOFDProtocolMessage [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 11 00 00 [13:46:25]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 17 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [13:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:46:25]wFMCommunicate OK [13:46:25]CreateOFDProtocolMessage done [13:46:25]OFDSenderStorePacket 156300 [13:46:25]StoreOFDPacket docnum=156300 [13:46:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1B 04 07 01 7E 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 C9 00 00 00 F4 03 04 00 B0 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 62 02 00 35 04 06 00 32 96 03 41 39 B9 6E A1 18 CC 0B BE 59 30 [13:46:25]CheckFolder [13:46:25]dirname=/storage/ofd_packets [13:46:25]CheckFolder done [13:46:25]ProducePacketName [13:46:25]name=ofd_packets/00156300 [13:46:25]NVStorageSaveData ofd_packets/00156300 [13:46:25]File name is /storage/ofd_packets/00156300 [13:46:25]Write 301 bytes [13:46:25]NVStorageSaveData done [13:46:25]OFDSenderStorePacket done [13:46:25]KKMCreateOFDPacket done [13:46:25]NVStorageSaveData kkm_last_timestamp [13:46:25]File name is /storage/kkm_last_timestamp [13:46:25]Write 4 bytes [13:46:25]NVStorageSaveData done [13:46:25]ExternCall_PrintAddStr [13:46:25]wPrintStart [13:46:25]Write to MH i2c: 01 00 00 96 05 9B [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: 01 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: 01 07 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: 01 07 00 96 05 00 00 00 00 00 FF 0F B0 [13:46:25]RasterBufferAndPrint [13:46:25]line Счет N : (1)99115 [13:46:25]line ИНН: 02508201610067 [13:46:25]line Контрольно-Кассовый Чек [13:46:25]line ПРОДАЖА [13:46:25]line ТРК (МРК, ГНК) : 11 [13:46:25]line Товар: 2710124130 [13:46:25]line Аи-92-К-5 [13:46:25]line 1.050 * 66.90 [13:46:25]line = 70.25 [13:46:25]line НДС 12% НСП 1% [13:46:25]line > о реализуемом товаре [13:46:25]line ОКРУГЛЕНИЕ: -0.25 [13:46:25]line ИТОГО: 70.00 [13:46:25]line Внесено: 70.00 [13:46:25]line СДАЧА: 0.00 [13:46:25]line НСП 1% : 0.62 [13:46:25]line НДС 12% : 7.46 [13:46:25]line Наличными: 70.00 [13:46:25]line Безнал.: 0.00 [13:46:25]line Место: АЗС № 143 "Партнер Нефть" [13:46:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:46:25]line СНО: Общий режим [13:46:25]line Чек 201 26.10.2024 13:46 [13:46:25]line Смена: 536 ФФД: 1.0 [13:46:25]line ЗНМ: 0300000096 [13:46:25]line РНМ: 0000000000091693 [13:46:25]line Версия ККМ: 001 [13:46:25]line ФМ: 0000000000871792 [13:46:25]line ФД: 156300 [13:46:25]line ФПД: 55619881089465 [13:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134624&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156300&fm=55619881089465&tin=02508201610067®Number=0000000000091693&sum=7000 [13:46:26]OFD Sender: Processing packet 156300 [packets to send 31, broken 30] [13:46:26]ProducePacketName [13:46:26]name=ofd_packets/00156300 [13:46:26]OFD Sender: To server: pG, [13:46:26]CommunicateWithHost lk.salyk.kg:30040 [13:46:26]ConnectInit lk.salyk.kg [13:46:26]written 0, free lines is 4095 [13:46:26]Connected sock=10 [13:46:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1B 04 07 01 7E 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 C9 00 00 00 F4 03 04 00 B0 F2 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 62 02 00 35 04 06 00 32 96 03 41 39 B9 6E A1 18 CC 0B BE 59 30 [13:46:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BB F8 47 00 47 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 62 02 00 F4 03 04 00 23 98 1C 67 B6 04 01 00 00 01 EB 7C ED 01 58 32 DC [13:46:26]CommunicateWithHost err = 0 [13:46:26]CheckOFDResponse [13:46:26]1017 (14) - 77093643461234 [13:46:26]1041 (16) - 0000000000871792 [13:46:26]1040 (4) - 156300 [13:46:26]1012 (4) - 26.10.2024 07:20 [13:46:26]1206 (1) - 0 [13:46:26]OFD Sender: Remove packet 156300 [13:46:26]ProducePacketName [13:46:26]name=ofd_packets/00156300 [13:46:26]NVStorageDeleteData [13:46:26]Write to MH i2c: 01 00 00 C1 05 C6 [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 07 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 07 00 C1 05 00 00 00 00 00 EB 0C C4 [13:46:26]RasterBufferAndPrint [13:46:26]line [13:46:26]line [13:46:26]line [13:46:26]line [13:46:26]line [13:46:26]written 0, free lines is 3313 [13:46:26]process_action close_receipt done [13:46:26]requested_data is exist [13:46:26]produce_requested_data [13:46:26]requested_item fm.sn is exist - process it [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 11 00 00 [13:46:26]Write to MH i2c: E2 08 00 C8 05 80 11 00 00 00 00 00 00 47 [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 17 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 17 00 C8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [13:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:46:26]wFMCommunicate OK [13:46:26]requested_item fd.num is exist - process it [13:46:26]SAM_PROTO_GetFieldsCounters [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 13 00 00 [13:46:26]Write to MH i2c: E2 08 00 C9 05 80 13 00 00 00 00 00 00 4A [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 62 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 62 00 C9 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [13:46: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:26]wFMCommunicate OK [13:46:26]SAM_PROTO_GetFieldsCounters done [13:46:26]requested_item shift.num is exist - process it [13:46:26]requested_item shift.opened is exist - process it [13:46:26]req_shift_opened [13:46:26]FM_GetShiftState [13:46:26]SAM_PROTO_GetShiftState [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 13 01 00 [13:46:26]Write to MH i2c: E2 08 00 CA 05 80 13 01 00 00 00 00 00 4C [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 0E 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 0E 00 CA 05 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 81 [13:46:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:46:26]wFMCommunicate OK [13:46:26]SAM_PROTO_GetShiftState done [13:46:26]FM_GetShiftState done [13:46:26]req_shift_opened done [13:46:26]requested_item shift.open_date is exist - process it [13:46:26]req_shift_open_date [13:46:26]req_shift_open_date done [13:46:26]produce_requested_data done [13:46:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156300,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:46:26]process_action_free close_receipt [13:46:26]json_value_free [13:46:26]json_value_free done [13:46:26]process_json_proto returns [13:46:26]Send response to host [13:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156300,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:46:26]free response buf [13:46:26]execute_script done [13:46:26]execute_script returns [13:46:26]free content buf [13:46:26]Sock 8.Close socket [13:46:26]Sock 8.Thread stoped [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:06]accept exits with 9 [13:48:06]New connection [13:48:06]New thread 3066977636 created [13:48:06]Thread 3066834276 joined [13:48:06]Waiting for new connection... [13:48:06] Sock 9.Parse request [13:48:06]Sock 9.Check first char [13:48:06]Sock 9.First char is OK [13:48:06]request: POST /json_proto HTTP/1.0 [13:48:06]Method: POST [13:48:06]URL: /json_proto [13:48:06]Method is POST - this is cgi request [13:48:06]url: /json_proto [13:48:06]query_string will be loaded in cgi processing [13:48:06]execute_cgi json_proto POST (null) [13:48:06]execute_cgi path=json_proto method=POST [13:48:06]POST find Content-Length [13:48:06]Host: 172.17.63.3:8080 [13:48:06]Content-Length: 639 [13:48:06]Content-Type: application/json [13:48:06] [13:48:06]POST finish read [13:48:06]Found Content-Length = 639 [13:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:06]execute_script... [13:48:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:06]POST & json_proto [13:48:06]process_json_proto [13:48:06]json parsed OK: [13:48:06]protocol is kg_v1.0 [13:48:06]action value=close_receipt [13:48:06]process_action close_receipt [13:48:06]cmd_close_receipt [13:48:06]MH_GetDate [13:48:06]Write to MH i2c: F0 00 00 CB 05 BF [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: F0 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: F0 09 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: F0 09 00 CB 05 00 17 F3 1C 67 50 D1 6C 64 46 [13:48:06]GetLastDocTimeStamp 1729950384 [13:48:06]current date 1729950487 [13:48:06]FM_GetShiftState [13:48:06]SAM_PROTO_GetShiftState [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 13 01 00 [13:48:06]Write to MH i2c: E2 08 00 CC 05 80 13 01 00 00 00 00 00 4E [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 0E 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 0E 00 CC 05 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 83 [13:48:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:48:06]wFMCommunicate OK [13:48:06]SAM_PROTO_GetShiftState done [13:48:06]FM_GetShiftState done [13:48:06]opened in 1729902702 [13:48:06]opened+sec_in_day 1729989102 [13:48:06]quantity*price = 66900 [13:48:06]sum+1 = 66901 [13:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 202 26.10.2024 13:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156301 ФПД: 275799305970165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156301&fm=275799305970165&tin=02508201610067®Number=0000000000091693&sum=66900 [13:48:07]StoreToDocumentArchive [13:48:07]shift 536 fd 156301 [13:48:07]save to /storage/0536/doc_00156301 [13:48:07]save last doc name /storage/0536/doc_00156301 to /storage/kkm_last_doc_name [13:48:07]save OK [13:48:07]Clear old archive folders... [13:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:07]tlvbuf is 016F7180 [13:48:07]SAM_PROTO_ClearQueue [13:48:07]wFMCommunicate request_size=4 [13:48:07]MH_SAM_APDU [13:48:07]CAPDU: 80 09 00 00 [13:48:07]Write to MH i2c: E2 08 00 D9 05 80 09 00 00 00 00 00 00 50 [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:07]Read from MH i2c: E2 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: E2 03 00 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [13:48:07]RAPDU: 90 00 [13:48:07]wFMCommunicate OK [13:48:07]SAM_PROTO_ClearQueue done [13:48:07]KKMCreateOFDPacket [13:48:07]OFDProtocolAddRootSTLVToBuf [13:48:07]FM_MakeSignedData [13:48:07]FM_MakeSignedData [13:48:07]SAM_PROTO_SignData [13:48:07]wFMCommunicate request_size=4 [13:48:07]MH_SAM_APDU [13:48:07]CAPDU: 80 0D 01 02 [13:48:07]Write to MH i2c: E2 08 00 DA 05 80 0D 01 02 00 00 00 00 58 [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:07]Read from MH i2c: E2 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: E2 03 00 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [13:48:07]RAPDU: 90 00 [13:48:07]wFMCommunicate OK [13:48:07]wFMCommunicate request_size=255 [13:48:07]MH_SAM_APDU [13:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 17 F3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 62 02 00 35 04 06 00 FA [13:48:07]Write to MH i2c: E2 02 01 DB 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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 17 F3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 62 02 00 35 04 06 00 FA 00 00 71 [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:08]Read from MH i2c: E2 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: E2 03 00 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [13:48:08]RAPDU: 90 00 [13:48:08]wFMCommunicate OK [13:48:08]wFMCommunicate request_size=10 [13:48:08]MH_SAM_APDU [13:48:08]CAPDU: 80 0D 02 02 05 D6 87 A9 61 F5 [13:48:08]Write to MH i2c: E2 0D 00 DC 05 80 0D 02 02 05 00 D6 87 A9 61 F5 00 00 C1 [13:48:08]Write i2c OK [13:48:08]MH_I2C_Read... [13:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:08]Read from MH i2c: E2 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: E2 03 00 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [13:48:08]RAPDU: 90 00 [13:48:08]wFMCommunicate OK [13:48:08]wFMCommunicate request_size=4 [13:48:08]MH_SAM_APDU [13:48:08]CAPDU: 80 0D 03 02 [13:48:08]Write to MH i2c: E2 08 00 DD 05 80 0D 03 02 00 00 00 00 5D [13:48:08]Write i2c OK [13:48:08]MH_I2C_Read... [13:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:08]Read from MH i2c: E2 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: E2 0B 00 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: E2 0B 00 DD 05 00 B5 FD 04 B8 BE BC 80 8E 90 00 54 [13:48:08]RAPDU: B5 FD 04 B8 BE BC 80 8E 90 00 [13:48:08]wFMCommunicate OK [13:48:08]SAM_PROTO_SignData done [13:48:08]FM_MakeSignedData done [13:48:08]CreateOFDProtocolMessage [13:48:08]wFMCommunicate request_size=4 [13:48:08]MH_SAM_APDU [13:48:08]CAPDU: 80 11 00 00 [13:48:08]Write to MH i2c: E2 08 00 DE 05 80 11 00 00 00 00 00 00 5D [13:48:08]Write i2c OK [13:48:08]MH_I2C_Read... [13:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:08]Read from MH i2c: E2 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: E2 17 00 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: E2 17 00 DE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B2 [13:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:48:08]wFMCommunicate OK [13:48:08]CreateOFDProtocolMessage done [13:48:08]OFDSenderStorePacket 156301 [13:48:08]StoreOFDPacket docnum=156301 [13:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 1A 07 01 F0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 17 F3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 62 02 00 35 04 06 00 FA D6 87 A9 61 F5 B5 FD 04 B8 BE BC 80 8E [13:48:08]CheckFolder [13:48:08]dirname=/storage/ofd_packets [13:48:08]CheckFolder done [13:48:08]ProducePacketName [13:48:08]name=ofd_packets/00156301 [13:48:08]NVStorageSaveData ofd_packets/00156301 [13:48:08]File name is /storage/ofd_packets/00156301 [13:48:08]Write 301 bytes [13:48:08]NVStorageSaveData done [13:48:08]OFDSenderStorePacket done [13:48:08]KKMCreateOFDPacket done [13:48:08]NVStorageSaveData kkm_last_timestamp [13:48:08]File name is /storage/kkm_last_timestamp [13:48:08]Write 4 bytes [13:48:08]NVStorageSaveData done [13:48:08]ExternCall_PrintAddStr [13:48:08]wPrintStart [13:48:08]Write to MH i2c: 01 00 00 DF 05 E4 [13:48:08]Write i2c OK [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: 01 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: 01 07 00 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [13:48:08]RasterBufferAndPrint [13:48:08]line Счет N : (1)99116 [13:48:08]line ИНН: 02508201610067 [13:48:08]line Контрольно-Кассовый Чек [13:48:08]line ПРОДАЖА [13:48:08]line ТРК (МРК, ГНК) : 21 [13:48:08]line Товар: 2710124130 [13:48:08]line Аи-92-К-5 [13:48:08]line 10.000 * 66.90 [13:48:08]line = 669.00 [13:48:08]line НДС 12% НСП 1% [13:48:08]line > о реализуемом товаре [13:48:08]line ИТОГО: 669.00 [13:48:08]line НСП 1% : 5.92 [13:48:08]line НДС 12% : 71.04 [13:48:08]line Наличными: 669.00 [13:48:08]line Безнал.: 0.00 [13:48:08]line Место: АЗС № 143 "Партнер Нефть" [13:48:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:48:08]line СНО: Общий режим [13:48:08]line Чек 202 26.10.2024 13:48 [13:48:08]line Смена: 536 ФФД: 1.0 [13:48:08]line ЗНМ: 0300000096 [13:48:08]line РНМ: 0000000000091693 [13:48:08]line Версия ККМ: 001 [13:48:08]line ФМ: 0000000000871792 [13:48:08]line ФД: 156301 [13:48:08]line ФПД: 275799305970165 [13:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156301&fm=275799305970165&tin=02508201610067®Number=0000000000091693&sum=66900 [13:48:08]OFD Sender: Processing packet 156301 [packets to send 31, broken 30] [13:48:08]ProducePacketName [13:48:08]name=ofd_packets/00156301 [13:48:08]OFD Sender: To server: pG, [13:48:08]CommunicateWithHost lk.salyk.kg:30040 [13:48:08]ConnectInit lk.salyk.kg [13:48:08]written 0, free lines is 4095 [13:48:08]Connected sock=10 [13:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 1A 07 01 F0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 17 F3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 62 02 00 35 04 06 00 FA D6 87 A9 61 F5 B5 FD 04 B8 BE BC 80 8E [13:48:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AA 5D 47 00 A7 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 31 37 39 32 10 04 04 00 8D 62 02 00 F4 03 04 00 89 98 1C 67 B6 04 01 00 00 C3 D5 25 CC EF 29 3A 5E [13:48:09]CommunicateWithHost err = 0 [13:48:09]CheckOFDResponse [13:48:09]1017 (14) - 77093643461234 [13:48:09]1041 (16) - 0000000000871792 [13:48:09]1040 (4) - 156301 [13:48:09]1012 (4) - 26.10.2024 07:21 [13:48:09]1206 (1) - 0 [13:48:09]OFD Sender: Remove packet 156301 [13:48:09]ProducePacketName [13:48:09]name=ofd_packets/00156301 [13:48:09]NVStorageDeleteData [13:48:09]Write to MH i2c: 01 00 00 07 06 0D [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: 01 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: 01 07 00 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 28 0D 49 [13:48:09]RasterBufferAndPrint [13:48:09]line [13:48:09]line [13:48:09]line [13:48:09]line [13:48:09]line [13:48:09]written 0, free lines is 3374 [13:48:09]process_action close_receipt done [13:48:09]requested_data is exist [13:48:09]produce_requested_data [13:48:09]requested_item fm.sn is exist - process it [13:48:09]wFMCommunicate request_size=4 [13:48:09]MH_SAM_APDU [13:48:09]CAPDU: 80 11 00 00 [13:48:09]Write to MH i2c: E2 08 00 0E 06 80 11 00 00 00 00 00 00 8E [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:09]Read from MH i2c: E2 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 17 00 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 17 00 0E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E3 [13:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:48:09]wFMCommunicate OK [13:48:09]requested_item fd.num is exist - process it [13:48:09]SAM_PROTO_GetFieldsCounters [13:48:09]wFMCommunicate request_size=4 [13:48:09]MH_SAM_APDU [13:48:09]CAPDU: 80 13 00 00 [13:48:09]Write to MH i2c: E2 08 00 0F 06 80 13 00 00 00 00 00 00 91 [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:09]Read from MH i2c: E2 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 62 00 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 62 00 0F 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [13:48: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:09]wFMCommunicate OK [13:48:09]SAM_PROTO_GetFieldsCounters done [13:48:09]requested_item shift.num is exist - process it [13:48:09]requested_item shift.opened is exist - process it [13:48:09]req_shift_opened [13:48:09]FM_GetShiftState [13:48:09]SAM_PROTO_GetShiftState [13:48:09]wFMCommunicate request_size=4 [13:48:09]MH_SAM_APDU [13:48:09]CAPDU: 80 13 01 00 [13:48:09]Write to MH i2c: E2 08 00 10 06 80 13 01 00 00 00 00 00 93 [13:48:09]Write i2c OK [13:48:09]MH_I2C_Read... [13:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:09]Read from MH i2c: E2 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 0E 00 [13:48:09]MH_I2C_Read... [13:48:09]Read from MH i2c: E2 0E 00 10 06 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C8 [13:48:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:48:09]wFMCommunicate OK [13:48:09]SAM_PROTO_GetShiftState done [13:48:09]FM_GetShiftState done [13:48:09]req_shift_opened done [13:48:09]requested_item shift.open_date is exist - process it [13:48:09]req_shift_open_date [13:48:09]req_shift_open_date done [13:48:09]produce_requested_data done [13:48:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156301,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:48:09]process_action_free close_receipt [13:48:09]json_value_free [13:48:09]json_value_free done [13:48:09]process_json_proto returns [13:48:09]Send response to host [13:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156301,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:48:09]free response buf [13:48:09]execute_script done [13:48:09]execute_script returns [13:48:09]free content buf [13:48:09]Sock 9.Close socket [13:48:09]Sock 9.Thread stoped [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:51]accept exits with 8 [13:50:51]New connection [13:50:51]New thread 3066834276 created [13:50:51]Thread 3066977636 joined [13:50:51]Waiting for new connection... [13:50:51] Sock 8.Parse request [13:50:51]Sock 8.Check first char [13:50:51]Sock 8.First char is OK [13:50:51]request: POST /json_proto HTTP/1.0 [13:50:51]Method: POST [13:50:51]URL: /json_proto [13:50:51]Method is POST - this is cgi request [13:50:51]url: /json_proto [13:50:51]query_string will be loaded in cgi processing [13:50:51]execute_cgi json_proto POST (null) [13:50:51]execute_cgi path=json_proto method=POST [13:50:51]POST find Content-Length [13:50:51]Host: 172.17.63.3:8080 [13:50:51]Content-Length: 676 [13:50:51]Content-Type: application/json [13:50:51] [13:50:51]POST finish read [13:50:51]Found Content-Length = 676 [13:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:51]execute_script... [13:50:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:51]POST & json_proto [13:50:51]process_json_proto [13:50:51]json parsed OK: [13:50:51]protocol is kg_v1.0 [13:50:51]action value=close_receipt [13:50:51]process_action close_receipt [13:50:51]cmd_close_receipt [13:50:51]MH_GetDate [13:50:51]Write to MH i2c: F0 00 00 11 06 06 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: F0 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: F0 09 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: F0 09 00 11 06 00 BB F3 1C 67 50 D1 6C 64 31 [13:50:51]GetLastDocTimeStamp 1729950487 [13:50:51]current date 1729950651 [13:50:51]FM_GetShiftState [13:50:51]SAM_PROTO_GetShiftState [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 13 01 00 [13:50:51]Write to MH i2c: E2 08 00 12 06 80 13 01 00 00 00 00 00 95 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 0E 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 0E 00 12 06 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CA [13:50:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:50:51]wFMCommunicate OK [13:50:51]SAM_PROTO_GetShiftState done [13:50:51]FM_GetShiftState done [13:50:51]opened in 1729902702 [13:50:51]opened+sec_in_day 1729989102 [13:50:51]quantity*price = 50041 [13:50:51]sum+1 = 50042 [13:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 203 26.10.2024 13:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156302 ФПД: 214557056946907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135051&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156302&fm=214557056946907&tin=02508201610067®Number=0000000000091693&sum=50000 [13:50:52]StoreToDocumentArchive [13:50:52]shift 536 fd 156302 [13:50:52]save to /storage/0536/doc_00156302 [13:50:52]save last doc name /storage/0536/doc_00156302 to /storage/kkm_last_doc_name [13:50:52]save OK [13:50:52]Clear old archive folders... [13:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:52]tlvbuf is 016E7370 [13:50:52]SAM_PROTO_ClearQueue [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 09 00 00 [13:50:52]Write to MH i2c: E2 08 00 1F 06 80 09 00 00 00 00 00 00 97 [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 03 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 03 00 1F 06 00 90 00 99 [13:50:52]RAPDU: 90 00 [13:50:52]wFMCommunicate OK [13:50:52]SAM_PROTO_ClearQueue done [13:50:52]KKMCreateOFDPacket [13:50:52]OFDProtocolAddRootSTLVToBuf [13:50:52]FM_MakeSignedData [13:50:52]FM_MakeSignedData [13:50:52]SAM_PROTO_SignData [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 0D 01 02 [13:50:52]Write to MH i2c: E2 08 00 20 06 80 0D 01 02 00 00 00 00 9F [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 03 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 03 00 20 06 00 90 00 9A [13:50:52]RAPDU: 90 00 [13:50:52]wFMCommunicate OK [13:50:52]wFMCommunicate request_size=255 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BB F3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 62 02 00 35 04 06 00 C3 [13:50:52]Write to MH i2c: E2 02 01 21 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BB F3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 62 02 00 35 04 06 00 C3 00 00 FE [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 03 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 03 00 21 06 00 90 00 9B [13:50:52]RAPDU: 90 00 [13:50:52]wFMCommunicate OK [13:50:52]wFMCommunicate request_size=10 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 0D 02 02 05 23 75 29 D2 DB [13:50:52]Write to MH i2c: E2 0D 00 22 06 80 0D 02 02 05 00 23 75 29 D2 DB 00 00 1A [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 03 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [13:50:52]RAPDU: 90 00 [13:50:52]wFMCommunicate OK [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 0D 03 02 [13:50:52]Write to MH i2c: E2 08 00 23 06 80 0D 03 02 00 00 00 00 A4 [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 0B 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 0B 00 23 06 00 DE A0 35 1A FF 0A CE FC 90 00 45 [13:50:52]RAPDU: DE A0 35 1A FF 0A CE FC 90 00 [13:50:52]wFMCommunicate OK [13:50:52]SAM_PROTO_SignData done [13:50:52]FM_MakeSignedData done [13:50:52]CreateOFDProtocolMessage [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 11 00 00 [13:50:52]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 17 00 [13:50:52]MH_I2C_Read... [13:50:52]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 31 37 39 32 90 00 F9 [13:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:50:52]wFMCommunicate OK [13:50:52]CreateOFDProtocolMessage done [13:50:52]OFDSenderStorePacket 156302 [13:50:52]StoreOFDPacket docnum=156302 [13:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F4 C5 07 01 68 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BB F3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 62 02 00 35 04 06 00 C3 23 75 29 D2 DB DE A0 35 1A FF 0A CE FC [13:50:52]CheckFolder [13:50:52]dirname=/storage/ofd_packets [13:50:52]CheckFolder done [13:50:52]ProducePacketName [13:50:52]name=ofd_packets/00156302 [13:50:52]NVStorageSaveData ofd_packets/00156302 [13:50:52]File name is /storage/ofd_packets/00156302 [13:50:52]Write 301 bytes [13:50:52]NVStorageSaveData done [13:50:52]OFDSenderStorePacket done [13:50:52]KKMCreateOFDPacket done [13:50:52]NVStorageSaveData kkm_last_timestamp [13:50:52]File name is /storage/kkm_last_timestamp [13:50:52]Write 4 bytes [13:50:52]NVStorageSaveData done [13:50:52]ExternCall_PrintAddStr [13:50:52]wPrintStart [13:50:52]Write to MH i2c: 01 00 00 25 06 2B [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: 01 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: 01 07 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [13:50:52]RasterBufferAndPrint [13:50:52]line Счет N : (1)99117 [13:50:52]line ИНН: 02508201610067 [13:50:52]line Контрольно-Кассовый Чек [13:50:52]line ПРОДАЖА [13:50:52]line ТРК (МРК, ГНК) : 31 [13:50:52]line Товар: 2710124130 [13:50:52]line Аи-92-К-5 [13:50:52]line 7.480 * 66.90 [13:50:52]line = 500.41 [13:50:52]line НДС 12% НСП 1% [13:50:52]line > о реализуемом товаре [13:50:52]line ОКРУГЛЕНИЕ: -0.41 [13:50:52]line ИТОГО: 500.00 [13:50:52]line Внесено: 500.00 [13:50:52]line СДАЧА: 0.00 [13:50:52]line НСП 1% : 4.43 [13:50:52]line НДС 12% : 53.14 [13:50:52]line Наличными: 500.00 [13:50:52]line Безнал.: 0.00 [13:50:52]line Место: АЗС № 143 "Партнер Нефть" [13:50:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:50:52]line СНО: Общий режим [13:50:52]line Чек 203 26.10.2024 13:50 [13:50:52]line Смена: 536 ФФД: 1.0 [13:50:52]line ЗНМ: 0300000096 [13:50:52]line РНМ: 0000000000091693 [13:50:52]line Версия ККМ: 001 [13:50:52]line ФМ: 0000000000871792 [13:50:52]line ФД: 156302 [13:50:52]line ФПД: 214557056946907 [13:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135051&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156302&fm=214557056946907&tin=02508201610067®Number=0000000000091693&sum=50000 [13:50:52]written 0, free lines is 4095 [13:50:52]OFD Sender: Processing packet 156302 [packets to send 31, broken 30] [13:50:52]ProducePacketName [13:50:52]name=ofd_packets/00156302 [13:50:52]OFD Sender: To server: pG, [13:50:52]CommunicateWithHost lk.salyk.kg:30040 [13:50:52]ConnectInit lk.salyk.kg [13:50:52]Connected sock=10 [13:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F4 C5 07 01 68 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BB F3 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 62 02 00 35 04 06 00 C3 23 75 29 D2 DB DE A0 35 1A FF 0A CE FC [13:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EC 2E 47 00 D0 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 62 02 00 F4 03 04 00 2D 99 1C 67 B6 04 01 00 00 8E 3A 87 5A D2 6F 2C 5D [13:50:53]CommunicateWithHost err = 0 [13:50:53]CheckOFDResponse [13:50:53]1017 (14) - 77093643461234 [13:50:53]1041 (16) - 0000000000871792 [13:50:53]1040 (4) - 156302 [13:50:53]1012 (4) - 26.10.2024 07:24 [13:50:53]1206 (1) - 0 [13:50:53]OFD Sender: Remove packet 156302 [13:50:53]ProducePacketName [13:50:53]name=ofd_packets/00156302 [13:50:53]NVStorageDeleteData [13:50:53]Write to MH i2c: 01 00 00 50 06 56 [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: 01 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: 01 07 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 01 0D 6B [13:50:53]RasterBufferAndPrint [13:50:53]line [13:50:53]line [13:50:53]line [13:50:53]line [13:50:53]line [13:50:53]written 0, free lines is 3335 [13:50:53]process_action close_receipt done [13:50:53]requested_data is exist [13:50:53]produce_requested_data [13:50:53]requested_item fm.sn is exist - process it [13:50:53]wFMCommunicate request_size=4 [13:50:53]MH_SAM_APDU [13:50:53]CAPDU: 80 11 00 00 [13:50:53]Write to MH i2c: E2 08 00 57 06 80 11 00 00 00 00 00 00 D7 [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:53]Read from MH i2c: E2 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 17 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 17 00 57 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2C [13:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:50:53]wFMCommunicate OK [13:50:53]requested_item fd.num is exist - process it [13:50:53]SAM_PROTO_GetFieldsCounters [13:50:53]wFMCommunicate request_size=4 [13:50:53]MH_SAM_APDU [13:50:53]CAPDU: 80 13 00 00 [13:50:53]Write to MH i2c: E2 08 00 58 06 80 13 00 00 00 00 00 00 DA [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:53]Read from MH i2c: E2 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 62 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 62 00 58 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [13:50: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:53]wFMCommunicate OK [13:50:53]SAM_PROTO_GetFieldsCounters done [13:50:53]requested_item shift.num is exist - process it [13:50:53]requested_item shift.opened is exist - process it [13:50:53]req_shift_opened [13:50:53]FM_GetShiftState [13:50:53]SAM_PROTO_GetShiftState [13:50:53]wFMCommunicate request_size=4 [13:50:53]MH_SAM_APDU [13:50:53]CAPDU: 80 13 01 00 [13:50:53]Write to MH i2c: E2 08 00 59 06 80 13 01 00 00 00 00 00 DC [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:53]Read from MH i2c: E2 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 0E 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 0E 00 59 06 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 11 [13:50:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:50:53]wFMCommunicate OK [13:50:53]SAM_PROTO_GetShiftState done [13:50:53]FM_GetShiftState done [13:50:53]req_shift_opened done [13:50:53]requested_item shift.open_date is exist - process it [13:50:53]req_shift_open_date [13:50:53]req_shift_open_date done [13:50:53]produce_requested_data done [13:50:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156302,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:50:53]process_action_free close_receipt [13:50:53]json_value_free [13:50:53]json_value_free done [13:50:53]process_json_proto returns [13:50:53]Send response to host [13:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156302,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:50:53]free response buf [13:50:53]execute_script done [13:50:53]execute_script returns [13:50:53]free content buf [13:50:53]Sock 8.Close socket [13:50:53]Sock 8.Thread stoped [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:16]accept exits with 9 [13:53:16]New connection [13:53:16]New thread 3066977636 created [13:53:16]Thread 3066834276 joined [13:53:16]Waiting for new connection... [13:53:16] Sock 9.Parse request [13:53:16]Sock 9.Check first char [13:53:16]Sock 9.First char is OK [13:53:16]request: POST /json_proto HTTP/1.0 [13:53:16]Method: POST [13:53:16]URL: /json_proto [13:53:16]Method is POST - this is cgi request [13:53:16]url: /json_proto [13:53:16]query_string will be loaded in cgi processing [13:53:16]execute_cgi json_proto POST (null) [13:53:16]execute_cgi path=json_proto method=POST [13:53:16]POST find Content-Length [13:53:16]Host: 172.17.63.3:8080 [13:53:16]Content-Length: 676 [13:53:16]Content-Type: application/json [13:53:16] [13:53:16]POST finish read [13:53:16]Found Content-Length = 676 [13:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:16]execute_script... [13:53: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)99119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:16]POST & json_proto [13:53:16]process_json_proto [13:53:16]json parsed OK: [13:53:16]protocol is kg_v1.0 [13:53:16]action value=close_receipt [13:53:16]process_action close_receipt [13:53:16]cmd_close_receipt [13:53:16]MH_GetDate [13:53:16]Write to MH i2c: F0 00 00 5A 06 4F [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: F0 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: F0 09 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: F0 09 00 5A 06 00 4D F4 1C 67 50 D1 6C 64 0D [13:53:16]GetLastDocTimeStamp 1729950651 [13:53:16]current date 1729950797 [13:53:16]FM_GetShiftState [13:53:16]SAM_PROTO_GetShiftState [13:53:16]wFMCommunicate request_size=4 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 13 01 00 [13:53:16]Write to MH i2c: E2 08 00 5B 06 80 13 01 00 00 00 00 00 DE [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 0E 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 0E 00 5B 06 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 13 [13:53:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:53:16]wFMCommunicate OK [13:53:16]SAM_PROTO_GetShiftState done [13:53:16]FM_GetShiftState done [13:53:16]opened in 1729902702 [13:53:16]opened+sec_in_day 1729989102 [13:53:16]quantity*price = 50041 [13:53:16]sum+1 = 50042 [13:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 204 26.10.2024 13:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156303 ФПД: 129440568305333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135317&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156303&fm=129440568305333&tin=02508201610067®Number=0000000000091693&sum=50000 [13:53:17]StoreToDocumentArchive [13:53:17]shift 536 fd 156303 [13:53:17]save to /storage/0536/doc_00156303 [13:53:17]save last doc name /storage/0536/doc_00156303 to /storage/kkm_last_doc_name [13:53:17]save OK [13:53:17]Clear old archive folders... [13:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:18]tlvbuf is 016FE850 [13:53:18]SAM_PROTO_ClearQueue [13:53:18]wFMCommunicate request_size=4 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 09 00 00 [13:53:18]Write to MH i2c: E2 08 00 68 06 80 09 00 00 00 00 00 00 E0 [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 03 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [13:53:18]RAPDU: 90 00 [13:53:18]wFMCommunicate OK [13:53:18]SAM_PROTO_ClearQueue done [13:53:18]KKMCreateOFDPacket [13:53:18]OFDProtocolAddRootSTLVToBuf [13:53:18]FM_MakeSignedData [13:53:18]FM_MakeSignedData [13:53:18]SAM_PROTO_SignData [13:53:18]wFMCommunicate request_size=4 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 0D 01 02 [13:53:18]Write to MH i2c: E2 08 00 69 06 80 0D 01 02 00 00 00 00 E8 [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 03 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [13:53:18]RAPDU: 90 00 [13:53:18]wFMCommunicate OK [13:53:18]wFMCommunicate request_size=255 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 4D F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 62 02 00 35 04 06 00 75 [13:53:18]Write to MH i2c: E2 02 01 6A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 4D F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 62 02 00 35 04 06 00 75 00 00 8E [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 03 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [13:53:18]RAPDU: 90 00 [13:53:18]wFMCommunicate OK [13:53:18]wFMCommunicate request_size=10 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 0D 02 02 05 B9 BB 17 E6 B5 [13:53:18]Write to MH i2c: E2 0D 00 6B 06 80 0D 02 02 05 00 B9 BB 17 E6 B5 00 00 1B [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 03 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 03 00 6B 06 00 90 00 E5 [13:53:18]RAPDU: 90 00 [13:53:18]wFMCommunicate OK [13:53:18]wFMCommunicate request_size=4 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 0D 03 02 [13:53:18]Write to MH i2c: E2 08 00 6C 06 80 0D 03 02 00 00 00 00 ED [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 0B 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 0B 00 6C 06 00 C2 EF 9F 51 26 7E A7 A1 90 00 7B [13:53:18]RAPDU: C2 EF 9F 51 26 7E A7 A1 90 00 [13:53:18]wFMCommunicate OK [13:53:18]SAM_PROTO_SignData done [13:53:18]FM_MakeSignedData done [13:53:18]CreateOFDProtocolMessage [13:53:18]wFMCommunicate request_size=4 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 11 00 00 [13:53:18]Write to MH i2c: E2 08 00 6D 06 80 11 00 00 00 00 00 00 ED [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 17 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 17 00 6D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [13:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:53:18]wFMCommunicate OK [13:53:18]CreateOFDProtocolMessage done [13:53:18]OFDSenderStorePacket 156303 [13:53:18]StoreOFDPacket docnum=156303 [13:53:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 84 58 07 01 28 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 4D F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 62 02 00 35 04 06 00 75 B9 BB 17 E6 B5 C2 EF 9F 51 26 7E A7 A1 [13:53:18]CheckFolder [13:53:18]dirname=/storage/ofd_packets [13:53:18]CheckFolder done [13:53:18]ProducePacketName [13:53:18]name=ofd_packets/00156303 [13:53:18]NVStorageSaveData ofd_packets/00156303 [13:53:18]File name is /storage/ofd_packets/00156303 [13:53:18]Write 301 bytes [13:53:18]NVStorageSaveData done [13:53:18]OFDSenderStorePacket done [13:53:18]KKMCreateOFDPacket done [13:53:18]NVStorageSaveData kkm_last_timestamp [13:53:18]File name is /storage/kkm_last_timestamp [13:53:18]Write 4 bytes [13:53:18]NVStorageSaveData done [13:53:18]ExternCall_PrintAddStr [13:53:18]wPrintStart [13:53:18]Write to MH i2c: 01 00 00 6E 06 74 [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [13:53:18]RasterBufferAndPrint [13:53:18]line Счет N : (1)99119 [13:53:18]line ИНН: 02508201610067 [13:53:18]line Контрольно-Кассовый Чек [13:53:18]line ПРОДАЖА [13:53:18]line ТРК (МРК, ГНК) : 21 [13:53:18]line Товар: 2710124130 [13:53:18]line Аи-92-К-5 [13:53:18]line 7.480 * 66.90 [13:53:18]line = 500.41 [13:53:18]line НДС 12% НСП 1% [13:53:18]line > о реализуемом товаре [13:53:18]line ОКРУГЛЕНИЕ: -0.41 [13:53:18]line ИТОГО: 500.00 [13:53:18]line Внесено: 500.00 [13:53:18]line СДАЧА: 0.00 [13:53:18]line НСП 1% : 4.43 [13:53:18]line НДС 12% : 53.14 [13:53:18]line Наличными: 500.00 [13:53:18]line Безнал.: 0.00 [13:53:18]line Место: АЗС № 143 "Партнер Нефть" [13:53:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:53:18]line СНО: Общий режим [13:53:18]line Чек 204 26.10.2024 13:53 [13:53:18]line Смена: 536 ФФД: 1.0 [13:53:18]line ЗНМ: 0300000096 [13:53:18]line РНМ: 0000000000091693 [13:53:18]line Версия ККМ: 001 [13:53:18]line ФМ: 0000000000871792 [13:53:18]line ФД: 156303 [13:53:18]line ФПД: 129440568305333 [13:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135317&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156303&fm=129440568305333&tin=02508201610067®Number=0000000000091693&sum=50000 [13:53:18]written 0, free lines is 4095 [13:53:18]OFD Sender: Processing packet 156303 [packets to send 31, broken 30] [13:53:18]ProducePacketName [13:53:18]name=ofd_packets/00156303 [13:53:18]OFD Sender: To server: pG, [13:53:18]CommunicateWithHost lk.salyk.kg:30040 [13:53:18]ConnectInit lk.salyk.kg [13:53:18]Connected sock=10 [13:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 84 58 07 01 28 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 4D F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 62 02 00 35 04 06 00 75 B9 BB 17 E6 B5 C2 EF 9F 51 26 7E A7 A1 [13:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 24 13 47 00 F4 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 31 37 39 32 10 04 04 00 8F 62 02 00 F4 03 04 00 BF 99 1C 67 B6 04 01 00 00 6D BB F3 1F 9B F8 EE 43 [13:53:18]CommunicateWithHost err = 0 [13:53:18]CheckOFDResponse [13:53:18]1017 (14) - 77093643461234 [13:53:18]1041 (16) - 0000000000871792 [13:53:18]1040 (4) - 156303 [13:53:18]1012 (4) - 26.10.2024 07:26 [13:53:18]1206 (1) - 0 [13:53:18]OFD Sender: Remove packet 156303 [13:53:18]ProducePacketName [13:53:18]name=ofd_packets/00156303 [13:53:18]NVStorageDeleteData [13:53:18]Write to MH i2c: 01 00 00 99 06 9F [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 99 06 00 00 00 00 00 F1 0C A3 [13:53:18]RasterBufferAndPrint [13:53:18]line [13:53:18]line [13:53:18]line [13:53:18]line [13:53:18]line [13:53:18]written 0, free lines is 3319 [13:53:19]process_action close_receipt done [13:53:19]requested_data is exist [13:53:19]produce_requested_data [13:53:19]requested_item fm.sn is exist - process it [13:53:19]wFMCommunicate request_size=4 [13:53:19]MH_SAM_APDU [13:53:19]CAPDU: 80 11 00 00 [13:53:19]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [13:53:19]Write i2c OK [13:53:19]MH_I2C_Read... [13:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:19]Read from MH i2c: E2 [13:53:19]MH_I2C_Read... [13:53:19]Read from MH i2c: E2 17 00 [13:53:19]MH_I2C_Read... [13:53:19]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 75 [13:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:53:19]wFMCommunicate OK [13:53:19]requested_item fd.num is exist - process it [13:53:19]SAM_PROTO_GetFieldsCounters [13:53:19]wFMCommunicate request_size=4 [13:53:19]MH_SAM_APDU [13:53:19]CAPDU: 80 13 00 00 [13:53:19]Write to MH i2c: E2 08 00 A1 06 80 13 00 00 00 00 00 00 23 [13:53:19]Write i2c OK [13:53:19]MH_I2C_Read... [13:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:19]Read from MH i2c: E2 [13:53:19]MH_I2C_Read... [13:53:19]Read from MH i2c: E2 62 00 [13:53:19]MH_I2C_Read... [13:53:19]Read from MH i2c: E2 62 00 A1 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [13:53:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:19]wFMCommunicate OK [13:53:19]SAM_PROTO_GetFieldsCounters done [13:53:19]requested_item shift.num is exist - process it [13:53:19]requested_item shift.opened is exist - process it [13:53:19]req_shift_opened [13:53:19]FM_GetShiftState [13:53:19]SAM_PROTO_GetShiftState [13:53:19]wFMCommunicate request_size=4 [13:53:19]MH_SAM_APDU [13:53:19]CAPDU: 80 13 01 00 [13:53:19]Write to MH i2c: E2 08 00 A2 06 80 13 01 00 00 00 00 00 25 [13:53:19]Write i2c OK [13:53:19]MH_I2C_Read... [13:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:19]Read from MH i2c: E2 [13:53:19]MH_I2C_Read... [13:53:19]Read from MH i2c: E2 0E 00 [13:53:19]MH_I2C_Read... [13:53:19]Read from MH i2c: E2 0E 00 A2 06 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5A [13:53:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:53:19]wFMCommunicate OK [13:53:19]SAM_PROTO_GetShiftState done [13:53:19]FM_GetShiftState done [13:53:19]req_shift_opened done [13:53:19]requested_item shift.open_date is exist - process it [13:53:19]req_shift_open_date [13:53:19]req_shift_open_date done [13:53:19]produce_requested_data done [13:53:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156303,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:53:19]process_action_free close_receipt [13:53:19]json_value_free [13:53:19]json_value_free done [13:53:19]process_json_proto returns [13:53:19]Send response to host [13:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156303,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:53:19]free response buf [13:53:19]execute_script done [13:53:19]execute_script returns [13:53:19]free content buf [13:53:19]Sock 9.Close socket [13:53:19]Sock 9.Thread stoped [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:31]accept exits with 8 [13:53:31]New connection [13:53:31]New thread 3066834276 created [13:53:31]Thread 3066977636 joined [13:53:31]Waiting for new connection... [13:53:31] Sock 8.Parse request [13:53:31]Sock 8.Check first char [13:53:31]Sock 8.First char is OK [13:53:31]request: POST /json_proto HTTP/1.0 [13:53:31]Method: POST [13:53:31]URL: /json_proto [13:53:31]Method is POST - this is cgi request [13:53:31]url: /json_proto [13:53:31]query_string will be loaded in cgi processing [13:53:31]execute_cgi json_proto POST (null) [13:53:31]execute_cgi path=json_proto method=POST [13:53:31]POST find Content-Length [13:53:31]Host: 172.17.63.3:8080 [13:53:31]Content-Length: 762 [13:53:31]Content-Type: application/json [13:53:31] [13:53:31]POST finish read [13:53:31]Found Content-Length = 762 [13:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.860, "sum" : 370.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 370.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:31]execute_script... [13:53:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.860, "sum" : 370.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 370.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:31]POST & json_proto [13:53:31]process_json_proto [13:53:31]json parsed OK: [13:53:31]protocol is kg_v1.0 [13:53:31]action value=close_receipt [13:53:31]process_action close_receipt [13:53:31]cmd_close_receipt [13:53:31]MH_GetDate [13:53:31]Write to MH i2c: F0 00 00 A3 06 98 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: F0 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: F0 09 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: F0 09 00 A3 06 00 5C F4 1C 67 50 D1 6C 64 65 [13:53:31]GetLastDocTimeStamp 1729950797 [13:53:31]current date 1729950812 [13:53:31]FM_GetShiftState [13:53:31]SAM_PROTO_GetShiftState [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 13 01 00 [13:53:31]Write to MH i2c: E2 08 00 A4 06 80 13 01 00 00 00 00 00 27 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 0E 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 0E 00 A4 06 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5C [13:53:31]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:53:31]wFMCommunicate OK [13:53:31]SAM_PROTO_GetShiftState done [13:53:31]FM_GetShiftState done [13:53:31]opened in 1729902702 [13:53:31]opened+sec_in_day 1729989102 [13:53:31]quantity*price = 37033 [13:53:31]sum+1 = 37034 [13:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 370.33 НСП 1% : 3.28 НДС 12% : 39.33 Наличными: 0.00 Безнал.: 370.33 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 205 26.10.2024 13:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156304 ФПД: 191321849720419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135332&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156304&fm=191321849720419&tin=02508201610067®Number=0000000000091693&sum=37033 [13:53:33]StoreToDocumentArchive [13:53:33]shift 536 fd 156304 [13:53:33]save to /storage/0536/doc_00156304 [13:53:33]save last doc name /storage/0536/doc_00156304 to /storage/kkm_last_doc_name [13:53:33]save OK [13:53:33]Clear old archive folders... [13:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:33]tlvbuf is 01657490 [13:53:33]SAM_PROTO_ClearQueue [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 09 00 00 [13:53:33]Write to MH i2c: E2 08 00 B1 06 80 09 00 00 00 00 00 00 29 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]SAM_PROTO_ClearQueue done [13:53:33]KKMCreateOFDPacket [13:53:33]OFDProtocolAddRootSTLVToBuf [13:53:33]FM_MakeSignedData [13:53:33]FM_MakeSignedData [13:53:33]SAM_PROTO_SignData [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 01 02 [13:53:33]Write to MH i2c: E2 08 00 B2 06 80 0D 01 02 00 00 00 00 31 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]wFMCommunicate request_size=255 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5C F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 62 02 00 35 04 06 00 AE 01 96 E3 [13:53:33]Write to MH i2c: E2 02 01 B3 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5C F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 62 02 00 35 04 06 00 AE 01 96 E3 00 00 B8 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]wFMCommunicate request_size=7 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 02 02 02 EE 63 [13:53:33]Write to MH i2c: E2 0A 00 B4 06 80 0D 02 02 02 00 EE 63 00 00 89 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 B4 06 00 90 00 2E [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 03 02 [13:53:33]Write to MH i2c: E2 08 00 B5 06 80 0D 03 02 00 00 00 00 36 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 0B 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 0B 00 B5 06 00 44 5E FC 8D 32 16 9F 4E 90 00 97 [13:53:33]RAPDU: 44 5E FC 8D 32 16 9F 4E 90 00 [13:53:33]wFMCommunicate OK [13:53:33]SAM_PROTO_SignData done [13:53:33]FM_MakeSignedData done [13:53:33]CreateOFDProtocolMessage [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 11 00 00 [13:53:33]Write to MH i2c: E2 08 00 B6 06 80 11 00 00 00 00 00 00 36 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 17 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 17 00 B6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [13:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:53:33]wFMCommunicate OK [13:53:33]CreateOFDProtocolMessage done [13:53:33]OFDSenderStorePacket 156304 [13:53:33]StoreOFDPacket docnum=156304 [13:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 37 1E 04 01 5F 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5C F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 62 02 00 35 04 06 00 AE 01 96 E3 EE 63 44 5E FC 8D 32 16 9F 4E [13:53:33]CheckFolder [13:53:33]dirname=/storage/ofd_packets [13:53:33]CheckFolder done [13:53:33]ProducePacketName [13:53:33]name=ofd_packets/00156304 [13:53:33]NVStorageSaveData ofd_packets/00156304 [13:53:33]File name is /storage/ofd_packets/00156304 [13:53:33]Write 298 bytes [13:53:33]NVStorageSaveData done [13:53:33]OFDSenderStorePacket done [13:53:33]KKMCreateOFDPacket done [13:53:33]NVStorageSaveData kkm_last_timestamp [13:53:33]File name is /storage/kkm_last_timestamp [13:53:33]Write 4 bytes [13:53:33]NVStorageSaveData done [13:53:33]ExternCall_PrintAddStr [13:53:33]wPrintStart [13:53:33]Write to MH i2c: 01 00 00 B7 06 BD [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 07 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 FF 0F D2 [13:53:33]RasterBufferAndPrint [13:53:33]line Счет N : (1)99118 [13:53:33]line ИНН: 02508201610067 [13:53:33]line Контрольно-Кассовый Чек [13:53:33]line ПРОДАЖА [13:53:33]line ТРК (МРК, ГНК) : 32 [13:53:33]line Товар: 2710194210 [13:53:33]line ДТ-К-5 [13:53:33]line 4.860 * 76.20 [13:53:33]line = 370.33 [13:53:33]line НДС 12% НСП 1% [13:53:33]line > о реализуемом товаре [13:53:33]line ИТОГО: 370.33 [13:53:33]line НСП 1% : 3.28 [13:53:33]line НДС 12% : 39.33 [13:53:33]line Наличными: 0.00 [13:53:33]line Безнал.: 370.33 [13:53:33]line Место: АЗС № 143 "Партнер Нефть" [13:53:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:53:33]line СНО: Общий режим [13:53:33]line Чек 205 26.10.2024 13:53 [13:53:33]line Смена: 536 ФФД: 1.0 [13:53:33]line ЗНМ: 0300000096 [13:53:33]line РНМ: 0000000000091693 [13:53:33]line Версия ККМ: 001 [13:53:33]line Платежная система: Mbank [13:53:33]line ФМ: 0000000000871792 [13:53:33]line ФД: 156304 [13:53:33]line ФПД: 191321849720419 [13:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135332&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156304&fm=191321849720419&tin=02508201610067®Number=0000000000091693&sum=37033 [13:53:33]OFD Sender: Processing packet 156304 [packets to send 31, broken 30] [13:53:33]ProducePacketName [13:53:33]name=ofd_packets/00156304 [13:53:33]OFD Sender: To server: pG, [13:53:33]CommunicateWithHost lk.salyk.kg:30040 [13:53:33]ConnectInit lk.salyk.kg [13:53:33]written 0, free lines is 4095 [13:53:34]Connected sock=11 [13:53:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 37 1E 04 01 5F 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5C F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 62 02 00 35 04 06 00 AE 01 96 E3 EE 63 44 5E FC 8D 32 16 9F 4E [13:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 24 1F 47 00 A9 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 62 02 00 F4 03 04 00 CF 99 1C 67 B6 04 01 00 00 ED C3 E2 CD 87 64 30 7C [13:53:34]CommunicateWithHost err = 0 [13:53:34]CheckOFDResponse [13:53:34]1017 (14) - 77093643461234 [13:53:34]1041 (16) - 0000000000871792 [13:53:34]1040 (4) - 156304 [13:53:34]1012 (4) - 26.10.2024 07:27 [13:53:34]1206 (1) - 0 [13:53:34]OFD Sender: Remove packet 156304 [13:53:34]ProducePacketName [13:53:34]name=ofd_packets/00156304 [13:53:34]NVStorageDeleteData [13:53:34]Write to MH i2c: 01 00 00 E0 06 E6 [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 07 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 07 00 E0 06 00 00 00 00 00 16 0D 10 [13:53:34]RasterBufferAndPrint [13:53:34]line [13:53:34]line [13:53:34]line [13:53:34]line [13:53:34]line [13:53:34]written 0, free lines is 3358 [13:53:34]process_action close_receipt done [13:53:34]requested_data is exist [13:53:34]produce_requested_data [13:53:34]requested_item fm.sn is exist - process it [13:53:34]wFMCommunicate request_size=4 [13:53:34]MH_SAM_APDU [13:53:34]CAPDU: 80 11 00 00 [13:53:34]Write to MH i2c: E2 08 00 E7 06 80 11 00 00 00 00 00 00 67 [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:34]Read from MH i2c: E2 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 17 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 17 00 E7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BC [13:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:53:34]wFMCommunicate OK [13:53:34]requested_item fd.num is exist - process it [13:53:34]SAM_PROTO_GetFieldsCounters [13:53:34]wFMCommunicate request_size=4 [13:53:34]MH_SAM_APDU [13:53:34]CAPDU: 80 13 00 00 [13:53:34]Write to MH i2c: E2 08 00 E8 06 80 13 00 00 00 00 00 00 6A [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:34]Read from MH i2c: E2 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 62 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 62 00 E8 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 90 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [13:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 90 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:34]wFMCommunicate OK [13:53:34]SAM_PROTO_GetFieldsCounters done [13:53:34]requested_item shift.num is exist - process it [13:53:34]requested_item shift.opened is exist - process it [13:53:34]req_shift_opened [13:53:34]FM_GetShiftState [13:53:34]SAM_PROTO_GetShiftState [13:53:34]wFMCommunicate request_size=4 [13:53:34]MH_SAM_APDU [13:53:34]CAPDU: 80 13 01 00 [13:53:34]Write to MH i2c: E2 08 00 E9 06 80 13 01 00 00 00 00 00 6C [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:34]Read from MH i2c: E2 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 0E 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 0E 00 E9 06 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A1 [13:53:34]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:53:34]wFMCommunicate OK [13:53:34]SAM_PROTO_GetShiftState done [13:53:34]FM_GetShiftState done [13:53:34]req_shift_opened done [13:53:34]requested_item shift.open_date is exist - process it [13:53:34]req_shift_open_date [13:53:34]req_shift_open_date done [13:53:34]produce_requested_data done [13:53:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156304,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:53:34]process_action_free close_receipt [13:53:34]json_value_free [13:53:34]json_value_free done [13:53:34]process_json_proto returns [13:53:34]Send response to host [13:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156304,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:53:34]free response buf [13:53:34]execute_script done [13:53:34]execute_script returns [13:53:34]free content buf [13:53:34]Sock 8.Close socket [13:53:34]Sock 8.Thread stoped [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:41]accept exits with 9 [13:55:41]New connection [13:55:41]New thread 3066977636 created [13:55:41]Thread 3066834276 joined [13:55:41]Waiting for new connection... [13:55:41] Sock 9.Parse request [13:55:41]Sock 9.Check first char [13:55:41]Sock 9.First char is OK [13:55:41]request: POST /json_proto HTTP/1.0 [13:55:41]Method: POST [13:55:41]URL: /json_proto [13:55:41]Method is POST - this is cgi request [13:55:41]url: /json_proto [13:55:41]query_string will be loaded in cgi processing [13:55:41]execute_cgi json_proto POST (null) [13:55:41]execute_cgi path=json_proto method=POST [13:55:41]POST find Content-Length [13:55:41]Host: 172.17.63.3:8080 [13:55:41]Content-Length: 681 [13:55:41]Content-Type: application/json [13:55:41] [13:55:41]POST finish read [13:55:41]Found Content-Length = 681 [13:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:41]execute_script... [13:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:41]POST & json_proto [13:55:41]process_json_proto [13:55:41]json parsed OK: [13:55:41]protocol is kg_v1.0 [13:55:41]action value=close_receipt [13:55:41]process_action close_receipt [13:55:41]cmd_close_receipt [13:55:41]MH_GetDate [13:55:41]Write to MH i2c: F0 00 00 EA 06 DF [13:55:41]Write i2c OK [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: F0 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: F0 09 00 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: F0 09 00 EA 06 00 DD F4 1C 67 50 D1 6C 64 2D [13:55:41]GetLastDocTimeStamp 1729950812 [13:55:41]current date 1729950941 [13:55:41]FM_GetShiftState [13:55:41]SAM_PROTO_GetShiftState [13:55:41]wFMCommunicate request_size=4 [13:55:41]MH_SAM_APDU [13:55:41]CAPDU: 80 13 01 00 [13:55:41]Write to MH i2c: E2 08 00 EB 06 80 13 01 00 00 00 00 00 6E [13:55:41]Write i2c OK [13:55:41]MH_I2C_Read... [13:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:41]Read from MH i2c: E2 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: E2 0E 00 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: E2 0E 00 EB 06 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A3 [13:55:41]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:55:41]wFMCommunicate OK [13:55:41]SAM_PROTO_GetShiftState done [13:55:41]FM_GetShiftState done [13:55:41]opened in 1729902702 [13:55:41]opened+sec_in_day 1729989102 [13:55:41]quantity*price = 100015 [13:55:41]sum+1 = 100017 [13:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 206 26.10.2024 13:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156305 ФПД: 91188643902804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135541&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156305&fm=91188643902804&tin=02508201610067®Number=0000000000091693&sum=100000 [13:55:42]StoreToDocumentArchive [13:55:42]shift 536 fd 156305 [13:55:42]save to /storage/0536/doc_00156305 [13:55:42]save last doc name /storage/0536/doc_00156305 to /storage/kkm_last_doc_name [13:55:42]save OK [13:55:42]Clear old archive folders... [13:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:42]tlvbuf is 0167DD30 [13:55:42]SAM_PROTO_ClearQueue [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 09 00 00 [13:55:42]Write to MH i2c: E2 08 00 F8 06 80 09 00 00 00 00 00 00 70 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 F8 06 00 90 00 72 [13:55:42]RAPDU: 90 00 [13:55:42]wFMCommunicate OK [13:55:42]SAM_PROTO_ClearQueue done [13:55:42]KKMCreateOFDPacket [13:55:42]OFDProtocolAddRootSTLVToBuf [13:55:42]FM_MakeSignedData [13:55:42]FM_MakeSignedData [13:55:42]SAM_PROTO_SignData [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 0D 01 02 [13:55:42]Write to MH i2c: E2 08 00 F9 06 80 0D 01 02 00 00 00 00 78 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [13:55:42]RAPDU: 90 00 [13:55:42]wFMCommunicate OK [13:55:42]wFMCommunicate request_size=255 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DD F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 62 02 00 35 04 06 00 52 [13:55:42]Write to MH i2c: E2 02 01 FA 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DD F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 62 02 00 35 04 06 00 52 00 00 89 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [13:55:42]RAPDU: 90 00 [13:55:42]wFMCommunicate OK [13:55:42]wFMCommunicate request_size=10 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 0D 02 02 05 EF 82 BA 35 54 [13:55:42]Write to MH i2c: E2 0D 00 FB 06 80 0D 02 02 05 00 EF 82 BA 35 54 00 00 39 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [13:55:42]RAPDU: 90 00 [13:55:42]wFMCommunicate OK [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 0D 03 02 [13:55:42]Write to MH i2c: E2 08 00 FC 06 80 0D 03 02 00 00 00 00 7D [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 0B 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 0B 00 FC 06 00 18 57 DC 63 56 71 44 16 90 00 4D [13:55:42]RAPDU: 18 57 DC 63 56 71 44 16 90 00 [13:55:42]wFMCommunicate OK [13:55:42]SAM_PROTO_SignData done [13:55:42]FM_MakeSignedData done [13:55:42]CreateOFDProtocolMessage [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 11 00 00 [13:55:42]Write to MH i2c: E2 08 00 FD 06 80 11 00 00 00 00 00 00 7D [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 17 00 [13:55:42]MH_I2C_Read... [13:55:42]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 31 37 39 32 90 00 D2 [13:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:55:42]wFMCommunicate OK [13:55:42]CreateOFDProtocolMessage done [13:55:42]OFDSenderStorePacket 156305 [13:55:42]StoreOFDPacket docnum=156305 [13:55:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5A E0 07 01 25 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DD F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 62 02 00 35 04 06 00 52 EF 82 BA 35 54 18 57 DC 63 56 71 44 16 [13:55:42]CheckFolder [13:55:42]dirname=/storage/ofd_packets [13:55:42]CheckFolder done [13:55:42]ProducePacketName [13:55:42]name=ofd_packets/00156305 [13:55:42]NVStorageSaveData ofd_packets/00156305 [13:55:42]File name is /storage/ofd_packets/00156305 [13:55:42]Write 301 bytes [13:55:42]NVStorageSaveData done [13:55:42]OFDSenderStorePacket done [13:55:42]KKMCreateOFDPacket done [13:55:42]NVStorageSaveData kkm_last_timestamp [13:55:42]File name is /storage/kkm_last_timestamp [13:55:42]Write 4 bytes [13:55:42]NVStorageSaveData done [13:55:42]ExternCall_PrintAddStr [13:55:42]wPrintStart [13:55:42]Write to MH i2c: 01 00 00 FE 06 04 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: 01 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: 01 07 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 FF 0F 19 [13:55:42]RasterBufferAndPrint [13:55:42]line Счет N : (1)99120 [13:55:42]line ИНН: 02508201610067 [13:55:42]line Контрольно-Кассовый Чек [13:55:42]line ПРОДАЖА [13:55:42]line ТРК (МРК, ГНК) : 21 [13:55:42]line Товар: 2710124130 [13:55:42]line Аи-92-К-5 [13:55:42]line 14.950 * 66.90 [13:55:42]line = 1000.16 [13:55:42]line НДС 12% НСП 1% [13:55:42]line > о реализуемом товаре [13:55:42]line ОКРУГЛЕНИЕ: -0.16 [13:55:42]line ИТОГО: 1000.00 [13:55:42]line Внесено: 1000.00 [13:55:42]line СДАЧА: 0.00 [13:55:42]line НСП 1% : 8.85 [13:55:42]line НДС 12% : 106.21 [13:55:42]line Наличными: 1000.00 [13:55:42]line Безнал.: 0.00 [13:55:42]line Место: АЗС № 143 "Партнер Нефть" [13:55:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:55:42]line СНО: Общий режим [13:55:42]line Чек 206 26.10.2024 13:55 [13:55:42]line Смена: 536 ФФД: 1.0 [13:55:42]line ЗНМ: 0300000096 [13:55:42]line РНМ: 0000000000091693 [13:55:42]line Версия ККМ: 001 [13:55:42]line ФМ: 0000000000871792 [13:55:42]line ФД: 156305 [13:55:42]line ФПД: 91188643902804 [13:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135541&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156305&fm=91188643902804&tin=02508201610067®Number=0000000000091693&sum=100000 [13:55:43]OFD Sender: Processing packet 156305 [packets to send 31, broken 30] [13:55:43]ProducePacketName [13:55:43]name=ofd_packets/00156305 [13:55:43]OFD Sender: To server: pG, [13:55:43]CommunicateWithHost lk.salyk.kg:30040 [13:55:43]ConnectInit lk.salyk.kg [13:55:43]written 0, free lines is 4095 [13:55:43]Connected sock=8 [13:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5A E0 07 01 25 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DD F4 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 62 02 00 35 04 06 00 52 EF 82 BA 35 54 18 57 DC 63 56 71 44 16 [13:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 56 51 47 00 4E 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 31 37 39 32 10 04 04 00 91 62 02 00 F4 03 04 00 50 9A 1C 67 B6 04 01 00 00 CA E7 02 44 6E 15 CE A7 [13:55:43]CommunicateWithHost err = 0 [13:55:43]CheckOFDResponse [13:55:43]1017 (14) - 77093643461234 [13:55:43]1041 (16) - 0000000000871792 [13:55:43]1040 (4) - 156305 [13:55:43]1012 (4) - 26.10.2024 07:29 [13:55:43]1206 (1) - 0 [13:55:43]OFD Sender: Remove packet 156305 [13:55:43]ProducePacketName [13:55:43]name=ofd_packets/00156305 [13:55:43]NVStorageDeleteData [13:55:43]Write to MH i2c: 01 00 00 29 07 30 [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: 01 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: 01 07 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 F6 0C 39 [13:55:43]RasterBufferAndPrint [13:55:43]line [13:55:43]line [13:55:43]line [13:55:43]line [13:55:43]line [13:55:43]written 0, free lines is 3324 [13:55:43]process_action close_receipt done [13:55:43]requested_data is exist [13:55:43]produce_requested_data [13:55:43]requested_item fm.sn is exist - process it [13:55:43]wFMCommunicate request_size=4 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 11 00 00 [13:55:43]Write to MH i2c: E2 08 00 30 07 80 11 00 00 00 00 00 00 B1 [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 17 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 17 00 30 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 06 [13:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:55:43]wFMCommunicate OK [13:55:43]requested_item fd.num is exist - process it [13:55:43]SAM_PROTO_GetFieldsCounters [13:55:43]wFMCommunicate request_size=4 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 13 00 00 [13:55:43]Write to MH i2c: E2 08 00 31 07 80 13 00 00 00 00 00 00 B4 [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 62 00 [13:55:43]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 62 00 31 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 91 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:55:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 91 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:44]wFMCommunicate OK [13:55:44]SAM_PROTO_GetFieldsCounters done [13:55:44]requested_item shift.num is exist - process it [13:55:44]requested_item shift.opened is exist - process it [13:55:44]req_shift_opened [13:55:44]FM_GetShiftState [13:55:44]SAM_PROTO_GetShiftState [13:55:44]wFMCommunicate request_size=4 [13:55:44]MH_SAM_APDU [13:55:44]CAPDU: 80 13 01 00 [13:55:44]Write to MH i2c: E2 08 00 32 07 80 13 01 00 00 00 00 00 B6 [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:44]Read from MH i2c: E2 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 0E 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 0E 00 32 07 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 EB [13:55:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:55:44]wFMCommunicate OK [13:55:44]SAM_PROTO_GetShiftState done [13:55:44]FM_GetShiftState done [13:55:44]req_shift_opened done [13:55:44]requested_item shift.open_date is exist - process it [13:55:44]req_shift_open_date [13:55:44]req_shift_open_date done [13:55:44]produce_requested_data done [13:55:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156305,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:55:44]process_action_free close_receipt [13:55:44]json_value_free [13:55:44]json_value_free done [13:55:44]process_json_proto returns [13:55:44]Send response to host [13:55:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156305,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:55:44]free response buf [13:55:44]execute_script done [13:55:44]execute_script returns [13:55:44]free content buf [13:55:44]Sock 9.Close socket [13:55:44]Sock 9.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:19]accept exits with 10 [13:58:19]New connection [13:58:19]New thread 3066834276 created [13:58:19]Thread 3066977636 joined [13:58:19]Waiting for new connection... [13:58:19] Sock 10.Parse request [13:58:19]Sock 10.Check first char [13:58:19]Sock 10.First char is OK [13:58:19]request: POST /json_proto HTTP/1.0 [13:58:19]Method: POST [13:58:19]URL: /json_proto [13:58:19]Method is POST - this is cgi request [13:58:19]url: /json_proto [13:58:19]query_string will be loaded in cgi processing [13:58:19]execute_cgi json_proto POST (null) [13:58:19]execute_cgi path=json_proto method=POST [13:58:19]POST find Content-Length [13:58:19]Host: 172.17.63.3:8080 [13:58:19]Content-Length: 676 [13:58:19]Content-Type: application/json [13:58:19] [13:58:19]POST finish read [13:58:19]Found Content-Length = 676 [13:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:19]execute_script... [13:58:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:19]POST & json_proto [13:58:19]process_json_proto [13:58:19]json parsed OK: [13:58:19]protocol is kg_v1.0 [13:58:19]action value=close_receipt [13:58:19]process_action close_receipt [13:58:19]cmd_close_receipt [13:58:19]MH_GetDate [13:58:19]Write to MH i2c: F0 00 00 33 07 29 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: F0 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: F0 09 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: F0 09 00 33 07 00 7C F5 1C 67 50 D1 6C 64 17 [13:58:19]GetLastDocTimeStamp 1729950941 [13:58:19]current date 1729951100 [13:58:19]FM_GetShiftState [13:58:19]SAM_PROTO_GetShiftState [13:58:19]wFMCommunicate request_size=4 [13:58:19]MH_SAM_APDU [13:58:19]CAPDU: 80 13 01 00 [13:58:19]Write to MH i2c: E2 08 00 34 07 80 13 01 00 00 00 00 00 B8 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:19]Read from MH i2c: E2 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 0E 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 0E 00 34 07 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 ED [13:58:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:58:19]wFMCommunicate OK [13:58:19]SAM_PROTO_GetShiftState done [13:58:19]FM_GetShiftState done [13:58:19]opened in 1729902702 [13:58:19]opened+sec_in_day 1729989102 [13:58:19]quantity*price = 30038 [13:58:19]sum+1 = 30039 [13:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 207 26.10.2024 13:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156306 ФПД: 80616396826434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135820&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156306&fm=80616396826434&tin=02508201610067®Number=0000000000091693&sum=30000 [13:58:20]StoreToDocumentArchive [13:58:20]shift 536 fd 156306 [13:58:20]save to /storage/0536/doc_00156306 [13:58:20]save last doc name /storage/0536/doc_00156306 to /storage/kkm_last_doc_name [13:58:20]save OK [13:58:20]Clear old archive folders... [13:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:20]tlvbuf is B6EAE3D0 [13:58:20]SAM_PROTO_ClearQueue [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 09 00 00 [13:58:20]Write to MH i2c: E2 08 00 41 07 80 09 00 00 00 00 00 00 BA [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 03 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [13:58:20]RAPDU: 90 00 [13:58:20]wFMCommunicate OK [13:58:20]SAM_PROTO_ClearQueue done [13:58:20]KKMCreateOFDPacket [13:58:20]OFDProtocolAddRootSTLVToBuf [13:58:20]FM_MakeSignedData [13:58:20]FM_MakeSignedData [13:58:20]SAM_PROTO_SignData [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 0D 01 02 [13:58:20]Write to MH i2c: E2 08 00 42 07 80 0D 01 02 00 00 00 00 C2 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 03 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [13:58:20]RAPDU: 90 00 [13:58:20]wFMCommunicate OK [13:58:20]wFMCommunicate request_size=255 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7C F5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 62 02 00 35 04 06 00 49 [13:58:20]Write to MH i2c: E2 02 01 43 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7C F5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 62 02 00 35 04 06 00 49 00 00 66 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 43 07 00 90 00 BE [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=10 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 02 02 05 51 F7 B2 27 42 [13:58:21]Write to MH i2c: E2 0D 00 44 07 80 0D 02 02 05 00 51 F7 B2 27 42 00 00 32 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 03 02 [13:58:21]Write to MH i2c: E2 08 00 45 07 80 0D 03 02 00 00 00 00 C7 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 0B 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 0B 00 45 07 00 F9 1F 13 6B 55 58 0E C0 90 00 D9 [13:58:21]RAPDU: F9 1F 13 6B 55 58 0E C0 90 00 [13:58:21]wFMCommunicate OK [13:58:21]SAM_PROTO_SignData done [13:58:21]FM_MakeSignedData done [13:58:21]CreateOFDProtocolMessage [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 11 00 00 [13:58:21]Write to MH i2c: E2 08 00 46 07 80 11 00 00 00 00 00 00 C7 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 17 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 17 00 46 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1C [13:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:58:21]wFMCommunicate OK [13:58:21]CreateOFDProtocolMessage done [13:58:21]OFDSenderStorePacket 156306 [13:58:21]StoreOFDPacket docnum=156306 [13:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C1 33 07 01 D6 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7C F5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 62 02 00 35 04 06 00 49 51 F7 B2 27 42 F9 1F 13 6B 55 58 0E C0 [13:58:21]CheckFolder [13:58:21]dirname=/storage/ofd_packets [13:58:21]CheckFolder done [13:58:21]ProducePacketName [13:58:21]name=ofd_packets/00156306 [13:58:21]NVStorageSaveData ofd_packets/00156306 [13:58:21]File name is /storage/ofd_packets/00156306 [13:58:21]Write 301 bytes [13:58:21]NVStorageSaveData done [13:58:21]OFDSenderStorePacket done [13:58:21]KKMCreateOFDPacket done [13:58:21]NVStorageSaveData kkm_last_timestamp [13:58:21]File name is /storage/kkm_last_timestamp [13:58:21]Write 4 bytes [13:58:21]NVStorageSaveData done [13:58:21]ExternCall_PrintAddStr [13:58:21]wPrintStart [13:58:21]Write to MH i2c: 01 00 00 47 07 4E [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 07 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 FF 0F 63 [13:58:21]RasterBufferAndPrint [13:58:21]line Счет N : (1)99121 [13:58:21]line ИНН: 02508201610067 [13:58:21]line Контрольно-Кассовый Чек [13:58:21]line ПРОДАЖА [13:58:21]line ТРК (МРК, ГНК) : 31 [13:58:21]line Товар: 2710124130 [13:58:21]line Аи-92-К-5 [13:58:21]line 4.490 * 66.90 [13:58:21]line = 300.38 [13:58:21]line НДС 12% НСП 1% [13:58:21]line > о реализуемом товаре [13:58:21]line ОКРУГЛЕНИЕ: -0.38 [13:58:21]line ИТОГО: 300.00 [13:58:21]line Внесено: 300.00 [13:58:21]line СДАЧА: 0.00 [13:58:21]line НСП 1% : 2.66 [13:58:21]line НДС 12% : 31.90 [13:58:21]line Наличными: 300.00 [13:58:21]line Безнал.: 0.00 [13:58:21]line Место: АЗС № 143 "Партнер Нефть" [13:58:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:58:21]line СНО: Общий режим [13:58:21]line Чек 207 26.10.2024 13:58 [13:58:21]line Смена: 536 ФФД: 1.0 [13:58:21]line ЗНМ: 0300000096 [13:58:21]line РНМ: 0000000000091693 [13:58:21]line Версия ККМ: 001 [13:58:21]line ФМ: 0000000000871792 [13:58:21]line ФД: 156306 [13:58:21]line ФПД: 80616396826434 [13:58:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135820&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156306&fm=80616396826434&tin=02508201610067®Number=0000000000091693&sum=30000 [13:58:21]OFD Sender: Processing packet 156306 [packets to send 31, broken 30] [13:58:21]ProducePacketName [13:58:21]name=ofd_packets/00156306 [13:58:21]OFD Sender: To server: pG, [13:58:21]CommunicateWithHost lk.salyk.kg:30040 [13:58:21]ConnectInit lk.salyk.kg [13:58:21]written 0, free lines is 4095 [13:58:21]Connected sock=9 [13:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C1 33 07 01 D6 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7C F5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 62 02 00 35 04 06 00 49 51 F7 B2 27 42 F9 1F 13 6B 55 58 0E C0 [13:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 78 46 47 00 4B 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 31 37 39 32 10 04 04 00 92 62 02 00 F4 03 04 00 EE 9A 1C 67 B6 04 01 00 00 3F FC 8E 11 BC 94 AA 0D [13:58:21]CommunicateWithHost err = 0 [13:58:21]CheckOFDResponse [13:58:21]1017 (14) - 77093643461234 [13:58:21]1041 (16) - 0000000000871792 [13:58:21]1040 (4) - 156306 [13:58:21]1012 (4) - 26.10.2024 07:31 [13:58:21]1206 (1) - 0 [13:58:21]OFD Sender: Remove packet 156306 [13:58:21]ProducePacketName [13:58:21]name=ofd_packets/00156306 [13:58:21]NVStorageDeleteData [13:58:22]Write to MH i2c: 01 00 00 72 07 79 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 72 07 00 00 00 00 00 ED 0C 79 [13:58:22]RasterBufferAndPrint [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]written 0, free lines is 3315 [13:58:22]process_action close_receipt done [13:58:22]requested_data is exist [13:58:22]produce_requested_data [13:58:22]requested_item fm.sn is exist - process it [13:58:22]wFMCommunicate request_size=4 [13:58:22]MH_SAM_APDU [13:58:22]CAPDU: 80 11 00 00 [13:58:22]Write to MH i2c: E2 08 00 79 07 80 11 00 00 00 00 00 00 FA [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:22]Read from MH i2c: E2 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 17 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 17 00 79 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [13:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:58:22]wFMCommunicate OK [13:58:22]requested_item fd.num is exist - process it [13:58:22]SAM_PROTO_GetFieldsCounters [13:58:22]wFMCommunicate request_size=4 [13:58:22]MH_SAM_APDU [13:58:22]CAPDU: 80 13 00 00 [13:58:22]Write to MH i2c: E2 08 00 7A 07 80 13 00 00 00 00 00 00 FD [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:22]Read from MH i2c: E2 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 62 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 62 00 7A 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 92 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [13:58: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 92 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:22]wFMCommunicate OK [13:58:22]SAM_PROTO_GetFieldsCounters done [13:58:22]requested_item shift.num is exist - process it [13:58:22]requested_item shift.opened is exist - process it [13:58:22]req_shift_opened [13:58:22]FM_GetShiftState [13:58:22]SAM_PROTO_GetShiftState [13:58:22]wFMCommunicate request_size=4 [13:58:22]MH_SAM_APDU [13:58:22]CAPDU: 80 13 01 00 [13:58:22]Write to MH i2c: E2 08 00 7B 07 80 13 01 00 00 00 00 00 FF [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:22]Read from MH i2c: E2 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 0E 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 0E 00 7B 07 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 34 [13:58:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:58:22]wFMCommunicate OK [13:58:22]SAM_PROTO_GetShiftState done [13:58:22]FM_GetShiftState done [13:58:22]req_shift_opened done [13:58:22]requested_item shift.open_date is exist - process it [13:58:22]req_shift_open_date [13:58:22]req_shift_open_date done [13:58:22]produce_requested_data done [13:58:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156306,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:58:22]process_action_free close_receipt [13:58:22]json_value_free [13:58:22]json_value_free done [13:58:22]process_json_proto returns [13:58:22]Send response to host [13:58:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156306,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:58:22]free response buf [13:58:22]execute_script done [13:58:22]execute_script returns [13:58:22]free content buf [13:58:22]Sock 10.Close socket [13:58:22]Sock 10.Thread stoped [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:37]accept exits with 8 [13:59:37]New connection [13:59:37]New thread 3066977636 created [13:59:37]Thread 3066834276 joined [13:59:37]Waiting for new connection... [13:59:37] Sock 8.Parse request [13:59:37]Sock 8.Check first char [13:59:37]Sock 8.First char is OK [13:59:37]request: POST /json_proto HTTP/1.0 [13:59:37]Method: POST [13:59:37]URL: /json_proto [13:59:37]Method is POST - this is cgi request [13:59:37]url: /json_proto [13:59:37]query_string will be loaded in cgi processing [13:59:37]execute_cgi json_proto POST (null) [13:59:37]execute_cgi path=json_proto method=POST [13:59:37]POST find Content-Length [13:59:37]Host: 172.17.63.3:8080 [13:59:37]Content-Length: 676 [13:59:37]Content-Type: application/json [13:59:37] [13:59:37]POST finish read [13:59:37]Found Content-Length = 676 [13:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:37]execute_script... [13:59:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:37]POST & json_proto [13:59:37]process_json_proto [13:59:37]json parsed OK: [13:59:37]protocol is kg_v1.0 [13:59:37]action value=close_receipt [13:59:37]process_action close_receipt [13:59:37]cmd_close_receipt [13:59:37]MH_GetDate [13:59:37]Write to MH i2c: F0 00 00 7C 07 72 [13:59:37]Write i2c OK [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: F0 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: F0 09 00 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: F0 09 00 7C 07 00 CA F5 1C 67 50 D1 6C 64 AE [13:59:37]GetLastDocTimeStamp 1729951100 [13:59:37]current date 1729951178 [13:59:37]FM_GetShiftState [13:59:37]SAM_PROTO_GetShiftState [13:59:37]wFMCommunicate request_size=4 [13:59:37]MH_SAM_APDU [13:59:37]CAPDU: 80 13 01 00 [13:59:37]Write to MH i2c: E2 08 00 7D 07 80 13 01 00 00 00 00 00 01 [13:59:37]Write i2c OK [13:59:37]MH_I2C_Read... [13:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:37]Read from MH i2c: E2 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: E2 0E 00 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: E2 0E 00 7D 07 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 36 [13:59:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:59:37]wFMCommunicate OK [13:59:37]SAM_PROTO_GetShiftState done [13:59:37]FM_GetShiftState done [13:59:37]opened in 1729902702 [13:59:37]opened+sec_in_day 1729989102 [13:59:37]quantity*price = 50041 [13:59:37]sum+1 = 50042 [13:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 208 26.10.2024 13:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156307 ФПД: 144692366141378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135938&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156307&fm=144692366141378&tin=02508201610067®Number=0000000000091693&sum=50000 [13:59:38]StoreToDocumentArchive [13:59:38]shift 536 fd 156307 [13:59:38]save to /storage/0536/doc_00156307 [13:59:38]save last doc name /storage/0536/doc_00156307 to /storage/kkm_last_doc_name [13:59:38]save OK [13:59:38]Clear old archive folders... [13:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:38]tlvbuf is 01675F20 [13:59:38]SAM_PROTO_ClearQueue [13:59:38]wFMCommunicate request_size=4 [13:59:38]MH_SAM_APDU [13:59:38]CAPDU: 80 09 00 00 [13:59:38]Write to MH i2c: E2 08 00 8A 07 80 09 00 00 00 00 00 00 03 [13:59:38]Write i2c OK [13:59:38]MH_I2C_Read... [13:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:38]Read from MH i2c: E2 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: E2 03 00 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: E2 03 00 8A 07 00 90 00 05 [13:59:38]RAPDU: 90 00 [13:59:38]wFMCommunicate OK [13:59:38]SAM_PROTO_ClearQueue done [13:59:38]KKMCreateOFDPacket [13:59:38]OFDProtocolAddRootSTLVToBuf [13:59:38]FM_MakeSignedData [13:59:38]FM_MakeSignedData [13:59:38]SAM_PROTO_SignData [13:59:38]wFMCommunicate request_size=4 [13:59:38]MH_SAM_APDU [13:59:38]CAPDU: 80 0D 01 02 [13:59:38]Write to MH i2c: E2 08 00 8B 07 80 0D 01 02 00 00 00 00 0B [13:59:38]Write i2c OK [13:59:38]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]wFMCommunicate request_size=255 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 CA F5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 62 02 00 35 04 06 00 83 [13:59:39]Write to MH i2c: E2 02 01 8C 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 CA F5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 62 02 00 35 04 06 00 83 00 00 45 [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]wFMCommunicate request_size=10 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 0D 02 02 05 98 D1 15 E7 C2 [13:59:39]Write to MH i2c: E2 0D 00 8D 07 80 0D 02 02 05 00 98 D1 15 E7 C2 00 00 3F [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]wFMCommunicate request_size=4 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 0D 03 02 [13:59:39]Write to MH i2c: E2 08 00 8E 07 80 0D 03 02 00 00 00 00 10 [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 0B 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 0B 00 8E 07 00 9E 37 49 B2 9F 4B 64 E8 90 00 17 [13:59:39]RAPDU: 9E 37 49 B2 9F 4B 64 E8 90 00 [13:59:39]wFMCommunicate OK [13:59:39]SAM_PROTO_SignData done [13:59:39]FM_MakeSignedData done [13:59:39]CreateOFDProtocolMessage [13:59:39]wFMCommunicate request_size=4 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 11 00 00 [13:59:39]Write to MH i2c: E2 08 00 8F 07 80 11 00 00 00 00 00 00 10 [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 17 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 17 00 8F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [13:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:59:39]wFMCommunicate OK [13:59:39]CreateOFDProtocolMessage done [13:59:39]OFDSenderStorePacket 156307 [13:59:39]StoreOFDPacket docnum=156307 [13:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 81 34 07 01 30 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 CA F5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 62 02 00 35 04 06 00 83 98 D1 15 E7 C2 9E 37 49 B2 9F 4B 64 E8 [13:59:39]CheckFolder [13:59:39]dirname=/storage/ofd_packets [13:59:39]CheckFolder done [13:59:39]ProducePacketName [13:59:39]name=ofd_packets/00156307 [13:59:39]NVStorageSaveData ofd_packets/00156307 [13:59:39]File name is /storage/ofd_packets/00156307 [13:59:39]Write 301 bytes [13:59:39]NVStorageSaveData done [13:59:39]OFDSenderStorePacket done [13:59:39]KKMCreateOFDPacket done [13:59:39]NVStorageSaveData kkm_last_timestamp [13:59:39]File name is /storage/kkm_last_timestamp [13:59:39]Write 4 bytes [13:59:39]NVStorageSaveData done [13:59:39]OFD Sender: Processing packet 156307 [packets to send 31, broken 30] [13:59:39]ProducePacketName [13:59:39]name=ofd_packets/00156307 [13:59:39]OFD Sender: To server: pG, [13:59:39]CommunicateWithHost lk.salyk.kg:30040 [13:59:39]ConnectInit lk.salyk.kg [13:59:39]ExternCall_PrintAddStr [13:59:39]wPrintStart [13:59:39]Write to MH i2c: 01 00 00 90 07 97 [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: 01 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: 01 07 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: 01 07 00 90 07 00 00 00 00 00 FF 0F AC [13:59:39]RasterBufferAndPrint [13:59:39]line Счет N : (1)99122 [13:59:39]line ИНН: 02508201610067 [13:59:39]line Контрольно-Кассовый Чек [13:59:39]line ПРОДАЖА [13:59:39]line ТРК (МРК, ГНК) : 21 [13:59:39]line Товар: 2710124130 [13:59:39]line Аи-92-К-5 [13:59:39]line 7.480 * 66.90 [13:59:39]line = 500.41 [13:59:39]line НДС 12% НСП 1% [13:59:39]line > о реализуемом товаре [13:59:39]line ОКРУГЛЕНИЕ: -0.41 [13:59:39]line ИТОГО: 500.00 [13:59:39]line Внесено: 500.00 [13:59:39]line СДАЧА: 0.00 [13:59:39]line НСП 1% : 4.43 [13:59:39]line НДС 12% : 53.14 [13:59:39]line Наличными: 500.00 [13:59:39]line Безнал.: 0.00 [13:59:39]line Место: АЗС № 143 "Партнер Нефть" [13:59:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:59:39]line СНО: Общий режим [13:59:39]line Чек 208 26.10.2024 13:59 [13:59:39]line Смена: 536 ФФД: 1.0 [13:59:39]line ЗНМ: 0300000096 [13:59:39]line РНМ: 0000000000091693 [13:59:39]line Версия ККМ: 001 [13:59:39]line ФМ: 0000000000871792 [13:59:39]line ФД: 156307 [13:59:39]line ФПД: 144692366141378 [13:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135938&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156307&fm=144692366141378&tin=02508201610067®Number=0000000000091693&sum=50000 [13:59:39]Connected sock=11 [13:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 81 34 07 01 30 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 CA F5 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 62 02 00 35 04 06 00 83 98 D1 15 E7 C2 9E 37 49 B2 9F 4B 64 E8 [13:59:39]written 0, free lines is 4095 [13:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 45 50 47 00 4E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 62 02 00 F4 03 04 00 3C 9B 1C 67 B6 04 01 00 00 8E EC 60 F2 95 27 89 20 [13:59:40]CommunicateWithHost err = 0 [13:59:40]CheckOFDResponse [13:59:40]1017 (14) - 77093643461234 [13:59:40]1041 (16) - 0000000000871792 [13:59:40]1040 (4) - 156307 [13:59:40]1012 (4) - 26.10.2024 07:33 [13:59:40]1206 (1) - 0 [13:59:40]OFD Sender: Remove packet 156307 [13:59:40]ProducePacketName [13:59:40]name=ofd_packets/00156307 [13:59:40]NVStorageDeleteData [13:59:40]Write to MH i2c: 01 00 00 BB 07 C2 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 07 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 E5 0C BA [13:59:40]RasterBufferAndPrint [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]written 0, free lines is 3307 [13:59:40]process_action close_receipt done [13:59:40]requested_data is exist [13:59:40]produce_requested_data [13:59:40]requested_item fm.sn is exist - process it [13:59:40]wFMCommunicate request_size=4 [13:59:40]MH_SAM_APDU [13:59:40]CAPDU: 80 11 00 00 [13:59:40]Write to MH i2c: E2 08 00 C2 07 80 11 00 00 00 00 00 00 43 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:40]Read from MH i2c: E2 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 17 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 17 00 C2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 98 [13:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:59:40]wFMCommunicate OK [13:59:40]requested_item fd.num is exist - process it [13:59:40]SAM_PROTO_GetFieldsCounters [13:59:40]wFMCommunicate request_size=4 [13:59:40]MH_SAM_APDU [13:59:40]CAPDU: 80 13 00 00 [13:59:40]Write to MH i2c: E2 08 00 C3 07 80 13 00 00 00 00 00 00 46 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:40]Read from MH i2c: E2 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 62 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 62 00 C3 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 93 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [13:59: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 93 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:40]wFMCommunicate OK [13:59:40]SAM_PROTO_GetFieldsCounters done [13:59:40]requested_item shift.num is exist - process it [13:59:40]requested_item shift.opened is exist - process it [13:59:40]req_shift_opened [13:59:40]FM_GetShiftState [13:59:40]SAM_PROTO_GetShiftState [13:59:40]wFMCommunicate request_size=4 [13:59:40]MH_SAM_APDU [13:59:40]CAPDU: 80 13 01 00 [13:59:40]Write to MH i2c: E2 08 00 C4 07 80 13 01 00 00 00 00 00 48 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]OFD Sender: No OFD packet to send [13:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:40]Read from MH i2c: E2 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 0E 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 0E 00 C4 07 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 7D [13:59:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [13:59:40]wFMCommunicate OK [13:59:40]SAM_PROTO_GetShiftState done [13:59:40]FM_GetShiftState done [13:59:40]req_shift_opened done [13:59:40]requested_item shift.open_date is exist - process it [13:59:40]req_shift_open_date [13:59:40]req_shift_open_date done [13:59:40]produce_requested_data done [13:59:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156307,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [13:59:40]process_action_free close_receipt [13:59:40]json_value_free [13:59:40]json_value_free done [13:59:40]process_json_proto returns [13:59:40]Send response to host [13:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156307,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [13:59:40]free response buf [13:59:40]execute_script done [13:59:40]execute_script returns [13:59:40]free content buf [13:59:40]Sock 8.Close socket [13:59:40]Sock 8.Thread stoped [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:43]accept exits with 9 [14:00:43]New connection [14:00:43]New thread 3066834276 created [14:00:43]Thread 3066977636 joined [14:00:43]Waiting for new connection... [14:00:43] Sock 9.Parse request [14:00:43]Sock 9.Check first char [14:00:43]Sock 9.First char is OK [14:00:43]request: POST /json_proto HTTP/1.0 [14:00:43]Method: POST [14:00:43]URL: /json_proto [14:00:43]Method is POST - this is cgi request [14:00:43]url: /json_proto [14:00:43]query_string will be loaded in cgi processing [14:00:43]execute_cgi json_proto POST (null) [14:00:43]execute_cgi path=json_proto method=POST [14:00:43]POST find Content-Length [14:00:43]Host: 172.17.63.3:8080 [14:00:43]Content-Length: 681 [14:00:43]Content-Type: application/json [14:00:43] [14:00:43]POST finish read [14:00:43]Found Content-Length = 681 [14:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:43]execute_script... [14:00:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:43]POST & json_proto [14:00:43]process_json_proto [14:00:43]json parsed OK: [14:00:43]protocol is kg_v1.0 [14:00:43]action value=close_receipt [14:00:43]process_action close_receipt [14:00:43]cmd_close_receipt [14:00:43]MH_GetDate [14:00:43]Write to MH i2c: F0 00 00 C5 07 BB [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: F0 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: F0 09 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: F0 09 00 C5 07 00 0C F6 1C 67 50 D1 6C 64 3A [14:00:43]GetLastDocTimeStamp 1729951178 [14:00:43]current date 1729951244 [14:00:43]FM_GetShiftState [14:00:43]SAM_PROTO_GetShiftState [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 13 01 00 [14:00:43]Write to MH i2c: E2 08 00 C6 07 80 13 01 00 00 00 00 00 4A [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 0E 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 0E 00 C6 07 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 7F [14:00:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:00:43]wFMCommunicate OK [14:00:43]SAM_PROTO_GetShiftState done [14:00:43]FM_GetShiftState done [14:00:43]opened in 1729902702 [14:00:43]opened+sec_in_day 1729989102 [14:00:43]quantity*price = 100015 [14:00:43]sum+1 = 100017 [14:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 209 26.10.2024 14:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156308 ФПД: 268455819241452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140044&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156308&fm=268455819241452&tin=02508201610067®Number=0000000000091693&sum=100000 [14:00:45]StoreToDocumentArchive [14:00:45]shift 536 fd 156308 [14:00:45]save to /storage/0536/doc_00156308 [14:00:45]save last doc name /storage/0536/doc_00156308 to /storage/kkm_last_doc_name [14:00:45]save OK [14:00:45]Clear old archive folders... [14:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:45]tlvbuf is 016FAE60 [14:00:45]SAM_PROTO_ClearQueue [14:00:45]wFMCommunicate request_size=4 [14:00:45]MH_SAM_APDU [14:00:45]CAPDU: 80 09 00 00 [14:00:45]Write to MH i2c: E2 08 00 D3 07 80 09 00 00 00 00 00 00 4C [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:45]Read from MH i2c: E2 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 03 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [14:00:45]RAPDU: 90 00 [14:00:45]wFMCommunicate OK [14:00:45]SAM_PROTO_ClearQueue done [14:00:45]KKMCreateOFDPacket [14:00:45]OFDProtocolAddRootSTLVToBuf [14:00:45]FM_MakeSignedData [14:00:45]FM_MakeSignedData [14:00:45]SAM_PROTO_SignData [14:00:45]wFMCommunicate request_size=4 [14:00:45]MH_SAM_APDU [14:00:45]CAPDU: 80 0D 01 02 [14:00:45]Write to MH i2c: E2 08 00 D4 07 80 0D 01 02 00 00 00 00 54 [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:45]Read from MH i2c: E2 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 03 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [14:00:45]RAPDU: 90 00 [14:00:45]wFMCommunicate OK [14:00:45]wFMCommunicate request_size=255 [14:00:45]MH_SAM_APDU [14:00:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 0C F6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 62 02 00 35 04 06 00 F4 [14:00:45]Write to MH i2c: E2 02 01 D5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 0C F6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 62 02 00 35 04 06 00 F4 00 00 3E [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:45]Read from MH i2c: E2 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 03 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 03 00 D5 07 00 90 00 50 [14:00:45]RAPDU: 90 00 [14:00:45]wFMCommunicate OK [14:00:45]wFMCommunicate request_size=10 [14:00:45]MH_SAM_APDU [14:00:45]CAPDU: 80 0D 02 02 05 28 BD BE 67 EC [14:00:45]Write to MH i2c: E2 0D 00 D6 07 80 0D 02 02 05 00 28 BD BE 67 EC 00 00 57 [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:45]Read from MH i2c: E2 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 03 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 03 00 D6 07 00 90 00 51 [14:00:45]RAPDU: 90 00 [14:00:45]wFMCommunicate OK [14:00:45]wFMCommunicate request_size=4 [14:00:45]MH_SAM_APDU [14:00:45]CAPDU: 80 0D 03 02 [14:00:45]Write to MH i2c: E2 08 00 D7 07 80 0D 03 02 00 00 00 00 59 [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:45]Read from MH i2c: E2 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 0B 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 0B 00 D7 07 00 DD DB 8D DC 0B EC 40 E1 90 00 93 [14:00:45]RAPDU: DD DB 8D DC 0B EC 40 E1 90 00 [14:00:45]wFMCommunicate OK [14:00:45]SAM_PROTO_SignData done [14:00:45]FM_MakeSignedData done [14:00:45]CreateOFDProtocolMessage [14:00:45]wFMCommunicate request_size=4 [14:00:45]MH_SAM_APDU [14:00:45]CAPDU: 80 11 00 00 [14:00:45]Write to MH i2c: E2 08 00 D8 07 80 11 00 00 00 00 00 00 59 [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:45]Read from MH i2c: E2 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 17 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: E2 17 00 D8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [14:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:45]wFMCommunicate OK [14:00:45]CreateOFDProtocolMessage done [14:00:45]OFDSenderStorePacket 156308 [14:00:45]StoreOFDPacket docnum=156308 [14:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E B7 07 01 5C 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 0C F6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 62 02 00 35 04 06 00 F4 28 BD BE 67 EC DD DB 8D DC 0B EC 40 E1 [14:00:45]CheckFolder [14:00:45]dirname=/storage/ofd_packets [14:00:45]CheckFolder done [14:00:45]ProducePacketName [14:00:45]name=ofd_packets/00156308 [14:00:45]NVStorageSaveData ofd_packets/00156308 [14:00:45]File name is /storage/ofd_packets/00156308 [14:00:45]Write 301 bytes [14:00:45]NVStorageSaveData done [14:00:45]OFDSenderStorePacket done [14:00:45]KKMCreateOFDPacket done [14:00:45]NVStorageSaveData kkm_last_timestamp [14:00:45]File name is /storage/kkm_last_timestamp [14:00:45]Write 4 bytes [14:00:45]NVStorageSaveData done [14:00:45]ExternCall_PrintAddStr [14:00:45]wPrintStart [14:00:45]Write to MH i2c: 01 00 00 D9 07 E0 [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: 01 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: 01 07 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 FF 0F F5 [14:00:45]RasterBufferAndPrint [14:00:45]line Счет N : (1)99123 [14:00:45]line ИНН: 02508201610067 [14:00:45]line Контрольно-Кассовый Чек [14:00:45]line ПРОДАЖА [14:00:45]line ТРК (МРК, ГНК) : 31 [14:00:45]line Товар: 2710124130 [14:00:45]line Аи-92-К-5 [14:00:45]line 14.950 * 66.90 [14:00:45]line = 1000.16 [14:00:45]line НДС 12% НСП 1% [14:00:45]line > о реализуемом товаре [14:00:45]line ОКРУГЛЕНИЕ: -0.16 [14:00:45]line ИТОГО: 1000.00 [14:00:45]line Внесено: 1000.00 [14:00:45]line СДАЧА: 0.00 [14:00:45]line НСП 1% : 8.85 [14:00:45]line НДС 12% : 106.21 [14:00:45]line Наличными: 1000.00 [14:00:45]line Безнал.: 0.00 [14:00:45]line Место: АЗС № 143 "Партнер Нефть" [14:00:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:00:45]line СНО: Общий режим [14:00:45]line Чек 209 26.10.2024 14:00 [14:00:45]line Смена: 536 ФФД: 1.0 [14:00:45]line ЗНМ: 0300000096 [14:00:45]line РНМ: 0000000000091693 [14:00:45]line Версия ККМ: 001 [14:00:45]line ФМ: 0000000000871792 [14:00:45]line ФД: 156308 [14:00:45]line ФПД: 268455819241452 [14:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140044&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156308&fm=268455819241452&tin=02508201610067®Number=0000000000091693&sum=100000 [14:00:45]OFD Sender: Processing packet 156308 [packets to send 31, broken 30] [14:00:45]ProducePacketName [14:00:45]name=ofd_packets/00156308 [14:00:45]OFD Sender: To server: pG, [14:00:45]CommunicateWithHost lk.salyk.kg:30040 [14:00:45]ConnectInit lk.salyk.kg [14:00:45]written 0, free lines is 4095 [14:00:46]Connected sock=10 [14:00:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E B7 07 01 5C 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 0C F6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 62 02 00 35 04 06 00 F4 28 BD BE 67 EC DD DB 8D DC 0B EC 40 E1 [14:00:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5C 02 47 00 F4 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 62 02 00 F4 03 04 00 7E 9B 1C 67 B6 04 01 00 00 C2 20 13 BC F8 10 C4 45 [14:00:46]CommunicateWithHost err = 0 [14:00:46]CheckOFDResponse [14:00:46]1017 (14) - 77093643461234 [14:00:46]1041 (16) - 0000000000871792 [14:00:46]1040 (4) - 156308 [14:00:46]1012 (4) - 26.10.2024 07:34 [14:00:46]1206 (1) - 0 [14:00:46]OFD Sender: Remove packet 156308 [14:00:46]ProducePacketName [14:00:46]name=ofd_packets/00156308 [14:00:46]NVStorageDeleteData [14:00:46]Write to MH i2c: 01 00 00 04 08 0C [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: 01 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: 01 07 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 F9 0C 18 [14:00:46]RasterBufferAndPrint [14:00:46]line [14:00:46]line [14:00:46]line [14:00:46]line [14:00:46]line [14:00:46]written 0, free lines is 3327 [14:00:46]process_action close_receipt done [14:00:46]requested_data is exist [14:00:46]produce_requested_data [14:00:46]requested_item fm.sn is exist - process it [14:00:46]wFMCommunicate request_size=4 [14:00:46]MH_SAM_APDU [14:00:46]CAPDU: 80 11 00 00 [14:00:46]Write to MH i2c: E2 08 00 0B 08 80 11 00 00 00 00 00 00 8D [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:46]Read from MH i2c: E2 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 17 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 17 00 0B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E2 [14:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:46]wFMCommunicate OK [14:00:46]requested_item fd.num is exist - process it [14:00:46]SAM_PROTO_GetFieldsCounters [14:00:46]wFMCommunicate request_size=4 [14:00:46]MH_SAM_APDU [14:00:46]CAPDU: 80 13 00 00 [14:00:46]Write to MH i2c: E2 08 00 0C 08 80 13 00 00 00 00 00 00 90 [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:46]Read from MH i2c: E2 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 62 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 62 00 0C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 94 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [14:00: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 94 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:46]wFMCommunicate OK [14:00:46]SAM_PROTO_GetFieldsCounters done [14:00:46]requested_item shift.num is exist - process it [14:00:46]requested_item shift.opened is exist - process it [14:00:46]req_shift_opened [14:00:46]FM_GetShiftState [14:00:46]SAM_PROTO_GetShiftState [14:00:46]wFMCommunicate request_size=4 [14:00:46]MH_SAM_APDU [14:00:46]CAPDU: 80 13 01 00 [14:00:46]Write to MH i2c: E2 08 00 0D 08 80 13 01 00 00 00 00 00 92 [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 [14:00:46]MH_I2C_Read... [14:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:46]Read from MH i2c: E2 0E 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 0E 00 0D 08 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C7 [14:00:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:00:46]wFMCommunicate OK [14:00:46]SAM_PROTO_GetShiftState done [14:00:46]FM_GetShiftState done [14:00:46]req_shift_opened done [14:00:46]requested_item shift.open_date is exist - process it [14:00:46]req_shift_open_date [14:00:46]req_shift_open_date done [14:00:46]produce_requested_data done [14:00:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156308,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:00:46]process_action_free close_receipt [14:00:46]json_value_free [14:00:46]json_value_free done [14:00:46]process_json_proto returns [14:00:46]Send response to host [14:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156308,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:00:46]free response buf [14:00:46]execute_script done [14:00:46]execute_script returns [14:00:46]free content buf [14:00:46]Sock 9.Close socket [14:00:46]Sock 9.Thread stoped [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:15]accept exits with 8 [14:03:15]New connection [14:03:15]New thread 3066977636 created [14:03:15]Thread 3066834276 joined [14:03:15]Waiting for new connection... [14:03:15] Sock 8.Parse request [14:03:15]Sock 8.Check first char [14:03:15]Sock 8.First char is OK [14:03:15]request: POST /json_proto HTTP/1.0 [14:03:15]Method: POST [14:03:15]URL: /json_proto [14:03:15]Method is POST - this is cgi request [14:03:15]url: /json_proto [14:03:15]query_string will be loaded in cgi processing [14:03:15]execute_cgi json_proto POST (null) [14:03:15]execute_cgi path=json_proto method=POST [14:03:15]POST find Content-Length [14:03:15]Host: 172.17.63.3:8080 [14:03:15]Content-Length: 766 [14:03:15]Content-Type: application/json [14:03:15] [14:03:15]POST finish read [14:03:15]Found Content-Length = 766 [14:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:15]execute_script... [14:03:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:15]POST & json_proto [14:03:15]process_json_proto [14:03:15]json parsed OK: [14:03:15]protocol is kg_v1.0 [14:03:15]action value=close_receipt [14:03:15]process_action close_receipt [14:03:15]cmd_close_receipt [14:03:15]MH_GetDate [14:03:15]Write to MH i2c: F0 00 00 0E 08 05 [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: F0 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: F0 09 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: F0 09 00 0E 08 00 A4 F6 1C 67 50 D1 6C 64 1C [14:03:15]GetLastDocTimeStamp 1729951244 [14:03:15]current date 1729951396 [14:03:15]FM_GetShiftState [14:03:15]SAM_PROTO_GetShiftState [14:03:15]wFMCommunicate request_size=4 [14:03:15]MH_SAM_APDU [14:03:15]CAPDU: 80 13 01 00 [14:03:15]Write to MH i2c: E2 08 00 0F 08 80 13 01 00 00 00 00 00 94 [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:15]Read from MH i2c: E2 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 0E 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 0E 00 0F 08 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C9 [14:03:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:03:15]wFMCommunicate OK [14:03:15]SAM_PROTO_GetShiftState done [14:03:15]FM_GetShiftState done [14:03:15]opened in 1729902702 [14:03:15]opened+sec_in_day 1729989102 [14:03:15]quantity*price = 70044 [14:03:15]sum+1 = 70045 [14:03:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 210 26.10.2024 14:03 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156309 ФПД: 9591352038120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140316&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156309&fm=9591352038120&tin=02508201610067®Number=0000000000091693&sum=70044 [14:03:17]StoreToDocumentArchive [14:03:17]shift 536 fd 156309 [14:03:17]save to /storage/0536/doc_00156309 [14:03:17]save last doc name /storage/0536/doc_00156309 to /storage/kkm_last_doc_name [14:03:17]save OK [14:03:17]Clear old archive folders... [14:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:17]tlvbuf is 016EFF10 [14:03:17]SAM_PROTO_ClearQueue [14:03:17]wFMCommunicate request_size=4 [14:03:17]MH_SAM_APDU [14:03:17]CAPDU: 80 09 00 00 [14:03:17]Write to MH i2c: E2 08 00 1C 08 80 09 00 00 00 00 00 00 96 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 03 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 03 00 1C 08 00 90 00 98 [14:03:17]RAPDU: 90 00 [14:03:17]wFMCommunicate OK [14:03:17]SAM_PROTO_ClearQueue done [14:03:17]KKMCreateOFDPacket [14:03:17]OFDProtocolAddRootSTLVToBuf [14:03:17]FM_MakeSignedData [14:03:17]FM_MakeSignedData [14:03:17]SAM_PROTO_SignData [14:03:17]wFMCommunicate request_size=4 [14:03:17]MH_SAM_APDU [14:03:17]CAPDU: 80 0D 01 02 [14:03:17]Write to MH i2c: E2 08 00 1D 08 80 0D 01 02 00 00 00 00 9E [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 03 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 03 00 1D 08 00 90 00 99 [14:03:17]RAPDU: 90 00 [14:03:17]wFMCommunicate OK [14:03:17]wFMCommunicate request_size=255 [14:03:17]MH_SAM_APDU [14:03: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A4 F6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 62 02 00 35 04 06 00 08 [14:03:17]Write to MH i2c: E2 02 01 1E 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A4 F6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 62 02 00 35 04 06 00 08 00 00 A4 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 03 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 03 00 1E 08 00 90 00 9A [14:03:17]RAPDU: 90 00 [14:03:17]wFMCommunicate OK [14:03:17]wFMCommunicate request_size=10 [14:03:17]MH_SAM_APDU [14:03:17]CAPDU: 80 0D 02 02 05 B9 29 21 92 E8 [14:03:17]Write to MH i2c: E2 0D 00 1F 08 80 0D 02 02 05 00 B9 29 21 92 E8 00 00 28 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 03 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [14:03:17]RAPDU: 90 00 [14:03:17]wFMCommunicate OK [14:03:17]wFMCommunicate request_size=4 [14:03:17]MH_SAM_APDU [14:03:17]CAPDU: 80 0D 03 02 [14:03:17]Write to MH i2c: E2 08 00 20 08 80 0D 03 02 00 00 00 00 A3 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 0B 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 0B 00 20 08 00 BF 40 10 A4 B6 20 41 8D 90 00 FB [14:03:17]RAPDU: BF 40 10 A4 B6 20 41 8D 90 00 [14:03:17]wFMCommunicate OK [14:03:17]SAM_PROTO_SignData done [14:03:17]FM_MakeSignedData done [14:03:17]CreateOFDProtocolMessage [14:03:17]wFMCommunicate request_size=4 [14:03:17]MH_SAM_APDU [14:03:17]CAPDU: 80 11 00 00 [14:03:17]Write to MH i2c: E2 08 00 21 08 80 11 00 00 00 00 00 00 A3 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 17 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 17 00 21 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [14:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:03:17]wFMCommunicate OK [14:03:17]CreateOFDProtocolMessage done [14:03:17]OFDSenderStorePacket 156309 [14:03:17]StoreOFDPacket docnum=156309 [14:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B E1 07 01 D9 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A4 F6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 62 02 00 35 04 06 00 08 B9 29 21 92 E8 BF 40 10 A4 B6 20 41 8D [14:03:17]CheckFolder [14:03:17]dirname=/storage/ofd_packets [14:03:17]CheckFolder done [14:03:17]ProducePacketName [14:03:17]name=ofd_packets/00156309 [14:03:17]NVStorageSaveData ofd_packets/00156309 [14:03:17]File name is /storage/ofd_packets/00156309 [14:03:17]Write 301 bytes [14:03:17]NVStorageSaveData done [14:03:17]OFDSenderStorePacket done [14:03:17]KKMCreateOFDPacket done [14:03:17]NVStorageSaveData kkm_last_timestamp [14:03:17]File name is /storage/kkm_last_timestamp [14:03:17]Write 4 bytes [14:03:17]NVStorageSaveData done [14:03:17]ExternCall_PrintAddStr [14:03:17]wPrintStart [14:03:17]Write to MH i2c: 01 00 00 22 08 2A [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 07 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 07 00 22 08 00 00 00 00 00 FF 0F 3F [14:03:17]RasterBufferAndPrint [14:03:17]line Счет N : (1)99124 [14:03:17]line ИНН: 02508201610067 [14:03:17]line Контрольно-Кассовый Чек [14:03:17]line ПРОДАЖА [14:03:17]line ТРК (МРК, ГНК) : 11 [14:03:17]line Товар: 2710124130 [14:03:17]line Аи-92-К-5 [14:03:17]line 10.470 * 66.90 [14:03:17]line = 700.44 [14:03:17]line НДС 12% НСП 1% [14:03:17]line > о реализуемом товаре [14:03:17]line ИТОГО: 700.44 [14:03:17]line НСП 1% : 6.20 [14:03:17]line НДС 12% : 74.38 [14:03:17]line Наличными: 0.00 [14:03:17]line Безнал.: 700.44 [14:03:17]line Место: АЗС № 143 "Партнер Нефть" [14:03:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:03:17]line СНО: Общий режим [14:03:17]line Чек 210 26.10.2024 14:03 [14:03:17]line Смена: 536 ФФД: 1.0 [14:03:17]line ЗНМ: 0300000096 [14:03:17]line РНМ: 0000000000091693 [14:03:17]line Версия ККМ: 001 [14:03:17]line Платежная система: Mbank [14:03:17]line ФМ: 0000000000871792 [14:03:17]line ФД: 156309 [14:03:17]line ФПД: 9591352038120 [14:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140316&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156309&fm=9591352038120&tin=02508201610067®Number=0000000000091693&sum=70044 [14:03:17]written 0, free lines is 4095 [14:03:17]OFD Sender: Processing packet 156309 [packets to send 31, broken 30] [14:03:17]ProducePacketName [14:03:17]name=ofd_packets/00156309 [14:03:17]OFD Sender: To server: pG, [14:03:17]CommunicateWithHost lk.salyk.kg:30040 [14:03:17]ConnectInit lk.salyk.kg [14:03:18]Connected sock=10 [14:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B E1 07 01 D9 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A4 F6 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 62 02 00 35 04 06 00 08 B9 29 21 92 E8 BF 40 10 A4 B6 20 41 8D [14:03:18]Write to MH i2c: 01 00 00 4B 08 53 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: 01 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: 01 07 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 14 0D 7B [14:03:18]RasterBufferAndPrint [14:03:18]line [14:03:18]line [14:03:18]line [14:03:18]line [14:03:18]line [14:03:18]written 0, free lines is 3353 [14:03:18]process_action close_receipt done [14:03:18]requested_data is exist [14:03:18]produce_requested_data [14:03:18]requested_item fm.sn is exist - process it [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 11 00 00 [14:03:18]Write to MH i2c: E2 08 00 52 08 80 11 00 00 00 00 00 00 D4 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 17 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 17 00 52 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 29 [14:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:03:18]wFMCommunicate OK [14:03:18]requested_item fd.num is exist - process it [14:03:18]SAM_PROTO_GetFieldsCounters [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 13 00 00 [14:03:18]Write to MH i2c: E2 08 00 53 08 80 13 00 00 00 00 00 00 D7 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 68 8D 47 00 AC EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 62 02 00 F4 03 04 00 16 9C 1C 67 B6 04 01 00 00 98 70 43 D8 A5 C0 B9 C5 [14:03:18]CommunicateWithHost err = 0 [14:03:18]CheckOFDResponse [14:03:18]1017 (14) - 77093643461234 [14:03:18]1041 (16) - 0000000000871792 [14:03:18]1040 (4) - 156309 [14:03:18]1012 (4) - 26.10.2024 07:36 [14:03:18]1206 (1) - 0 [14:03:18]OFD Sender: Remove packet 156309 [14:03:18]ProducePacketName [14:03:18]name=ofd_packets/00156309 [14:03:18]NVStorageDeleteData [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 62 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 62 00 53 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 95 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [14:03: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 95 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:18]wFMCommunicate OK [14:03:18]SAM_PROTO_GetFieldsCounters done [14:03:18]requested_item shift.num is exist - process it [14:03:18]requested_item shift.opened is exist - process it [14:03:18]req_shift_opened [14:03:18]FM_GetShiftState [14:03:18]SAM_PROTO_GetShiftState [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 13 01 00 [14:03:18]Write to MH i2c: E2 08 00 54 08 80 13 01 00 00 00 00 00 D9 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 0E 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 0E 00 54 08 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 0E [14:03:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:03:18]wFMCommunicate OK [14:03:18]SAM_PROTO_GetShiftState done [14:03:18]FM_GetShiftState done [14:03:18]req_shift_opened done [14:03:18]requested_item shift.open_date is exist - process it [14:03:18]req_shift_open_date [14:03:18]req_shift_open_date done [14:03:18]produce_requested_data done [14:03:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156309,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:03:18]process_action_free close_receipt [14:03:18]json_value_free [14:03:18]json_value_free done [14:03:18]process_json_proto returns [14:03:18]Send response to host [14:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156309,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:03:18]free response buf [14:03:18]execute_script done [14:03:18]execute_script returns [14:03:18]free content buf [14:03:18]Sock 8.Close socket [14:03:18]Sock 8.Thread stoped [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:57]accept exits with 9 [14:04:57]New connection [14:04:57]New thread 3066834276 created [14:04:57]Thread 3066977636 joined [14:04:57]Waiting for new connection... [14:04:57] Sock 9.Parse request [14:04:57]Sock 9.Check first char [14:04:57]Sock 9.First char is OK [14:04:57]request: POST /json_proto HTTP/1.0 [14:04:57]Method: POST [14:04:57]URL: /json_proto [14:04:57]Method is POST - this is cgi request [14:04:57]url: /json_proto [14:04:57]query_string will be loaded in cgi processing [14:04:57]execute_cgi json_proto POST (null) [14:04:57]execute_cgi path=json_proto method=POST [14:04:57]POST find Content-Length [14:04:57]Host: 172.17.63.3:8080 [14:04:57]Content-Length: 676 [14:04:57]Content-Type: application/json [14:04:57] [14:04:57]POST finish read [14:04:57]Found Content-Length = 676 [14:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:57]execute_script... [14:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:57]POST & json_proto [14:04:57]process_json_proto [14:04:57]json parsed OK: [14:04:57]protocol is kg_v1.0 [14:04:57]action value=close_receipt [14:04:57]process_action close_receipt [14:04:57]cmd_close_receipt [14:04:57]MH_GetDate [14:04:57]Write to MH i2c: F0 00 00 55 08 4C [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: F0 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: F0 09 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: F0 09 00 55 08 00 0A F7 1C 67 50 D1 6C 64 CA [14:04:57]GetLastDocTimeStamp 1729951396 [14:04:57]current date 1729951498 [14:04:57]FM_GetShiftState [14:04:57]SAM_PROTO_GetShiftState [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 13 01 00 [14:04:57]Write to MH i2c: E2 08 00 56 08 80 13 01 00 00 00 00 00 DB [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 0E 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 0E 00 56 08 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 10 [14:04:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:04:57]wFMCommunicate OK [14:04:57]SAM_PROTO_GetShiftState done [14:04:57]FM_GetShiftState done [14:04:57]opened in 1729902702 [14:04:57]opened+sec_in_day 1729989102 [14:04:57]quantity*price = 20003 [14:04:57]sum+1 = 20004 [14:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 211 26.10.2024 14:04 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156310 ФПД: 270070216067231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140458&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156310&fm=270070216067231&tin=02508201610067®Number=0000000000091693&sum=20000 [14:04:59]StoreToDocumentArchive [14:04:59]shift 536 fd 156310 [14:04:59]save to /storage/0536/doc_00156310 [14:04:59]save last doc name /storage/0536/doc_00156310 to /storage/kkm_last_doc_name [14:04:59]save OK [14:04:59]Clear old archive folders... [14:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:59]tlvbuf is 016F05B0 [14:04:59]SAM_PROTO_ClearQueue [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 09 00 00 [14:04:59]Write to MH i2c: E2 08 00 63 08 80 09 00 00 00 00 00 00 DD [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [14:04:59]RAPDU: 90 00 [14:04:59]wFMCommunicate OK [14:04:59]SAM_PROTO_ClearQueue done [14:04:59]KKMCreateOFDPacket [14:04:59]OFDProtocolAddRootSTLVToBuf [14:04:59]FM_MakeSignedData [14:04:59]FM_MakeSignedData [14:04:59]SAM_PROTO_SignData [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 0D 01 02 [14:04:59]Write to MH i2c: E2 08 00 64 08 80 0D 01 02 00 00 00 00 E5 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [14:04:59]RAPDU: 90 00 [14:04:59]wFMCommunicate OK [14:04:59]wFMCommunicate request_size=255 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 0A F7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 62 02 00 35 04 06 00 F5 [14:04:59]Write to MH i2c: E2 02 01 65 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 0A F7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 62 02 00 35 04 06 00 F5 00 00 9B [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [14:04:59]RAPDU: 90 00 [14:04:59]wFMCommunicate OK [14:04:59]wFMCommunicate request_size=10 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 0D 02 02 05 A0 9F 4B 08 9F [14:04:59]Write to MH i2c: E2 0D 00 66 08 80 0D 02 02 05 00 A0 9F 4B 08 9F 00 00 23 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [14:04:59]RAPDU: 90 00 [14:04:59]wFMCommunicate OK [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 0D 03 02 [14:04:59]Write to MH i2c: E2 08 00 67 08 80 0D 03 02 00 00 00 00 EA [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 0B 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 0B 00 67 08 00 2E 7D 24 E4 BA 69 54 3A 90 00 4F [14:04:59]RAPDU: 2E 7D 24 E4 BA 69 54 3A 90 00 [14:04:59]wFMCommunicate OK [14:04:59]SAM_PROTO_SignData done [14:04:59]FM_MakeSignedData done [14:04:59]CreateOFDProtocolMessage [14:04:59]wFMCommunicate request_size=4 [14:04:59]MH_SAM_APDU [14:04:59]CAPDU: 80 11 00 00 [14:04:59]Write to MH i2c: E2 08 00 68 08 80 11 00 00 00 00 00 00 EA [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:59]Read from MH i2c: E2 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 17 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: E2 17 00 68 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3F [14:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:04:59]wFMCommunicate OK [14:04:59]CreateOFDProtocolMessage done [14:04:59]OFDSenderStorePacket 156310 [14:04:59]StoreOFDPacket docnum=156310 [14:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C9 A7 07 01 3B 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 0A F7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 62 02 00 35 04 06 00 F5 A0 9F 4B 08 9F 2E 7D 24 E4 BA 69 54 3A [14:04:59]CheckFolder [14:04:59]dirname=/storage/ofd_packets [14:04:59]CheckFolder done [14:04:59]ProducePacketName [14:04:59]name=ofd_packets/00156310 [14:04:59]NVStorageSaveData ofd_packets/00156310 [14:04:59]File name is /storage/ofd_packets/00156310 [14:04:59]Write 301 bytes [14:04:59]NVStorageSaveData done [14:04:59]OFDSenderStorePacket done [14:04:59]KKMCreateOFDPacket done [14:04:59]NVStorageSaveData kkm_last_timestamp [14:04:59]File name is /storage/kkm_last_timestamp [14:04:59]Write 4 bytes [14:04:59]NVStorageSaveData done [14:04:59]ExternCall_PrintAddStr [14:04:59]wPrintStart [14:04:59]Write to MH i2c: 01 00 00 69 08 71 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: 01 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: 01 07 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: 01 07 00 69 08 00 00 00 00 00 FF 0F 86 [14:04:59]RasterBufferAndPrint [14:04:59]line Счет N : (1)99125 [14:04:59]line ИНН: 02508201610067 [14:04:59]line Контрольно-Кассовый Чек [14:04:59]line ПРОДАЖА [14:04:59]line ТРК (МРК, ГНК) : 31 [14:04:59]line Товар: 2710124130 [14:04:59]line Аи-92-К-5 [14:04:59]line 2.990 * 66.90 [14:04:59]line = 200.03 [14:04:59]line НДС 12% НСП 1% [14:04:59]line > о реализуемом товаре [14:04:59]line ОКРУГЛЕНИЕ: -0.03 [14:04:59]line ИТОГО: 200.00 [14:04:59]line Внесено: 200.00 [14:04:59]line СДАЧА: 0.00 [14:04:59]line НСП 1% : 1.77 [14:04:59]line НДС 12% : 21.24 [14:04:59]line Наличными: 200.00 [14:04:59]line Безнал.: 0.00 [14:04:59]line Место: АЗС № 143 "Партнер Нефть" [14:04:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:04:59]line СНО: Общий режим [14:04:59]line Чек 211 26.10.2024 14:04 [14:04:59]line Смена: 536 ФФД: 1.0 [14:04:59]line ЗНМ: 0300000096 [14:04:59]line РНМ: 0000000000091693 [14:04:59]line Версия ККМ: 001 [14:04:59]line ФМ: 0000000000871792 [14:04:59]line ФД: 156310 [14:04:59]line ФПД: 270070216067231 [14:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140458&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156310&fm=270070216067231&tin=02508201610067®Number=0000000000091693&sum=20000 [14:04:59]OFD Sender: Processing packet 156310 [packets to send 31, broken 30] [14:04:59]ProducePacketName [14:04:59]name=ofd_packets/00156310 [14:04:59]OFD Sender: To server: pG, [14:04:59]CommunicateWithHost lk.salyk.kg:30040 [14:04:59]ConnectInit lk.salyk.kg [14:04:59]written 0, free lines is 4095 [14:05:00]Connected sock=10 [14:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C9 A7 07 01 3B 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 0A F7 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 62 02 00 35 04 06 00 F5 A0 9F 4B 08 9F 2E 7D 24 E4 BA 69 54 3A [14:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 56 6E 47 00 CD 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 62 02 00 F4 03 04 00 7D 9C 1C 67 B6 04 01 00 00 B8 0C B2 AD DD 02 C7 3F [14:05:00]CommunicateWithHost err = 0 [14:05:00]CheckOFDResponse [14:05:00]1017 (14) - 77093643461234 [14:05:00]1041 (16) - 0000000000871792 [14:05:00]1040 (4) - 156310 [14:05:00]1012 (4) - 26.10.2024 07:38 [14:05:00]1206 (1) - 0 [14:05:00]OFD Sender: Remove packet 156310 [14:05:00]ProducePacketName [14:05:00]name=ofd_packets/00156310 [14:05:00]NVStorageDeleteData [14:05:00]Write to MH i2c: 01 00 00 94 08 9C [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 07 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 07 00 94 08 00 00 00 00 00 EB 0C 9A [14:05:00]RasterBufferAndPrint [14:05:00]line [14:05:00]line [14:05:00]line [14:05:00]line [14:05:00]line [14:05:00]written 0, free lines is 3313 [14:05:00]process_action close_receipt done [14:05:00]requested_data is exist [14:05:00]produce_requested_data [14:05:00]requested_item fm.sn is exist - process it [14:05:00]wFMCommunicate request_size=4 [14:05:00]MH_SAM_APDU [14:05:00]CAPDU: 80 11 00 00 [14:05:00]Write to MH i2c: E2 08 00 9B 08 80 11 00 00 00 00 00 00 1D [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 17 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 17 00 9B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 72 [14:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:05:00]wFMCommunicate OK [14:05:00]requested_item fd.num is exist - process it [14:05:00]SAM_PROTO_GetFieldsCounters [14:05:00]wFMCommunicate request_size=4 [14:05:00]MH_SAM_APDU [14:05:00]CAPDU: 80 13 00 00 [14:05:00]Write to MH i2c: E2 08 00 9C 08 80 13 00 00 00 00 00 00 20 [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 62 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 62 00 9C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 96 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [14:05: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 96 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:00]wFMCommunicate OK [14:05:00]SAM_PROTO_GetFieldsCounters done [14:05:00]requested_item shift.num is exist - process it [14:05:00]requested_item shift.opened is exist - process it [14:05:00]req_shift_opened [14:05:00]FM_GetShiftState [14:05:00]SAM_PROTO_GetShiftState [14:05:00]wFMCommunicate request_size=4 [14:05:00]MH_SAM_APDU [14:05:00]CAPDU: 80 13 01 00 [14:05:00]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 0E 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 57 [14:05:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:05:00]wFMCommunicate OK [14:05:00]SAM_PROTO_GetShiftState done [14:05:00]FM_GetShiftState done [14:05:00]req_shift_opened done [14:05:00]requested_item shift.open_date is exist - process it [14:05:00]req_shift_open_date [14:05:00]req_shift_open_date done [14:05:00]produce_requested_data done [14:05:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156310,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:05:00]process_action_free close_receipt [14:05:00]json_value_free [14:05:00]json_value_free done [14:05:00]process_json_proto returns [14:05:00]Send response to host [14:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156310,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:05:00]free response buf [14:05:00]execute_script done [14:05:00]execute_script returns [14:05:00]free content buf [14:05:00]Sock 9.Close socket [14:05:00]Sock 9.Thread stoped [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:08]accept exits with 8 [14:10:08]New connection [14:10:08]New thread 3066977636 created [14:10:08]Thread 3066834276 joined [14:10:08]Waiting for new connection... [14:10:08] Sock 8.Parse request [14:10:08]Sock 8.Check first char [14:10:08]Sock 8.First char is OK [14:10:08]request: POST /json_proto HTTP/1.0 [14:10:08]Method: POST [14:10:08]URL: /json_proto [14:10:08]Method is POST - this is cgi request [14:10:08]url: /json_proto [14:10:08]query_string will be loaded in cgi processing [14:10:08]execute_cgi json_proto POST (null) [14:10:08]execute_cgi path=json_proto method=POST [14:10:08]POST find Content-Length [14:10:08]Host: 172.17.63.3:8080 [14:10:08]Content-Length: 765 [14:10:08]Content-Type: application/json [14:10:08] [14:10:08]POST finish read [14:10:08]Found Content-Length = 765 [14:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:08]execute_script... [14:10:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:08]POST & json_proto [14:10:08]process_json_proto [14:10:08]json parsed OK: [14:10:08]protocol is kg_v1.0 [14:10:08]action value=close_receipt [14:10:08]process_action close_receipt [14:10:08]cmd_close_receipt [14:10:08]MH_GetDate [14:10:08]Write to MH i2c: F0 00 00 9E 08 95 [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 09 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 09 00 9E 08 00 41 F8 1C 67 50 D1 6C 64 4B [14:10:08]GetLastDocTimeStamp 1729951498 [14:10:08]current date 1729951809 [14:10:08]FM_GetShiftState [14:10:08]SAM_PROTO_GetShiftState [14:10:08]wFMCommunicate request_size=4 [14:10:08]MH_SAM_APDU [14:10:08]CAPDU: 80 13 01 00 [14:10:08]Write to MH i2c: E2 08 00 9F 08 80 13 01 00 00 00 00 00 24 [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:08]Read from MH i2c: E2 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 0E 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 0E 00 9F 08 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 59 [14:10:08]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:10:08]wFMCommunicate OK [14:10:08]SAM_PROTO_GetShiftState done [14:10:08]FM_GetShiftState done [14:10:08]opened in 1729902702 [14:10:08]opened+sec_in_day 1729989102 [14:10:08]quantity*price = 30038 [14:10:08]sum+1 = 30039 [14:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 212 26.10.2024 14:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156311 ФПД: 234316563446207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156311&fm=234316563446207&tin=02508201610067®Number=0000000000091693&sum=30038 [14:10:10]StoreToDocumentArchive [14:10:10]shift 536 fd 156311 [14:10:10]save to /storage/0536/doc_00156311 [14:10:10]save last doc name /storage/0536/doc_00156311 to /storage/kkm_last_doc_name [14:10:10]save OK [14:10:10]Clear old archive folders... [14:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:10]tlvbuf is 0169F7D0 [14:10:10]SAM_PROTO_ClearQueue [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 09 00 00 [14:10:10]Write to MH i2c: E2 08 00 AC 08 80 09 00 00 00 00 00 00 26 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]SAM_PROTO_ClearQueue done [14:10:10]KKMCreateOFDPacket [14:10:10]OFDProtocolAddRootSTLVToBuf [14:10:10]FM_MakeSignedData [14:10:10]FM_MakeSignedData [14:10:10]SAM_PROTO_SignData [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 01 02 [14:10:10]Write to MH i2c: E2 08 00 AD 08 80 0D 01 02 00 00 00 00 2E [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=255 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 41 F8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 62 02 00 35 04 06 00 D5 [14:10:10]Write to MH i2c: E2 02 01 AE 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 41 F8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 62 02 00 35 04 06 00 D5 00 00 7C [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=10 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 02 02 05 1C 13 87 79 BF [14:10:10]Write to MH i2c: E2 0D 00 AF 08 80 0D 02 02 05 00 1C 13 87 79 BF 00 00 29 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 03 02 [14:10:10]Write to MH i2c: E2 08 00 B0 08 80 0D 03 02 00 00 00 00 33 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 0B 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 0B 00 B0 08 00 5F DA 5E 9E 2D 28 03 76 90 00 37 [14:10:10]RAPDU: 5F DA 5E 9E 2D 28 03 76 90 00 [14:10:10]wFMCommunicate OK [14:10:10]SAM_PROTO_SignData done [14:10:10]FM_MakeSignedData done [14:10:10]CreateOFDProtocolMessage [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 11 00 00 [14:10:10]Write to MH i2c: E2 08 00 B1 08 80 11 00 00 00 00 00 00 33 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 B1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 88 [14:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:10:10]wFMCommunicate OK [14:10:10]CreateOFDProtocolMessage done [14:10:10]OFDSenderStorePacket 156311 [14:10:10]StoreOFDPacket docnum=156311 [14:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 69 49 07 01 14 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 41 F8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 62 02 00 35 04 06 00 D5 1C 13 87 79 BF 5F DA 5E 9E 2D 28 03 76 [14:10:10]CheckFolder [14:10:10]dirname=/storage/ofd_packets [14:10:10]CheckFolder done [14:10:10]ProducePacketName [14:10:10]name=ofd_packets/00156311 [14:10:10]NVStorageSaveData ofd_packets/00156311 [14:10:10]File name is /storage/ofd_packets/00156311 [14:10:10]Write 301 bytes [14:10:10]NVStorageSaveData done [14:10:10]OFDSenderStorePacket done [14:10:10]KKMCreateOFDPacket done [14:10:10]NVStorageSaveData kkm_last_timestamp [14:10:10]File name is /storage/kkm_last_timestamp [14:10:10]Write 4 bytes [14:10:10]NVStorageSaveData done [14:10:10]ExternCall_PrintAddStr [14:10:10]wPrintStart [14:10:10]Write to MH i2c: 01 00 00 B2 08 BA [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 07 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 07 00 B2 08 00 00 00 00 00 FF 0F CF [14:10:10]RasterBufferAndPrint [14:10:10]line Счет N : (1)99126 [14:10:10]line ИНН: 02508201610067 [14:10:10]line Контрольно-Кассовый Чек [14:10:10]line ПРОДАЖА [14:10:10]line ТРК (МРК, ГНК) : 21 [14:10:10]line Товар: 2710124130 [14:10:10]line Аи-92-К-5 [14:10:10]line 4.490 * 66.90 [14:10:10]line = 300.38 [14:10:10]line НДС 12% НСП 1% [14:10:10]line > о реализуемом товаре [14:10:10]line ИТОГО: 300.38 [14:10:10]line НСП 1% : 2.66 [14:10:10]line НДС 12% : 31.90 [14:10:10]line Наличными: 0.00 [14:10:10]line Безнал.: 300.38 [14:10:10]line Место: АЗС № 143 "Партнер Нефть" [14:10:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:10:10]line СНО: Общий режим [14:10:10]line Чек 212 26.10.2024 14:10 [14:10:10]line Смена: 536 ФФД: 1.0 [14:10:10]line ЗНМ: 0300000096 [14:10:10]line РНМ: 0000000000091693 [14:10:10]line Версия ККМ: 001 [14:10:10]line Платежная система: Mbank [14:10:10]line ФМ: 0000000000871792 [14:10:10]line ФД: 156311 [14:10:10]line ФПД: 234316563446207 [14:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156311&fm=234316563446207&tin=02508201610067®Number=0000000000091693&sum=30038 [14:10:10]OFD Sender: Processing packet 156311 [packets to send 31, broken 30] [14:10:10]ProducePacketName [14:10:10]name=ofd_packets/00156311 [14:10:10]OFD Sender: To server: pG, [14:10:10]CommunicateWithHost lk.salyk.kg:30040 [14:10:10]ConnectInit lk.salyk.kg [14:10:10]written 0, free lines is 4095 [14:10:11]Write to MH i2c: 01 00 00 DB 08 E3 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 07 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 0A 0D 01 [14:10:11]RasterBufferAndPrint [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]written 0, free lines is 3341 [14:10:11]process_action close_receipt done [14:10:11]requested_data is exist [14:10:11]produce_requested_data [14:10:11]requested_item fm.sn is exist - process it [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 11 00 00 [14:10:11]Write to MH i2c: E2 08 00 E2 08 80 11 00 00 00 00 00 00 64 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 17 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 17 00 E2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B9 [14:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:10:11]wFMCommunicate OK [14:10:11]requested_item fd.num is exist - process it [14:10:11]SAM_PROTO_GetFieldsCounters [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 13 00 00 [14:10:11]Write to MH i2c: E2 08 00 E3 08 80 13 00 00 00 00 00 00 67 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 62 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 62 00 E3 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 97 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [14:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 97 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:11]wFMCommunicate OK [14:10:11]SAM_PROTO_GetFieldsCounters done [14:10:11]requested_item shift.num is exist - process it [14:10:11]requested_item shift.opened is exist - process it [14:10:11]req_shift_opened [14:10:11]FM_GetShiftState [14:10:11]SAM_PROTO_GetShiftState [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 13 01 00 [14:10:11]Write to MH i2c: E2 08 00 E4 08 80 13 01 00 00 00 00 00 69 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 0E 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 0E 00 E4 08 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9E [14:10:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:10:11]wFMCommunicate OK [14:10:11]SAM_PROTO_GetShiftState done [14:10:11]FM_GetShiftState done [14:10:11]req_shift_opened done [14:10:11]requested_item shift.open_date is exist - process it [14:10:11]req_shift_open_date [14:10:11]req_shift_open_date done [14:10:11]produce_requested_data done [14:10:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156311,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:10:11]process_action_free close_receipt [14:10:11]json_value_free [14:10:11]json_value_free done [14:10:11]process_json_proto returns [14:10:11]Send response to host [14:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156311,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:10:11]free response buf [14:10:11]execute_script done [14:10:11]execute_script returns [14:10:11]free content buf [14:10:11]Sock 8.Close socket [14:10:11]Sock 8.Thread stoped [14:12:23]ConnectInit Can't connect to host [14:12:23]CommunicateWithHost connect error [14:12:23]CommunicateWithHost err = -1 [14:12:23]OFD Sender: Server communicate error [14:12:28]OFD Sender: Processing packet 156311 [packets to send 31, broken 30] [14:12:28]ProducePacketName [14:12:28]name=ofd_packets/00156311 [14:12:28]OFD Sender: To server: pG, [14:12:28]CommunicateWithHost lk.salyk.kg:30040 [14:12:28]ConnectInit lk.salyk.kg [14:12:28]Connected sock=8 [14:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 69 49 07 01 14 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 41 F8 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 62 02 00 35 04 06 00 D5 1C 13 87 79 BF 5F DA 5E 9E 2D 28 03 76 [14:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 12 23 47 00 EB 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 31 37 39 32 10 04 04 00 97 62 02 00 F4 03 04 00 3D 9E 1C 67 B6 04 01 00 00 8A B9 97 F2 3B 34 DE 14 [14:12:28]CommunicateWithHost err = 0 [14:12:28]CheckOFDResponse [14:12:28]1017 (14) - 77093643461234 [14:12:28]1041 (16) - 0000000000871792 [14:12:28]1040 (4) - 156311 [14:12:28]1012 (4) - 26.10.2024 07:46 [14:12:28]1206 (1) - 0 [14:12:28]OFD Sender: Remove packet 156311 [14:12:28]ProducePacketName [14:12:28]name=ofd_packets/00156311 [14:12:28]NVStorageDeleteData [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:35]accept exits with 9 [14:13:35]New connection [14:13:35]New thread 3066834276 created [14:13:35]Thread 3066977636 joined [14:13:35]Waiting for new connection... [14:13:35] Sock 9.Parse request [14:13:35]Sock 9.Check first char [14:13:35]Sock 9.First char is OK [14:13:35]request: POST /json_proto HTTP/1.0 [14:13:35]Method: POST [14:13:35]URL: /json_proto [14:13:35]Method is POST - this is cgi request [14:13:35]url: /json_proto [14:13:35]query_string will be loaded in cgi processing [14:13:35]execute_cgi json_proto POST (null) [14:13:35]execute_cgi path=json_proto method=POST [14:13:35]POST find Content-Length [14:13:35]Host: 172.17.63.3:8080 [14:13:35]Content-Length: 676 [14:13:35]Content-Type: application/json [14:13:35] [14:13:35]POST finish read [14:13:35]Found Content-Length = 676 [14:13:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:35]execute_script... [14:13:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:35]POST & json_proto [14:13:35]process_json_proto [14:13:35]json parsed OK: [14:13:35]protocol is kg_v1.0 [14:13:35]action value=close_receipt [14:13:35]process_action close_receipt [14:13:35]cmd_close_receipt [14:13:35]MH_GetDate [14:13:35]Write to MH i2c: F0 00 00 E5 08 DC [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: F0 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: F0 09 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: F0 09 00 E5 08 00 10 F9 1C 67 50 D1 6C 64 62 [14:13:35]GetLastDocTimeStamp 1729951809 [14:13:35]current date 1729952016 [14:13:35]FM_GetShiftState [14:13:35]SAM_PROTO_GetShiftState [14:13:35]wFMCommunicate request_size=4 [14:13:35]MH_SAM_APDU [14:13:35]CAPDU: 80 13 01 00 [14:13:35]Write to MH i2c: E2 08 00 E6 08 80 13 01 00 00 00 00 00 6B [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:35]Read from MH i2c: E2 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 0E 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 0E 00 E6 08 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A0 [14:13:35]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:13:35]wFMCommunicate OK [14:13:35]SAM_PROTO_GetShiftState done [14:13:35]FM_GetShiftState done [14:13:35]opened in 1729902702 [14:13:35]opened+sec_in_day 1729989102 [14:13:35]quantity*price = 60009 [14:13:35]sum+1 = 60010 [14:13:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 213 26.10.2024 14:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156312 ФПД: 133642045677089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141336&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156312&fm=133642045677089&tin=02508201610067®Number=0000000000091693&sum=60000 [14:13:36]StoreToDocumentArchive [14:13:36]shift 536 fd 156312 [14:13:36]save to /storage/0536/doc_00156312 [14:13:36]save last doc name /storage/0536/doc_00156312 to /storage/kkm_last_doc_name [14:13:36]save OK [14:13:36]Clear old archive folders... [14:13:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:36]tlvbuf is 01676080 [14:13:36]SAM_PROTO_ClearQueue [14:13:36]wFMCommunicate request_size=4 [14:13:36]MH_SAM_APDU [14:13:36]CAPDU: 80 09 00 00 [14:13:36]Write to MH i2c: E2 08 00 F3 08 80 09 00 00 00 00 00 00 6D [14:13:36]Write i2c OK [14:13:36]MH_I2C_Read... [14:13:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:36]Read from MH i2c: E2 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 03 00 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [14:13:36]RAPDU: 90 00 [14:13:36]wFMCommunicate OK [14:13:36]SAM_PROTO_ClearQueue done [14:13:36]KKMCreateOFDPacket [14:13:36]OFDProtocolAddRootSTLVToBuf [14:13:36]FM_MakeSignedData [14:13:36]FM_MakeSignedData [14:13:36]SAM_PROTO_SignData [14:13:36]wFMCommunicate request_size=4 [14:13:36]MH_SAM_APDU [14:13:36]CAPDU: 80 0D 01 02 [14:13:36]Write to MH i2c: E2 08 00 F4 08 80 0D 01 02 00 00 00 00 75 [14:13:36]Write i2c OK [14:13:36]MH_I2C_Read... [14:13:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:37]Read from MH i2c: E2 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 03 00 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [14:13:37]RAPDU: 90 00 [14:13:37]wFMCommunicate OK [14:13:37]wFMCommunicate request_size=255 [14:13:37]MH_SAM_APDU [14:13:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 10 F9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 62 02 00 35 04 06 00 79 [14:13:37]Write to MH i2c: E2 02 01 F5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 10 F9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 62 02 00 35 04 06 00 79 00 00 D6 [14:13:37]Write i2c OK [14:13:37]MH_I2C_Read... [14:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:37]Read from MH i2c: E2 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 03 00 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [14:13:37]RAPDU: 90 00 [14:13:37]wFMCommunicate OK [14:13:37]wFMCommunicate request_size=10 [14:13:37]MH_SAM_APDU [14:13:37]CAPDU: 80 0D 02 02 05 8B F6 A8 DE 21 [14:13:37]Write to MH i2c: E2 0D 00 F6 08 80 0D 02 02 05 00 8B F6 A8 DE 21 00 00 AA [14:13:37]Write i2c OK [14:13:37]MH_I2C_Read... [14:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:37]Read from MH i2c: E2 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 03 00 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [14:13:37]RAPDU: 90 00 [14:13:37]wFMCommunicate OK [14:13:37]wFMCommunicate request_size=4 [14:13:37]MH_SAM_APDU [14:13:37]CAPDU: 80 0D 03 02 [14:13:37]Write to MH i2c: E2 08 00 F7 08 80 0D 03 02 00 00 00 00 7A [14:13:37]Write i2c OK [14:13:37]MH_I2C_Read... [14:13:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:37]Read from MH i2c: E2 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 0B 00 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 0B 00 F7 08 00 9F 5C C5 3B 14 DE 70 F8 90 00 D0 [14:13:37]RAPDU: 9F 5C C5 3B 14 DE 70 F8 90 00 [14:13:37]wFMCommunicate OK [14:13:37]SAM_PROTO_SignData done [14:13:37]FM_MakeSignedData done [14:13:37]CreateOFDProtocolMessage [14:13:37]wFMCommunicate request_size=4 [14:13:37]MH_SAM_APDU [14:13:37]CAPDU: 80 11 00 00 [14:13:37]Write to MH i2c: E2 08 00 F8 08 80 11 00 00 00 00 00 00 7A [14:13:37]Write i2c OK [14:13:37]MH_I2C_Read... [14:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:37]Read from MH i2c: E2 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 17 00 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 17 00 F8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CF [14:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:13:37]wFMCommunicate OK [14:13:37]CreateOFDProtocolMessage done [14:13:37]OFDSenderStorePacket 156312 [14:13:37]StoreOFDPacket docnum=156312 [14:13:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 D0 07 01 1B 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 10 F9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 62 02 00 35 04 06 00 79 8B F6 A8 DE 21 9F 5C C5 3B 14 DE 70 F8 [14:13:37]CheckFolder [14:13:37]dirname=/storage/ofd_packets [14:13:37]CheckFolder done [14:13:37]ProducePacketName [14:13:37]name=ofd_packets/00156312 [14:13:37]NVStorageSaveData ofd_packets/00156312 [14:13:37]File name is /storage/ofd_packets/00156312 [14:13:37]Write 301 bytes [14:13:37]NVStorageSaveData done [14:13:37]OFDSenderStorePacket done [14:13:37]KKMCreateOFDPacket done [14:13:37]NVStorageSaveData kkm_last_timestamp [14:13:37]File name is /storage/kkm_last_timestamp [14:13:37]Write 4 bytes [14:13:37]NVStorageSaveData done [14:13:37]ExternCall_PrintAddStr [14:13:37]wPrintStart [14:13:37]Write to MH i2c: 01 00 00 F9 08 01 [14:13:37]Write i2c OK [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: 01 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: 01 07 00 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 FF 0F 16 [14:13:37]RasterBufferAndPrint [14:13:37]line Счет N : (1)99127 [14:13:37]line ИНН: 02508201610067 [14:13:37]line Контрольно-Кассовый Чек [14:13:37]line ПРОДАЖА [14:13:37]line ТРК (МРК, ГНК) : 31 [14:13:37]line Товар: 2710124130 [14:13:37]line Аи-92-К-5 [14:13:37]line 8.970 * 66.90 [14:13:37]line = 600.09 [14:13:37]line НДС 12% НСП 1% [14:13:37]line > о реализуемом товаре [14:13:37]line ОКРУГЛЕНИЕ: -0.09 [14:13:37]line ИТОГО: 600.00 [14:13:37]line Внесено: 600.00 [14:13:37]line СДАЧА: 0.00 [14:13:37]line НСП 1% : 5.31 [14:13:37]line НДС 12% : 63.73 [14:13:37]line Наличными: 600.00 [14:13:37]line Безнал.: 0.00 [14:13:37]line Место: АЗС № 143 "Партнер Нефть" [14:13:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:13:37]line СНО: Общий режим [14:13:37]line Чек 213 26.10.2024 14:13 [14:13:37]line Смена: 536 ФФД: 1.0 [14:13:37]line ЗНМ: 0300000096 [14:13:37]line РНМ: 0000000000091693 [14:13:37]line Версия ККМ: 001 [14:13:37]line ФМ: 0000000000871792 [14:13:37]line ФД: 156312 [14:13:37]line ФПД: 133642045677089 [14:13:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141336&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156312&fm=133642045677089&tin=02508201610067®Number=0000000000091693&sum=60000 [14:13:37]OFD Sender: Processing packet 156312 [packets to send 31, broken 30] [14:13:37]ProducePacketName [14:13:37]name=ofd_packets/00156312 [14:13:37]OFD Sender: To server: pG, [14:13:37]CommunicateWithHost lk.salyk.kg:30040 [14:13:37]ConnectInit lk.salyk.kg [14:13:37]written 0, free lines is 4095 [14:13:37]Connected sock=10 [14:13:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 D0 07 01 1B 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 10 F9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 62 02 00 35 04 06 00 79 8B F6 A8 DE 21 9F 5C C5 3B 14 DE 70 F8 [14:13:38]Write to MH i2c: 01 00 00 24 09 2D [14:13:38]Write i2c OK [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: 01 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: 01 07 00 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: 01 07 00 24 09 00 00 00 00 00 EF 0C 2F [14:13:38]RasterBufferAndPrint [14:13:38]line [14:13:38]line [14:13:38]line [14:13:38]line [14:13:38]line [14:13:38]written 0, free lines is 3317 [14:13:38]process_action close_receipt done [14:13:38]requested_data is exist [14:13:38]produce_requested_data [14:13:38]requested_item fm.sn is exist - process it [14:13:38]wFMCommunicate request_size=4 [14:13:38]MH_SAM_APDU [14:13:38]CAPDU: 80 11 00 00 [14:13:38]Write to MH i2c: E2 08 00 2B 09 80 11 00 00 00 00 00 00 AE [14:13:38]Write i2c OK [14:13:38]MH_I2C_Read... [14:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:38]Read from MH i2c: E2 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: E2 17 00 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: E2 17 00 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 03 [14:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:13:38]wFMCommunicate OK [14:13:38]requested_item fd.num is exist - process it [14:13:38]SAM_PROTO_GetFieldsCounters [14:13:38]wFMCommunicate request_size=4 [14:13:38]MH_SAM_APDU [14:13:38]CAPDU: 80 13 00 00 [14:13:38]Write to MH i2c: E2 08 00 2C 09 80 13 00 00 00 00 00 00 B1 [14:13:38]Write i2c OK [14:13:38]MH_I2C_Read... [14:13:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6C 10 47 00 6F FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 62 02 00 F4 03 04 00 82 9E 1C 67 B6 04 01 00 00 4F 64 27 0B FF 7D DD F3 [14:13:38]CommunicateWithHost err = 0 [14:13:38]CheckOFDResponse [14:13:38]1017 (14) - 77093643461234 [14:13:38]1041 (16) - 0000000000871792 [14:13:38]1040 (4) - 156312 [14:13:38]1012 (4) - 26.10.2024 07:47 [14:13:38]1206 (1) - 0 [14:13:38]OFD Sender: Remove packet 156312 [14:13:38]ProducePacketName [14:13:38]name=ofd_packets/00156312 [14:13:38]NVStorageDeleteData [14:13:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:38]Read from MH i2c: E2 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: E2 62 00 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: E2 62 00 2C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 98 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [14:13: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 98 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:38]wFMCommunicate OK [14:13:38]SAM_PROTO_GetFieldsCounters done [14:13:38]requested_item shift.num is exist - process it [14:13:38]requested_item shift.opened is exist - process it [14:13:38]req_shift_opened [14:13:38]FM_GetShiftState [14:13:38]SAM_PROTO_GetShiftState [14:13:38]wFMCommunicate request_size=4 [14:13:38]MH_SAM_APDU [14:13:38]CAPDU: 80 13 01 00 [14:13:38]Write to MH i2c: E2 08 00 2D 09 80 13 01 00 00 00 00 00 B3 [14:13:38]Write i2c OK [14:13:38]MH_I2C_Read... [14:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:38]Read from MH i2c: E2 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: E2 0E 00 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: E2 0E 00 2D 09 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E8 [14:13:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:13:38]wFMCommunicate OK [14:13:38]SAM_PROTO_GetShiftState done [14:13:38]FM_GetShiftState done [14:13:38]req_shift_opened done [14:13:38]requested_item shift.open_date is exist - process it [14:13:38]req_shift_open_date [14:13:38]req_shift_open_date done [14:13:38]produce_requested_data done [14:13:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156312,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:13:38]process_action_free close_receipt [14:13:38]json_value_free [14:13:38]json_value_free done [14:13:38]process_json_proto returns [14:13:38]Send response to host [14:13:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156312,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:13:38]free response buf [14:13:38]execute_script done [14:13:38]execute_script returns [14:13:38]free content buf [14:13:38]Sock 9.Close socket [14:13:38]Sock 9.Thread stoped [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:13]accept exits with 8 [14:17:13]New connection [14:17:13]New thread 3066977636 created [14:17:13]Thread 3066834276 joined [14:17:13]Waiting for new connection... [14:17:13] Sock 8.Parse request [14:17:13]Sock 8.Check first char [14:17:13]Sock 8.First char is OK [14:17:13]request: POST /json_proto HTTP/1.0 [14:17:13]Method: POST [14:17:13]URL: /json_proto [14:17:13]Method is POST - this is cgi request [14:17:13]url: /json_proto [14:17:13]query_string will be loaded in cgi processing [14:17:13]execute_cgi json_proto POST (null) [14:17:13]execute_cgi path=json_proto method=POST [14:17:13]POST find Content-Length [14:17:13]Host: 172.17.63.3:8080 [14:17:13]Content-Length: 676 [14:17:13]Content-Type: application/json [14:17:13] [14:17:13]POST finish read [14:17:13]Found Content-Length = 676 [14:17:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:13]execute_script... [14:17:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:13]POST & json_proto [14:17:13]process_json_proto [14:17:13]json parsed OK: [14:17:13]protocol is kg_v1.0 [14:17:13]action value=close_receipt [14:17:13]process_action close_receipt [14:17:13]cmd_close_receipt [14:17:13]MH_GetDate [14:17:13]Write to MH i2c: F0 00 00 2E 09 26 [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: F0 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: F0 09 00 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: F0 09 00 2E 09 00 E9 F9 1C 67 50 D1 6C 64 85 [14:17:13]GetLastDocTimeStamp 1729952016 [14:17:13]current date 1729952233 [14:17:13]FM_GetShiftState [14:17:13]SAM_PROTO_GetShiftState [14:17:13]wFMCommunicate request_size=4 [14:17:13]MH_SAM_APDU [14:17:13]CAPDU: 80 13 01 00 [14:17:13]Write to MH i2c: E2 08 00 2F 09 80 13 01 00 00 00 00 00 B5 [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:13]Read from MH i2c: E2 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: E2 0E 00 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: E2 0E 00 2F 09 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 EA [14:17:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:17:13]wFMCommunicate OK [14:17:13]SAM_PROTO_GetShiftState done [14:17:13]FM_GetShiftState done [14:17:13]opened in 1729902702 [14:17:13]opened+sec_in_day 1729989102 [14:17:13]quantity*price = 50041 [14:17:13]sum+1 = 50042 [14:17:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 214 26.10.2024 14:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156313 ФПД: 174579406717626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141713&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156313&fm=174579406717626&tin=02508201610067®Number=0000000000091693&sum=50000 [14:17:14]StoreToDocumentArchive [14:17:14]shift 536 fd 156313 [14:17:14]save to /storage/0536/doc_00156313 [14:17:14]save last doc name /storage/0536/doc_00156313 to /storage/kkm_last_doc_name [14:17:14]save OK [14:17:14]Clear old archive folders... [14:17:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:14]tlvbuf is 0169A440 [14:17:14]SAM_PROTO_ClearQueue [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 09 00 00 [14:17:14]Write to MH i2c: E2 08 00 3C 09 80 09 00 00 00 00 00 00 B7 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 3C 09 00 90 00 B9 [14:17:14]RAPDU: 90 00 [14:17:14]wFMCommunicate OK [14:17:14]SAM_PROTO_ClearQueue done [14:17:14]KKMCreateOFDPacket [14:17:14]OFDProtocolAddRootSTLVToBuf [14:17:14]FM_MakeSignedData [14:17:14]FM_MakeSignedData [14:17:14]SAM_PROTO_SignData [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 0D 01 02 [14:17:14]Write to MH i2c: E2 08 00 3D 09 80 0D 01 02 00 00 00 00 BF [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [14:17:14]RAPDU: 90 00 [14:17:14]wFMCommunicate OK [14:17:14]wFMCommunicate request_size=255 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 E9 F9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 62 02 00 35 04 06 00 9E [14:17:14]Write to MH i2c: E2 02 01 3E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 E9 F9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 62 02 00 35 04 06 00 9E 00 00 43 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [14:17:14]RAPDU: 90 00 [14:17:14]wFMCommunicate OK [14:17:14]wFMCommunicate request_size=10 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 0D 02 02 05 C7 6F 85 C2 BA [14:17:14]Write to MH i2c: E2 0D 00 3F 09 80 0D 02 02 05 00 C7 6F 85 C2 BA 00 00 03 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [14:17:14]RAPDU: 90 00 [14:17:14]wFMCommunicate OK [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 0D 03 02 [14:17:14]Write to MH i2c: E2 08 00 40 09 80 0D 03 02 00 00 00 00 C4 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 0B 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 0B 00 40 09 00 99 44 F1 27 41 80 EF 0F 90 00 79 [14:17:14]RAPDU: 99 44 F1 27 41 80 EF 0F 90 00 [14:17:14]wFMCommunicate OK [14:17:14]SAM_PROTO_SignData done [14:17:14]FM_MakeSignedData done [14:17:14]CreateOFDProtocolMessage [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 11 00 00 [14:17:14]Write to MH i2c: E2 08 00 41 09 80 11 00 00 00 00 00 00 C4 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 17 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 17 00 41 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 19 [14:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:17:14]wFMCommunicate OK [14:17:14]CreateOFDProtocolMessage done [14:17:14]OFDSenderStorePacket 156313 [14:17:14]StoreOFDPacket docnum=156313 [14:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE 7C 07 01 E1 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 E9 F9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 62 02 00 35 04 06 00 9E C7 6F 85 C2 BA 99 44 F1 27 41 80 EF 0F [14:17:14]CheckFolder [14:17:14]dirname=/storage/ofd_packets [14:17:14]CheckFolder done [14:17:14]ProducePacketName [14:17:14]name=ofd_packets/00156313 [14:17:14]NVStorageSaveData ofd_packets/00156313 [14:17:14]File name is /storage/ofd_packets/00156313 [14:17:14]Write 301 bytes [14:17:14]NVStorageSaveData done [14:17:14]OFDSenderStorePacket done [14:17:14]KKMCreateOFDPacket done [14:17:14]NVStorageSaveData kkm_last_timestamp [14:17:14]File name is /storage/kkm_last_timestamp [14:17:14]Write 4 bytes [14:17:14]NVStorageSaveData done [14:17:14]ExternCall_PrintAddStr [14:17:14]wPrintStart [14:17:14]Write to MH i2c: 01 00 00 42 09 4B [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: 01 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: 01 07 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: 01 07 00 42 09 00 00 00 00 00 FF 0F 60 [14:17:14]RasterBufferAndPrint [14:17:14]line Счет N : (1)99128 [14:17:14]line ИНН: 02508201610067 [14:17:14]line Контрольно-Кассовый Чек [14:17:14]line ПРОДАЖА [14:17:14]line ТРК (МРК, ГНК) : 11 [14:17:14]line Товар: 2710124130 [14:17:14]line Аи-92-К-5 [14:17:14]line 7.480 * 66.90 [14:17:14]line = 500.41 [14:17:14]line НДС 12% НСП 1% [14:17:14]line > о реализуемом товаре [14:17:14]line ОКРУГЛЕНИЕ: -0.41 [14:17:14]line ИТОГО: 500.00 [14:17:14]line Внесено: 500.00 [14:17:14]line СДАЧА: 0.00 [14:17:14]line НСП 1% : 4.43 [14:17:14]line НДС 12% : 53.14 [14:17:14]line Наличными: 500.00 [14:17:14]line Безнал.: 0.00 [14:17:14]line Место: АЗС № 143 "Партнер Нефть" [14:17:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:17:14]line СНО: Общий режим [14:17:14]line Чек 214 26.10.2024 14:17 [14:17:14]line Смена: 536 ФФД: 1.0 [14:17:14]line ЗНМ: 0300000096 [14:17:14]line РНМ: 0000000000091693 [14:17:14]line Версия ККМ: 001 [14:17:14]line ФМ: 0000000000871792 [14:17:14]line ФД: 156313 [14:17:14]line ФПД: 174579406717626 [14:17:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141713&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156313&fm=174579406717626&tin=02508201610067®Number=0000000000091693&sum=50000 [14:17:15]OFD Sender: Processing packet 156313 [packets to send 31, broken 30] [14:17:15]ProducePacketName [14:17:15]name=ofd_packets/00156313 [14:17:15]OFD Sender: To server: pG, [14:17:15]CommunicateWithHost lk.salyk.kg:30040 [14:17:15]ConnectInit lk.salyk.kg [14:17:15]written 0, free lines is 4095 [14:17:15]Connected sock=10 [14:17:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE 7C 07 01 E1 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 E9 F9 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 62 02 00 35 04 06 00 9E C7 6F 85 C2 BA 99 44 F1 27 41 80 EF 0F [14:17:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BE 4C 47 00 EE 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 62 02 00 F4 03 04 00 5C 9F 1C 67 B6 04 01 00 00 3C AC 92 B8 47 9F C4 9D [14:17:15]CommunicateWithHost err = 0 [14:17:15]CheckOFDResponse [14:17:15]1017 (14) - 77093643461234 [14:17:15]1041 (16) - 0000000000871792 [14:17:15]1040 (4) - 156313 [14:17:15]1012 (4) - 26.10.2024 07:50 [14:17:15]1206 (1) - 0 [14:17:15]OFD Sender: Remove packet 156313 [14:17:15]ProducePacketName [14:17:15]name=ofd_packets/00156313 [14:17:15]NVStorageDeleteData [14:17:15]Write to MH i2c: 01 00 00 6D 09 76 [14:17:15]Write i2c OK [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: 01 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: 01 07 00 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 E4 0C 6D [14:17:15]RasterBufferAndPrint [14:17:15]line [14:17:15]line [14:17:15]line [14:17:15]line [14:17:15]line [14:17:15]written 0, free lines is 3306 [14:17:15]process_action close_receipt done [14:17:15]requested_data is exist [14:17:15]produce_requested_data [14:17:15]requested_item fm.sn is exist - process it [14:17:15]wFMCommunicate request_size=4 [14:17:15]MH_SAM_APDU [14:17:15]CAPDU: 80 11 00 00 [14:17:15]Write to MH i2c: E2 08 00 74 09 80 11 00 00 00 00 00 00 F7 [14:17:15]Write i2c OK [14:17:15]MH_I2C_Read... [14:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:15]Read from MH i2c: E2 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: E2 17 00 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: E2 17 00 74 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4C [14:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:17:15]wFMCommunicate OK [14:17:15]requested_item fd.num is exist - process it [14:17:15]SAM_PROTO_GetFieldsCounters [14:17:15]wFMCommunicate request_size=4 [14:17:15]MH_SAM_APDU [14:17:15]CAPDU: 80 13 00 00 [14:17:15]Write to MH i2c: E2 08 00 75 09 80 13 00 00 00 00 00 00 FA [14:17:15]Write i2c OK [14:17:15]MH_I2C_Read... [14:17:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:15]Read from MH i2c: E2 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: E2 62 00 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: E2 62 00 75 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 99 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [14:17: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 99 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:16]wFMCommunicate OK [14:17:16]SAM_PROTO_GetFieldsCounters done [14:17:16]requested_item shift.num is exist - process it [14:17:16]requested_item shift.opened is exist - process it [14:17:16]req_shift_opened [14:17:16]FM_GetShiftState [14:17:16]SAM_PROTO_GetShiftState [14:17:16]wFMCommunicate request_size=4 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 13 01 00 [14:17:16]Write to MH i2c: E2 08 00 76 09 80 13 01 00 00 00 00 00 FC [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:16]Read from MH i2c: E2 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 0E 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 0E 00 76 09 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 31 [14:17:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:17:16]wFMCommunicate OK [14:17:16]SAM_PROTO_GetShiftState done [14:17:16]FM_GetShiftState done [14:17:16]req_shift_opened done [14:17:16]requested_item shift.open_date is exist - process it [14:17:16]req_shift_open_date [14:17:16]req_shift_open_date done [14:17:16]produce_requested_data done [14:17:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156313,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:17:16]process_action_free close_receipt [14:17:16]json_value_free [14:17:16]json_value_free done [14:17:16]process_json_proto returns [14:17:16]Send response to host [14:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156313,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:17:16]free response buf [14:17:16]execute_script done [14:17:16]execute_script returns [14:17:16]free content buf [14:17:16]Sock 8.Close socket [14:17:16]Sock 8.Thread stoped [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:26]accept exits with 9 [14:23:26]New connection [14:23:26]New thread 3066834276 created [14:23:26]Thread 3066977636 joined [14:23:26]Waiting for new connection... [14:23:26] Sock 9.Parse request [14:23:26]Sock 9.Check first char [14:23:26]Sock 9.First char is OK [14:23:26]request: POST /json_proto HTTP/1.0 [14:23:26]Method: POST [14:23:26]URL: /json_proto [14:23:26]Method is POST - this is cgi request [14:23:26]url: /json_proto [14:23:26]query_string will be loaded in cgi processing [14:23:26]execute_cgi json_proto POST (null) [14:23:26]execute_cgi path=json_proto method=POST [14:23:26]POST find Content-Length [14:23:26]Host: 172.17.63.3:8080 [14:23:26]Content-Length: 681 [14:23:26]Content-Type: application/json [14:23:26] [14:23:26]POST finish read [14:23:26]Found Content-Length = 681 [14:23:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:26]execute_script... [14:23: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)99129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:26]POST & json_proto [14:23:26]process_json_proto [14:23:26]json parsed OK: [14:23:26]protocol is kg_v1.0 [14:23:26]action value=close_receipt [14:23:26]process_action close_receipt [14:23:26]cmd_close_receipt [14:23:26]MH_GetDate [14:23:26]Write to MH i2c: F0 00 00 77 09 6F [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: F0 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: F0 09 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: F0 09 00 77 09 00 5F FB 1C 67 50 D1 6C 64 46 [14:23:26]GetLastDocTimeStamp 1729952233 [14:23:26]current date 1729952607 [14:23:26]FM_GetShiftState [14:23:26]SAM_PROTO_GetShiftState [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 13 01 00 [14:23:26]Write to MH i2c: E2 08 00 78 09 80 13 01 00 00 00 00 00 FE [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 0E 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 0E 00 78 09 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 33 [14:23:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:23:26]wFMCommunicate OK [14:23:26]SAM_PROTO_GetShiftState done [14:23:26]FM_GetShiftState done [14:23:26]opened in 1729902702 [14:23:26]opened+sec_in_day 1729989102 [14:23:26]quantity*price = 100015 [14:23:26]sum+1 = 100017 [14:23:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 215 26.10.2024 14:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156314 ФПД: 9649167709466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142327&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156314&fm=9649167709466&tin=02508201610067®Number=0000000000091693&sum=100000 [14:23:28]StoreToDocumentArchive [14:23:28]shift 536 fd 156314 [14:23:28]save to /storage/0536/doc_00156314 [14:23:28]save last doc name /storage/0536/doc_00156314 to /storage/kkm_last_doc_name [14:23:28]save OK [14:23:28]Clear old archive folders... [14:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:28]tlvbuf is 016F3850 [14:23:28]SAM_PROTO_ClearQueue [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 09 00 00 [14:23:28]Write to MH i2c: E2 08 00 85 09 80 09 00 00 00 00 00 00 00 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]SAM_PROTO_ClearQueue done [14:23:28]KKMCreateOFDPacket [14:23:28]OFDProtocolAddRootSTLVToBuf [14:23:28]FM_MakeSignedData [14:23:28]FM_MakeSignedData [14:23:28]SAM_PROTO_SignData [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 0D 01 02 [14:23:28]Write to MH i2c: E2 08 00 86 09 80 0D 01 02 00 00 00 00 08 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]wFMCommunicate request_size=255 [14:23:28]MH_SAM_APDU [14:23: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 5F FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 62 02 00 35 04 06 00 08 [14:23:28]Write to MH i2c: E2 02 01 87 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 5F FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 62 02 00 35 04 06 00 08 00 00 6A [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]wFMCommunicate request_size=10 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 0D 02 02 05 C6 9F 36 B5 1A [14:23:28]Write to MH i2c: E2 0D 00 88 09 80 0D 02 02 05 00 C6 9F 36 B5 1A 00 00 7F [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 88 09 00 90 00 05 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 0D 03 02 [14:23:28]Write to MH i2c: E2 08 00 89 09 80 0D 03 02 00 00 00 00 0D [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 0B 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 0B 00 89 09 00 D7 56 D9 EB 97 D9 57 B7 90 00 7D [14:23:28]RAPDU: D7 56 D9 EB 97 D9 57 B7 90 00 [14:23:28]wFMCommunicate OK [14:23:28]SAM_PROTO_SignData done [14:23:28]FM_MakeSignedData done [14:23:28]CreateOFDProtocolMessage [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 11 00 00 [14:23:28]Write to MH i2c: E2 08 00 8A 09 80 11 00 00 00 00 00 00 0D [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 17 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 17 00 8A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 62 [14:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:23:28]wFMCommunicate OK [14:23:28]CreateOFDProtocolMessage done [14:23:28]OFDSenderStorePacket 156314 [14:23:28]StoreOFDPacket docnum=156314 [14:23:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C C9 07 01 F4 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 5F FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 62 02 00 35 04 06 00 08 C6 9F 36 B5 1A D7 56 D9 EB 97 D9 57 B7 [14:23:28]CheckFolder [14:23:28]dirname=/storage/ofd_packets [14:23:28]CheckFolder done [14:23:28]ProducePacketName [14:23:28]name=ofd_packets/00156314 [14:23:28]NVStorageSaveData ofd_packets/00156314 [14:23:28]File name is /storage/ofd_packets/00156314 [14:23:28]Write 301 bytes [14:23:28]NVStorageSaveData done [14:23:28]OFDSenderStorePacket done [14:23:28]KKMCreateOFDPacket done [14:23:28]NVStorageSaveData kkm_last_timestamp [14:23:28]File name is /storage/kkm_last_timestamp [14:23:28]Write 4 bytes [14:23:28]NVStorageSaveData done [14:23:28]ExternCall_PrintAddStr [14:23:28]wPrintStart [14:23:28]Write to MH i2c: 01 00 00 8B 09 94 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: 01 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: 01 07 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: 01 07 00 8B 09 00 00 00 00 00 FF 0F A9 [14:23:28]RasterBufferAndPrint [14:23:28]line Счет N : (1)99129 [14:23:28]line ИНН: 02508201610067 [14:23:28]line Контрольно-Кассовый Чек [14:23:28]line ПРОДАЖА [14:23:28]line ТРК (МРК, ГНК) : 21 [14:23:28]line Товар: 2710124130 [14:23:28]line Аи-92-К-5 [14:23:28]line 14.950 * 66.90 [14:23:28]line = 1000.16 [14:23:28]line НДС 12% НСП 1% [14:23:28]line > о реализуемом товаре [14:23:28]line ОКРУГЛЕНИЕ: -0.16 [14:23:28]line ИТОГО: 1000.00 [14:23:28]line Внесено: 1000.00 [14:23:28]line СДАЧА: 0.00 [14:23:28]line НСП 1% : 8.85 [14:23:28]line НДС 12% : 106.21 [14:23:28]line Наличными: 1000.00 [14:23:28]line Безнал.: 0.00 [14:23:28]line Место: АЗС № 143 "Партнер Нефть" [14:23:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:23:28]line СНО: Общий режим [14:23:28]line Чек 215 26.10.2024 14:23 [14:23:28]line Смена: 536 ФФД: 1.0 [14:23:28]line ЗНМ: 0300000096 [14:23:28]line РНМ: 0000000000091693 [14:23:28]line Версия ККМ: 001 [14:23:28]line ФМ: 0000000000871792 [14:23:28]line ФД: 156314 [14:23:28]line ФПД: 9649167709466 [14:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142327&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156314&fm=9649167709466&tin=02508201610067®Number=0000000000091693&sum=100000 [14:23:28]OFD Sender: Processing packet 156314 [packets to send 31, broken 30] [14:23:28]ProducePacketName [14:23:28]name=ofd_packets/00156314 [14:23:28]OFD Sender: To server: pG, [14:23:28]CommunicateWithHost lk.salyk.kg:30040 [14:23:28]ConnectInit lk.salyk.kg [14:23:28]written 0, free lines is 4095 [14:23:29]Connected sock=10 [14:23:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C C9 07 01 F4 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 5F FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 62 02 00 35 04 06 00 08 C6 9F 36 B5 1A D7 56 D9 EB 97 D9 57 B7 [14:23:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2B 2A 47 00 AA 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 62 02 00 F4 03 04 00 D1 A0 1C 67 B6 04 01 00 00 33 79 01 52 DA CF A6 80 [14:23:29]CommunicateWithHost err = 0 [14:23:29]CheckOFDResponse [14:23:29]1017 (14) - 77093643461234 [14:23:29]1041 (16) - 0000000000871792 [14:23:29]1040 (4) - 156314 [14:23:29]1012 (4) - 26.10.2024 07:57 [14:23:29]1206 (1) - 0 [14:23:29]OFD Sender: Remove packet 156314 [14:23:29]ProducePacketName [14:23:29]name=ofd_packets/00156314 [14:23:29]NVStorageDeleteData [14:23:29]Write to MH i2c: 01 00 00 B6 09 BF [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: 01 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: 01 07 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 F5 0C C7 [14:23:29]RasterBufferAndPrint [14:23:29]line [14:23:29]line [14:23:29]line [14:23:29]line [14:23:29]line [14:23:29]written 0, free lines is 3324 [14:23:29]process_action close_receipt done [14:23:29]requested_data is exist [14:23:29]produce_requested_data [14:23:29]requested_item fm.sn is exist - process it [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 11 00 00 [14:23:29]Write to MH i2c: E2 08 00 BD 09 80 11 00 00 00 00 00 00 40 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 17 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 17 00 BD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 95 [14:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:23:29]wFMCommunicate OK [14:23:29]requested_item fd.num is exist - process it [14:23:29]SAM_PROTO_GetFieldsCounters [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 13 00 00 [14:23:29]Write to MH i2c: E2 08 00 BE 09 80 13 00 00 00 00 00 00 43 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 62 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 62 00 BE 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [14:23:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9A 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_GetFieldsCounters done [14:23:29]requested_item shift.num is exist - process it [14:23:29]requested_item shift.opened is exist - process it [14:23:29]req_shift_opened [14:23:29]FM_GetShiftState [14:23:29]SAM_PROTO_GetShiftState [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 13 01 00 [14:23:29]Write to MH i2c: E2 08 00 BF 09 80 13 01 00 00 00 00 00 45 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0E 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0E 00 BF 09 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 7A [14:23:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_GetShiftState done [14:23:29]FM_GetShiftState done [14:23:29]req_shift_opened done [14:23:29]requested_item shift.open_date is exist - process it [14:23:29]req_shift_open_date [14:23:29]req_shift_open_date done [14:23:29]produce_requested_data done [14:23:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156314,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:23:29]process_action_free close_receipt [14:23:29]json_value_free [14:23:29]json_value_free done [14:23:29]process_json_proto returns [14:23:29]Send response to host [14:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156314,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:23:29]free response buf [14:23:29]execute_script done [14:23:29]execute_script returns [14:23:29]free content buf [14:23:29]Sock 9.Close socket [14:23:29]Sock 9.Thread stoped [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:46]accept exits with 8 [14:23:46]New connection [14:23:46]New thread 3066977636 created [14:23:46]Thread 3066834276 joined [14:23:46]Waiting for new connection... [14:23:46] Sock 8.Parse request [14:23:46]Sock 8.Check first char [14:23:46]Sock 8.First char is OK [14:23:46]request: POST /json_proto HTTP/1.0 [14:23:46]Method: POST [14:23:46]URL: /json_proto [14:23:46]Method is POST - this is cgi request [14:23:46]url: /json_proto [14:23:46]query_string will be loaded in cgi processing [14:23:46]execute_cgi json_proto POST (null) [14:23:46]execute_cgi path=json_proto method=POST [14:23:46]POST find Content-Length [14:23:46]Host: 172.17.63.3:8080 [14:23:46]Content-Length: 765 [14:23:46]Content-Type: application/json [14:23:46] [14:23:46]POST finish read [14:23:46]Found Content-Length = 765 [14:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:46]execute_script... [14:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:46]POST & json_proto [14:23:46]process_json_proto [14:23:46]json parsed OK: [14:23:46]protocol is kg_v1.0 [14:23:46]action value=close_receipt [14:23:46]process_action close_receipt [14:23:46]cmd_close_receipt [14:23:46]MH_GetDate [14:23:46]Write to MH i2c: F0 00 00 C0 09 B8 [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: F0 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: F0 09 00 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: F0 09 00 C0 09 00 73 FB 1C 67 50 D1 6C 64 A3 [14:23:46]GetLastDocTimeStamp 1729952607 [14:23:46]current date 1729952627 [14:23:46]FM_GetShiftState [14:23:46]SAM_PROTO_GetShiftState [14:23:46]wFMCommunicate request_size=4 [14:23:46]MH_SAM_APDU [14:23:46]CAPDU: 80 13 01 00 [14:23:46]Write to MH i2c: E2 08 00 C1 09 80 13 01 00 00 00 00 00 47 [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:46]Read from MH i2c: E2 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 0E 00 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 0E 00 C1 09 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 7C [14:23:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:23:46]wFMCommunicate OK [14:23:46]SAM_PROTO_GetShiftState done [14:23:46]FM_GetShiftState done [14:23:46]opened in 1729902702 [14:23:46]opened+sec_in_day 1729989102 [14:23:46]quantity*price = 20003 [14:23:46]sum+1 = 20004 [14:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 216 26.10.2024 14:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156315 ФПД: 91239151908943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142347&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156315&fm=91239151908943&tin=02508201610067®Number=0000000000091693&sum=20003 [14:23:47]StoreToDocumentArchive [14:23:47]shift 536 fd 156315 [14:23:47]save to /storage/0536/doc_00156315 [14:23:47]save last doc name /storage/0536/doc_00156315 to /storage/kkm_last_doc_name [14:23:47]save OK [14:23:47]Clear old archive folders... [14:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:47]tlvbuf is 01676750 [14:23:47]SAM_PROTO_ClearQueue [14:23:47]wFMCommunicate request_size=4 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 09 00 00 [14:23:47]Write to MH i2c: E2 08 00 CE 09 80 09 00 00 00 00 00 00 49 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 03 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [14:23:48]RAPDU: 90 00 [14:23:48]wFMCommunicate OK [14:23:48]SAM_PROTO_ClearQueue done [14:23:48]KKMCreateOFDPacket [14:23:48]OFDProtocolAddRootSTLVToBuf [14:23:48]FM_MakeSignedData [14:23:48]FM_MakeSignedData [14:23:48]SAM_PROTO_SignData [14:23:48]wFMCommunicate request_size=4 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 0D 01 02 [14:23:48]Write to MH i2c: E2 08 00 CF 09 80 0D 01 02 00 00 00 00 51 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 03 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [14:23:48]RAPDU: 90 00 [14:23:48]wFMCommunicate OK [14:23:48]wFMCommunicate request_size=255 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 73 FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 62 02 00 35 04 06 00 52 [14:23:48]Write to MH i2c: E2 02 01 D0 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 73 FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 62 02 00 35 04 06 00 52 00 00 E1 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 03 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [14:23:48]RAPDU: 90 00 [14:23:48]wFMCommunicate OK [14:23:48]wFMCommunicate request_size=10 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 0D 02 02 05 FB 45 3D 38 4F [14:23:48]Write to MH i2c: E2 0D 00 D1 09 80 0D 02 02 05 00 FB 45 3D 38 4F 00 00 62 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 03 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [14:23:48]RAPDU: 90 00 [14:23:48]wFMCommunicate OK [14:23:48]wFMCommunicate request_size=4 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 0D 03 02 [14:23:48]Write to MH i2c: E2 08 00 D2 09 80 0D 03 02 00 00 00 00 56 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 0B 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 0B 00 D2 09 00 39 16 2C F1 0F 9E 75 24 90 00 09 [14:23:48]RAPDU: 39 16 2C F1 0F 9E 75 24 90 00 [14:23:48]wFMCommunicate OK [14:23:48]SAM_PROTO_SignData done [14:23:48]FM_MakeSignedData done [14:23:48]CreateOFDProtocolMessage [14:23:48]wFMCommunicate request_size=4 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 11 00 00 [14:23:48]Write to MH i2c: E2 08 00 D3 09 80 11 00 00 00 00 00 00 56 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:48]Read from MH i2c: E2 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 17 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: E2 17 00 D3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AB [14:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:23:48]wFMCommunicate OK [14:23:48]CreateOFDProtocolMessage done [14:23:48]OFDSenderStorePacket 156315 [14:23:48]StoreOFDPacket docnum=156315 [14:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 69 AD 07 01 AF 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 73 FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 62 02 00 35 04 06 00 52 FB 45 3D 38 4F 39 16 2C F1 0F 9E 75 24 [14:23:48]CheckFolder [14:23:48]dirname=/storage/ofd_packets [14:23:48]CheckFolder done [14:23:48]ProducePacketName [14:23:48]name=ofd_packets/00156315 [14:23:48]NVStorageSaveData ofd_packets/00156315 [14:23:48]File name is /storage/ofd_packets/00156315 [14:23:48]Write 301 bytes [14:23:48]NVStorageSaveData done [14:23:48]OFDSenderStorePacket done [14:23:48]KKMCreateOFDPacket done [14:23:48]NVStorageSaveData kkm_last_timestamp [14:23:48]File name is /storage/kkm_last_timestamp [14:23:48]Write 4 bytes [14:23:48]NVStorageSaveData done [14:23:48]ExternCall_PrintAddStr [14:23:48]wPrintStart [14:23:48]Write to MH i2c: 01 00 00 D4 09 DD [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 D4 09 00 00 00 00 00 FF 0F F2 [14:23:48]RasterBufferAndPrint [14:23:48]line Счет N : (1)99130 [14:23:48]line ИНН: 02508201610067 [14:23:48]line Контрольно-Кассовый Чек [14:23:48]line ПРОДАЖА [14:23:48]line ТРК (МРК, ГНК) : 11 [14:23:48]line Товар: 2710124130 [14:23:48]line Аи-92-К-5 [14:23:48]line 2.990 * 66.90 [14:23:48]line = 200.03 [14:23:48]line НДС 12% НСП 1% [14:23:48]line > о реализуемом товаре [14:23:48]line ИТОГО: 200.03 [14:23:48]line НСП 1% : 1.77 [14:23:48]line НДС 12% : 21.24 [14:23:48]line Наличными: 0.00 [14:23:48]line Безнал.: 200.03 [14:23:48]line Место: АЗС № 143 "Партнер Нефть" [14:23:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:23:48]line СНО: Общий режим [14:23:48]line Чек 216 26.10.2024 14:23 [14:23:48]line Смена: 536 ФФД: 1.0 [14:23:48]line ЗНМ: 0300000096 [14:23:48]line РНМ: 0000000000091693 [14:23:48]line Версия ККМ: 001 [14:23:48]line Платежная система: Mbank [14:23:48]line ФМ: 0000000000871792 [14:23:48]line ФД: 156315 [14:23:48]line ФПД: 91239151908943 [14:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142347&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156315&fm=91239151908943&tin=02508201610067®Number=0000000000091693&sum=20003 [14:23:48]written 0, free lines is 4095 [14:23:48]OFD Sender: Processing packet 156315 [packets to send 31, broken 30] [14:23:48]ProducePacketName [14:23:48]name=ofd_packets/00156315 [14:23:48]OFD Sender: To server: pG, [14:23:48]CommunicateWithHost lk.salyk.kg:30040 [14:23:48]ConnectInit lk.salyk.kg [14:23:48]Connected sock=10 [14:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 69 AD 07 01 AF 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 73 FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 62 02 00 35 04 06 00 52 FB 45 3D 38 4F 39 16 2C F1 0F 9E 75 24 [14:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6D 41 47 00 C8 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 62 02 00 F4 03 04 00 E5 A0 1C 67 B6 04 01 00 00 BC A2 73 95 B2 4F 5E C8 [14:23:48]CommunicateWithHost err = 0 [14:23:48]CheckOFDResponse [14:23:48]1017 (14) - 77093643461234 [14:23:48]1041 (16) - 0000000000871792 [14:23:48]1040 (4) - 156315 [14:23:48]1012 (4) - 26.10.2024 07:57 [14:23:48]1206 (1) - 0 [14:23:48]OFD Sender: Remove packet 156315 [14:23:48]ProducePacketName [14:23:48]name=ofd_packets/00156315 [14:23:48]NVStorageDeleteData [14:23:48]Write to MH i2c: 01 00 00 FD 09 06 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 0E 0D 28 [14:23:48]RasterBufferAndPrint [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]written 0, free lines is 3349 [14:23:48]process_action close_receipt done [14:23:48]requested_data is exist [14:23:48]produce_requested_data [14:23:48]requested_item fm.sn is exist - process it [14:23:48]wFMCommunicate request_size=4 [14:23:48]MH_SAM_APDU [14:23:48]CAPDU: 80 11 00 00 [14:23:48]Write to MH i2c: E2 08 00 04 0A 80 11 00 00 00 00 00 00 88 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:49]Read from MH i2c: E2 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 17 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 17 00 04 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DD [14:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:23:49]wFMCommunicate OK [14:23:49]requested_item fd.num is exist - process it [14:23:49]SAM_PROTO_GetFieldsCounters [14:23:49]wFMCommunicate request_size=4 [14:23:49]MH_SAM_APDU [14:23:49]CAPDU: 80 13 00 00 [14:23:49]Write to MH i2c: E2 08 00 05 0A 80 13 00 00 00 00 00 00 8B [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:49]Read from MH i2c: E2 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 62 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 62 00 05 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [14:23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9B 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:49]wFMCommunicate OK [14:23:49]SAM_PROTO_GetFieldsCounters done [14:23:49]requested_item shift.num is exist - process it [14:23:49]requested_item shift.opened is exist - process it [14:23:49]req_shift_opened [14:23:49]FM_GetShiftState [14:23:49]SAM_PROTO_GetShiftState [14:23:49]wFMCommunicate request_size=4 [14:23:49]MH_SAM_APDU [14:23:49]CAPDU: 80 13 01 00 [14:23:49]Write to MH i2c: E2 08 00 06 0A 80 13 01 00 00 00 00 00 8D [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:49]Read from MH i2c: E2 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 0E 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 0E 00 06 0A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C2 [14:23:49]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:23:49]wFMCommunicate OK [14:23:49]SAM_PROTO_GetShiftState done [14:23:49]FM_GetShiftState done [14:23:49]req_shift_opened done [14:23:49]requested_item shift.open_date is exist - process it [14:23:49]req_shift_open_date [14:23:49]req_shift_open_date done [14:23:49]produce_requested_data done [14:23:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156315,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:23:49]process_action_free close_receipt [14:23:49]json_value_free [14:23:49]json_value_free done [14:23:49]process_json_proto returns [14:23:49]Send response to host [14:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156315,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:23:49]free response buf [14:23:49]execute_script done [14:23:49]execute_script returns [14:23:49]free content buf [14:23:49]Sock 8.Close socket [14:23:49]Sock 8.Thread stoped [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:43]accept exits with 9 [14:24:43]New connection [14:24:43]New thread 3066834276 created [14:24:43]Thread 3066977636 joined [14:24:43]Waiting for new connection... [14:24:43] Sock 9.Parse request [14:24:43]Sock 9.Check first char [14:24:43]Sock 9.First char is OK [14:24:43]request: POST /json_proto HTTP/1.0 [14:24:43]Method: POST [14:24:43]URL: /json_proto [14:24:43]Method is POST - this is cgi request [14:24:43]url: /json_proto [14:24:43]query_string will be loaded in cgi processing [14:24:43]execute_cgi json_proto POST (null) [14:24:43]execute_cgi path=json_proto method=POST [14:24:43]POST find Content-Length [14:24:43]Host: 172.17.63.3:8080 [14:24:43]Content-Length: 765 [14:24:43]Content-Type: application/json [14:24:43] [14:24:43]POST finish read [14:24:43]Found Content-Length = 765 [14:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:43]execute_script... [14:24:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:43]POST & json_proto [14:24:43]process_json_proto [14:24:43]json parsed OK: [14:24:43]protocol is kg_v1.0 [14:24:43]action value=close_receipt [14:24:43]process_action close_receipt [14:24:43]cmd_close_receipt [14:24:43]MH_GetDate [14:24:43]Write to MH i2c: F0 00 00 07 0A 00 [14:24:43]Write i2c OK [14:24:43]MH_I2C_Read... [14:24:43]Read from MH i2c: F0 [14:24:43]MH_I2C_Read... [14:24:43]Read from MH i2c: F0 09 00 [14:24:43]MH_I2C_Read... [14:24:43]Read from MH i2c: F0 09 00 07 0A 00 AC FB 1C 67 50 D1 6C 64 24 [14:24:43]GetLastDocTimeStamp 1729952627 [14:24:43]current date 1729952684 [14:24:43]FM_GetShiftState [14:24:43]SAM_PROTO_GetShiftState [14:24:43]wFMCommunicate request_size=4 [14:24:43]MH_SAM_APDU [14:24:43]CAPDU: 80 13 01 00 [14:24:43]Write to MH i2c: E2 08 00 08 0A 80 13 01 00 00 00 00 00 8F [14:24:43]Write i2c OK [14:24:43]MH_I2C_Read... [14:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:43]Read from MH i2c: E2 [14:24:43]MH_I2C_Read... [14:24:43]Read from MH i2c: E2 0E 00 [14:24:43]MH_I2C_Read... [14:24:43]Read from MH i2c: E2 0E 00 08 0A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C4 [14:24:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:24:43]wFMCommunicate OK [14:24:43]SAM_PROTO_GetShiftState done [14:24:43]FM_GetShiftState done [14:24:43]opened in 1729902702 [14:24:43]opened+sec_in_day 1729989102 [14:24:43]quantity*price = 50041 [14:24:43]sum+1 = 50042 [14:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 217 26.10.2024 14:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156316 ФПД: 2901581658440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142444&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156316&fm=2901581658440&tin=02508201610067®Number=0000000000091693&sum=50041 [14:24:44]StoreToDocumentArchive [14:24:44]shift 536 fd 156316 [14:24:44]save to /storage/0536/doc_00156316 [14:24:44]save last doc name /storage/0536/doc_00156316 to /storage/kkm_last_doc_name [14:24:44]save OK [14:24:44]Clear old archive folders... [14:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:44]tlvbuf is B6F5B010 [14:24:44]SAM_PROTO_ClearQueue [14:24:44]wFMCommunicate request_size=4 [14:24:44]MH_SAM_APDU [14:24:44]CAPDU: 80 09 00 00 [14:24:44]Write to MH i2c: E2 08 00 15 0A 80 09 00 00 00 00 00 00 91 [14:24:44]Write i2c OK [14:24:44]MH_I2C_Read... [14:24:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:44]Read from MH i2c: E2 [14:24:44]MH_I2C_Read... [14:24:44]Read from MH i2c: E2 03 00 [14:24:44]MH_I2C_Read... [14:24:44]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [14:24:44]RAPDU: 90 00 [14:24:44]wFMCommunicate OK [14:24:44]SAM_PROTO_ClearQueue done [14:24:44]KKMCreateOFDPacket [14:24:44]OFDProtocolAddRootSTLVToBuf [14:24:44]FM_MakeSignedData [14:24:44]FM_MakeSignedData [14:24:44]SAM_PROTO_SignData [14:24:44]wFMCommunicate request_size=4 [14:24:44]MH_SAM_APDU [14:24:44]CAPDU: 80 0D 01 02 [14:24:44]Write to MH i2c: E2 08 00 16 0A 80 0D 01 02 00 00 00 00 99 [14:24:44]Write i2c OK [14:24:44]MH_I2C_Read... [14:24:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:44]Read from MH i2c: E2 [14:24:44]MH_I2C_Read... [14:24:44]Read from MH i2c: E2 03 00 [14:24:44]MH_I2C_Read... [14:24:44]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [14:24:44]RAPDU: 90 00 [14:24:44]wFMCommunicate OK [14:24:44]wFMCommunicate request_size=255 [14:24:44]MH_SAM_APDU [14:24:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 AC FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 62 02 00 35 04 06 00 02 [14:24:44]Write to MH i2c: E2 02 01 17 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 AC FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 62 02 00 35 04 06 00 02 00 00 9E [14:24:44]Write i2c OK [14:24:44]MH_I2C_Read... [14:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:45]Read from MH i2c: E2 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: E2 03 00 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: E2 03 00 17 0A 00 90 00 95 [14:24:45]RAPDU: 90 00 [14:24:45]wFMCommunicate OK [14:24:45]wFMCommunicate request_size=10 [14:24:45]MH_SAM_APDU [14:24:45]CAPDU: 80 0D 02 02 05 A3 93 BE 79 48 [14:24:45]Write to MH i2c: E2 0D 00 18 0A 80 0D 02 02 05 00 A3 93 BE 79 48 00 00 5B [14:24:45]Write i2c OK [14:24:45]MH_I2C_Read... [14:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:45]Read from MH i2c: E2 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: E2 03 00 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: E2 03 00 18 0A 00 90 00 96 [14:24:45]RAPDU: 90 00 [14:24:45]wFMCommunicate OK [14:24:45]wFMCommunicate request_size=4 [14:24:45]MH_SAM_APDU [14:24:45]CAPDU: 80 0D 03 02 [14:24:45]Write to MH i2c: E2 08 00 19 0A 80 0D 03 02 00 00 00 00 9E [14:24:45]Write i2c OK [14:24:45]MH_I2C_Read... [14:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:45]Read from MH i2c: E2 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: E2 0B 00 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: E2 0B 00 19 0A 00 35 50 3E 21 A8 C7 55 69 90 00 B0 [14:24:45]RAPDU: 35 50 3E 21 A8 C7 55 69 90 00 [14:24:45]wFMCommunicate OK [14:24:45]SAM_PROTO_SignData done [14:24:45]FM_MakeSignedData done [14:24:45]CreateOFDProtocolMessage [14:24:45]wFMCommunicate request_size=4 [14:24:45]MH_SAM_APDU [14:24:45]CAPDU: 80 11 00 00 [14:24:45]Write to MH i2c: E2 08 00 1A 0A 80 11 00 00 00 00 00 00 9E [14:24:45]Write i2c OK [14:24:45]MH_I2C_Read... [14:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:45]Read from MH i2c: E2 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: E2 17 00 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: E2 17 00 1A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [14:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:24:45]wFMCommunicate OK [14:24:45]CreateOFDProtocolMessage done [14:24:45]OFDSenderStorePacket 156316 [14:24:45]StoreOFDPacket docnum=156316 [14:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A E4 07 01 60 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 AC FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 62 02 00 35 04 06 00 02 A3 93 BE 79 48 35 50 3E 21 A8 C7 55 69 [14:24:45]CheckFolder [14:24:45]dirname=/storage/ofd_packets [14:24:45]CheckFolder done [14:24:45]ProducePacketName [14:24:45]name=ofd_packets/00156316 [14:24:45]NVStorageSaveData ofd_packets/00156316 [14:24:45]File name is /storage/ofd_packets/00156316 [14:24:45]Write 301 bytes [14:24:45]NVStorageSaveData done [14:24:45]OFDSenderStorePacket done [14:24:45]KKMCreateOFDPacket done [14:24:45]NVStorageSaveData kkm_last_timestamp [14:24:45]File name is /storage/kkm_last_timestamp [14:24:45]Write 4 bytes [14:24:45]NVStorageSaveData done [14:24:45]ExternCall_PrintAddStr [14:24:45]wPrintStart [14:24:45]Write to MH i2c: 01 00 00 1B 0A 25 [14:24:45]Write i2c OK [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: 01 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: 01 07 00 [14:24:45]MH_I2C_Read... [14:24:45]Read from MH i2c: 01 07 00 1B 0A 00 00 00 00 00 FF 0F 3A [14:24:45]RasterBufferAndPrint [14:24:45]line Счет N : (1)99131 [14:24:45]line ИНН: 02508201610067 [14:24:45]line Контрольно-Кассовый Чек [14:24:45]line ПРОДАЖА [14:24:45]line ТРК (МРК, ГНК) : 11 [14:24:45]line Товар: 2710124130 [14:24:45]line Аи-92-К-5 [14:24:45]line 7.480 * 66.90 [14:24:45]line = 500.41 [14:24:45]line НДС 12% НСП 1% [14:24:45]line > о реализуемом товаре [14:24:45]line ИТОГО: 500.41 [14:24:45]line НСП 1% : 4.43 [14:24:45]line НДС 12% : 53.14 [14:24:45]line Наличными: 0.00 [14:24:45]line Безнал.: 500.41 [14:24:45]line Место: АЗС № 143 "Партнер Нефть" [14:24:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:24:45]line СНО: Общий режим [14:24:45]line Чек 217 26.10.2024 14:24 [14:24:45]line Смена: 536 ФФД: 1.0 [14:24:45]line ЗНМ: 0300000096 [14:24:45]line РНМ: 0000000000091693 [14:24:45]line Версия ККМ: 001 [14:24:45]line Платежная система: Mbank [14:24:45]line ФМ: 0000000000871792 [14:24:45]line ФД: 156316 [14:24:45]line ФПД: 2901581658440 [14:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142444&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156316&fm=2901581658440&tin=02508201610067®Number=0000000000091693&sum=50041 [14:24:45]OFD Sender: Processing packet 156316 [packets to send 31, broken 30] [14:24:45]ProducePacketName [14:24:45]name=ofd_packets/00156316 [14:24:45]OFD Sender: To server: pG, [14:24:45]CommunicateWithHost lk.salyk.kg:30040 [14:24:45]ConnectInit lk.salyk.kg [14:24:45]written 0, free lines is 4095 [14:24:45]Connected sock=10 [14:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A E4 07 01 60 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 AC FB 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 62 02 00 35 04 06 00 02 A3 93 BE 79 48 35 50 3E 21 A8 C7 55 69 [14:24:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D9 12 47 00 15 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 31 37 39 32 10 04 04 00 9C 62 02 00 F4 03 04 00 1E A1 1C 67 B6 04 01 00 00 92 EB C5 7C 61 91 52 A0 [14:24:45]CommunicateWithHost err = 0 [14:24:45]CheckOFDResponse [14:24:45]1017 (14) - 77093643461234 [14:24:45]1041 (16) - 0000000000871792 [14:24:45]1040 (4) - 156316 [14:24:45]1012 (4) - 26.10.2024 07:58 [14:24:45]1206 (1) - 0 [14:24:45]OFD Sender: Remove packet 156316 [14:24:45]ProducePacketName [14:24:45]name=ofd_packets/00156316 [14:24:45]NVStorageDeleteData [14:24:46]Write to MH i2c: 01 00 00 44 0A 4E [14:24:46]Write i2c OK [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: 01 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: 01 07 00 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 0E 0D 70 [14:24:46]RasterBufferAndPrint [14:24:46]line [14:24:46]line [14:24:46]line [14:24:46]line [14:24:46]line [14:24:46]written 0, free lines is 3348 [14:24:46]process_action close_receipt done [14:24:46]requested_data is exist [14:24:46]produce_requested_data [14:24:46]requested_item fm.sn is exist - process it [14:24:46]wFMCommunicate request_size=4 [14:24:46]MH_SAM_APDU [14:24:46]CAPDU: 80 11 00 00 [14:24:46]Write to MH i2c: E2 08 00 4B 0A 80 11 00 00 00 00 00 00 CF [14:24:46]Write i2c OK [14:24:46]MH_I2C_Read... [14:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:46]Read from MH i2c: E2 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: E2 17 00 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: E2 17 00 4B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [14:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:24:46]wFMCommunicate OK [14:24:46]requested_item fd.num is exist - process it [14:24:46]SAM_PROTO_GetFieldsCounters [14:24:46]wFMCommunicate request_size=4 [14:24:46]MH_SAM_APDU [14:24:46]CAPDU: 80 13 00 00 [14:24:46]Write to MH i2c: E2 08 00 4C 0A 80 13 00 00 00 00 00 00 D2 [14:24:46]Write i2c OK [14:24:46]MH_I2C_Read... [14:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:46]Read from MH i2c: E2 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: E2 62 00 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: E2 62 00 4C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [14:24: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9C 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:46]wFMCommunicate OK [14:24:46]SAM_PROTO_GetFieldsCounters done [14:24:46]requested_item shift.num is exist - process it [14:24:46]requested_item shift.opened is exist - process it [14:24:46]req_shift_opened [14:24:46]FM_GetShiftState [14:24:46]SAM_PROTO_GetShiftState [14:24:46]wFMCommunicate request_size=4 [14:24:46]MH_SAM_APDU [14:24:46]CAPDU: 80 13 01 00 [14:24:46]Write to MH i2c: E2 08 00 4D 0A 80 13 01 00 00 00 00 00 D4 [14:24:46]Write i2c OK [14:24:46]MH_I2C_Read... [14:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:46]Read from MH i2c: E2 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: E2 0E 00 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: E2 0E 00 4D 0A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 09 [14:24:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:24:46]wFMCommunicate OK [14:24:46]SAM_PROTO_GetShiftState done [14:24:46]FM_GetShiftState done [14:24:46]req_shift_opened done [14:24:46]requested_item shift.open_date is exist - process it [14:24:46]req_shift_open_date [14:24:46]req_shift_open_date done [14:24:46]produce_requested_data done [14:24:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156316,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:24:46]process_action_free close_receipt [14:24:46]json_value_free [14:24:46]json_value_free done [14:24:46]process_json_proto returns [14:24:46]Send response to host [14:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156316,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:24:46]free response buf [14:24:46]execute_script done [14:24:46]execute_script returns [14:24:46]free content buf [14:24:46]Sock 9.Close socket [14:24:46]Sock 9.Thread stoped [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:42]accept exits with 8 [14:26:42]New connection [14:26:42]New thread 3066977636 created [14:26:42]Thread 3066834276 joined [14:26:42]Waiting for new connection... [14:26:42] Sock 8.Parse request [14:26:42]Sock 8.Check first char [14:26:42]Sock 8.First char is OK [14:26:42]request: POST /json_proto HTTP/1.0 [14:26:42]Method: POST [14:26:42]URL: /json_proto [14:26:42]Method is POST - this is cgi request [14:26:42]url: /json_proto [14:26:42]query_string will be loaded in cgi processing [14:26:42]execute_cgi json_proto POST (null) [14:26:42]execute_cgi path=json_proto method=POST [14:26:42]POST find Content-Length [14:26:42]Host: 172.17.63.3:8080 [14:26:42]Content-Length: 765 [14:26:42]Content-Type: application/json [14:26:42] [14:26:42]POST finish read [14:26:42]Found Content-Length = 765 [14:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 650.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:42]execute_script... [14:26:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 650.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:42]POST & json_proto [14:26:42]process_json_proto [14:26:42]json parsed OK: [14:26:42]protocol is kg_v1.0 [14:26:42]action value=close_receipt [14:26:42]process_action close_receipt [14:26:42]cmd_close_receipt [14:26:42]MH_GetDate [14:26:42]Write to MH i2c: F0 00 00 4E 0A 47 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: F0 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: F0 09 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: F0 09 00 4E 0A 00 22 FC 1C 67 50 D1 6C 64 E2 [14:26:42]GetLastDocTimeStamp 1729952684 [14:26:42]current date 1729952802 [14:26:42]FM_GetShiftState [14:26:42]SAM_PROTO_GetShiftState [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 13 01 00 [14:26:42]Write to MH i2c: E2 08 00 4F 0A 80 13 01 00 00 00 00 00 D6 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 0E 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 0E 00 4F 0A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 0B [14:26:42]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:26:42]wFMCommunicate OK [14:26:42]SAM_PROTO_GetShiftState done [14:26:42]FM_GetShiftState done [14:26:42]opened in 1729902702 [14:26:42]opened+sec_in_day 1729989102 [14:26:42]quantity*price = 65026 [14:26:42]sum+1 = 65028 [14:26:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.27 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 0.00 Безнал.: 650.27 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 218 26.10.2024 14:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156317 ФПД: 98567010854119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142642&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156317&fm=98567010854119&tin=02508201610067®Number=0000000000091693&sum=65027 [14:26:43]StoreToDocumentArchive [14:26:43]shift 536 fd 156317 [14:26:43]save to /storage/0536/doc_00156317 [14:26:43]save last doc name /storage/0536/doc_00156317 to /storage/kkm_last_doc_name [14:26:43]save OK [14:26:43]Clear old archive folders... [14:26:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:43]tlvbuf is B6EAE720 [14:26:43]SAM_PROTO_ClearQueue [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 09 00 00 [14:26:43]Write to MH i2c: E2 08 00 5C 0A 80 09 00 00 00 00 00 00 D8 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [14:26:43]RAPDU: 90 00 [14:26:43]wFMCommunicate OK [14:26:43]SAM_PROTO_ClearQueue done [14:26:43]KKMCreateOFDPacket [14:26:43]OFDProtocolAddRootSTLVToBuf [14:26:43]FM_MakeSignedData [14:26:43]FM_MakeSignedData [14:26:43]SAM_PROTO_SignData [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 0D 01 02 [14:26:43]Write to MH i2c: E2 08 00 5D 0A 80 0D 01 02 00 00 00 00 E0 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [14:26:43]RAPDU: 90 00 [14:26:43]wFMCommunicate OK [14:26:43]wFMCommunicate request_size=255 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 22 FC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 62 02 00 35 04 06 00 59 [14:26:43]Write to MH i2c: E2 02 01 5E 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 22 FC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 62 02 00 35 04 06 00 59 00 00 8E [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [14:26:43]RAPDU: 90 00 [14:26:43]wFMCommunicate OK [14:26:43]wFMCommunicate request_size=10 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 0D 02 02 05 A5 6B AB 24 E7 [14:26:43]Write to MH i2c: E2 0D 00 5F 0A 80 0D 02 02 05 00 A5 6B AB 24 E7 00 00 B3 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [14:26:43]RAPDU: 90 00 [14:26:43]wFMCommunicate OK [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 0D 03 02 [14:26:43]Write to MH i2c: E2 08 00 60 0A 80 0D 03 02 00 00 00 00 E5 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0B 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0B 00 60 0A 00 0E BB E9 B5 B8 A6 40 2E 90 00 19 [14:26:43]RAPDU: 0E BB E9 B5 B8 A6 40 2E 90 00 [14:26:43]wFMCommunicate OK [14:26:43]SAM_PROTO_SignData done [14:26:43]FM_MakeSignedData done [14:26:43]CreateOFDProtocolMessage [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 11 00 00 [14:26:43]Write to MH i2c: E2 08 00 61 0A 80 11 00 00 00 00 00 00 E5 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 17 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 17 00 61 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [14:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:26:43]wFMCommunicate OK [14:26:43]CreateOFDProtocolMessage done [14:26:43]OFDSenderStorePacket 156317 [14:26:43]StoreOFDPacket docnum=156317 [14:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE B6 07 01 D4 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 22 FC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 62 02 00 35 04 06 00 59 A5 6B AB 24 E7 0E BB E9 B5 B8 A6 40 2E [14:26:43]CheckFolder [14:26:43]dirname=/storage/ofd_packets [14:26:43]CheckFolder done [14:26:43]ProducePacketName [14:26:43]name=ofd_packets/00156317 [14:26:43]NVStorageSaveData ofd_packets/00156317 [14:26:43]File name is /storage/ofd_packets/00156317 [14:26:43]Write 301 bytes [14:26:43]NVStorageSaveData done [14:26:43]OFDSenderStorePacket done [14:26:43]KKMCreateOFDPacket done [14:26:43]NVStorageSaveData kkm_last_timestamp [14:26:43]File name is /storage/kkm_last_timestamp [14:26:43]Write 4 bytes [14:26:43]NVStorageSaveData done [14:26:43]OFD Sender: Processing packet 156317 [packets to send 31, broken 30] [14:26:43]ProducePacketName [14:26:43]name=ofd_packets/00156317 [14:26:43]OFD Sender: To server: pG, [14:26:43]CommunicateWithHost lk.salyk.kg:30040 [14:26:43]ConnectInit lk.salyk.kg [14:26:43]ExternCall_PrintAddStr [14:26:43]wPrintStart [14:26:43]Write to MH i2c: 01 00 00 62 0A 6C [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 07 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [14:26:43]RasterBufferAndPrint [14:26:43]line Счет N : (1)99132 [14:26:43]line ИНН: 02508201610067 [14:26:43]line Контрольно-Кассовый Чек [14:26:43]line ПРОДАЖА [14:26:43]line ТРК (МРК, ГНК) : 11 [14:26:43]line Товар: 2710124130 [14:26:43]line Аи-92-К-5 [14:26:43]line 9.720 * 66.90 [14:26:43]line = 650.27 [14:26:43]line НДС 12% НСП 1% [14:26:43]line > о реализуемом товаре [14:26:43]line ИТОГО: 650.27 [14:26:43]line НСП 1% : 5.75 [14:26:43]line НДС 12% : 69.05 [14:26:43]line Наличными: 0.00 [14:26:43]line Безнал.: 650.27 [14:26:43]line Место: АЗС № 143 "Партнер Нефть" [14:26:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:26:43]line СНО: Общий режим [14:26:43]line Чек 218 26.10.2024 14:26 [14:26:43]line Смена: 536 ФФД: 1.0 [14:26:43]line ЗНМ: 0300000096 [14:26:43]line РНМ: 0000000000091693 [14:26:43]line Версия ККМ: 001 [14:26:43]line Платежная система: Mbank [14:26:43]line ФМ: 0000000000871792 [14:26:43]line ФД: 156317 [14:26:43]line ФПД: 98567010854119 [14:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142642&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156317&fm=98567010854119&tin=02508201610067®Number=0000000000091693&sum=65027 [14:26:44]Connected sock=11 [14:26:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE B6 07 01 D4 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 22 FC 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 62 02 00 35 04 06 00 59 A5 6B AB 24 E7 0E BB E9 B5 B8 A6 40 2E [14:26:44]written 0, free lines is 4095 [14:26:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 52 AF 47 00 A1 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 31 37 39 32 10 04 04 00 9D 62 02 00 F4 03 04 00 95 A1 1C 67 B6 04 01 00 00 51 4D 83 CB 8A 1B A7 F4 [14:26:44]CommunicateWithHost err = 0 [14:26:44]CheckOFDResponse [14:26:44]1017 (14) - 77093643461234 [14:26:44]1041 (16) - 0000000000871792 [14:26:44]1040 (4) - 156317 [14:26:44]1012 (4) - 26.10.2024 08:00 [14:26:44]1206 (1) - 0 [14:26:44]OFD Sender: Remove packet 156317 [14:26:44]ProducePacketName [14:26:44]name=ofd_packets/00156317 [14:26:44]NVStorageDeleteData [14:26:44]Write to MH i2c: 01 00 00 8B 0A 95 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 07 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 0F 0D B8 [14:26:44]RasterBufferAndPrint [14:26:44]line [14:26:44]line [14:26:44]line [14:26:44]line [14:26:44]line [14:26:44]written 0, free lines is 3349 [14:26:44]process_action close_receipt done [14:26:44]requested_data is exist [14:26:44]produce_requested_data [14:26:44]requested_item fm.sn is exist - process it [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 11 00 00 [14:26:44]Write to MH i2c: E2 08 00 92 0A 80 11 00 00 00 00 00 00 16 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 17 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 17 00 92 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6B [14:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:26:44]wFMCommunicate OK [14:26:44]requested_item fd.num is exist - process it [14:26:44]SAM_PROTO_GetFieldsCounters [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 13 00 00 [14:26:44]Write to MH i2c: E2 08 00 93 0A 80 13 00 00 00 00 00 00 19 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 62 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 62 00 93 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [14:26: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9D 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_GetFieldsCounters done [14:26:44]requested_item shift.num is exist - process it [14:26:44]requested_item shift.opened is exist - process it [14:26:44]req_shift_opened [14:26:44]FM_GetShiftState [14:26:44]SAM_PROTO_GetShiftState [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 13 01 00 [14:26:44]Write to MH i2c: E2 08 00 94 0A 80 13 01 00 00 00 00 00 1B [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]OFD Sender: No OFD packet to send [14:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0E 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0E 00 94 0A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [14:26:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_GetShiftState done [14:26:44]FM_GetShiftState done [14:26:44]req_shift_opened done [14:26:44]requested_item shift.open_date is exist - process it [14:26:44]req_shift_open_date [14:26:44]req_shift_open_date done [14:26:44]produce_requested_data done [14:26:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156317,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:26:44]process_action_free close_receipt [14:26:44]json_value_free [14:26:44]json_value_free done [14:26:44]process_json_proto returns [14:26:44]Send response to host [14:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156317,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:26:44]free response buf [14:26:44]execute_script done [14:26:44]execute_script returns [14:26:44]free content buf [14:26:44]Sock 8.Close socket [14:26:44]Sock 8.Thread stoped [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [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:18]accept exits with 9 [14:32:18]New connection [14:32:18]New thread 3066834276 created [14:32:18]Thread 3066977636 joined [14:32:18]Waiting for new connection... [14:32:18] Sock 9.Parse request [14:32:18]Sock 9.Check first char [14:32:18]Sock 9.First char is OK [14:32:18]request: POST /json_proto HTTP/1.0 [14:32:18]Method: POST [14:32:18]URL: /json_proto [14:32:18]Method is POST - this is cgi request [14:32:18]url: /json_proto [14:32:18]query_string will be loaded in cgi processing [14:32:18]execute_cgi json_proto POST (null) [14:32:18]execute_cgi path=json_proto method=POST [14:32:18]POST find Content-Length [14:32:18]Host: 172.17.63.3:8080 [14:32:18]Content-Length: 676 [14:32:18]Content-Type: application/json [14:32:18] [14:32:18]POST finish read [14:32:18]Found Content-Length = 676 [14:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:18]execute_script... [14:32: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)99133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:18]POST & json_proto [14:32:18]process_json_proto [14:32:18]json parsed OK: [14:32:18]protocol is kg_v1.0 [14:32:18]action value=close_receipt [14:32:18]process_action close_receipt [14:32:18]cmd_close_receipt [14:32:18]MH_GetDate [14:32:18]Write to MH i2c: F0 00 00 95 0A 8E [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: F0 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: F0 09 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: F0 09 00 95 0A 00 73 FD 1C 67 50 D1 6C 64 7B [14:32:18]GetLastDocTimeStamp 1729952802 [14:32:18]current date 1729953139 [14:32:18]FM_GetShiftState [14:32:18]SAM_PROTO_GetShiftState [14:32:18]wFMCommunicate request_size=4 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 13 01 00 [14:32:18]Write to MH i2c: E2 08 00 96 0A 80 13 01 00 00 00 00 00 1D [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 0E 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 0E 00 96 0A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 52 [14:32:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:32:18]wFMCommunicate OK [14:32:18]SAM_PROTO_GetShiftState done [14:32:18]FM_GetShiftState done [14:32:18]opened in 1729902702 [14:32:18]opened+sec_in_day 1729989102 [14:32:18]quantity*price = 50041 [14:32:18]sum+1 = 50042 [14:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 219 26.10.2024 14:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156318 ФПД: 197960949366977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143219&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156318&fm=197960949366977&tin=02508201610067®Number=0000000000091693&sum=50000 [14:32:20]StoreToDocumentArchive [14:32:20]shift 536 fd 156318 [14:32:20]save to /storage/0536/doc_00156318 [14:32:20]save last doc name /storage/0536/doc_00156318 to /storage/kkm_last_doc_name [14:32:20]save OK [14:32:20]Clear old archive folders... [14:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:20]tlvbuf is 0169A100 [14:32:20]SAM_PROTO_ClearQueue [14:32:20]wFMCommunicate request_size=4 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 09 00 00 [14:32:20]Write to MH i2c: E2 08 00 A3 0A 80 09 00 00 00 00 00 00 1F [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:20]OFD Sender: No OFD packet to send [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 03 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [14:32:20]RAPDU: 90 00 [14:32:20]wFMCommunicate OK [14:32:20]SAM_PROTO_ClearQueue done [14:32:20]KKMCreateOFDPacket [14:32:20]OFDProtocolAddRootSTLVToBuf [14:32:20]FM_MakeSignedData [14:32:20]FM_MakeSignedData [14:32:20]SAM_PROTO_SignData [14:32:20]wFMCommunicate request_size=4 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 0D 01 02 [14:32:20]Write to MH i2c: E2 08 00 A4 0A 80 0D 01 02 00 00 00 00 27 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 03 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [14:32:20]RAPDU: 90 00 [14:32:20]wFMCommunicate OK [14:32:20]wFMCommunicate request_size=255 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 73 FD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 62 02 00 35 04 06 00 B4 [14:32:20]Write to MH i2c: E2 02 01 A5 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 73 FD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 62 02 00 35 04 06 00 B4 00 00 59 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 03 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [14:32:20]RAPDU: 90 00 [14:32:20]wFMCommunicate OK [14:32:20]wFMCommunicate request_size=10 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 0D 02 02 05 0B 60 11 00 C1 [14:32:20]Write to MH i2c: E2 0D 00 A6 0A 80 0D 02 02 05 00 0B 60 11 00 C1 00 00 71 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 03 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 03 00 A6 0A 00 90 00 24 [14:32:20]RAPDU: 90 00 [14:32:20]wFMCommunicate OK [14:32:20]wFMCommunicate request_size=4 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 0D 03 02 [14:32:20]Write to MH i2c: E2 08 00 A7 0A 80 0D 03 02 00 00 00 00 2C [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 0B 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 0B 00 A7 0A 00 52 90 85 69 F1 27 35 97 90 00 E1 [14:32:20]RAPDU: 52 90 85 69 F1 27 35 97 90 00 [14:32:20]wFMCommunicate OK [14:32:20]SAM_PROTO_SignData done [14:32:20]FM_MakeSignedData done [14:32:20]CreateOFDProtocolMessage [14:32:20]wFMCommunicate request_size=4 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 11 00 00 [14:32:20]Write to MH i2c: E2 08 00 A8 0A 80 11 00 00 00 00 00 00 2C [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 17 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 17 00 A8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 81 [14:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:32:20]wFMCommunicate OK [14:32:20]CreateOFDProtocolMessage done [14:32:20]OFDSenderStorePacket 156318 [14:32:20]StoreOFDPacket docnum=156318 [14:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3A A8 07 01 99 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 73 FD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 62 02 00 35 04 06 00 B4 0B 60 11 00 C1 52 90 85 69 F1 27 35 97 [14:32:20]CheckFolder [14:32:20]dirname=/storage/ofd_packets [14:32:20]CheckFolder done [14:32:20]ProducePacketName [14:32:20]name=ofd_packets/00156318 [14:32:20]NVStorageSaveData ofd_packets/00156318 [14:32:20]File name is /storage/ofd_packets/00156318 [14:32:20]Write 301 bytes [14:32:20]NVStorageSaveData done [14:32:20]OFDSenderStorePacket done [14:32:20]KKMCreateOFDPacket done [14:32:20]NVStorageSaveData kkm_last_timestamp [14:32:20]File name is /storage/kkm_last_timestamp [14:32:20]Write 4 bytes [14:32:20]NVStorageSaveData done [14:32:20]ExternCall_PrintAddStr [14:32:20]wPrintStart [14:32:20]Write to MH i2c: 01 00 00 A9 0A B3 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: 01 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: 01 07 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: 01 07 00 A9 0A 00 00 00 00 00 FF 0F C8 [14:32:20]RasterBufferAndPrint [14:32:20]line Счет N : (1)99133 [14:32:20]line ИНН: 02508201610067 [14:32:20]line Контрольно-Кассовый Чек [14:32:20]line ПРОДАЖА [14:32:20]line ТРК (МРК, ГНК) : 31 [14:32:20]line Товар: 2710124130 [14:32:20]line Аи-92-К-5 [14:32:20]line 7.480 * 66.90 [14:32:20]line = 500.41 [14:32:20]line НДС 12% НСП 1% [14:32:20]line > о реализуемом товаре [14:32:20]line ОКРУГЛЕНИЕ: -0.41 [14:32:20]line ИТОГО: 500.00 [14:32:20]line Внесено: 500.00 [14:32:20]line СДАЧА: 0.00 [14:32:20]line НСП 1% : 4.43 [14:32:20]line НДС 12% : 53.14 [14:32:20]line Наличными: 500.00 [14:32:20]line Безнал.: 0.00 [14:32:20]line Место: АЗС № 143 "Партнер Нефть" [14:32:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:32:20]line СНО: Общий режим [14:32:20]line Чек 219 26.10.2024 14:32 [14:32:20]line Смена: 536 ФФД: 1.0 [14:32:20]line ЗНМ: 0300000096 [14:32:20]line РНМ: 0000000000091693 [14:32:20]line Версия ККМ: 001 [14:32:20]line ФМ: 0000000000871792 [14:32:20]line ФД: 156318 [14:32:20]line ФПД: 197960949366977 [14:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143219&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156318&fm=197960949366977&tin=02508201610067®Number=0000000000091693&sum=50000 [14:32:20]written 0, free lines is 4095 [14:32:20]OFD Sender: Processing packet 156318 [packets to send 31, broken 30] [14:32:20]ProducePacketName [14:32:20]name=ofd_packets/00156318 [14:32:20]OFD Sender: To server: pG, [14:32:20]CommunicateWithHost lk.salyk.kg:30040 [14:32:20]ConnectInit lk.salyk.kg [14:32:20]Connected sock=10 [14:32:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3A A8 07 01 99 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 73 FD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 62 02 00 35 04 06 00 B4 0B 60 11 00 C1 52 90 85 69 F1 27 35 97 [14:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 50 D5 47 00 4A 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 31 37 39 32 10 04 04 00 9E 62 02 00 F4 03 04 00 E5 A2 1C 67 B6 04 01 00 00 80 92 0C F2 3A 9E 57 D1 [14:32:21]CommunicateWithHost err = 0 [14:32:21]CheckOFDResponse [14:32:21]1017 (14) - 77093643461234 [14:32:21]1041 (16) - 0000000000871792 [14:32:21]1040 (4) - 156318 [14:32:21]1012 (4) - 26.10.2024 08:05 [14:32:21]1206 (1) - 0 [14:32:21]OFD Sender: Remove packet 156318 [14:32:21]ProducePacketName [14:32:21]name=ofd_packets/00156318 [14:32:21]NVStorageDeleteData [14:32:21]Write to MH i2c: 01 00 00 D4 0A DE [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: 01 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: 01 07 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: 01 07 00 D4 0A 00 00 00 00 00 EB 0C DC [14:32:21]RasterBufferAndPrint [14:32:21]line [14:32:21]line [14:32:21]line [14:32:21]line [14:32:21]line [14:32:21]written 0, free lines is 3313 [14:32:21]process_action close_receipt done [14:32:21]requested_data is exist [14:32:21]produce_requested_data [14:32:21]requested_item fm.sn is exist - process it [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 11 00 00 [14:32:21]Write to MH i2c: E2 08 00 DB 0A 80 11 00 00 00 00 00 00 5F [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 17 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 17 00 DB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B4 [14:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:32:21]wFMCommunicate OK [14:32:21]requested_item fd.num is exist - process it [14:32:21]SAM_PROTO_GetFieldsCounters [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 13 00 00 [14:32:21]Write to MH i2c: E2 08 00 DC 0A 80 13 00 00 00 00 00 00 62 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 62 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 62 00 DC 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [14:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9E 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:21]wFMCommunicate OK [14:32:21]SAM_PROTO_GetFieldsCounters done [14:32:21]requested_item shift.num is exist - process it [14:32:21]requested_item shift.opened is exist - process it [14:32:21]req_shift_opened [14:32:21]FM_GetShiftState [14:32:21]SAM_PROTO_GetShiftState [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 13 01 00 [14:32:21]Write to MH i2c: E2 08 00 DD 0A 80 13 01 00 00 00 00 00 64 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0E 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0E 00 DD 0A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 99 [14:32:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:32:21]wFMCommunicate OK [14:32:21]SAM_PROTO_GetShiftState done [14:32:21]FM_GetShiftState done [14:32:21]req_shift_opened done [14:32:21]requested_item shift.open_date is exist - process it [14:32:21]req_shift_open_date [14:32:21]req_shift_open_date done [14:32:21]produce_requested_data done [14:32:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156318,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:32:21]process_action_free close_receipt [14:32:21]json_value_free [14:32:21]json_value_free done [14:32:21]process_json_proto returns [14:32:21]Send response to host [14:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156318,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:32:21]free response buf [14:32:21]execute_script done [14:32:21]execute_script returns [14:32:21]free content buf [14:32:21]Sock 9.Close socket [14:32:21]Sock 9.Thread stoped [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:20]accept exits with 8 [14:33:20]New connection [14:33:20]New thread 3066977636 created [14:33:20]Thread 3066834276 joined [14:33:20]Waiting for new connection... [14:33:20] Sock 8.Parse request [14:33:20]Sock 8.Check first char [14:33:20]Sock 8.First char is OK [14:33:20]request: POST /json_proto HTTP/1.0 [14:33:20]Method: POST [14:33:20]URL: /json_proto [14:33:20]Method is POST - this is cgi request [14:33:20]url: /json_proto [14:33:20]query_string will be loaded in cgi processing [14:33:20]execute_cgi json_proto POST (null) [14:33:20]execute_cgi path=json_proto method=POST [14:33:20]POST find Content-Length [14:33:20]Host: 172.17.63.3:8080 [14:33:20]Content-Length: 676 [14:33:20]Content-Type: application/json [14:33:20] [14:33:20]POST finish read [14:33:20]Found Content-Length = 676 [14:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:20]execute_script... [14:33:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:20]POST & json_proto [14:33:20]process_json_proto [14:33:20]json parsed OK: [14:33:20]protocol is kg_v1.0 [14:33:20]action value=close_receipt [14:33:20]process_action close_receipt [14:33:20]cmd_close_receipt [14:33:20]MH_GetDate [14:33:20]Write to MH i2c: F0 00 00 DE 0A D7 [14:33:20]Write i2c OK [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: F0 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: F0 09 00 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: F0 09 00 DE 0A 00 B0 FD 1C 67 50 D1 6C 64 01 [14:33:20]GetLastDocTimeStamp 1729953139 [14:33:20]current date 1729953200 [14:33:20]FM_GetShiftState [14:33:20]SAM_PROTO_GetShiftState [14:33:20]wFMCommunicate request_size=4 [14:33:20]MH_SAM_APDU [14:33:20]CAPDU: 80 13 01 00 [14:33:20]Write to MH i2c: E2 08 00 DF 0A 80 13 01 00 00 00 00 00 66 [14:33:20]Write i2c OK [14:33:20]MH_I2C_Read... [14:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:20]Read from MH i2c: E2 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: E2 0E 00 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: E2 0E 00 DF 0A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9B [14:33:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:33:20]wFMCommunicate OK [14:33:20]SAM_PROTO_GetShiftState done [14:33:20]FM_GetShiftState done [14:33:20]opened in 1729902702 [14:33:20]opened+sec_in_day 1729989102 [14:33:20]quantity*price = 30038 [14:33:20]sum+1 = 30039 [14:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 220 26.10.2024 14:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156319 ФПД: 78615737776813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143320&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156319&fm=78615737776813&tin=02508201610067®Number=0000000000091693&sum=30000 [14:33:21]StoreToDocumentArchive [14:33:21]shift 536 fd 156319 [14:33:21]save to /storage/0536/doc_00156319 [14:33:21]save last doc name /storage/0536/doc_00156319 to /storage/kkm_last_doc_name [14:33:21]save OK [14:33:21]Clear old archive folders... [14:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:21]tlvbuf is 016A0040 [14:33:21]SAM_PROTO_ClearQueue [14:33:21]wFMCommunicate request_size=4 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 09 00 00 [14:33:21]Write to MH i2c: E2 08 00 EC 0A 80 09 00 00 00 00 00 00 68 [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 03 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [14:33:21]RAPDU: 90 00 [14:33:21]wFMCommunicate OK [14:33:21]SAM_PROTO_ClearQueue done [14:33:21]KKMCreateOFDPacket [14:33:21]OFDProtocolAddRootSTLVToBuf [14:33:21]FM_MakeSignedData [14:33:21]FM_MakeSignedData [14:33:21]SAM_PROTO_SignData [14:33:21]wFMCommunicate request_size=4 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 0D 01 02 [14:33:21]Write to MH i2c: E2 08 00 ED 0A 80 0D 01 02 00 00 00 00 70 [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 03 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [14:33:21]RAPDU: 90 00 [14:33:21]wFMCommunicate OK [14:33:21]wFMCommunicate request_size=255 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B0 FD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 62 02 00 35 04 06 00 47 [14:33:21]Write to MH i2c: E2 02 01 EE 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B0 FD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 62 02 00 35 04 06 00 47 00 00 68 [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]OFD Sender: No OFD packet to send [14:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 03 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [14:33:21]RAPDU: 90 00 [14:33:21]wFMCommunicate OK [14:33:21]wFMCommunicate request_size=10 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 0D 02 02 05 80 27 1F BA AD [14:33:21]Write to MH i2c: E2 0D 00 EF 0A 80 0D 02 02 05 00 80 27 1F BA AD 00 00 AA [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 03 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [14:33:21]RAPDU: 90 00 [14:33:21]wFMCommunicate OK [14:33:21]wFMCommunicate request_size=4 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 0D 03 02 [14:33:21]Write to MH i2c: E2 08 00 F0 0A 80 0D 03 02 00 00 00 00 75 [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 0B 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 0B 00 F0 0A 00 29 09 BB 48 2C 30 12 04 90 00 1D [14:33:21]RAPDU: 29 09 BB 48 2C 30 12 04 90 00 [14:33:21]wFMCommunicate OK [14:33:21]SAM_PROTO_SignData done [14:33:21]FM_MakeSignedData done [14:33:21]CreateOFDProtocolMessage [14:33:21]wFMCommunicate request_size=4 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 11 00 00 [14:33:21]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 17 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CA [14:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:33:21]wFMCommunicate OK [14:33:21]CreateOFDProtocolMessage done [14:33:21]OFDSenderStorePacket 156319 [14:33:21]StoreOFDPacket docnum=156319 [14:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E9 FF 07 01 83 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B0 FD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 62 02 00 35 04 06 00 47 80 27 1F BA AD 29 09 BB 48 2C 30 12 04 [14:33:21]CheckFolder [14:33:21]dirname=/storage/ofd_packets [14:33:21]CheckFolder done [14:33:21]ProducePacketName [14:33:21]name=ofd_packets/00156319 [14:33:21]NVStorageSaveData ofd_packets/00156319 [14:33:21]File name is /storage/ofd_packets/00156319 [14:33:21]Write 301 bytes [14:33:21]NVStorageSaveData done [14:33:21]OFDSenderStorePacket done [14:33:21]KKMCreateOFDPacket done [14:33:21]NVStorageSaveData kkm_last_timestamp [14:33:21]File name is /storage/kkm_last_timestamp [14:33:21]Write 4 bytes [14:33:21]NVStorageSaveData done [14:33:21]ExternCall_PrintAddStr [14:33:21]wPrintStart [14:33:21]Write to MH i2c: 01 00 00 F2 0A FC [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: 01 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: 01 07 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 FF 0F 11 [14:33:21]RasterBufferAndPrint [14:33:21]line Счет N : (1)99134 [14:33:21]line ИНН: 02508201610067 [14:33:21]line Контрольно-Кассовый Чек [14:33:21]line ПРОДАЖА [14:33:21]line ТРК (МРК, ГНК) : 11 [14:33:21]line Товар: 2710124130 [14:33:21]line Аи-92-К-5 [14:33:21]line 4.490 * 66.90 [14:33:21]line = 300.38 [14:33:21]line НДС 12% НСП 1% [14:33:21]line > о реализуемом товаре [14:33:21]line ОКРУГЛЕНИЕ: -0.38 [14:33:21]line ИТОГО: 300.00 [14:33:21]line Внесено: 300.00 [14:33:21]line СДАЧА: 0.00 [14:33:21]line НСП 1% : 2.66 [14:33:21]line НДС 12% : 31.90 [14:33:21]line Наличными: 300.00 [14:33:21]line Безнал.: 0.00 [14:33:21]line Место: АЗС № 143 "Партнер Нефть" [14:33:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:33:21]line СНО: Общий режим [14:33:21]line Чек 220 26.10.2024 14:33 [14:33:21]line Смена: 536 ФФД: 1.0 [14:33:21]line ЗНМ: 0300000096 [14:33:21]line РНМ: 0000000000091693 [14:33:21]line Версия ККМ: 001 [14:33:21]line ФМ: 0000000000871792 [14:33:21]line ФД: 156319 [14:33:21]line ФПД: 78615737776813 [14:33:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143320&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156319&fm=78615737776813&tin=02508201610067®Number=0000000000091693&sum=30000 [14:33:22]OFD Sender: Processing packet 156319 [packets to send 31, broken 30] [14:33:22]ProducePacketName [14:33:22]name=ofd_packets/00156319 [14:33:22]OFD Sender: To server: pG, [14:33:22]CommunicateWithHost lk.salyk.kg:30040 [14:33:22]ConnectInit lk.salyk.kg [14:33:22]written 0, free lines is 4095 [14:33:22]Connected sock=10 [14:33:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E9 FF 07 01 83 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B0 FD 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 62 02 00 35 04 06 00 47 80 27 1F BA AD 29 09 BB 48 2C 30 12 04 [14:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 35 1F 47 00 58 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 62 02 00 F4 03 04 00 23 A3 1C 67 B6 04 01 00 00 CE 8A F5 EF C8 E9 29 95 [14:33:22]CommunicateWithHost err = 0 [14:33:22]CheckOFDResponse [14:33:22]1017 (14) - 77093643461234 [14:33:22]1041 (16) - 0000000000871792 [14:33:22]1040 (4) - 156319 [14:33:22]1012 (4) - 26.10.2024 08:06 [14:33:22]1206 (1) - 0 [14:33:22]OFD Sender: Remove packet 156319 [14:33:22]ProducePacketName [14:33:22]name=ofd_packets/00156319 [14:33:22]NVStorageDeleteData [14:33:22]Write to MH i2c: 01 00 00 1D 0B 28 [14:33:22]Write i2c OK [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: 01 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: 01 07 00 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: 01 07 00 1D 0B 00 00 00 00 00 0A 0D 46 [14:33:22]RasterBufferAndPrint [14:33:22]line [14:33:22]line [14:33:22]line [14:33:22]line [14:33:22]line [14:33:22]written 0, free lines is 3344 [14:33:22]process_action close_receipt done [14:33:22]requested_data is exist [14:33:22]produce_requested_data [14:33:22]requested_item fm.sn is exist - process it [14:33:22]wFMCommunicate request_size=4 [14:33:22]MH_SAM_APDU [14:33:22]CAPDU: 80 11 00 00 [14:33:22]Write to MH i2c: E2 08 00 24 0B 80 11 00 00 00 00 00 00 A9 [14:33:22]Write i2c OK [14:33:22]MH_I2C_Read... [14:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:22]Read from MH i2c: E2 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: E2 17 00 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: E2 17 00 24 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FE [14:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:33:22]wFMCommunicate OK [14:33:22]requested_item fd.num is exist - process it [14:33:22]SAM_PROTO_GetFieldsCounters [14:33:22]wFMCommunicate request_size=4 [14:33:22]MH_SAM_APDU [14:33:22]CAPDU: 80 13 00 00 [14:33:22]Write to MH i2c: E2 08 00 25 0B 80 13 00 00 00 00 00 00 AC [14:33:22]Write i2c OK [14:33:22]MH_I2C_Read... [14:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:22]Read from MH i2c: E2 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: E2 62 00 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: E2 62 00 25 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [14:33: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9F 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:22]wFMCommunicate OK [14:33:22]SAM_PROTO_GetFieldsCounters done [14:33:22]requested_item shift.num is exist - process it [14:33:22]requested_item shift.opened is exist - process it [14:33:22]req_shift_opened [14:33:22]FM_GetShiftState [14:33:22]SAM_PROTO_GetShiftState [14:33:22]wFMCommunicate request_size=4 [14:33:22]MH_SAM_APDU [14:33:22]CAPDU: 80 13 01 00 [14:33:22]Write to MH i2c: E2 08 00 26 0B 80 13 01 00 00 00 00 00 AE [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 0E 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 0E 00 26 0B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E3 [14:33:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:33:23]wFMCommunicate OK [14:33:23]SAM_PROTO_GetShiftState done [14:33:23]FM_GetShiftState done [14:33:23]req_shift_opened done [14:33:23]requested_item shift.open_date is exist - process it [14:33:23]req_shift_open_date [14:33:23]req_shift_open_date done [14:33:23]produce_requested_data done [14:33:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156319,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:33:23]process_action_free close_receipt [14:33:23]json_value_free [14:33:23]json_value_free done [14:33:23]process_json_proto returns [14:33:23]Send response to host [14:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156319,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:33:23]free response buf [14:33:23]execute_script done [14:33:23]execute_script returns [14:33:23]free content buf [14:33:23]Sock 8.Close socket [14:33:23]Sock 8.Thread stoped [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:36:59]accept exits with 9 [14:36:59]New connection [14:36:59]New thread 3066834276 created [14:36:59]Thread 3066977636 joined [14:36:59]Waiting for new connection... [14:36:59] Sock 9.Parse request [14:36:59]Sock 9.Check first char [14:36:59]Sock 9.First char is OK [14:36:59]request: POST /json_proto HTTP/1.0 [14:36:59]Method: POST [14:36:59]URL: /json_proto [14:36:59]Method is POST - this is cgi request [14:36:59]url: /json_proto [14:36:59]query_string will be loaded in cgi processing [14:36:59]execute_cgi json_proto POST (null) [14:36:59]execute_cgi path=json_proto method=POST [14:36:59]POST find Content-Length [14:36:59]Host: 172.17.63.3:8080 [14:36:59]Content-Length: 676 [14:36:59]Content-Type: application/json [14:36:59] [14:36:59]POST finish read [14:36:59]Found Content-Length = 676 [14:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:59]execute_script... [14:36:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:59]POST & json_proto [14:36:59]process_json_proto [14:36:59]json parsed OK: [14:36:59]protocol is kg_v1.0 [14:36:59]action value=close_receipt [14:36:59]process_action close_receipt [14:36:59]cmd_close_receipt [14:36:59]MH_GetDate [14:36:59]Write to MH i2c: F0 00 00 27 0B 21 [14:36:59]Write i2c OK [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: F0 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: F0 09 00 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: F0 09 00 27 0B 00 8C FE 1C 67 50 D1 6C 64 28 [14:36:59]GetLastDocTimeStamp 1729953200 [14:36:59]current date 1729953420 [14:36:59]FM_GetShiftState [14:36:59]SAM_PROTO_GetShiftState [14:36:59]wFMCommunicate request_size=4 [14:36:59]MH_SAM_APDU [14:36:59]CAPDU: 80 13 01 00 [14:36:59]Write to MH i2c: E2 08 00 28 0B 80 13 01 00 00 00 00 00 B0 [14:36:59]Write i2c OK [14:36:59]MH_I2C_Read... [14:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:59]Read from MH i2c: E2 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: E2 0E 00 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: E2 0E 00 28 0B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E5 [14:36:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:36:59]wFMCommunicate OK [14:36:59]SAM_PROTO_GetShiftState done [14:36:59]FM_GetShiftState done [14:36:59]opened in 1729902702 [14:36:59]opened+sec_in_day 1729989102 [14:36:59]quantity*price = 60009 [14:36:59]sum+1 = 60010 [14:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 221 26.10.2024 14:37 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156320 ФПД: 194170329800951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143700&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156320&fm=194170329800951&tin=02508201610067®Number=0000000000091693&sum=60000 [14:37:00]StoreToDocumentArchive [14:37:00]shift 536 fd 156320 [14:37:00]save to /storage/0536/doc_00156320 [14:37:00]save last doc name /storage/0536/doc_00156320 to /storage/kkm_last_doc_name [14:37:00]save OK [14:37:00]Clear old archive folders... [14:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:00]tlvbuf is 016E7BD0 [14:37:00]SAM_PROTO_ClearQueue [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 09 00 00 [14:37:00]Write to MH i2c: E2 08 00 35 0B 80 09 00 00 00 00 00 00 B2 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [14:37:00]RAPDU: 90 00 [14:37:00]wFMCommunicate OK [14:37:00]SAM_PROTO_ClearQueue done [14:37:00]KKMCreateOFDPacket [14:37:00]OFDProtocolAddRootSTLVToBuf [14:37:00]FM_MakeSignedData [14:37:00]FM_MakeSignedData [14:37:00]SAM_PROTO_SignData [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 0D 01 02 [14:37:00]Write to MH i2c: E2 08 00 36 0B 80 0D 01 02 00 00 00 00 BA [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [14:37:00]RAPDU: 90 00 [14:37:00]wFMCommunicate OK [14:37:00]wFMCommunicate request_size=255 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8C FE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 62 02 00 35 04 06 00 B0 [14:37:00]Write to MH i2c: E2 02 01 37 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8C FE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 62 02 00 35 04 06 00 B0 00 00 E3 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:01]Read from MH i2c: E2 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: E2 03 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: E2 03 00 37 0B 00 90 00 B6 [14:37:01]RAPDU: 90 00 [14:37:01]wFMCommunicate OK [14:37:01]wFMCommunicate request_size=10 [14:37:01]MH_SAM_APDU [14:37:01]CAPDU: 80 0D 02 02 05 98 CD 88 A0 F7 [14:37:01]Write to MH i2c: E2 0D 00 38 0B 80 0D 02 02 05 00 98 CD 88 A0 F7 00 00 4B [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:01]Read from MH i2c: E2 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: E2 03 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [14:37:01]RAPDU: 90 00 [14:37:01]wFMCommunicate OK [14:37:01]wFMCommunicate request_size=4 [14:37:01]MH_SAM_APDU [14:37:01]CAPDU: 80 0D 03 02 [14:37:01]Write to MH i2c: E2 08 00 39 0B 80 0D 03 02 00 00 00 00 BF [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:01]Read from MH i2c: E2 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: E2 0B 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: E2 0B 00 39 0B 00 10 43 2C 57 07 2E 15 F9 90 00 D9 [14:37:01]RAPDU: 10 43 2C 57 07 2E 15 F9 90 00 [14:37:01]wFMCommunicate OK [14:37:01]SAM_PROTO_SignData done [14:37:01]FM_MakeSignedData done [14:37:01]CreateOFDProtocolMessage [14:37:01]wFMCommunicate request_size=4 [14:37:01]MH_SAM_APDU [14:37:01]CAPDU: 80 11 00 00 [14:37:01]Write to MH i2c: E2 08 00 3A 0B 80 11 00 00 00 00 00 00 BF [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:01]Read from MH i2c: E2 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: E2 17 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: E2 17 00 3A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [14:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:37:01]wFMCommunicate OK [14:37:01]CreateOFDProtocolMessage done [14:37:01]OFDSenderStorePacket 156320 [14:37:01]StoreOFDPacket docnum=156320 [14:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D 34 07 01 5A BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8C FE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 62 02 00 35 04 06 00 B0 98 CD 88 A0 F7 10 43 2C 57 07 2E 15 F9 [14:37:01]CheckFolder [14:37:01]dirname=/storage/ofd_packets [14:37:01]CheckFolder done [14:37:01]ProducePacketName [14:37:01]name=ofd_packets/00156320 [14:37:01]NVStorageSaveData ofd_packets/00156320 [14:37:01]File name is /storage/ofd_packets/00156320 [14:37:01]Write 301 bytes [14:37:01]NVStorageSaveData done [14:37:01]OFDSenderStorePacket done [14:37:01]KKMCreateOFDPacket done [14:37:01]NVStorageSaveData kkm_last_timestamp [14:37:01]File name is /storage/kkm_last_timestamp [14:37:01]Write 4 bytes [14:37:01]NVStorageSaveData done [14:37:01]ExternCall_PrintAddStr [14:37:01]wPrintStart [14:37:01]Write to MH i2c: 01 00 00 3B 0B 46 [14:37:01]OFD Sender: Processing packet 156320 [packets to send 31, broken 30] [14:37:01]ProducePacketName [14:37:01]name=ofd_packets/00156320 [14:37:01]OFD Sender: To server: pG, [14:37:01]CommunicateWithHost lk.salyk.kg:30040 [14:37:01]ConnectInit lk.salyk.kg [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 07 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 FF 0F 5B [14:37:01]RasterBufferAndPrint [14:37:01]line Счет N : (1)99135 [14:37:01]line ИНН: 02508201610067 [14:37:01]line Контрольно-Кассовый Чек [14:37:01]line ПРОДАЖА [14:37:01]line ТРК (МРК, ГНК) : 21 [14:37:01]line Товар: 2710124130 [14:37:01]line Аи-92-К-5 [14:37:01]line 8.970 * 66.90 [14:37:01]line = 600.09 [14:37:01]line НДС 12% НСП 1% [14:37:01]line > о реализуемом товаре [14:37:01]line ОКРУГЛЕНИЕ: -0.09 [14:37:01]line ИТОГО: 600.00 [14:37:01]line Внесено: 600.00 [14:37:01]line СДАЧА: 0.00 [14:37:01]line НСП 1% : 5.31 [14:37:01]line НДС 12% : 63.73 [14:37:01]line Наличными: 600.00 [14:37:01]line Безнал.: 0.00 [14:37:01]line Место: АЗС № 143 "Партнер Нефть" [14:37:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:37:01]line СНО: Общий режим [14:37:01]line Чек 221 26.10.2024 14:37 [14:37:01]line Смена: 536 ФФД: 1.0 [14:37:01]line ЗНМ: 0300000096 [14:37:01]line РНМ: 0000000000091693 [14:37:01]line Версия ККМ: 001 [14:37:01]line ФМ: 0000000000871792 [14:37:01]line ФД: 156320 [14:37:01]line ФПД: 194170329800951 [14:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143700&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156320&fm=194170329800951&tin=02508201610067®Number=0000000000091693&sum=60000 [14:37:01]Connected sock=11 [14:37:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D 34 07 01 5A BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8C FE 1C 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 62 02 00 35 04 06 00 B0 98 CD 88 A0 F7 10 43 2C 57 07 2E 15 F9 [14:37:01]written 0, free lines is 4095 [14:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0D E1 47 00 1D 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 62 02 00 F4 03 04 00 FE A3 1C 67 B6 04 01 00 00 0B 74 AF 48 6D 01 64 AD [14:37:01]CommunicateWithHost err = 0 [14:37:01]CheckOFDResponse [14:37:01]1017 (14) - 77093643461234 [14:37:01]1041 (16) - 0000000000871792 [14:37:01]1040 (4) - 156320 [14:37:01]1012 (4) - 26.10.2024 08:10 [14:37:01]1206 (1) - 0 [14:37:01]OFD Sender: Remove packet 156320 [14:37:01]ProducePacketName [14:37:01]name=ofd_packets/00156320 [14:37:01]NVStorageDeleteData [14:37:02]Write to MH i2c: 01 00 00 66 0B 71 [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: 01 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: 01 07 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: 01 07 00 66 0B 00 00 00 00 00 E5 0C 69 [14:37:02]RasterBufferAndPrint [14:37:02]line [14:37:02]line [14:37:02]line [14:37:02]line [14:37:02]line [14:37:02]written 0, free lines is 3307 [14:37:02]process_action close_receipt done [14:37:02]requested_data is exist [14:37:02]produce_requested_data [14:37:02]requested_item fm.sn is exist - process it [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 11 00 00 [14:37:02]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 17 00 [14:37:02]MH_I2C_Read... [14:37:02]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 31 37 39 32 90 00 47 [14:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:37:02]wFMCommunicate OK [14:37:02]requested_item fd.num is exist - process it [14:37:02]SAM_PROTO_GetFieldsCounters [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 13 00 00 [14:37:02]Write to MH i2c: E2 08 00 6E 0B 80 13 00 00 00 00 00 00 F5 [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 62 00 [14:37:02]MH_I2C_Read... [14:37:02]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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [14:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:02]wFMCommunicate OK [14:37:02]SAM_PROTO_GetFieldsCounters done [14:37:02]requested_item shift.num is exist - process it [14:37:02]requested_item shift.opened is exist - process it [14:37:02]req_shift_opened [14:37:02]FM_GetShiftState [14:37:02]SAM_PROTO_GetShiftState [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 13 01 00 [14:37:02]Write to MH i2c: E2 08 00 6F 0B 80 13 01 00 00 00 00 00 F7 [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]OFD Sender: No OFD packet to send [14:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 0E 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 0E 00 6F 0B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2C [14:37:02]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:37:02]wFMCommunicate OK [14:37:02]SAM_PROTO_GetShiftState done [14:37:02]FM_GetShiftState done [14:37:02]req_shift_opened done [14:37:02]requested_item shift.open_date is exist - process it [14:37:02]req_shift_open_date [14:37:02]req_shift_open_date done [14:37:02]produce_requested_data done [14:37:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156320,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:37:02]process_action_free close_receipt [14:37:02]json_value_free [14:37:02]json_value_free done [14:37:02]process_json_proto returns [14:37:02]Send response to host [14:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156320,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:37:02]free response buf [14:37:02]execute_script done [14:37:02]execute_script returns [14:37:02]free content buf [14:37:02]Sock 9.Close socket [14:37:02]Sock 9.Thread stoped [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:06]accept exits with 8 [14:51:06]New connection [14:51:06]New thread 3066977636 created [14:51:06]Thread 3066834276 joined [14:51:06]Waiting for new connection... [14:51:06] Sock 8.Parse request [14:51:06]Sock 8.Check first char [14:51:06]Sock 8.First char is OK [14:51:06]request: POST /json_proto HTTP/1.0 [14:51:06]Method: POST [14:51:06]URL: /json_proto [14:51:06]Method is POST - this is cgi request [14:51:06]url: /json_proto [14:51:06]query_string will be loaded in cgi processing [14:51:06]execute_cgi json_proto POST (null) [14:51:06]execute_cgi path=json_proto method=POST [14:51:06]POST find Content-Length [14:51:06]Host: 172.17.63.3:8080 [14:51:06]Content-Length: 676 [14:51:06]Content-Type: application/json [14:51:06] [14:51:06]POST finish read [14:51:06]Found Content-Length = 676 [14:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:06]execute_script... [14:51:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:06]POST & json_proto [14:51:06]process_json_proto [14:51:06]json parsed OK: [14:51:06]protocol is kg_v1.0 [14:51:06]action value=close_receipt [14:51:06]process_action close_receipt [14:51:06]cmd_close_receipt [14:51:06]MH_GetDate [14:51:06]Write to MH i2c: F0 00 00 70 0B 6A [14:51:06]Write i2c OK [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: F0 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: F0 09 00 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: F0 09 00 70 0B 00 DB 01 1D 67 50 D1 6C 64 C4 [14:51:06]GetLastDocTimeStamp 1729953420 [14:51:06]current date 1729954267 [14:51:06]FM_GetShiftState [14:51:06]SAM_PROTO_GetShiftState [14:51:06]wFMCommunicate request_size=4 [14:51:06]MH_SAM_APDU [14:51:06]CAPDU: 80 13 01 00 [14:51:06]Write to MH i2c: E2 08 00 71 0B 80 13 01 00 00 00 00 00 F9 [14:51:06]Write i2c OK [14:51:06]MH_I2C_Read... [14:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:06]Read from MH i2c: E2 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: E2 0E 00 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: E2 0E 00 71 0B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2E [14:51:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:51:06]wFMCommunicate OK [14:51:06]SAM_PROTO_GetShiftState done [14:51:06]FM_GetShiftState done [14:51:06]opened in 1729902702 [14:51:06]opened+sec_in_day 1729989102 [14:51:06]quantity*price = 50041 [14:51:06]sum+1 = 50042 [14:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 222 26.10.2024 14:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156321 ФПД: 139217401288500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145107&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156321&fm=139217401288500&tin=02508201610067®Number=0000000000091693&sum=50000 [14:51:07]StoreToDocumentArchive [14:51:07]shift 536 fd 156321 [14:51:07]save to /storage/0536/doc_00156321 [14:51:07]save last doc name /storage/0536/doc_00156321 to /storage/kkm_last_doc_name [14:51:07]save OK [14:51:07]Clear old archive folders... [14:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:07]tlvbuf is 016EF120 [14:51:07]SAM_PROTO_ClearQueue [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 09 00 00 [14:51:07]Write to MH i2c: E2 08 00 7E 0B 80 09 00 00 00 00 00 00 FB [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [14:51:07]RAPDU: 90 00 [14:51:07]wFMCommunicate OK [14:51:07]SAM_PROTO_ClearQueue done [14:51:07]KKMCreateOFDPacket [14:51:07]OFDProtocolAddRootSTLVToBuf [14:51:07]FM_MakeSignedData [14:51:07]FM_MakeSignedData [14:51:07]SAM_PROTO_SignData [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 0D 01 02 [14:51:07]Write to MH i2c: E2 08 00 7F 0B 80 0D 01 02 00 00 00 00 03 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [14:51:07]RAPDU: 90 00 [14:51:07]wFMCommunicate OK [14:51:07]wFMCommunicate request_size=255 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 DB 01 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 62 02 00 35 04 06 00 7E [14:51:07]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 DB 01 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 62 02 00 35 04 06 00 7E 00 00 72 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:08]Read from MH i2c: E2 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 03 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [14:51:08]RAPDU: 90 00 [14:51:08]wFMCommunicate OK [14:51:08]wFMCommunicate request_size=10 [14:51:08]MH_SAM_APDU [14:51:08]CAPDU: 80 0D 02 02 05 9E 13 C0 17 34 [14:51:08]Write to MH i2c: E2 0D 00 81 0B 80 0D 02 02 05 00 9E 13 C0 17 34 00 00 CC [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:08]Read from MH i2c: E2 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 03 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [14:51:08]RAPDU: 90 00 [14:51:08]wFMCommunicate OK [14:51:08]wFMCommunicate request_size=4 [14:51:08]MH_SAM_APDU [14:51:08]CAPDU: 80 0D 03 02 [14:51:08]Write to MH i2c: E2 08 00 82 0B 80 0D 03 02 00 00 00 00 08 [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]OFD Sender: No OFD packet to send [14:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:08]Read from MH i2c: E2 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 0B 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 0B 00 82 0B 00 CF 21 67 82 41 6C 2A 47 90 00 00 [14:51:08]RAPDU: CF 21 67 82 41 6C 2A 47 90 00 [14:51:08]wFMCommunicate OK [14:51:08]SAM_PROTO_SignData done [14:51:08]FM_MakeSignedData done [14:51:08]CreateOFDProtocolMessage [14:51:08]wFMCommunicate request_size=4 [14:51:08]MH_SAM_APDU [14:51:08]CAPDU: 80 11 00 00 [14:51:08]Write to MH i2c: E2 08 00 83 0B 80 11 00 00 00 00 00 00 08 [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:08]Read from MH i2c: E2 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 17 00 [14:51:08]MH_I2C_Read... [14:51:08]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 31 37 39 32 90 00 5D [14:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:51:08]wFMCommunicate OK [14:51:08]CreateOFDProtocolMessage done [14:51:08]OFDSenderStorePacket 156321 [14:51:08]StoreOFDPacket docnum=156321 [14:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 64 A3 07 01 A6 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 DB 01 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 62 02 00 35 04 06 00 7E 9E 13 C0 17 34 CF 21 67 82 41 6C 2A 47 [14:51:08]CheckFolder [14:51:08]dirname=/storage/ofd_packets [14:51:08]CheckFolder done [14:51:08]ProducePacketName [14:51:08]name=ofd_packets/00156321 [14:51:08]NVStorageSaveData ofd_packets/00156321 [14:51:08]File name is /storage/ofd_packets/00156321 [14:51:08]Write 301 bytes [14:51:08]NVStorageSaveData done [14:51:08]OFDSenderStorePacket done [14:51:08]KKMCreateOFDPacket done [14:51:08]NVStorageSaveData kkm_last_timestamp [14:51:08]File name is /storage/kkm_last_timestamp [14:51:08]Write 4 bytes [14:51:08]NVStorageSaveData done [14:51:08]ExternCall_PrintAddStr [14:51:08]wPrintStart [14:51:08]Write to MH i2c: 01 00 00 84 0B 8F [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 07 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 07 00 84 0B 00 00 00 00 00 FF 0F A4 [14:51:08]RasterBufferAndPrint [14:51:08]line Счет N : (1)99136 [14:51:08]line ИНН: 02508201610067 [14:51:08]line Контрольно-Кассовый Чек [14:51:08]line ПРОДАЖА [14:51:08]line ТРК (МРК, ГНК) : 21 [14:51:08]line Товар: 2710124130 [14:51:08]line Аи-92-К-5 [14:51:08]line 7.480 * 66.90 [14:51:08]line = 500.41 [14:51:08]line НДС 12% НСП 1% [14:51:08]line > о реализуемом товаре [14:51:08]line ОКРУГЛЕНИЕ: -0.41 [14:51:08]line ИТОГО: 500.00 [14:51:08]line Внесено: 500.00 [14:51:08]line СДАЧА: 0.00 [14:51:08]line НСП 1% : 4.43 [14:51:08]line НДС 12% : 53.14 [14:51:08]line Наличными: 500.00 [14:51:08]line Безнал.: 0.00 [14:51:08]line Место: АЗС № 143 "Партнер Нефть" [14:51:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:51:08]line СНО: Общий режим [14:51:08]line Чек 222 26.10.2024 14:51 [14:51:08]line Смена: 536 ФФД: 1.0 [14:51:08]line ЗНМ: 0300000096 [14:51:08]line РНМ: 0000000000091693 [14:51:08]line Версия ККМ: 001 [14:51:08]line ФМ: 0000000000871792 [14:51:08]line ФД: 156321 [14:51:08]line ФПД: 139217401288500 [14:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145107&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156321&fm=139217401288500&tin=02508201610067®Number=0000000000091693&sum=50000 [14:51:08]written 0, free lines is 4095 [14:51:08]OFD Sender: Processing packet 156321 [packets to send 31, broken 30] [14:51:08]ProducePacketName [14:51:08]name=ofd_packets/00156321 [14:51:08]OFD Sender: To server: pG, [14:51:08]CommunicateWithHost lk.salyk.kg:30040 [14:51:08]ConnectInit lk.salyk.kg [14:51:08]Connected sock=10 [14:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 64 A3 07 01 A6 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 DB 01 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 62 02 00 35 04 06 00 7E 9E 13 C0 17 34 CF 21 67 82 41 6C 2A 47 [14:51:08]Write to MH i2c: 01 00 00 AF 0B BA [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 07 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 E9 0C B6 [14:51:08]RasterBufferAndPrint [14:51:08]line [14:51:08]line [14:51:08]line [14:51:08]line [14:51:08]line [14:51:08]written 0, free lines is 3312 [14:51:08]process_action close_receipt done [14:51:08]requested_data is exist [14:51:08]produce_requested_data [14:51:08]requested_item fm.sn is exist - process it [14:51:08]wFMCommunicate request_size=4 [14:51:08]MH_SAM_APDU [14:51:08]CAPDU: 80 11 00 00 [14:51:08]Write to MH i2c: E2 08 00 B6 0B 80 11 00 00 00 00 00 00 3B [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:08]Read from MH i2c: E2 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 17 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 17 00 B6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 90 [14:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:51:08]wFMCommunicate OK [14:51:08]requested_item fd.num is exist - process it [14:51:08]SAM_PROTO_GetFieldsCounters [14:51:08]wFMCommunicate request_size=4 [14:51:08]MH_SAM_APDU [14:51:08]CAPDU: 80 13 00 00 [14:51:08]Write to MH i2c: E2 08 00 B7 0B 80 13 00 00 00 00 00 00 3E [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:08]Read from MH i2c: E2 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 62 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: E2 62 00 B7 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:51:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:08]wFMCommunicate OK [14:51:08]SAM_PROTO_GetFieldsCounters done [14:51:08]requested_item shift.num is exist - process it [14:51:08]requested_item shift.opened is exist - process it [14:51:08]req_shift_opened [14:51:08]FM_GetShiftState [14:51:08]SAM_PROTO_GetShiftState [14:51:08]wFMCommunicate request_size=4 [14:51:08]MH_SAM_APDU [14:51:08]CAPDU: 80 13 01 00 [14:51:08]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [14:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 43 22 47 00 7E F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 62 02 00 F4 03 04 00 4D A7 1C 67 B6 04 01 00 00 43 E2 BA BD D6 96 C1 E4 [14:51:08]CommunicateWithHost err = 0 [14:51:08]CheckOFDResponse [14:51:08]1017 (14) - 77093643461234 [14:51:08]1041 (16) - 0000000000871792 [14:51:08]1040 (4) - 156321 [14:51:08]1012 (4) - 26.10.2024 08:24 [14:51:08]1206 (1) - 0 [14:51:08]OFD Sender: Remove packet 156321 [14:51:08]ProducePacketName [14:51:08]name=ofd_packets/00156321 [14:51:08]NVStorageDeleteData [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:09]Read from MH i2c: E2 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 0E 00 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 75 [14:51:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:51:09]wFMCommunicate OK [14:51:09]SAM_PROTO_GetShiftState done [14:51:09]FM_GetShiftState done [14:51:09]req_shift_opened done [14:51:09]requested_item shift.open_date is exist - process it [14:51:09]req_shift_open_date [14:51:09]req_shift_open_date done [14:51:09]produce_requested_data done [14:51:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156321,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:51:09]process_action_free close_receipt [14:51:09]json_value_free [14:51:09]json_value_free done [14:51:09]process_json_proto returns [14:51:09]Send response to host [14:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156321,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:51:09]free response buf [14:51:09]execute_script done [14:51:09]execute_script returns [14:51:09]free content buf [14:51:09]Sock 8.Close socket [14:51:09]Sock 8.Thread stoped [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:06]accept exits with 9 [14:53:06]New connection [14:53:06]New thread 3066834276 created [14:53:06]Thread 3066977636 joined [14:53:06]Waiting for new connection... [14:53:06] Sock 9.Parse request [14:53:06]Sock 9.Check first char [14:53:06]Sock 9.First char is OK [14:53:06]request: POST /json_proto HTTP/1.0 [14:53:06]Method: POST [14:53:06]URL: /json_proto [14:53:06]Method is POST - this is cgi request [14:53:06]url: /json_proto [14:53:06]query_string will be loaded in cgi processing [14:53:06]execute_cgi json_proto POST (null) [14:53:06]execute_cgi path=json_proto method=POST [14:53:06]POST find Content-Length [14:53:06]Host: 172.17.63.3:8080 [14:53:06]Content-Length: 676 [14:53:06]Content-Type: application/json [14:53:06] [14:53:06]POST finish read [14:53:06]Found Content-Length = 676 [14:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:06]execute_script... [14:53:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:06]POST & json_proto [14:53:06]process_json_proto [14:53:06]json parsed OK: [14:53:06]protocol is kg_v1.0 [14:53:06]action value=close_receipt [14:53:06]process_action close_receipt [14:53:06]cmd_close_receipt [14:53:06]MH_GetDate [14:53:06]Write to MH i2c: F0 00 00 B9 0B B3 [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: F0 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: F0 09 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: F0 09 00 B9 0B 00 52 02 1D 67 50 D1 6C 64 85 [14:53:06]GetLastDocTimeStamp 1729954267 [14:53:06]current date 1729954386 [14:53:06]FM_GetShiftState [14:53:06]SAM_PROTO_GetShiftState [14:53:06]wFMCommunicate request_size=4 [14:53:06]MH_SAM_APDU [14:53:06]CAPDU: 80 13 01 00 [14:53:06]Write to MH i2c: E2 08 00 BA 0B 80 13 01 00 00 00 00 00 42 [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:06]Read from MH i2c: E2 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 0E 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 0E 00 BA 0B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 77 [14:53:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:53:06]wFMCommunicate OK [14:53:06]SAM_PROTO_GetShiftState done [14:53:06]FM_GetShiftState done [14:53:06]opened in 1729902702 [14:53:06]opened+sec_in_day 1729989102 [14:53:06]quantity*price = 50041 [14:53:06]sum+1 = 50042 [14:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 223 26.10.2024 14:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156322 ФПД: 88249950670379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145306&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156322&fm=88249950670379&tin=02508201610067®Number=0000000000091693&sum=50000 [14:53:07]StoreToDocumentArchive [14:53:07]shift 536 fd 156322 [14:53:07]save to /storage/0536/doc_00156322 [14:53:07]save last doc name /storage/0536/doc_00156322 to /storage/kkm_last_doc_name [14:53:07]save OK [14:53:07]Clear old archive folders... [14:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:07]tlvbuf is B6EE0C60 [14:53:07]SAM_PROTO_ClearQueue [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 09 00 00 [14:53:07]Write to MH i2c: E2 08 00 C7 0B 80 09 00 00 00 00 00 00 44 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [14:53:07]RAPDU: 90 00 [14:53:07]wFMCommunicate OK [14:53:07]SAM_PROTO_ClearQueue done [14:53:07]KKMCreateOFDPacket [14:53:07]OFDProtocolAddRootSTLVToBuf [14:53:07]FM_MakeSignedData [14:53:07]FM_MakeSignedData [14:53:07]SAM_PROTO_SignData [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 0D 01 02 [14:53:07]Write to MH i2c: E2 08 00 C8 0B 80 0D 01 02 00 00 00 00 4C [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [14:53:07]RAPDU: 90 00 [14:53:07]wFMCommunicate OK [14:53:07]wFMCommunicate request_size=255 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 52 02 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 62 02 00 35 04 06 00 50 [14:53:07]Write to MH i2c: E2 02 01 C9 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 52 02 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 62 02 00 35 04 06 00 50 00 00 07 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [14:53:07]RAPDU: 90 00 [14:53:07]wFMCommunicate OK [14:53:07]wFMCommunicate request_size=10 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 0D 02 02 05 43 4A F6 0E 2B [14:53:07]Write to MH i2c: E2 0D 00 CA 0B 80 0D 02 02 05 00 43 4A F6 0E 2B 00 00 15 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [14:53:07]RAPDU: 90 00 [14:53:07]wFMCommunicate OK [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 0D 03 02 [14:53:07]Write to MH i2c: E2 08 00 CB 0B 80 0D 03 02 00 00 00 00 51 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 0B 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 0B 00 CB 0B 00 26 F3 59 AA AD 2B 9A C5 90 00 A5 [14:53:07]RAPDU: 26 F3 59 AA AD 2B 9A C5 90 00 [14:53:07]wFMCommunicate OK [14:53:07]SAM_PROTO_SignData done [14:53:07]FM_MakeSignedData done [14:53:07]CreateOFDProtocolMessage [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 11 00 00 [14:53:07]Write to MH i2c: E2 08 00 CC 0B 80 11 00 00 00 00 00 00 51 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 17 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 17 00 CC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [14:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:53:07]wFMCommunicate OK [14:53:07]CreateOFDProtocolMessage done [14:53:07]OFDSenderStorePacket 156322 [14:53:07]StoreOFDPacket docnum=156322 [14:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D3 71 07 01 DF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 52 02 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 62 02 00 35 04 06 00 50 43 4A F6 0E 2B 26 F3 59 AA AD 2B 9A C5 [14:53:07]CheckFolder [14:53:07]dirname=/storage/ofd_packets [14:53:07]CheckFolder done [14:53:07]ProducePacketName [14:53:07]name=ofd_packets/00156322 [14:53:07]NVStorageSaveData ofd_packets/00156322 [14:53:07]File name is /storage/ofd_packets/00156322 [14:53:07]Write 301 bytes [14:53:07]NVStorageSaveData done [14:53:07]OFDSenderStorePacket done [14:53:07]KKMCreateOFDPacket done [14:53:07]NVStorageSaveData kkm_last_timestamp [14:53:07]File name is /storage/kkm_last_timestamp [14:53:07]Write 4 bytes [14:53:07]NVStorageSaveData done [14:53:07]ExternCall_PrintAddStr [14:53:07]wPrintStart [14:53:07]Write to MH i2c: 01 00 00 CD 0B D8 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 CD 0B 00 00 00 00 00 FF 0F ED [14:53:07]RasterBufferAndPrint [14:53:07]line Счет N : (1)99137 [14:53:07]line ИНН: 02508201610067 [14:53:07]line Контрольно-Кассовый Чек [14:53:07]line ПРОДАЖА [14:53:07]line ТРК (МРК, ГНК) : 11 [14:53:07]line Товар: 2710124130 [14:53:07]line Аи-92-К-5 [14:53:07]line 7.480 * 66.90 [14:53:07]line = 500.41 [14:53:07]line НДС 12% НСП 1% [14:53:07]line > о реализуемом товаре [14:53:07]line ОКРУГЛЕНИЕ: -0.41 [14:53:07]line ИТОГО: 500.00 [14:53:07]line Внесено: 500.00 [14:53:07]line СДАЧА: 0.00 [14:53:07]line НСП 1% : 4.43 [14:53:07]line НДС 12% : 53.14 [14:53:07]line Наличными: 500.00 [14:53:07]line Безнал.: 0.00 [14:53:07]line Место: АЗС № 143 "Партнер Нефть" [14:53:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:53:07]line СНО: Общий режим [14:53:07]line Чек 223 26.10.2024 14:53 [14:53:07]line Смена: 536 ФФД: 1.0 [14:53:07]line ЗНМ: 0300000096 [14:53:07]line РНМ: 0000000000091693 [14:53:07]line Версия ККМ: 001 [14:53:07]line ФМ: 0000000000871792 [14:53:07]line ФД: 156322 [14:53:07]line ФПД: 88249950670379 [14:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145306&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156322&fm=88249950670379&tin=02508201610067®Number=0000000000091693&sum=50000 [14:53:08]OFD Sender: Processing packet 156322 [packets to send 31, broken 30] [14:53:08]ProducePacketName [14:53:08]name=ofd_packets/00156322 [14:53:08]OFD Sender: To server: pG, [14:53:08]CommunicateWithHost lk.salyk.kg:30040 [14:53:08]ConnectInit lk.salyk.kg [14:53:08]written 0, free lines is 4095 [14:53:08]Connected sock=10 [14:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D3 71 07 01 DF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 52 02 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 62 02 00 35 04 06 00 50 43 4A F6 0E 2B 26 F3 59 AA AD 2B 9A C5 [14:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 09 D5 47 00 B1 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 62 02 00 F4 03 04 00 C5 A7 1C 67 B6 04 01 00 00 78 D9 F1 CF 4B 17 FA B0 [14:53:08]CommunicateWithHost err = 0 [14:53:08]CheckOFDResponse [14:53:08]1017 (14) - 77093643461234 [14:53:08]1041 (16) - 0000000000871792 [14:53:08]1040 (4) - 156322 [14:53:08]1012 (4) - 26.10.2024 08:26 [14:53:08]1206 (1) - 0 [14:53:08]OFD Sender: Remove packet 156322 [14:53:08]ProducePacketName [14:53:08]name=ofd_packets/00156322 [14:53:08]NVStorageDeleteData [14:53:08]Write to MH i2c: 01 00 00 F8 0B 03 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: 01 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: 01 07 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: 01 07 00 F8 0B 00 00 00 00 00 E6 0C FC [14:53:08]RasterBufferAndPrint [14:53:08]line [14:53:08]line [14:53:08]line [14:53:08]line [14:53:08]line [14:53:08]written 0, free lines is 3308 [14:53:08]process_action close_receipt done [14:53:08]requested_data is exist [14:53:08]produce_requested_data [14:53:08]requested_item fm.sn is exist - process it [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 11 00 00 [14:53:08]Write to MH i2c: E2 08 00 FF 0B 80 11 00 00 00 00 00 00 84 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 17 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 17 00 FF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D9 [14:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:53:08]wFMCommunicate OK [14:53:08]requested_item fd.num is exist - process it [14:53:08]SAM_PROTO_GetFieldsCounters [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 13 00 00 [14:53:08]Write to MH i2c: E2 08 00 00 0C 80 13 00 00 00 00 00 00 88 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 62 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 62 00 00 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [14:53:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:08]wFMCommunicate OK [14:53:08]SAM_PROTO_GetFieldsCounters done [14:53:08]requested_item shift.num is exist - process it [14:53:08]requested_item shift.opened is exist - process it [14:53:08]req_shift_opened [14:53:08]FM_GetShiftState [14:53:08]SAM_PROTO_GetShiftState [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 13 01 00 [14:53:08]Write to MH i2c: E2 08 00 01 0C 80 13 01 00 00 00 00 00 8A [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 0E 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 0E 00 01 0C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BF [14:53:08]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:53:08]wFMCommunicate OK [14:53:08]SAM_PROTO_GetShiftState done [14:53:08]FM_GetShiftState done [14:53:08]req_shift_opened done [14:53:08]requested_item shift.open_date is exist - process it [14:53:08]req_shift_open_date [14:53:08]req_shift_open_date done [14:53:08]produce_requested_data done [14:53:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156322,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:53:08]process_action_free close_receipt [14:53:08]json_value_free [14:53:08]json_value_free done [14:53:08]process_json_proto returns [14:53:08]Send response to host [14:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156322,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:53:08]free response buf [14:53:08]execute_script done [14:53:08]execute_script returns [14:53:08]free content buf [14:53:08]Sock 9.Close socket [14:53:08]Sock 9.Thread stoped [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]accept exits with 8 [14:54:58]New connection [14:54:58]New thread 3066977636 created [14:54:58]Thread 3066834276 joined [14:54:58]Waiting for new connection... [14:54:58] Sock 8.Parse request [14:54:58]Sock 8.Check first char [14:54:58]Sock 8.First char is OK [14:54:58]request: POST /json_proto HTTP/1.0 [14:54:58]Method: POST [14:54:58]URL: /json_proto [14:54:58]Method is POST - this is cgi request [14:54:58]url: /json_proto [14:54:58]query_string will be loaded in cgi processing [14:54:58]execute_cgi json_proto POST (null) [14:54:58]execute_cgi path=json_proto method=POST [14:54:58]POST find Content-Length [14:54:58]Host: 172.17.63.3:8080 [14:54:58]Content-Length: 766 [14:54:58]Content-Type: application/json [14:54:58] [14:54:58]POST finish read [14:54:58]Found Content-Length = 766 [14:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:58]execute_script... [14:54:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:58]POST & json_proto [14:54:58]process_json_proto [14:54:58]json parsed OK: [14:54:58]protocol is kg_v1.0 [14:54:58]action value=close_receipt [14:54:58]process_action close_receipt [14:54:58]cmd_close_receipt [14:54:58]MH_GetDate [14:54:58]Write to MH i2c: F0 00 00 02 0C FD [14:54:58]Write i2c OK [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: F0 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: F0 09 00 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: F0 09 00 02 0C 00 C3 02 1D 67 50 D1 6C 64 40 [14:54:58]GetLastDocTimeStamp 1729954386 [14:54:58]current date 1729954499 [14:54:58]FM_GetShiftState [14:54:58]SAM_PROTO_GetShiftState [14:54:58]wFMCommunicate request_size=4 [14:54:58]MH_SAM_APDU [14:54:58]CAPDU: 80 13 01 00 [14:54:58]Write to MH i2c: E2 08 00 03 0C 80 13 01 00 00 00 00 00 8C [14:54:58]Write i2c OK [14:54:58]MH_I2C_Read... [14:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:58]Read from MH i2c: E2 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: E2 0E 00 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: E2 0E 00 03 0C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C1 [14:54:58]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:54:58]wFMCommunicate OK [14:54:58]SAM_PROTO_GetShiftState done [14:54:58]FM_GetShiftState done [14:54:58]opened in 1729902702 [14:54:58]opened+sec_in_day 1729989102 [14:54:58]quantity*price = 70044 [14:54:58]sum+1 = 70045 [14:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 224 26.10.2024 14:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156323 ФПД: 77878132860136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145459&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156323&fm=77878132860136&tin=02508201610067®Number=0000000000091693&sum=70044 [14:54:59]StoreToDocumentArchive [14:54:59]shift 536 fd 156323 [14:54:59]save to /storage/0536/doc_00156323 [14:54:59]save last doc name /storage/0536/doc_00156323 to /storage/kkm_last_doc_name [14:54:59]save OK [14:54:59]Clear old archive folders... [14:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:59]tlvbuf is 016FB1C0 [14:54:59]SAM_PROTO_ClearQueue [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 09 00 00 [14:54:59]Write to MH i2c: E2 08 00 10 0C 80 09 00 00 00 00 00 00 8E [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 03 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [14:54:59]RAPDU: 90 00 [14:54:59]wFMCommunicate OK [14:54:59]SAM_PROTO_ClearQueue done [14:54:59]KKMCreateOFDPacket [14:54:59]OFDProtocolAddRootSTLVToBuf [14:54:59]FM_MakeSignedData [14:54:59]FM_MakeSignedData [14:54:59]SAM_PROTO_SignData [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 0D 01 02 [14:54:59]Write to MH i2c: E2 08 00 11 0C 80 0D 01 02 00 00 00 00 96 [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 03 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [14:54:59]RAPDU: 90 00 [14:54:59]wFMCommunicate OK [14:54:59]wFMCommunicate request_size=255 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C3 02 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 62 02 00 35 04 06 00 46 [14:54:59]Write to MH i2c: E2 02 01 12 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C3 02 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 62 02 00 35 04 06 00 46 00 00 22 [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 03 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [14:54:59]RAPDU: 90 00 [14:54:59]wFMCommunicate OK [14:54:59]wFMCommunicate request_size=10 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 0D 02 02 05 D4 6A 71 E4 E8 [14:54:59]Write to MH i2c: E2 0D 00 13 0C 80 0D 02 02 05 00 D4 6A 71 E4 E8 00 00 1E [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 03 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [14:54:59]RAPDU: 90 00 [14:54:59]wFMCommunicate OK [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 0D 03 02 [14:54:59]Write to MH i2c: E2 08 00 14 0C 80 0D 03 02 00 00 00 00 9B [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:00]Read from MH i2c: E2 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 0B 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 0B 00 14 0C 00 01 80 82 A0 FB 2C 3D E8 90 00 8B [14:55:00]RAPDU: 01 80 82 A0 FB 2C 3D E8 90 00 [14:55:00]wFMCommunicate OK [14:55:00]SAM_PROTO_SignData done [14:55:00]FM_MakeSignedData done [14:55:00]CreateOFDProtocolMessage [14:55:00]wFMCommunicate request_size=4 [14:55:00]MH_SAM_APDU [14:55:00]CAPDU: 80 11 00 00 [14:55:00]Write to MH i2c: E2 08 00 15 0C 80 11 00 00 00 00 00 00 9B [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:00]Read from MH i2c: E2 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 17 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 17 00 15 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F0 [14:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:55:00]wFMCommunicate OK [14:55:00]CreateOFDProtocolMessage done [14:55:00]OFDSenderStorePacket 156323 [14:55:00]StoreOFDPacket docnum=156323 [14:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB 27 07 01 2C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C3 02 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 62 02 00 35 04 06 00 46 D4 6A 71 E4 E8 01 80 82 A0 FB 2C 3D E8 [14:55:00]CheckFolder [14:55:00]dirname=/storage/ofd_packets [14:55:00]CheckFolder done [14:55:00]ProducePacketName [14:55:00]name=ofd_packets/00156323 [14:55:00]NVStorageSaveData ofd_packets/00156323 [14:55:00]File name is /storage/ofd_packets/00156323 [14:55:00]Write 301 bytes [14:55:00]NVStorageSaveData done [14:55:00]OFDSenderStorePacket done [14:55:00]KKMCreateOFDPacket done [14:55:00]NVStorageSaveData kkm_last_timestamp [14:55:00]File name is /storage/kkm_last_timestamp [14:55:00]Write 4 bytes [14:55:00]NVStorageSaveData done [14:55:00]ExternCall_PrintAddStr [14:55:00]wPrintStart [14:55:00]Write to MH i2c: 01 00 00 16 0C 22 [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: 01 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: 01 07 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: 01 07 00 16 0C 00 00 00 00 00 FF 0F 37 [14:55:00]RasterBufferAndPrint [14:55:00]line Счет N : (1)99138 [14:55:00]line ИНН: 02508201610067 [14:55:00]line Контрольно-Кассовый Чек [14:55:00]line ПРОДАЖА [14:55:00]line ТРК (МРК, ГНК) : 21 [14:55:00]line Товар: 2710124130 [14:55:00]line Аи-92-К-5 [14:55:00]line 10.470 * 66.90 [14:55:00]line = 700.44 [14:55:00]line НДС 12% НСП 1% [14:55:00]line > о реализуемом товаре [14:55:00]line ИТОГО: 700.44 [14:55:00]line НСП 1% : 6.20 [14:55:00]line НДС 12% : 74.38 [14:55:00]line Наличными: 0.00 [14:55:00]line Безнал.: 700.44 [14:55:00]line Место: АЗС № 143 "Партнер Нефть" [14:55:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:55:00]line СНО: Общий режим [14:55:00]line Чек 224 26.10.2024 14:54 [14:55:00]line Смена: 536 ФФД: 1.0 [14:55:00]line ЗНМ: 0300000096 [14:55:00]line РНМ: 0000000000091693 [14:55:00]line Версия ККМ: 001 [14:55:00]line Платежная система: Mbank [14:55:00]line ФМ: 0000000000871792 [14:55:00]line ФД: 156323 [14:55:00]line ФПД: 77878132860136 [14:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145459&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156323&fm=77878132860136&tin=02508201610067®Number=0000000000091693&sum=70044 [14:55:00]OFD Sender: Processing packet 156323 [packets to send 31, broken 30] [14:55:00]ProducePacketName [14:55:00]name=ofd_packets/00156323 [14:55:00]OFD Sender: To server: pG, [14:55:00]CommunicateWithHost lk.salyk.kg:30040 [14:55:00]ConnectInit lk.salyk.kg [14:55:00]written 0, free lines is 4095 [14:55:00]Connected sock=9 [14:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB 27 07 01 2C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C3 02 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 62 02 00 35 04 06 00 46 D4 6A 71 E4 E8 01 80 82 A0 FB 2C 3D E8 [14:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 64 9C 47 00 2F 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 62 02 00 F4 03 04 00 35 A8 1C 67 B6 04 01 00 00 32 3C CD 9B CF 7F 91 04 [14:55:00]CommunicateWithHost err = 0 [14:55:00]CheckOFDResponse [14:55:00]1017 (14) - 77093643461234 [14:55:00]1041 (16) - 0000000000871792 [14:55:00]1040 (4) - 156323 [14:55:00]1012 (4) - 26.10.2024 08:28 [14:55:00]1206 (1) - 0 [14:55:00]OFD Sender: Remove packet 156323 [14:55:00]ProducePacketName [14:55:00]name=ofd_packets/00156323 [14:55:00]NVStorageDeleteData [14:55:00]Write to MH i2c: 01 00 00 3F 0C 4B [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: 01 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: 01 07 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: 01 07 00 3F 0C 00 00 00 00 00 19 0D 78 [14:55:00]RasterBufferAndPrint [14:55:00]line [14:55:00]line [14:55:00]line [14:55:00]line [14:55:00]line [14:55:00]written 0, free lines is 3359 [14:55:00]process_action close_receipt done [14:55:00]requested_data is exist [14:55:00]produce_requested_data [14:55:00]requested_item fm.sn is exist - process it [14:55:00]wFMCommunicate request_size=4 [14:55:00]MH_SAM_APDU [14:55:00]CAPDU: 80 11 00 00 [14:55:00]Write to MH i2c: E2 08 00 46 0C 80 11 00 00 00 00 00 00 CC [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:00]Read from MH i2c: E2 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 17 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 17 00 46 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 21 [14:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:55:00]wFMCommunicate OK [14:55:00]requested_item fd.num is exist - process it [14:55:00]SAM_PROTO_GetFieldsCounters [14:55:00]wFMCommunicate request_size=4 [14:55:00]MH_SAM_APDU [14:55:00]CAPDU: 80 13 00 00 [14:55:00]Write to MH i2c: E2 08 00 47 0C 80 13 00 00 00 00 00 00 CF [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 62 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 62 00 47 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [14: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:01]wFMCommunicate OK [14:55:01]SAM_PROTO_GetFieldsCounters done [14:55:01]requested_item shift.num is exist - process it [14:55:01]requested_item shift.opened is exist - process it [14:55:01]req_shift_opened [14:55:01]FM_GetShiftState [14:55:01]SAM_PROTO_GetShiftState [14:55:01]wFMCommunicate request_size=4 [14:55:01]MH_SAM_APDU [14:55:01]CAPDU: 80 13 01 00 [14:55:01]Write to MH i2c: E2 08 00 48 0C 80 13 01 00 00 00 00 00 D1 [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:01]Read from MH i2c: E2 0E 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 0E 00 48 0C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 06 [14:55:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:55:01]wFMCommunicate OK [14:55:01]SAM_PROTO_GetShiftState done [14:55:01]FM_GetShiftState done [14:55:01]req_shift_opened done [14:55:01]requested_item shift.open_date is exist - process it [14:55:01]req_shift_open_date [14:55:01]req_shift_open_date done [14:55:01]produce_requested_data done [14:55:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156323,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:55:01]process_action_free close_receipt [14:55:01]json_value_free [14:55:01]json_value_free done [14:55:01]process_json_proto returns [14:55:01]Send response to host [14:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156323,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:55:01]free response buf [14:55:01]execute_script done [14:55:01]execute_script returns [14:55:01]free content buf [14:55:01]Sock 8.Close socket [14:55:01]Sock 8.Thread stoped [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:18]accept exits with 10 [14:57:18]New connection [14:57:18]New thread 3066834276 created [14:57:18]Thread 3066977636 joined [14:57:18]Waiting for new connection... [14:57:18] Sock 10.Parse request [14:57:18]Sock 10.Check first char [14:57:18]Sock 10.First char is OK [14:57:18]request: POST /json_proto HTTP/1.0 [14:57:18]Method: POST [14:57:18]URL: /json_proto [14:57:18]Method is POST - this is cgi request [14:57:18]url: /json_proto [14:57:18]query_string will be loaded in cgi processing [14:57:18]execute_cgi json_proto POST (null) [14:57:18]execute_cgi path=json_proto method=POST [14:57:18]POST find Content-Length [14:57:18]Host: 172.17.63.3:8080 [14:57:18]Content-Length: 676 [14:57:18]Content-Type: application/json [14:57:18] [14:57:18]POST finish read [14:57:18]Found Content-Length = 676 [14:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:18]execute_script... [14:57: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)99139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:18]POST & json_proto [14:57:18]process_json_proto [14:57:18]json parsed OK: [14:57:18]protocol is kg_v1.0 [14:57:18]action value=close_receipt [14:57:18]process_action close_receipt [14:57:18]cmd_close_receipt [14:57:18]MH_GetDate [14:57:18]Write to MH i2c: F0 00 00 49 0C 44 [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: F0 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: F0 09 00 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: F0 09 00 49 0C 00 4E 03 1D 67 50 D1 6C 64 13 [14:57:18]GetLastDocTimeStamp 1729954499 [14:57:18]current date 1729954638 [14:57:18]FM_GetShiftState [14:57:18]SAM_PROTO_GetShiftState [14:57:18]wFMCommunicate request_size=4 [14:57:18]MH_SAM_APDU [14:57:18]CAPDU: 80 13 01 00 [14:57:18]Write to MH i2c: E2 08 00 4A 0C 80 13 01 00 00 00 00 00 D3 [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:18]Read from MH i2c: E2 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 0E 00 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 0E 00 4A 0C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 08 [14:57:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:57:18]wFMCommunicate OK [14:57:18]SAM_PROTO_GetShiftState done [14:57:18]FM_GetShiftState done [14:57:18]opened in 1729902702 [14:57:18]opened+sec_in_day 1729989102 [14:57:18]quantity*price = 30038 [14:57:18]sum+1 = 30039 [14:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 225 26.10.2024 14:57 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156324 ФПД: 250590260230064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156324&fm=250590260230064&tin=02508201610067®Number=0000000000091693&sum=30000 [14:57:19]StoreToDocumentArchive [14:57:19]shift 536 fd 156324 [14:57:19]save to /storage/0536/doc_00156324 [14:57:19]save last doc name /storage/0536/doc_00156324 to /storage/kkm_last_doc_name [14:57:19]save OK [14:57:19]Clear old archive folders... [14:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:19]tlvbuf is 016EF2B0 [14:57:19]SAM_PROTO_ClearQueue [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 09 00 00 [14:57:19]Write to MH i2c: E2 08 00 57 0C 80 09 00 00 00 00 00 00 D5 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 57 0C 00 90 00 D7 [14:57:19]RAPDU: 90 00 [14:57:19]wFMCommunicate OK [14:57:19]SAM_PROTO_ClearQueue done [14:57:19]KKMCreateOFDPacket [14:57:19]OFDProtocolAddRootSTLVToBuf [14:57:19]FM_MakeSignedData [14:57:19]FM_MakeSignedData [14:57:19]SAM_PROTO_SignData [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 0D 01 02 [14:57:19]Write to MH i2c: E2 08 00 58 0C 80 0D 01 02 00 00 00 00 DD [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [14:57:19]RAPDU: 90 00 [14:57:19]wFMCommunicate OK [14:57:19]wFMCommunicate request_size=255 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 4E 03 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 62 02 00 35 04 06 00 E3 [14:57:19]Write to MH i2c: E2 02 01 59 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 4E 03 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 62 02 00 35 04 06 00 E3 00 00 20 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 59 0C 00 90 00 D9 [14:57:19]RAPDU: 90 00 [14:57:19]wFMCommunicate OK [14:57:19]wFMCommunicate request_size=10 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 0D 02 02 05 E9 17 71 F7 B0 [14:57:19]Write to MH i2c: E2 0D 00 5A 0C 80 0D 02 02 05 00 E9 17 71 F7 B0 00 00 02 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 5A 0C 00 90 00 DA [14:57:19]RAPDU: 90 00 [14:57:19]wFMCommunicate OK [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 0D 03 02 [14:57:19]Write to MH i2c: E2 08 00 5B 0C 80 0D 03 02 00 00 00 00 E2 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 0B 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 0B 00 5B 0C 00 48 FF CC 60 57 0A A2 5D 90 00 B6 [14:57:19]RAPDU: 48 FF CC 60 57 0A A2 5D 90 00 [14:57:19]wFMCommunicate OK [14:57:19]SAM_PROTO_SignData done [14:57:19]FM_MakeSignedData done [14:57:19]CreateOFDProtocolMessage [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 11 00 00 [14:57:19]Write to MH i2c: E2 08 00 5C 0C 80 11 00 00 00 00 00 00 E2 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 17 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 17 00 5C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [14:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:57:19]wFMCommunicate OK [14:57:19]CreateOFDProtocolMessage done [14:57:19]OFDSenderStorePacket 156324 [14:57:19]StoreOFDPacket docnum=156324 [14:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2E 5D 07 01 77 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 4E 03 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 62 02 00 35 04 06 00 E3 E9 17 71 F7 B0 48 FF CC 60 57 0A A2 5D [14:57:19]CheckFolder [14:57:19]dirname=/storage/ofd_packets [14:57:19]CheckFolder done [14:57:19]ProducePacketName [14:57:19]name=ofd_packets/00156324 [14:57:19]NVStorageSaveData ofd_packets/00156324 [14:57:19]File name is /storage/ofd_packets/00156324 [14:57:19]Write 301 bytes [14:57:19]NVStorageSaveData done [14:57:19]OFDSenderStorePacket done [14:57:19]KKMCreateOFDPacket done [14:57:19]NVStorageSaveData kkm_last_timestamp [14:57:19]File name is /storage/kkm_last_timestamp [14:57:19]Write 4 bytes [14:57:19]NVStorageSaveData done [14:57:19]OFD Sender: Processing packet 156324 [packets to send 31, broken 30] [14:57:19]ProducePacketName [14:57:19]name=ofd_packets/00156324 [14:57:19]OFD Sender: To server: pG, [14:57:19]CommunicateWithHost lk.salyk.kg:30040 [14:57:19]ConnectInit lk.salyk.kg [14:57:19]ExternCall_PrintAddStr [14:57:19]wPrintStart [14:57:19]Write to MH i2c: 01 00 00 5D 0C 69 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: 01 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: 01 07 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: 01 07 00 5D 0C 00 00 00 00 00 FF 0F 7E [14:57:19]RasterBufferAndPrint [14:57:19]line Счет N : (1)99139 [14:57:19]line ИНН: 02508201610067 [14:57:19]line Контрольно-Кассовый Чек [14:57:19]line ПРОДАЖА [14:57:19]line ТРК (МРК, ГНК) : 11 [14:57:19]line Товар: 2710124130 [14:57:19]line Аи-92-К-5 [14:57:19]line 4.490 * 66.90 [14:57:19]line = 300.38 [14:57:19]line НДС 12% НСП 1% [14:57:19]line > о реализуемом товаре [14:57:19]line ОКРУГЛЕНИЕ: -0.38 [14:57:19]line ИТОГО: 300.00 [14:57:19]line Внесено: 300.00 [14:57:19]line СДАЧА: 0.00 [14:57:19]line НСП 1% : 2.66 [14:57:19]line НДС 12% : 31.90 [14:57:19]line Наличными: 300.00 [14:57:19]line Безнал.: 0.00 [14:57:19]line Место: АЗС № 143 "Партнер Нефть" [14:57:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:57:19]line СНО: Общий режим [14:57:19]line Чек 225 26.10.2024 14:57 [14:57:19]line Смена: 536 ФФД: 1.0 [14:57:19]line ЗНМ: 0300000096 [14:57:19]line РНМ: 0000000000091693 [14:57:19]line Версия ККМ: 001 [14:57:19]line ФМ: 0000000000871792 [14:57:19]line ФД: 156324 [14:57:19]line ФПД: 250590260230064 [14:57:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156324&fm=250590260230064&tin=02508201610067®Number=0000000000091693&sum=30000 [14:57:20]Connected sock=11 [14:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2E 5D 07 01 77 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 4E 03 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 62 02 00 35 04 06 00 E3 E9 17 71 F7 B0 48 FF CC 60 57 0A A2 5D [14:57:20]written 0, free lines is 4095 [14:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7B 02 47 00 55 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 62 02 00 F4 03 04 00 C1 A8 1C 67 B6 04 01 00 00 DD 51 1C 45 83 23 D0 B6 [14:57:20]CommunicateWithHost err = 0 [14:57:20]CheckOFDResponse [14:57:20]1017 (14) - 77093643461234 [14:57:20]1041 (16) - 0000000000871792 [14:57:20]1040 (4) - 156324 [14:57:20]1012 (4) - 26.10.2024 08:30 [14:57:20]1206 (1) - 0 [14:57:20]OFD Sender: Remove packet 156324 [14:57:20]ProducePacketName [14:57:20]name=ofd_packets/00156324 [14:57:20]NVStorageDeleteData [14:57:20]Write to MH i2c: 01 00 00 88 0C 94 [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: 01 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: 01 07 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: 01 07 00 88 0C 00 00 00 00 00 E5 0C 8C [14:57:20]RasterBufferAndPrint [14:57:20]line [14:57:20]line [14:57:20]line [14:57:20]line [14:57:20]line [14:57:20]written 0, free lines is 3307 [14:57:20]process_action close_receipt done [14:57:20]requested_data is exist [14:57:20]produce_requested_data [14:57:20]requested_item fm.sn is exist - process it [14:57:20]wFMCommunicate request_size=4 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 11 00 00 [14:57:20]Write to MH i2c: E2 08 00 8F 0C 80 11 00 00 00 00 00 00 15 [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 17 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 17 00 8F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6A [14:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:57:20]wFMCommunicate OK [14:57:20]requested_item fd.num is exist - process it [14:57:20]SAM_PROTO_GetFieldsCounters [14:57:20]wFMCommunicate request_size=4 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 13 00 00 [14:57:20]Write to MH i2c: E2 08 00 90 0C 80 13 00 00 00 00 00 00 18 [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 62 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 62 00 90 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [14: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:20]wFMCommunicate OK [14:57:20]SAM_PROTO_GetFieldsCounters done [14:57:20]requested_item shift.num is exist - process it [14:57:20]requested_item shift.opened is exist - process it [14:57:20]req_shift_opened [14:57:20]FM_GetShiftState [14:57:20]SAM_PROTO_GetShiftState [14:57:20]wFMCommunicate request_size=4 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 13 01 00 [14:57:20]Write to MH i2c: E2 08 00 91 0C 80 13 01 00 00 00 00 00 1A [14:57:20]OFD Sender: No OFD packet to send [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:21]Read from MH i2c: E2 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 0E 00 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 0E 00 91 0C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4F [14:57:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [14:57:21]wFMCommunicate OK [14:57:21]SAM_PROTO_GetShiftState done [14:57:21]FM_GetShiftState done [14:57:21]req_shift_opened done [14:57:21]requested_item shift.open_date is exist - process it [14:57:21]req_shift_open_date [14:57:21]req_shift_open_date done [14:57:21]produce_requested_data done [14:57:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156324,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [14:57:21]process_action_free close_receipt [14:57:21]json_value_free [14:57:21]json_value_free done [14:57:21]process_json_proto returns [14:57:21]Send response to host [14:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156324,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [14:57:21]free response buf [14:57:21]execute_script done [14:57:21]execute_script returns [14:57:21]free content buf [14:57:21]Sock 10.Close socket [14:57:21]Sock 10.Thread stoped [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:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:40]accept exits with 8 [15:01:40]New connection [15:01:40]New thread 3066977636 created [15:01:40]Thread 3066834276 joined [15:01:40]Waiting for new connection... [15:01:40] Sock 8.Parse request [15:01:40]Sock 8.Check first char [15:01:40]Sock 8.First char is OK [15:01:40]request: POST /json_proto HTTP/1.0 [15:01:40]Method: POST [15:01:40]URL: /json_proto [15:01:40]Method is POST - this is cgi request [15:01:40]url: /json_proto [15:01:40]query_string will be loaded in cgi processing [15:01:40]execute_cgi json_proto POST (null) [15:01:40]execute_cgi path=json_proto method=POST [15:01:40]POST find Content-Length [15:01:40]Host: 172.17.63.3:8080 [15:01:40]Content-Length: 676 [15:01:40]Content-Type: application/json [15:01:40] [15:01:40]POST finish read [15:01:40]Found Content-Length = 676 [15:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:40]execute_script... [15:01:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:40]POST & json_proto [15:01:40]process_json_proto [15:01:40]json parsed OK: [15:01:40]protocol is kg_v1.0 [15:01:40]action value=close_receipt [15:01:40]process_action close_receipt [15:01:40]cmd_close_receipt [15:01:40]MH_GetDate [15:01:40]Write to MH i2c: F0 00 00 92 0C 8D [15:01:40]Write i2c OK [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: F0 [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: F0 09 00 [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: F0 09 00 92 0C 00 55 04 1D 67 50 D1 6C 64 64 [15:01:40]GetLastDocTimeStamp 1729954638 [15:01:40]current date 1729954901 [15:01:40]FM_GetShiftState [15:01:40]SAM_PROTO_GetShiftState [15:01:40]wFMCommunicate request_size=4 [15:01:40]MH_SAM_APDU [15:01:40]CAPDU: 80 13 01 00 [15:01:40]Write to MH i2c: E2 08 00 93 0C 80 13 01 00 00 00 00 00 1C [15:01:40]Write i2c OK [15:01:40]MH_I2C_Read... [15:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:40]Read from MH i2c: E2 [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: E2 0E 00 [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: E2 0E 00 93 0C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 51 [15:01:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:01:40]wFMCommunicate OK [15:01:40]SAM_PROTO_GetShiftState done [15:01:40]FM_GetShiftState done [15:01:40]opened in 1729902702 [15:01:40]opened+sec_in_day 1729989102 [15:01:40]quantity*price = 40006 [15:01:40]sum+1 = 40007 [15:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 226 26.10.2024 15:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156325 ФПД: 33216420315987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150141&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156325&fm=33216420315987&tin=02508201610067®Number=0000000000091693&sum=40000 [15:01:41]StoreToDocumentArchive [15:01:41]shift 536 fd 156325 [15:01:41]save to /storage/0536/doc_00156325 [15:01:41]save last doc name /storage/0536/doc_00156325 to /storage/kkm_last_doc_name [15:01:41]save OK [15:01:41]Clear old archive folders... [15:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:41]tlvbuf is 01699BD0 [15:01:41]SAM_PROTO_ClearQueue [15:01:41]wFMCommunicate request_size=4 [15:01:41]MH_SAM_APDU [15:01:41]CAPDU: 80 09 00 00 [15:01:41]Write to MH i2c: E2 08 00 A0 0C 80 09 00 00 00 00 00 00 1E [15:01:41]Write i2c OK [15:01:41]MH_I2C_Read... [15:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:41]Read from MH i2c: E2 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 03 00 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [15:01:41]RAPDU: 90 00 [15:01:41]wFMCommunicate OK [15:01:41]SAM_PROTO_ClearQueue done [15:01:41]KKMCreateOFDPacket [15:01:41]OFDProtocolAddRootSTLVToBuf [15:01:41]FM_MakeSignedData [15:01:41]FM_MakeSignedData [15:01:41]SAM_PROTO_SignData [15:01:41]wFMCommunicate request_size=4 [15:01:41]MH_SAM_APDU [15:01:41]CAPDU: 80 0D 01 02 [15:01:41]Write to MH i2c: E2 08 00 A1 0C 80 0D 01 02 00 00 00 00 26 [15:01:41]Write i2c OK [15:01:41]MH_I2C_Read... [15:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:41]Read from MH i2c: E2 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 03 00 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 03 00 A1 0C 00 90 00 21 [15:01:41]RAPDU: 90 00 [15:01:41]wFMCommunicate OK [15:01:41]wFMCommunicate request_size=255 [15:01:41]MH_SAM_APDU [15:01:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 55 04 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 62 02 00 35 04 06 00 1E [15:01:41]Write to MH i2c: E2 02 01 A2 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 55 04 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 62 02 00 35 04 06 00 1E 00 00 89 [15:01:41]Write i2c OK [15:01:41]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 03 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 03 00 A2 0C 00 90 00 22 [15:01:42]RAPDU: 90 00 [15:01:42]wFMCommunicate OK [15:01:42]wFMCommunicate request_size=10 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 0D 02 02 05 35 CC EF 03 53 [15:01:42]Write to MH i2c: E2 0D 00 A3 0C 80 0D 02 02 05 00 35 CC EF 03 53 00 00 79 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 03 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 03 00 A3 0C 00 90 00 23 [15:01:42]RAPDU: 90 00 [15:01:42]wFMCommunicate OK [15:01:42]wFMCommunicate request_size=4 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 0D 03 02 [15:01:42]Write to MH i2c: E2 08 00 A4 0C 80 0D 03 02 00 00 00 00 2B [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0B 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0B 00 A4 0C 00 36 28 69 AF 5F E1 E9 2E 90 00 F9 [15:01:42]RAPDU: 36 28 69 AF 5F E1 E9 2E 90 00 [15:01:42]wFMCommunicate OK [15:01:42]SAM_PROTO_SignData done [15:01:42]FM_MakeSignedData done [15:01:42]CreateOFDProtocolMessage [15:01:42]wFMCommunicate request_size=4 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 11 00 00 [15:01:42]Write to MH i2c: E2 08 00 A5 0C 80 11 00 00 00 00 00 00 2B [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 17 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 17 00 A5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [15:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:01:42]wFMCommunicate OK [15:01:42]CreateOFDProtocolMessage done [15:01:42]OFDSenderStorePacket 156325 [15:01:42]StoreOFDPacket docnum=156325 [15:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B8 38 07 01 5F 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 55 04 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 62 02 00 35 04 06 00 1E 35 CC EF 03 53 36 28 69 AF 5F E1 E9 2E [15:01:42]CheckFolder [15:01:42]dirname=/storage/ofd_packets [15:01:42]CheckFolder done [15:01:42]ProducePacketName [15:01:42]name=ofd_packets/00156325 [15:01:42]NVStorageSaveData ofd_packets/00156325 [15:01:42]File name is /storage/ofd_packets/00156325 [15:01:42]Write 301 bytes [15:01:42]NVStorageSaveData done [15:01:42]OFDSenderStorePacket done [15:01:42]KKMCreateOFDPacket done [15:01:42]NVStorageSaveData kkm_last_timestamp [15:01:42]File name is /storage/kkm_last_timestamp [15:01:42]Write 4 bytes [15:01:42]NVStorageSaveData done [15:01:42]ExternCall_PrintAddStr [15:01:42]wPrintStart [15:01:42]Write to MH i2c: 01 00 00 A6 0C B2 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 07 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 07 00 A6 0C 00 00 00 00 00 FF 0F C7 [15:01:42]RasterBufferAndPrint [15:01:42]line Счет N : (1)99140 [15:01:42]line ИНН: 02508201610067 [15:01:42]line Контрольно-Кассовый Чек [15:01:42]line ПРОДАЖА [15:01:42]line ТРК (МРК, ГНК) : 21 [15:01:42]line Товар: 2710124130 [15:01:42]line Аи-92-К-5 [15:01:42]line 5.980 * 66.90 [15:01:42]line = 400.06 [15:01:42]line НДС 12% НСП 1% [15:01:42]line > о реализуемом товаре [15:01:42]line ОКРУГЛЕНИЕ: -0.06 [15:01:42]line ИТОГО: 400.00 [15:01:42]line Внесено: 400.00 [15:01:42]line СДАЧА: 0.00 [15:01:42]line НСП 1% : 3.54 [15:01:42]line НДС 12% : 42.48 [15:01:42]line Наличными: 400.00 [15:01:42]line Безнал.: 0.00 [15:01:42]line Место: АЗС № 143 "Партнер Нефть" [15:01:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:01:42]line СНО: Общий режим [15:01:42]line Чек 226 26.10.2024 15:01 [15:01:42]line Смена: 536 ФФД: 1.0 [15:01:42]line ЗНМ: 0300000096 [15:01:42]line РНМ: 0000000000091693 [15:01:42]line Версия ККМ: 001 [15:01:42]line ФМ: 0000000000871792 [15:01:42]line ФД: 156325 [15:01:42]line ФПД: 33216420315987 [15:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150141&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156325&fm=33216420315987&tin=02508201610067®Number=0000000000091693&sum=40000 [15:01:42]OFD Sender: Processing packet 156325 [packets to send 31, broken 30] [15:01:42]ProducePacketName [15:01:42]name=ofd_packets/00156325 [15:01:42]OFD Sender: To server: pG, [15:01:42]CommunicateWithHost lk.salyk.kg:30040 [15:01:42]ConnectInit lk.salyk.kg [15:01:42]written 0, free lines is 4095 [15:01:42]Connected sock=11 [15:01:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B8 38 07 01 5F 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 55 04 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 62 02 00 35 04 06 00 1E 35 CC EF 03 53 36 28 69 AF 5F E1 E9 2E [15:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8F C5 47 00 D7 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 62 02 00 F4 03 04 00 C7 A9 1C 67 B6 04 01 00 00 A2 4C 56 5D 52 7E 1D 90 [15:01:42]CommunicateWithHost err = 0 [15:01:42]CheckOFDResponse [15:01:42]1017 (14) - 77093643461234 [15:01:42]1041 (16) - 0000000000871792 [15:01:42]1040 (4) - 156325 [15:01:42]1012 (4) - 26.10.2024 08:35 [15:01:42]1206 (1) - 0 [15:01:42]OFD Sender: Remove packet 156325 [15:01:42]ProducePacketName [15:01:42]name=ofd_packets/00156325 [15:01:42]NVStorageDeleteData [15:01:42]Write to MH i2c: 01 00 00 D1 0C DD [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 07 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 07 00 D1 0C 00 00 00 00 00 E8 0C D8 [15:01:42]RasterBufferAndPrint [15:01:42]line [15:01:42]line [15:01:42]line [15:01:42]line [15:01:42]line [15:01:42]written 0, free lines is 3310 [15:01:43]process_action close_receipt done [15:01:43]requested_data is exist [15:01:43]produce_requested_data [15:01:43]requested_item fm.sn is exist - process it [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 11 00 00 [15:01:43]Write to MH i2c: E2 08 00 D8 0C 80 11 00 00 00 00 00 00 5E [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 17 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 17 00 D8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B3 [15:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:01:43]wFMCommunicate OK [15:01:43]requested_item fd.num is exist - process it [15:01:43]SAM_PROTO_GetFieldsCounters [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 13 00 00 [15:01:43]Write to MH i2c: E2 08 00 D9 0C 80 13 00 00 00 00 00 00 61 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 62 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 62 00 D9 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:01:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:43]wFMCommunicate OK [15:01:43]SAM_PROTO_GetFieldsCounters done [15:01:43]requested_item shift.num is exist - process it [15:01:43]requested_item shift.opened is exist - process it [15:01:43]req_shift_opened [15:01:43]FM_GetShiftState [15:01:43]SAM_PROTO_GetShiftState [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 13 01 00 [15:01:43]Write to MH i2c: E2 08 00 DA 0C 80 13 01 00 00 00 00 00 63 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 0E 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 0E 00 DA 0C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 98 [15:01:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:01:43]wFMCommunicate OK [15:01:43]SAM_PROTO_GetShiftState done [15:01:43]FM_GetShiftState done [15:01:43]req_shift_opened done [15:01:43]requested_item shift.open_date is exist - process it [15:01:43]req_shift_open_date [15:01:43]req_shift_open_date done [15:01:43]produce_requested_data done [15:01:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156325,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:01:43]process_action_free close_receipt [15:01:43]json_value_free [15:01:43]json_value_free done [15:01:43]process_json_proto returns [15:01:43]Send response to host [15:01:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156325,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:01:43]free response buf [15:01:43]execute_script done [15:01:43]execute_script returns [15:01:43]free content buf [15:01:43]Sock 8.Close socket [15:01:43]Sock 8.Thread stoped [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:45]accept exits with 9 [15:02:45]New connection [15:02:45]New thread 3066834276 created [15:02:45]Thread 3066977636 joined [15:02:45]Waiting for new connection... [15:02:45] Sock 9.Parse request [15:02:45]Sock 9.Check first char [15:02:45]Sock 9.First char is OK [15:02:45]request: POST /json_proto HTTP/1.0 [15:02:45]Method: POST [15:02:45]URL: /json_proto [15:02:45]Method is POST - this is cgi request [15:02:45]url: /json_proto [15:02:45]query_string will be loaded in cgi processing [15:02:45]execute_cgi json_proto POST (null) [15:02:45]execute_cgi path=json_proto method=POST [15:02:45]POST find Content-Length [15:02:45]Host: 172.17.63.3:8080 [15:02:45]Content-Length: 677 [15:02:45]Content-Type: application/json [15:02:45] [15:02:45]POST finish read [15:02:45]Found Content-Length = 677 [15:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:45]execute_script... [15:02: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)99141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:45]POST & json_proto [15:02:45]process_json_proto [15:02:45]json parsed OK: [15:02:45]protocol is kg_v1.0 [15:02:45]action value=close_receipt [15:02:45]process_action close_receipt [15:02:45]cmd_close_receipt [15:02:45]MH_GetDate [15:02:45]Write to MH i2c: F0 00 00 DB 0C D6 [15:02:45]Write i2c OK [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: F0 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: F0 09 00 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: F0 09 00 DB 0C 00 95 04 1D 67 50 D1 6C 64 ED [15:02:45]GetLastDocTimeStamp 1729954901 [15:02:45]current date 1729954965 [15:02:45]FM_GetShiftState [15:02:45]SAM_PROTO_GetShiftState [15:02:45]wFMCommunicate request_size=4 [15:02:45]MH_SAM_APDU [15:02:45]CAPDU: 80 13 01 00 [15:02:45]Write to MH i2c: E2 08 00 DC 0C 80 13 01 00 00 00 00 00 65 [15:02:45]Write i2c OK [15:02:45]MH_I2C_Read... [15:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:45]Read from MH i2c: E2 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 0E 00 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 0E 00 DC 0C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9A [15:02:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:02:45]wFMCommunicate OK [15:02:45]SAM_PROTO_GetShiftState done [15:02:45]FM_GetShiftState done [15:02:45]opened in 1729902702 [15:02:45]opened+sec_in_day 1729989102 [15:02:45]quantity*price = 80012 [15:02:45]sum+1 = 80013 [15:02:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 227 26.10.2024 15:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156326 ФПД: 168470127025078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150245&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156326&fm=168470127025078&tin=02508201610067®Number=0000000000091693&sum=80000 [15:02:46]StoreToDocumentArchive [15:02:46]shift 536 fd 156326 [15:02:46]save to /storage/0536/doc_00156326 [15:02:46]save last doc name /storage/0536/doc_00156326 to /storage/kkm_last_doc_name [15:02:46]save OK [15:02:46]Clear old archive folders... [15:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:46]tlvbuf is 0168BA20 [15:02:46]SAM_PROTO_ClearQueue [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 09 00 00 [15:02:46]Write to MH i2c: E2 08 00 E9 0C 80 09 00 00 00 00 00 00 67 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 E9 0C 00 90 00 69 [15:02:46]RAPDU: 90 00 [15:02:46]wFMCommunicate OK [15:02:46]SAM_PROTO_ClearQueue done [15:02:46]KKMCreateOFDPacket [15:02:46]OFDProtocolAddRootSTLVToBuf [15:02:46]FM_MakeSignedData [15:02:46]FM_MakeSignedData [15:02:46]SAM_PROTO_SignData [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 0D 01 02 [15:02:46]Write to MH i2c: E2 08 00 EA 0C 80 0D 01 02 00 00 00 00 6F [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 EA 0C 00 90 00 6A [15:02:46]RAPDU: 90 00 [15:02:46]wFMCommunicate OK [15:02:46]wFMCommunicate request_size=255 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 95 04 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 62 02 00 35 04 06 00 99 [15:02:46]Write to MH i2c: E2 02 01 EB 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 95 04 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 62 02 00 35 04 06 00 99 00 00 AC [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 EB 0C 00 90 00 6B [15:02:46]RAPDU: 90 00 [15:02:46]wFMCommunicate OK [15:02:46]wFMCommunicate request_size=10 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 0D 02 02 05 39 02 13 9B B6 [15:02:46]Write to MH i2c: E2 0D 00 EC 0C 80 0D 02 02 05 00 39 02 13 9B B6 00 00 1B [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 EC 0C 00 90 00 6C [15:02:46]RAPDU: 90 00 [15:02:46]wFMCommunicate OK [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 0D 03 02 [15:02:46]Write to MH i2c: E2 08 00 ED 0C 80 0D 03 02 00 00 00 00 74 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 0B 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 0B 00 ED 0C 00 2F BD 73 8C 18 D7 70 98 90 00 57 [15:02:46]RAPDU: 2F BD 73 8C 18 D7 70 98 90 00 [15:02:46]wFMCommunicate OK [15:02:46]SAM_PROTO_SignData done [15:02:46]FM_MakeSignedData done [15:02:46]CreateOFDProtocolMessage [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 11 00 00 [15:02:46]Write to MH i2c: E2 08 00 EE 0C 80 11 00 00 00 00 00 00 74 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 17 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 17 00 EE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C9 [15:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:02:46]wFMCommunicate OK [15:02:46]CreateOFDProtocolMessage done [15:02:46]OFDSenderStorePacket 156326 [15:02:46]StoreOFDPacket docnum=156326 [15:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 80 41 07 01 B9 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 95 04 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 62 02 00 35 04 06 00 99 39 02 13 9B B6 2F BD 73 8C 18 D7 70 98 [15:02:46]CheckFolder [15:02:46]dirname=/storage/ofd_packets [15:02:46]CheckFolder done [15:02:46]ProducePacketName [15:02:46]name=ofd_packets/00156326 [15:02:46]NVStorageSaveData ofd_packets/00156326 [15:02:46]File name is /storage/ofd_packets/00156326 [15:02:46]Write 301 bytes [15:02:46]NVStorageSaveData done [15:02:46]OFDSenderStorePacket done [15:02:46]KKMCreateOFDPacket done [15:02:46]NVStorageSaveData kkm_last_timestamp [15:02:46]File name is /storage/kkm_last_timestamp [15:02:46]Write 4 bytes [15:02:46]NVStorageSaveData done [15:02:46]ExternCall_PrintAddStr [15:02:46]wPrintStart [15:02:46]Write to MH i2c: 01 00 00 EF 0C FB [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: 01 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: 01 07 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: 01 07 00 EF 0C 00 00 00 00 00 FF 0F 10 [15:02:46]RasterBufferAndPrint [15:02:46]line Счет N : (1)99141 [15:02:46]line ИНН: 02508201610067 [15:02:46]line Контрольно-Кассовый Чек [15:02:46]line ПРОДАЖА [15:02:46]line ТРК (МРК, ГНК) : 31 [15:02:46]line Товар: 2710124130 [15:02:46]line Аи-92-К-5 [15:02:46]line 11.960 * 66.90 [15:02:46]line = 800.12 [15:02:46]line НДС 12% НСП 1% [15:02:46]line > о реализуемом товаре [15:02:46]line ОКРУГЛЕНИЕ: -0.12 [15:02:46]line ИТОГО: 800.00 [15:02:46]line Внесено: 800.00 [15:02:46]line СДАЧА: 0.00 [15:02:46]line НСП 1% : 7.08 [15:02:46]line НДС 12% : 84.97 [15:02:46]line Наличными: 800.00 [15:02:46]line Безнал.: 0.00 [15:02:46]line Место: АЗС № 143 "Партнер Нефть" [15:02:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:02:46]line СНО: Общий режим [15:02:46]line Чек 227 26.10.2024 15:02 [15:02:46]line Смена: 536 ФФД: 1.0 [15:02:46]line ЗНМ: 0300000096 [15:02:46]line РНМ: 0000000000091693 [15:02:46]line Версия ККМ: 001 [15:02:46]line ФМ: 0000000000871792 [15:02:46]line ФД: 156326 [15:02:46]line ФПД: 168470127025078 [15:02:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150245&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156326&fm=168470127025078&tin=02508201610067®Number=0000000000091693&sum=80000 [15:02:47]OFD Sender: Processing packet 156326 [packets to send 31, broken 30] [15:02:47]ProducePacketName [15:02:47]name=ofd_packets/00156326 [15:02:47]OFD Sender: To server: pG, [15:02:47]CommunicateWithHost lk.salyk.kg:30040 [15:02:47]ConnectInit lk.salyk.kg [15:02:47]written 0, free lines is 4095 [15:02:47]Connected sock=10 [15:02:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 80 41 07 01 B9 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 95 04 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 62 02 00 35 04 06 00 99 39 02 13 9B B6 2F BD 73 8C 18 D7 70 98 [15:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0D 2B 47 00 3B 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 31 37 39 32 10 04 04 00 A6 62 02 00 F4 03 04 00 08 AA 1C 67 B6 04 01 00 00 4D 5F DE 13 F3 A0 01 78 [15:02:47]CommunicateWithHost err = 0 [15:02:47]CheckOFDResponse [15:02:47]1017 (14) - 77093643461234 [15:02:47]1041 (16) - 0000000000871792 [15:02:47]1040 (4) - 156326 [15:02:47]1012 (4) - 26.10.2024 08:36 [15:02:47]1206 (1) - 0 [15:02:47]OFD Sender: Remove packet 156326 [15:02:47]ProducePacketName [15:02:47]name=ofd_packets/00156326 [15:02:47]NVStorageDeleteData [15:02:47]Write to MH i2c: 01 00 00 1A 0D 27 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: 01 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: 01 07 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: 01 07 00 1A 0D 00 00 00 00 00 F7 0C 31 [15:02:47]RasterBufferAndPrint [15:02:47]line [15:02:47]line [15:02:47]line [15:02:47]line [15:02:47]line [15:02:47]written 0, free lines is 3323 [15:02:47]process_action close_receipt done [15:02:47]requested_data is exist [15:02:47]produce_requested_data [15:02:47]requested_item fm.sn is exist - process it [15:02:47]wFMCommunicate request_size=4 [15:02:47]MH_SAM_APDU [15:02:47]CAPDU: 80 11 00 00 [15:02:47]Write to MH i2c: E2 08 00 21 0D 80 11 00 00 00 00 00 00 A8 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 17 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 17 00 21 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FD [15:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:02:47]wFMCommunicate OK [15:02:47]requested_item fd.num is exist - process it [15:02:47]SAM_PROTO_GetFieldsCounters [15:02:47]wFMCommunicate request_size=4 [15:02:47]MH_SAM_APDU [15:02:47]CAPDU: 80 13 00 00 [15:02:47]Write to MH i2c: E2 08 00 22 0D 80 13 00 00 00 00 00 00 AB [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 62 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 62 00 22 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [15:02:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:47]wFMCommunicate OK [15:02:47]SAM_PROTO_GetFieldsCounters done [15:02:47]requested_item shift.num is exist - process it [15:02:47]requested_item shift.opened is exist - process it [15:02:47]req_shift_opened [15:02:47]FM_GetShiftState [15:02:47]SAM_PROTO_GetShiftState [15:02:47]wFMCommunicate request_size=4 [15:02:47]MH_SAM_APDU [15:02:47]CAPDU: 80 13 01 00 [15:02:47]Write to MH i2c: E2 08 00 23 0D 80 13 01 00 00 00 00 00 AD [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 0E 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 0E 00 23 0D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E2 [15:02:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:02:47]wFMCommunicate OK [15:02:47]SAM_PROTO_GetShiftState done [15:02:47]FM_GetShiftState done [15:02:47]req_shift_opened done [15:02:47]requested_item shift.open_date is exist - process it [15:02:47]req_shift_open_date [15:02:47]req_shift_open_date done [15:02:47]produce_requested_data done [15:02:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156326,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:02:47]process_action_free close_receipt [15:02:47]json_value_free [15:02:47]json_value_free done [15:02:47]process_json_proto returns [15:02:47]Send response to host [15:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156326,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:02:47]free response buf [15:02:47]execute_script done [15:02:47]execute_script returns [15:02:47]free content buf [15:02:47]Sock 9.Close socket [15:02:47]Sock 9.Thread stoped [15:02:47]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:04:59]accept exits with 8 [15:04:59]New connection [15:04:59]New thread 3066977636 created [15:04:59]Thread 3066834276 joined [15:04:59]Waiting for new connection... [15:04:59] Sock 8.Parse request [15:04:59]Sock 8.Check first char [15:04:59]Sock 8.First char is OK [15:04:59]request: POST /json_proto HTTP/1.0 [15:04:59]Method: POST [15:04:59]URL: /json_proto [15:04:59]Method is POST - this is cgi request [15:04:59]url: /json_proto [15:04:59]query_string will be loaded in cgi processing [15:04:59]execute_cgi json_proto POST (null) [15:04:59]execute_cgi path=json_proto method=POST [15:04:59]POST find Content-Length [15:04:59]Host: 172.17.63.3:8080 [15:04:59]Content-Length: 676 [15:04:59]Content-Type: application/json [15:04:59] [15:04:59]POST finish read [15:04:59]Found Content-Length = 676 [15:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:59]execute_script... [15:04:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:59]POST & json_proto [15:04:59]process_json_proto [15:04:59]json parsed OK: [15:04:59]protocol is kg_v1.0 [15:04:59]action value=close_receipt [15:04:59]process_action close_receipt [15:04:59]cmd_close_receipt [15:04:59]MH_GetDate [15:04:59]Write to MH i2c: F0 00 00 24 0D 20 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: F0 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: F0 09 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: F0 09 00 24 0D 00 1C 05 1D 67 50 D1 6C 64 BF [15:04:59]GetLastDocTimeStamp 1729954965 [15:04:59]current date 1729955100 [15:04:59]FM_GetShiftState [15:04:59]SAM_PROTO_GetShiftState [15:04:59]wFMCommunicate request_size=4 [15:04:59]MH_SAM_APDU [15:04:59]CAPDU: 80 13 01 00 [15:04:59]Write to MH i2c: E2 08 00 25 0D 80 13 01 00 00 00 00 00 AF [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:59]Read from MH i2c: E2 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 0E 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 0E 00 25 0D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E4 [15:04:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:04:59]wFMCommunicate OK [15:04:59]SAM_PROTO_GetShiftState done [15:04:59]FM_GetShiftState done [15:04:59]opened in 1729902702 [15:04:59]opened+sec_in_day 1729989102 [15:04:59]quantity*price = 50041 [15:04:59]sum+1 = 50042 [15:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 228 26.10.2024 15:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156327 ФПД: 203640996815422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150500&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156327&fm=203640996815422&tin=02508201610067®Number=0000000000091693&sum=50000 [15:05:00]StoreToDocumentArchive [15:05:00]shift 536 fd 156327 [15:05:00]save to /storage/0536/doc_00156327 [15:05:00]save last doc name /storage/0536/doc_00156327 to /storage/kkm_last_doc_name [15:05:00]save OK [15:05:00]Clear old archive folders... [15:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:00]tlvbuf is 016754E0 [15:05:00]SAM_PROTO_ClearQueue [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 09 00 00 [15:05:00]Write to MH i2c: E2 08 00 32 0D 80 09 00 00 00 00 00 00 B1 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 03 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [15:05:00]RAPDU: 90 00 [15:05:00]wFMCommunicate OK [15:05:00]SAM_PROTO_ClearQueue done [15:05:00]KKMCreateOFDPacket [15:05:00]OFDProtocolAddRootSTLVToBuf [15:05:00]FM_MakeSignedData [15:05:00]FM_MakeSignedData [15:05:00]SAM_PROTO_SignData [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 0D 01 02 [15:05:00]Write to MH i2c: E2 08 00 33 0D 80 0D 01 02 00 00 00 00 B9 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 33 0D 00 90 00 B4 [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]wFMCommunicate request_size=255 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1C 05 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 62 02 00 35 04 06 00 B9 [15:05:01]Write to MH i2c: E2 02 01 34 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1C 05 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 62 02 00 35 04 06 00 B9 00 00 B4 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 34 0D 00 90 00 B5 [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]wFMCommunicate request_size=10 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 02 02 05 35 DD 46 E2 3E [15:05:01]Write to MH i2c: E2 0D 00 35 0D 80 0D 02 02 05 00 35 DD 46 E2 3E 00 00 3E [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 35 0D 00 90 00 B6 [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 03 02 [15:05:01]Write to MH i2c: E2 08 00 36 0D 80 0D 03 02 00 00 00 00 BE [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 0B 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 0B 00 36 0D 00 1A 49 28 2A 38 65 FD 04 90 00 12 [15:05:01]RAPDU: 1A 49 28 2A 38 65 FD 04 90 00 [15:05:01]wFMCommunicate OK [15:05:01]SAM_PROTO_SignData done [15:05:01]FM_MakeSignedData done [15:05:01]CreateOFDProtocolMessage [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 11 00 00 [15:05:01]Write to MH i2c: E2 08 00 37 0D 80 11 00 00 00 00 00 00 BE [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 17 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 17 00 37 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [15:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:05:01]wFMCommunicate OK [15:05:01]CreateOFDProtocolMessage done [15:05:01]OFDSenderStorePacket 156327 [15:05:01]StoreOFDPacket docnum=156327 [15:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 80 D2 07 01 AF BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1C 05 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 62 02 00 35 04 06 00 B9 35 DD 46 E2 3E 1A 49 28 2A 38 65 FD 04 [15:05:01]CheckFolder [15:05:01]dirname=/storage/ofd_packets [15:05:01]CheckFolder done [15:05:01]ProducePacketName [15:05:01]name=ofd_packets/00156327 [15:05:01]NVStorageSaveData ofd_packets/00156327 [15:05:01]File name is /storage/ofd_packets/00156327 [15:05:01]Write 301 bytes [15:05:01]NVStorageSaveData done [15:05:01]OFDSenderStorePacket done [15:05:01]KKMCreateOFDPacket done [15:05:01]NVStorageSaveData kkm_last_timestamp [15:05:01]File name is /storage/kkm_last_timestamp [15:05:01]Write 4 bytes [15:05:01]NVStorageSaveData done [15:05:01]ExternCall_PrintAddStr [15:05:01]wPrintStart [15:05:01]Write to MH i2c: 01 00 00 38 0D 45 [15:05:01]OFD Sender: Processing packet 156327 [packets to send 31, broken 30] [15:05:01]ProducePacketName [15:05:01]name=ofd_packets/00156327 [15:05:01]OFD Sender: To server: pG, [15:05:01]CommunicateWithHost lk.salyk.kg:30040 [15:05:01]ConnectInit lk.salyk.kg [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 FF 0F 5A [15:05:01]RasterBufferAndPrint [15:05:01]line Счет N : (1)99142 [15:05:01]line ИНН: 02508201610067 [15:05:01]line Контрольно-Кассовый Чек [15:05:01]line ПРОДАЖА [15:05:01]line ТРК (МРК, ГНК) : 21 [15:05:01]line Товар: 2710124130 [15:05:01]line Аи-92-К-5 [15:05:01]line 7.480 * 66.90 [15:05:01]line = 500.41 [15:05:01]line НДС 12% НСП 1% [15:05:01]line > о реализуемом товаре [15:05:01]line ОКРУГЛЕНИЕ: -0.41 [15:05:01]line ИТОГО: 500.00 [15:05:01]line Внесено: 500.00 [15:05:01]line СДАЧА: 0.00 [15:05:01]line НСП 1% : 4.43 [15:05:01]line НДС 12% : 53.14 [15:05:01]line Наличными: 500.00 [15:05:01]line Безнал.: 0.00 [15:05:01]line Место: АЗС № 143 "Партнер Нефть" [15:05:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:05:01]line СНО: Общий режим [15:05:01]line Чек 228 26.10.2024 15:05 [15:05:01]line Смена: 536 ФФД: 1.0 [15:05:01]line ЗНМ: 0300000096 [15:05:01]line РНМ: 0000000000091693 [15:05:01]line Версия ККМ: 001 [15:05:01]line ФМ: 0000000000871792 [15:05:01]line ФД: 156327 [15:05:01]line ФПД: 203640996815422 [15:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150500&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156327&fm=203640996815422&tin=02508201610067®Number=0000000000091693&sum=50000 [15:05:01]Connected sock=10 [15:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 80 D2 07 01 AF BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1C 05 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 62 02 00 35 04 06 00 B9 35 DD 46 E2 3E 1A 49 28 2A 38 65 FD 04 [15:05:01]written 0, free lines is 4095 [15:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AC CD 47 00 C8 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 62 02 00 F4 03 04 00 8E AA 1C 67 B6 04 01 00 00 4A 7D 27 CB 3D 9B 19 77 [15:05:02]CommunicateWithHost err = 0 [15:05:02]CheckOFDResponse [15:05:02]1017 (14) - 77093643461234 [15:05:02]1041 (16) - 0000000000871792 [15:05:02]1040 (4) - 156327 [15:05:02]1012 (4) - 26.10.2024 08:38 [15:05:02]1206 (1) - 0 [15:05:02]OFD Sender: Remove packet 156327 [15:05:02]ProducePacketName [15:05:02]name=ofd_packets/00156327 [15:05:02]NVStorageDeleteData [15:05:02]Write to MH i2c: 01 00 00 63 0D 70 [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: 01 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: 01 07 00 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: 01 07 00 63 0D 00 00 00 00 00 E4 0C 67 [15:05:02]RasterBufferAndPrint [15:05:02]line [15:05:02]line [15:05:02]line [15:05:02]line [15:05:02]line [15:05:02]written 0, free lines is 3306 [15:05:02]process_action close_receipt done [15:05:02]requested_data is exist [15:05:02]produce_requested_data [15:05:02]requested_item fm.sn is exist - process it [15:05:02]wFMCommunicate request_size=4 [15:05:02]MH_SAM_APDU [15:05:02]CAPDU: 80 11 00 00 [15:05:02]Write to MH i2c: E2 08 00 6A 0D 80 11 00 00 00 00 00 00 F1 [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:02]Read from MH i2c: E2 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: E2 17 00 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: E2 17 00 6A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 46 [15:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:05:02]wFMCommunicate OK [15:05:02]requested_item fd.num is exist - process it [15:05:02]SAM_PROTO_GetFieldsCounters [15:05:02]wFMCommunicate request_size=4 [15:05:02]MH_SAM_APDU [15:05:02]CAPDU: 80 13 00 00 [15:05:02]Write to MH i2c: E2 08 00 6B 0D 80 13 00 00 00 00 00 00 F4 [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:02]Read from MH i2c: E2 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: E2 62 00 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: E2 62 00 6B 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [15:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:02]wFMCommunicate OK [15:05:02]SAM_PROTO_GetFieldsCounters done [15:05:02]requested_item shift.num is exist - process it [15:05:02]requested_item shift.opened is exist - process it [15:05:02]req_shift_opened [15:05:02]FM_GetShiftState [15:05:02]SAM_PROTO_GetShiftState [15:05:02]wFMCommunicate request_size=4 [15:05:02]MH_SAM_APDU [15:05:02]CAPDU: 80 13 01 00 [15:05:02]Write to MH i2c: E2 08 00 6C 0D 80 13 01 00 00 00 00 00 F6 [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]OFD Sender: No OFD packet to send [15:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:02]Read from MH i2c: E2 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: E2 0E 00 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: E2 0E 00 6C 0D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2B [15:05:02]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:05:02]wFMCommunicate OK [15:05:02]SAM_PROTO_GetShiftState done [15:05:02]FM_GetShiftState done [15:05:02]req_shift_opened done [15:05:02]requested_item shift.open_date is exist - process it [15:05:02]req_shift_open_date [15:05:02]req_shift_open_date done [15:05:02]produce_requested_data done [15:05:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156327,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:05:02]process_action_free close_receipt [15:05:02]json_value_free [15:05:02]json_value_free done [15:05:02]process_json_proto returns [15:05:02]Send response to host [15:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156327,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:05:02]free response buf [15:05:02]execute_script done [15:05:02]execute_script returns [15:05:02]free content buf [15:05:02]Sock 8.Close socket [15:05:02]Sock 8.Thread stoped [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:55]accept exits with 9 [15:06:55]New connection [15:06:55]New thread 3066834276 created [15:06:55]Thread 3066977636 joined [15:06:55]Waiting for new connection... [15:06:55] Sock 9.Parse request [15:06:55]Sock 9.Check first char [15:06:55]Sock 9.First char is OK [15:06:55]request: POST /json_proto HTTP/1.0 [15:06:55]Method: POST [15:06:55]URL: /json_proto [15:06:55]Method is POST - this is cgi request [15:06:55]url: /json_proto [15:06:55]query_string will be loaded in cgi processing [15:06:55]execute_cgi json_proto POST (null) [15:06:55]execute_cgi path=json_proto method=POST [15:06:55]POST find Content-Length [15:06:55]Host: 172.17.63.3:8080 [15:06:55]Content-Length: 676 [15:06:55]Content-Type: application/json [15:06:55] [15:06:55]POST finish read [15:06:55]Found Content-Length = 676 [15:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:55]execute_script... [15:06:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:55]POST & json_proto [15:06:55]process_json_proto [15:06:55]json parsed OK: [15:06:55]protocol is kg_v1.0 [15:06:55]action value=close_receipt [15:06:55]process_action close_receipt [15:06:55]cmd_close_receipt [15:06:55]MH_GetDate [15:06:55]Write to MH i2c: F0 00 00 6D 0D 69 [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: F0 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: F0 09 00 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: F0 09 00 6D 0D 00 90 05 1D 67 50 D1 6C 64 7C [15:06:55]GetLastDocTimeStamp 1729955100 [15:06:55]current date 1729955216 [15:06:55]FM_GetShiftState [15:06:55]SAM_PROTO_GetShiftState [15:06:55]wFMCommunicate request_size=4 [15:06:55]MH_SAM_APDU [15:06:55]CAPDU: 80 13 01 00 [15:06:55]Write to MH i2c: E2 08 00 6E 0D 80 13 01 00 00 00 00 00 F8 [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:55]Read from MH i2c: E2 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: E2 0E 00 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: E2 0E 00 6E 0D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2D [15:06:55]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:06:55]wFMCommunicate OK [15:06:55]SAM_PROTO_GetShiftState done [15:06:55]FM_GetShiftState done [15:06:55]opened in 1729902702 [15:06:55]opened+sec_in_day 1729989102 [15:06:55]quantity*price = 40006 [15:06:55]sum+1 = 40007 [15:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 229 26.10.2024 15:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156328 ФПД: 175218856978820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150656&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156328&fm=175218856978820&tin=02508201610067®Number=0000000000091693&sum=40000 [15:06:57]StoreToDocumentArchive [15:06:57]shift 536 fd 156328 [15:06:57]save to /storage/0536/doc_00156328 [15:06:57]save last doc name /storage/0536/doc_00156328 to /storage/kkm_last_doc_name [15:06:57]save OK [15:06:57]Clear old archive folders... [15:06:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:57]tlvbuf is 01656BB0 [15:06:57]SAM_PROTO_ClearQueue [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 09 00 00 [15:06:57]Write to MH i2c: E2 08 00 7B 0D 80 09 00 00 00 00 00 00 FA [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_ClearQueue done [15:06:57]KKMCreateOFDPacket [15:06:57]OFDProtocolAddRootSTLVToBuf [15:06:57]FM_MakeSignedData [15:06:57]FM_MakeSignedData [15:06:57]SAM_PROTO_SignData [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 01 02 [15:06:57]Write to MH i2c: E2 08 00 7C 0D 80 0D 01 02 00 00 00 00 02 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 7C 0D 00 90 00 FD [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=255 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 90 05 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 62 02 00 35 04 06 00 9F [15:06:57]Write to MH i2c: E2 02 01 7D 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 90 05 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 62 02 00 35 04 06 00 9F 00 00 28 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 7D 0D 00 90 00 FE [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=10 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 02 02 05 5C 51 BA 69 84 [15:06:57]Write to MH i2c: E2 0D 00 7E 0D 80 0D 02 02 05 00 5C 51 BA 69 84 00 00 63 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 7E 0D 00 90 00 FF [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 03 02 [15:06:57]Write to MH i2c: E2 08 00 7F 0D 80 0D 03 02 00 00 00 00 07 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0B 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0B 00 7F 0D 00 B8 82 8F 57 26 61 39 BE 90 00 A6 [15:06:57]RAPDU: B8 82 8F 57 26 61 39 BE 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_SignData done [15:06:57]FM_MakeSignedData done [15:06:57]CreateOFDProtocolMessage [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 11 00 00 [15:06:57]Write to MH i2c: E2 08 00 80 0D 80 11 00 00 00 00 00 00 07 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 17 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 17 00 80 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5C [15:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:06:57]wFMCommunicate OK [15:06:57]CreateOFDProtocolMessage done [15:06:57]OFDSenderStorePacket 156328 [15:06:57]StoreOFDPacket docnum=156328 [15:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 1B 07 01 49 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 90 05 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 62 02 00 35 04 06 00 9F 5C 51 BA 69 84 B8 82 8F 57 26 61 39 BE [15:06:57]CheckFolder [15:06:57]dirname=/storage/ofd_packets [15:06:57]CheckFolder done [15:06:57]ProducePacketName [15:06:57]name=ofd_packets/00156328 [15:06:57]NVStorageSaveData ofd_packets/00156328 [15:06:57]File name is /storage/ofd_packets/00156328 [15:06:57]Write 301 bytes [15:06:57]NVStorageSaveData done [15:06:57]OFDSenderStorePacket done [15:06:57]KKMCreateOFDPacket done [15:06:57]NVStorageSaveData kkm_last_timestamp [15:06:57]File name is /storage/kkm_last_timestamp [15:06:57]Write 4 bytes [15:06:57]NVStorageSaveData done [15:06:57]ExternCall_PrintAddStr [15:06:57]wPrintStart [15:06:57]Write to MH i2c: 01 00 00 81 0D 8E [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 07 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 07 00 81 0D 00 00 00 00 00 FF 0F A3 [15:06:57]RasterBufferAndPrint [15:06:57]line Счет N : (1)99143 [15:06:57]line ИНН: 02508201610067 [15:06:57]line Контрольно-Кассовый Чек [15:06:57]line ПРОДАЖА [15:06:57]line ТРК (МРК, ГНК) : 21 [15:06:57]line Товар: 2710124130 [15:06:57]line Аи-92-К-5 [15:06:57]line 5.980 * 66.90 [15:06:57]line = 400.06 [15:06:57]line НДС 12% НСП 1% [15:06:57]line > о реализуемом товаре [15:06:57]line ОКРУГЛЕНИЕ: -0.06 [15:06:57]line ИТОГО: 400.00 [15:06:57]line Внесено: 400.00 [15:06:57]line СДАЧА: 0.00 [15:06:57]line НСП 1% : 3.54 [15:06:57]line НДС 12% : 42.48 [15:06:57]line Наличными: 400.00 [15:06:57]line Безнал.: 0.00 [15:06:57]line Место: АЗС № 143 "Партнер Нефть" [15:06:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:06:57]line СНО: Общий режим [15:06:57]line Чек 229 26.10.2024 15:06 [15:06:57]line Смена: 536 ФФД: 1.0 [15:06:57]line ЗНМ: 0300000096 [15:06:57]line РНМ: 0000000000091693 [15:06:57]line Версия ККМ: 001 [15:06:57]line ФМ: 0000000000871792 [15:06:57]line ФД: 156328 [15:06:57]line ФПД: 175218856978820 [15:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150656&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156328&fm=175218856978820&tin=02508201610067®Number=0000000000091693&sum=40000 [15:06:57]written 0, free lines is 4095 [15:06:57]OFD Sender: Processing packet 156328 [packets to send 31, broken 30] [15:06:57]ProducePacketName [15:06:57]name=ofd_packets/00156328 [15:06:57]OFD Sender: To server: pG, [15:06:57]CommunicateWithHost lk.salyk.kg:30040 [15:06:57]ConnectInit lk.salyk.kg [15:06:57]Connected sock=10 [15:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 1B 07 01 49 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 90 05 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 62 02 00 35 04 06 00 9F 5C 51 BA 69 84 B8 82 8F 57 26 61 39 BE [15:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 00 F2 47 00 3F 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 62 02 00 F4 03 04 00 02 AB 1C 67 B6 04 01 00 00 7E 2F B4 FF 2A 06 99 0F [15:06:57]CommunicateWithHost err = 0 [15:06:57]CheckOFDResponse [15:06:57]1017 (14) - 77093643461234 [15:06:57]1041 (16) - 0000000000871792 [15:06:57]1040 (4) - 156328 [15:06:57]1012 (4) - 26.10.2024 08:40 [15:06:57]1206 (1) - 0 [15:06:57]OFD Sender: Remove packet 156328 [15:06:57]ProducePacketName [15:06:57]name=ofd_packets/00156328 [15:06:57]NVStorageDeleteData [15:06:58]Write to MH i2c: 01 00 00 AC 0D B9 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 EA 0C B6 [15:06:58]RasterBufferAndPrint [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]written 0, free lines is 3312 [15:06:58]process_action close_receipt done [15:06:58]requested_data is exist [15:06:58]produce_requested_data [15:06:58]requested_item fm.sn is exist - process it [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 11 00 00 [15:06:58]Write to MH i2c: E2 08 00 B3 0D 80 11 00 00 00 00 00 00 3A [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:58]Read from MH i2c: E2 17 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 17 00 B3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8F [15:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:06:58]wFMCommunicate OK [15:06:58]requested_item fd.num is exist - process it [15:06:58]SAM_PROTO_GetFieldsCounters [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 13 00 00 [15:06:58]Write to MH i2c: E2 08 00 B4 0D 80 13 00 00 00 00 00 00 3D [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 62 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 62 00 B4 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [15:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:58]wFMCommunicate OK [15:06:58]SAM_PROTO_GetFieldsCounters done [15:06:58]requested_item shift.num is exist - process it [15:06:58]requested_item shift.opened is exist - process it [15:06:58]req_shift_opened [15:06:58]FM_GetShiftState [15:06:58]SAM_PROTO_GetShiftState [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 13 01 00 [15:06:58]Write to MH i2c: E2 08 00 B5 0D 80 13 01 00 00 00 00 00 3F [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 0E 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 0E 00 B5 0D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 74 [15:06:58]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:06:58]wFMCommunicate OK [15:06:58]SAM_PROTO_GetShiftState done [15:06:58]FM_GetShiftState done [15:06:58]req_shift_opened done [15:06:58]requested_item shift.open_date is exist - process it [15:06:58]req_shift_open_date [15:06:58]req_shift_open_date done [15:06:58]produce_requested_data done [15:06:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156328,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:06:58]process_action_free close_receipt [15:06:58]json_value_free [15:06:58]json_value_free done [15:06:58]process_json_proto returns [15:06:58]Send response to host [15:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156328,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:06:58]free response buf [15:06:58]execute_script done [15:06:58]execute_script returns [15:06:58]free content buf [15:06:58]Sock 9.Close socket [15:06:58]Sock 9.Thread stoped [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]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:00]accept exits with 8 [15:09:00]New connection [15:09:00]New thread 3066977636 created [15:09:00]Thread 3066834276 joined [15:09:00]Waiting for new connection... [15:09:00] Sock 8.Parse request [15:09:00]Sock 8.Check first char [15:09:00]Sock 8.First char is OK [15:09:00]request: POST /json_proto HTTP/1.0 [15:09:00]Method: POST [15:09:00]URL: /json_proto [15:09:00]Method is POST - this is cgi request [15:09:00]url: /json_proto [15:09:00]query_string will be loaded in cgi processing [15:09:00]execute_cgi json_proto POST (null) [15:09:00]execute_cgi path=json_proto method=POST [15:09:00]POST find Content-Length [15:09:00]Host: 172.17.63.3:8080 [15:09:00]Content-Length: 681 [15:09:00]Content-Type: application/json [15:09:00] [15:09:00]POST finish read [15:09:00]Found Content-Length = 681 [15:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:00]execute_script... [15:09:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:00]POST & json_proto [15:09:00]process_json_proto [15:09:00]json parsed OK: [15:09:00]protocol is kg_v1.0 [15:09:00]action value=close_receipt [15:09:00]process_action close_receipt [15:09:00]cmd_close_receipt [15:09:00]MH_GetDate [15:09:00]Write to MH i2c: F0 00 00 B6 0D B2 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: F0 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: F0 09 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: F0 09 00 B6 0D 00 0D 06 1D 67 50 D1 6C 64 43 [15:09:00]GetLastDocTimeStamp 1729955216 [15:09:00]current date 1729955341 [15:09:00]FM_GetShiftState [15:09:00]SAM_PROTO_GetShiftState [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 13 01 00 [15:09:00]Write to MH i2c: E2 08 00 B7 0D 80 13 01 00 00 00 00 00 41 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 0E 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 0E 00 B7 0D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 76 [15:09:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:09:00]wFMCommunicate OK [15:09:00]SAM_PROTO_GetShiftState done [15:09:00]FM_GetShiftState done [15:09:00]opened in 1729902702 [15:09:00]opened+sec_in_day 1729989102 [15:09:00]quantity*price = 150056 [15:09:00]sum+1 = 150058 [15:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 230 26.10.2024 15:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156329 ФПД: 27202836275784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150901&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156329&fm=27202836275784&tin=02508201610067®Number=0000000000091693&sum=150000 [15:09:01]StoreToDocumentArchive [15:09:01]shift 536 fd 156329 [15:09:01]save to /storage/0536/doc_00156329 [15:09:01]save last doc name /storage/0536/doc_00156329 to /storage/kkm_last_doc_name [15:09:01]save OK [15:09:01]Clear old archive folders... [15:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:01]tlvbuf is 016E67A0 [15:09:01]SAM_PROTO_ClearQueue [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 09 00 00 [15:09:01]Write to MH i2c: E2 08 00 C4 0D 80 09 00 00 00 00 00 00 43 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 C4 0D 00 90 00 45 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_ClearQueue done [15:09:01]KKMCreateOFDPacket [15:09:01]OFDProtocolAddRootSTLVToBuf [15:09:01]FM_MakeSignedData [15:09:01]FM_MakeSignedData [15:09:01]SAM_PROTO_SignData [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 01 02 [15:09:01]Write to MH i2c: E2 08 00 C5 0D 80 0D 01 02 00 00 00 00 4B [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 C5 0D 00 90 00 46 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]wFMCommunicate request_size=255 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 0D 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 62 02 00 35 04 06 00 18 [15:09:01]Write to MH i2c: E2 02 01 C6 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 0D 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 62 02 00 35 04 06 00 18 00 00 E4 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 C6 0D 00 90 00 47 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]wFMCommunicate request_size=10 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 0D 02 02 05 BD A7 64 A2 48 [15:09:02]Write to MH i2c: E2 0D 00 C7 0D 80 0D 02 02 05 00 BD A7 64 A2 48 00 00 0A [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 C7 0D 00 90 00 48 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 0D 03 02 [15:09:02]Write to MH i2c: E2 08 00 C8 0D 80 0D 03 02 00 00 00 00 50 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0B 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0B 00 C8 0D 00 95 10 45 C9 84 51 C9 F3 90 00 95 [15:09:02]RAPDU: 95 10 45 C9 84 51 C9 F3 90 00 [15:09:02]wFMCommunicate OK [15:09:02]SAM_PROTO_SignData done [15:09:02]FM_MakeSignedData done [15:09:02]CreateOFDProtocolMessage [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 11 00 00 [15:09:02]Write to MH i2c: E2 08 00 C9 0D 80 11 00 00 00 00 00 00 50 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 17 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 17 00 C9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [15:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:09:02]wFMCommunicate OK [15:09:02]CreateOFDProtocolMessage done [15:09:02]OFDSenderStorePacket 156329 [15:09:02]StoreOFDPacket docnum=156329 [15:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 8E 07 01 3E 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 0D 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 62 02 00 35 04 06 00 18 BD A7 64 A2 48 95 10 45 C9 84 51 C9 F3 [15:09:02]CheckFolder [15:09:02]dirname=/storage/ofd_packets [15:09:02]CheckFolder done [15:09:02]ProducePacketName [15:09:02]name=ofd_packets/00156329 [15:09:02]NVStorageSaveData ofd_packets/00156329 [15:09:02]File name is /storage/ofd_packets/00156329 [15:09:02]Write 301 bytes [15:09:02]NVStorageSaveData done [15:09:02]OFDSenderStorePacket done [15:09:02]KKMCreateOFDPacket done [15:09:02]NVStorageSaveData kkm_last_timestamp [15:09:02]File name is /storage/kkm_last_timestamp [15:09:02]Write 4 bytes [15:09:02]NVStorageSaveData done [15:09:02]ExternCall_PrintAddStr [15:09:02]wPrintStart [15:09:02]Write to MH i2c: 01 00 00 CA 0D D7 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 FF 0F EC [15:09:02]RasterBufferAndPrint [15:09:02]line Счет N : (1)99144 [15:09:02]line ИНН: 02508201610067 [15:09:02]line Контрольно-Кассовый Чек [15:09:02]line ПРОДАЖА [15:09:02]line ТРК (МРК, ГНК) : 21 [15:09:02]line Товар: 2710124130 [15:09:02]line Аи-92-К-5 [15:09:02]line 22.430 * 66.90 [15:09:02]line = 1500.57 [15:09:02]line НДС 12% НСП 1% [15:09:02]line > о реализуемом товаре [15:09:02]line ОКРУГЛЕНИЕ: -0.57 [15:09:02]line ИТОГО: 1500.00 [15:09:02]line Внесено: 1500.00 [15:09:02]line СДАЧА: 0.00 [15:09:02]line НСП 1% : 13.28 [15:09:02]line НДС 12% : 159.35 [15:09:02]line Наличными: 1500.00 [15:09:02]line Безнал.: 0.00 [15:09:02]line Место: АЗС № 143 "Партнер Нефть" [15:09:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:09:02]line СНО: Общий режим [15:09:02]line Чек 230 26.10.2024 15:09 [15:09:02]line Смена: 536 ФФД: 1.0 [15:09:02]line ЗНМ: 0300000096 [15:09:02]line РНМ: 0000000000091693 [15:09:02]line Версия ККМ: 001 [15:09:02]line ФМ: 0000000000871792 [15:09:02]line ФД: 156329 [15:09:02]line ФПД: 27202836275784 [15:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150901&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156329&fm=27202836275784&tin=02508201610067®Number=0000000000091693&sum=150000 [15:09:02]OFD Sender: Processing packet 156329 [packets to send 31, broken 30] [15:09:02]ProducePacketName [15:09:02]name=ofd_packets/00156329 [15:09:02]OFD Sender: To server: pG, [15:09:02]CommunicateWithHost lk.salyk.kg:30040 [15:09:02]ConnectInit lk.salyk.kg [15:09:02]written 0, free lines is 4095 [15:09:02]Connected sock=10 [15:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 8E 07 01 3E 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 0D 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 62 02 00 35 04 06 00 18 BD A7 64 A2 48 95 10 45 C9 84 51 C9 F3 [15:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B2 3E 47 00 24 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 31 37 39 32 10 04 04 00 A9 62 02 00 F4 03 04 00 7F AB 1C 67 B6 04 01 00 00 89 FC 05 BD 28 14 41 8E [15:09:02]CommunicateWithHost err = 0 [15:09:02]CheckOFDResponse [15:09:02]1017 (14) - 77093643461234 [15:09:02]1041 (16) - 0000000000871792 [15:09:02]1040 (4) - 156329 [15:09:02]1012 (4) - 26.10.2024 08:42 [15:09:02]1206 (1) - 0 [15:09:02]OFD Sender: Remove packet 156329 [15:09:02]ProducePacketName [15:09:02]name=ofd_packets/00156329 [15:09:02]NVStorageDeleteData [15:09:03]Write to MH i2c: 01 00 00 F5 0D 02 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 07 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 07 00 F5 0D 00 00 00 00 00 05 0D 1B [15:09:03]RasterBufferAndPrint [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]written 0, free lines is 3340 [15:09:03]process_action close_receipt done [15:09:03]requested_data is exist [15:09:03]produce_requested_data [15:09:03]requested_item fm.sn is exist - process it [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 11 00 00 [15:09:03]Write to MH i2c: E2 08 00 FC 0D 80 11 00 00 00 00 00 00 83 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 17 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 17 00 FC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D8 [15:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:09:03]wFMCommunicate OK [15:09:03]requested_item fd.num is exist - process it [15:09:03]SAM_PROTO_GetFieldsCounters [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 13 00 00 [15:09:03]Write to MH i2c: E2 08 00 FD 0D 80 13 00 00 00 00 00 00 86 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 62 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 62 00 FD 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [15:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:03]wFMCommunicate OK [15:09:03]SAM_PROTO_GetFieldsCounters done [15:09:03]requested_item shift.num is exist - process it [15:09:03]requested_item shift.opened is exist - process it [15:09:03]req_shift_opened [15:09:03]FM_GetShiftState [15:09:03]SAM_PROTO_GetShiftState [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 13 01 00 [15:09:03]Write to MH i2c: E2 08 00 FE 0D 80 13 01 00 00 00 00 00 88 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 0E 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 0E 00 FE 0D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BD [15:09:03]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:09:03]wFMCommunicate OK [15:09:03]SAM_PROTO_GetShiftState done [15:09:03]FM_GetShiftState done [15:09:03]req_shift_opened done [15:09:03]requested_item shift.open_date is exist - process it [15:09:03]req_shift_open_date [15:09:03]req_shift_open_date done [15:09:03]produce_requested_data done [15:09:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156329,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:09:03]process_action_free close_receipt [15:09:03]json_value_free [15:09:03]json_value_free done [15:09:03]process_json_proto returns [15:09:03]Send response to host [15:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156329,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:09:03]free response buf [15:09:03]execute_script done [15:09:03]execute_script returns [15:09:03]free content buf [15:09:03]Sock 8.Close socket [15:09:03]Sock 8.Thread stoped [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:57]accept exits with 9 [15:09:57]New connection [15:09:57]New thread 3066834276 created [15:09:57]Thread 3066977636 joined [15:09:57]Waiting for new connection... [15:09:57] Sock 9.Parse request [15:09:57]Sock 9.Check first char [15:09:57]Sock 9.First char is OK [15:09:57]request: POST /json_proto HTTP/1.0 [15:09:57]Method: POST [15:09:57]URL: /json_proto [15:09:57]Method is POST - this is cgi request [15:09:57]url: /json_proto [15:09:57]query_string will be loaded in cgi processing [15:09:57]execute_cgi json_proto POST (null) [15:09:57]execute_cgi path=json_proto method=POST [15:09:57]POST find Content-Length [15:09:57]Host: 172.17.63.3:8080 [15:09:57]Content-Length: 674 [15:09:57]Content-Type: application/json [15:09:57] [15:09:57]POST finish read [15:09:57]Found Content-Length = 674 [15:09:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:57]execute_script... [15:09:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:57]POST & json_proto [15:09:57]process_json_proto [15:09:57]json parsed OK: [15:09:57]protocol is kg_v1.0 [15:09:57]action value=close_receipt [15:09:57]process_action close_receipt [15:09:57]cmd_close_receipt [15:09:57]MH_GetDate [15:09:57]Write to MH i2c: F0 00 00 FF 0D FB [15:09:57]Write i2c OK [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: F0 [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: F0 09 00 [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: F0 09 00 FF 0D 00 45 06 1D 67 50 D1 6C 64 C4 [15:09:57]GetLastDocTimeStamp 1729955341 [15:09:57]current date 1729955397 [15:09:57]FM_GetShiftState [15:09:57]SAM_PROTO_GetShiftState [15:09:57]wFMCommunicate request_size=4 [15:09:57]MH_SAM_APDU [15:09:57]CAPDU: 80 13 01 00 [15:09:57]Write to MH i2c: E2 08 00 00 0E 80 13 01 00 00 00 00 00 8B [15:09:57]Write i2c OK [15:09:57]MH_I2C_Read... [15:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:57]Read from MH i2c: E2 [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: E2 0E 00 [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: E2 0E 00 00 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C0 [15:09:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:09:57]wFMCommunicate OK [15:09:57]SAM_PROTO_GetShiftState done [15:09:57]FM_GetShiftState done [15:09:57]opened in 1729902702 [15:09:57]opened+sec_in_day 1729989102 [15:09:57]quantity*price = 90068 [15:09:57]sum+1 = 90069 [15:09:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 231 26.10.2024 15:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156330 ФПД: 37488686876812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150957&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156330&fm=37488686876812&tin=02508201610067®Number=0000000000091693&sum=90000 [15:09:58]StoreToDocumentArchive [15:09:58]shift 536 fd 156330 [15:09:58]save to /storage/0536/doc_00156330 [15:09:58]save last doc name /storage/0536/doc_00156330 to /storage/kkm_last_doc_name [15:09:58]save OK [15:09:58]Clear old archive folders... [15:09:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:09:58]tlvbuf is 016ADF60 [15:09:58]SAM_PROTO_ClearQueue [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 09 00 00 [15:09:58]Write to MH i2c: E2 08 00 0D 0E 80 09 00 00 00 00 00 00 8D [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 0D 0E 00 90 00 8F [15:09:58]RAPDU: 90 00 [15:09:58]wFMCommunicate OK [15:09:58]SAM_PROTO_ClearQueue done [15:09:58]KKMCreateOFDPacket [15:09:58]OFDProtocolAddRootSTLVToBuf [15:09:58]FM_MakeSignedData [15:09:58]FM_MakeSignedData [15:09:58]SAM_PROTO_SignData [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 0D 01 02 [15:09:58]Write to MH i2c: E2 08 00 0E 0E 80 0D 01 02 00 00 00 00 95 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 0E 0E 00 90 00 90 [15:09:58]RAPDU: 90 00 [15:09:58]wFMCommunicate OK [15:09:58]wFMCommunicate request_size=255 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 45 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 62 02 00 35 04 06 00 22 18 83 DD [15:09:58]Write to MH i2c: E2 02 01 0F 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 45 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 62 02 00 35 04 06 00 22 18 83 DD 00 00 60 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]OFD Sender: No OFD packet to send [15:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 0F 0E 00 90 00 91 [15:09:58]RAPDU: 90 00 [15:09:58]wFMCommunicate OK [15:09:58]wFMCommunicate request_size=7 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 0D 02 02 02 48 8C [15:09:58]Write to MH i2c: E2 0A 00 10 0E 80 0D 02 02 02 00 48 8C 00 00 70 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 03 00 10 0E 00 90 00 92 [15:09:58]RAPDU: 90 00 [15:09:58]wFMCommunicate OK [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 0D 03 02 [15:09:58]Write to MH i2c: E2 08 00 11 0E 80 0D 03 02 00 00 00 00 9A [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 0B 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 0B 00 11 0E 00 55 50 4F 62 03 B3 A0 14 90 00 5B [15:09:58]RAPDU: 55 50 4F 62 03 B3 A0 14 90 00 [15:09:58]wFMCommunicate OK [15:09:58]SAM_PROTO_SignData done [15:09:58]FM_MakeSignedData done [15:09:58]CreateOFDProtocolMessage [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 11 00 00 [15:09:58]Write to MH i2c: E2 08 00 12 0E 80 11 00 00 00 00 00 00 9A [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 17 00 [15:09:58]MH_I2C_Read... [15:09:58]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 31 37 39 32 90 00 EF [15:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:09:58]wFMCommunicate OK [15:09:58]CreateOFDProtocolMessage done [15:09:58]OFDSenderStorePacket 156330 [15:09:58]StoreOFDPacket docnum=156330 [15:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 56 94 04 01 20 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 45 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 62 02 00 35 04 06 00 22 18 83 DD 48 8C 55 50 4F 62 03 B3 A0 14 [15:09:58]CheckFolder [15:09:58]dirname=/storage/ofd_packets [15:09:58]CheckFolder done [15:09:58]ProducePacketName [15:09:58]name=ofd_packets/00156330 [15:09:58]NVStorageSaveData ofd_packets/00156330 [15:09:58]File name is /storage/ofd_packets/00156330 [15:09:58]Write 298 bytes [15:09:58]NVStorageSaveData done [15:09:58]OFDSenderStorePacket done [15:09:58]KKMCreateOFDPacket done [15:09:58]NVStorageSaveData kkm_last_timestamp [15:09:58]File name is /storage/kkm_last_timestamp [15:09:58]Write 4 bytes [15:09:58]NVStorageSaveData done [15:09:58]ExternCall_PrintAddStr [15:09:58]wPrintStart [15:09:58]Write to MH i2c: 01 00 00 13 0E 21 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: 01 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: 01 07 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: 01 07 00 13 0E 00 00 00 00 00 FF 0F 36 [15:09:58]RasterBufferAndPrint [15:09:58]line Счет N : (1)99145 [15:09:58]line ИНН: 02508201610067 [15:09:58]line Контрольно-Кассовый Чек [15:09:58]line ПРОДАЖА [15:09:58]line ТРК (МРК, ГНК) : 32 [15:09:58]line Товар: 2710194210 [15:09:58]line ДТ-К-5 [15:09:58]line 11.820 * 76.20 [15:09:58]line = 900.68 [15:09:58]line НДС 12% НСП 1% [15:09:58]line > о реализуемом товаре [15:09:58]line ОКРУГЛЕНИЕ: -0.68 [15:09:58]line ИТОГО: 900.00 [15:09:58]line Внесено: 900.00 [15:09:58]line СДАЧА: 0.00 [15:09:58]line НСП 1% : 7.97 [15:09:58]line НДС 12% : 95.65 [15:09:58]line Наличными: 900.00 [15:09:58]line Безнал.: 0.00 [15:09:58]line Место: АЗС № 143 "Партнер Нефть" [15:09:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:09:58]line СНО: Общий режим [15:09:58]line Чек 231 26.10.2024 15:09 [15:09:58]line Смена: 536 ФФД: 1.0 [15:09:58]line ЗНМ: 0300000096 [15:09:58]line РНМ: 0000000000091693 [15:09:58]line Версия ККМ: 001 [15:09:58]line ФМ: 0000000000871792 [15:09:58]line ФД: 156330 [15:09:58]line ФПД: 37488686876812 [15:09:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150957&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156330&fm=37488686876812&tin=02508201610067®Number=0000000000091693&sum=90000 [15:09:59]OFD Sender: Processing packet 156330 [packets to send 31, broken 30] [15:09:59]ProducePacketName [15:09:59]name=ofd_packets/00156330 [15:09:59]OFD Sender: To server: pG, [15:09:59]CommunicateWithHost lk.salyk.kg:30040 [15:09:59]ConnectInit lk.salyk.kg [15:09:59]written 0, free lines is 4095 [15:09:59]Connected sock=10 [15:09:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 56 94 04 01 20 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 45 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 62 02 00 35 04 06 00 22 18 83 DD 48 8C 55 50 4F 62 03 B3 A0 14 [15:09:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9F 0D 47 00 82 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 62 02 00 F4 03 04 00 B8 AB 1C 67 B6 04 01 00 00 E4 45 69 8A 35 3C 91 1B [15:09:59]CommunicateWithHost err = 0 [15:09:59]CheckOFDResponse [15:09:59]1017 (14) - 77093643461234 [15:09:59]1041 (16) - 0000000000871792 [15:09:59]1040 (4) - 156330 [15:09:59]1012 (4) - 26.10.2024 08:43 [15:09:59]1206 (1) - 0 [15:09:59]OFD Sender: Remove packet 156330 [15:09:59]ProducePacketName [15:09:59]name=ofd_packets/00156330 [15:09:59]NVStorageDeleteData [15:09:59]Write to MH i2c: 01 00 00 3E 0E 4C [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: 01 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: 01 07 00 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: 01 07 00 3E 0E 00 00 00 00 00 E0 0C 3F [15:09:59]RasterBufferAndPrint [15:09:59]line [15:09:59]line [15:09:59]line [15:09:59]line [15:09:59]line [15:09:59]written 0, free lines is 3301 [15:09:59]process_action close_receipt done [15:09:59]requested_data is exist [15:09:59]produce_requested_data [15:09:59]requested_item fm.sn is exist - process it [15:09:59]wFMCommunicate request_size=4 [15:09:59]MH_SAM_APDU [15:09:59]CAPDU: 80 11 00 00 [15:09:59]Write to MH i2c: E2 08 00 45 0E 80 11 00 00 00 00 00 00 CD [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:59]Read from MH i2c: E2 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: E2 17 00 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: E2 17 00 45 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 22 [15:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:09:59]wFMCommunicate OK [15:09:59]requested_item fd.num is exist - process it [15:09:59]SAM_PROTO_GetFieldsCounters [15:09:59]wFMCommunicate request_size=4 [15:09:59]MH_SAM_APDU [15:09:59]CAPDU: 80 13 00 00 [15:09:59]Write to MH i2c: E2 08 00 46 0E 80 13 00 00 00 00 00 00 D0 [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:59]Read from MH i2c: E2 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: E2 62 00 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: E2 62 00 46 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [15:09: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:59]wFMCommunicate OK [15:09:59]SAM_PROTO_GetFieldsCounters done [15:09:59]requested_item shift.num is exist - process it [15:09:59]requested_item shift.opened is exist - process it [15:09:59]req_shift_opened [15:09:59]FM_GetShiftState [15:09:59]SAM_PROTO_GetShiftState [15:09:59]wFMCommunicate request_size=4 [15:09:59]MH_SAM_APDU [15:09:59]CAPDU: 80 13 01 00 [15:09:59]Write to MH i2c: E2 08 00 47 0E 80 13 01 00 00 00 00 00 D2 [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:59]Read from MH i2c: E2 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: E2 0E 00 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: E2 0E 00 47 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 07 [15:09:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:09:59]wFMCommunicate OK [15:09:59]SAM_PROTO_GetShiftState done [15:09:59]FM_GetShiftState done [15:09:59]req_shift_opened done [15:09:59]requested_item shift.open_date is exist - process it [15:09:59]req_shift_open_date [15:09:59]req_shift_open_date done [15:09:59]produce_requested_data done [15:09:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156330,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:09:59]process_action_free close_receipt [15:09:59]json_value_free [15:09:59]json_value_free done [15:09:59]process_json_proto returns [15:09:59]Send response to host [15:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156330,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:09:59]free response buf [15:09:59]execute_script done [15:09:59]execute_script returns [15:09:59]free content buf [15:09:59]Sock 9.Close socket [15:09:59]Sock 9.Thread stoped [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:53]accept exits with 8 [15:10:53]New connection [15:10:53]New thread 3066977636 created [15:10:53]Thread 3066834276 joined [15:10:53]Waiting for new connection... [15:10:53] Sock 8.Parse request [15:10:53]Sock 8.Check first char [15:10:53]Sock 8.First char is OK [15:10:53]request: POST /json_proto HTTP/1.0 [15:10:53]Method: POST [15:10:53]URL: /json_proto [15:10:53]Method is POST - this is cgi request [15:10:53]url: /json_proto [15:10:53]query_string will be loaded in cgi processing [15:10:53]execute_cgi json_proto POST (null) [15:10:53]execute_cgi path=json_proto method=POST [15:10:53]POST find Content-Length [15:10:53]Host: 172.17.63.3:8080 [15:10:53]Content-Length: 681 [15:10:53]Content-Type: application/json [15:10:53] [15:10:53]POST finish read [15:10:53]Found Content-Length = 681 [15:10:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:53]execute_script... [15:10:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:53]POST & json_proto [15:10:53]process_json_proto [15:10:53]json parsed OK: [15:10:53]protocol is kg_v1.0 [15:10:53]action value=close_receipt [15:10:53]process_action close_receipt [15:10:53]cmd_close_receipt [15:10:53]MH_GetDate [15:10:53]Write to MH i2c: F0 00 00 48 0E 45 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: F0 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: F0 09 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: F0 09 00 48 0E 00 7E 06 1D 67 50 D1 6C 64 47 [15:10:53]GetLastDocTimeStamp 1729955397 [15:10:53]current date 1729955454 [15:10:53]FM_GetShiftState [15:10:53]SAM_PROTO_GetShiftState [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 13 01 00 [15:10:53]Write to MH i2c: E2 08 00 49 0E 80 13 01 00 00 00 00 00 D4 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 0E 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 0E 00 49 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 09 [15:10:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:10:53]wFMCommunicate OK [15:10:53]SAM_PROTO_GetShiftState done [15:10:53]FM_GetShiftState done [15:10:53]opened in 1729902702 [15:10:53]opened+sec_in_day 1729989102 [15:10:53]quantity*price = 100015 [15:10:53]sum+1 = 100017 [15:10:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 232 26.10.2024 15:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156331 ФПД: 235020429042271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156331&fm=235020429042271&tin=02508201610067®Number=0000000000091693&sum=100000 [15:10:54]StoreToDocumentArchive [15:10:54]shift 536 fd 156331 [15:10:54]save to /storage/0536/doc_00156331 [15:10:54]save last doc name /storage/0536/doc_00156331 to /storage/kkm_last_doc_name [15:10:54]save OK [15:10:54]Clear old archive folders... [15:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:54]tlvbuf is 01681390 [15:10:54]SAM_PROTO_ClearQueue [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 09 00 00 [15:10:54]Write to MH i2c: E2 08 00 56 0E 80 09 00 00 00 00 00 00 D6 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 56 0E 00 90 00 D8 [15:10:54]RAPDU: 90 00 [15:10:54]wFMCommunicate OK [15:10:54]SAM_PROTO_ClearQueue done [15:10:54]KKMCreateOFDPacket [15:10:54]OFDProtocolAddRootSTLVToBuf [15:10:54]FM_MakeSignedData [15:10:54]FM_MakeSignedData [15:10:54]SAM_PROTO_SignData [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 0D 01 02 [15:10:54]Write to MH i2c: E2 08 00 57 0E 80 0D 01 02 00 00 00 00 DE [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 57 0E 00 90 00 D9 [15:10:54]RAPDU: 90 00 [15:10:54]wFMCommunicate OK [15:10:54]wFMCommunicate request_size=255 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 7E 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 62 02 00 35 04 06 00 D5 [15:10:54]Write to MH i2c: E2 02 01 58 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 7E 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 62 02 00 35 04 06 00 D5 00 00 5A [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 58 0E 00 90 00 DA [15:10:54]RAPDU: 90 00 [15:10:54]wFMCommunicate OK [15:10:54]wFMCommunicate request_size=10 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 0D 02 02 05 BF F5 30 22 5F [15:10:54]Write to MH i2c: E2 0D 00 59 0E 80 0D 02 02 05 00 BF F5 30 22 5F 00 00 50 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 59 0E 00 90 00 DB [15:10:54]RAPDU: 90 00 [15:10:54]wFMCommunicate OK [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 0D 03 02 [15:10:54]Write to MH i2c: E2 08 00 5A 0E 80 0D 03 02 00 00 00 00 E3 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:55]Read from MH i2c: E2 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: E2 0B 00 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: E2 0B 00 5A 0E 00 93 96 A8 47 66 82 0A 58 90 00 46 [15:10:55]RAPDU: 93 96 A8 47 66 82 0A 58 90 00 [15:10:55]wFMCommunicate OK [15:10:55]SAM_PROTO_SignData done [15:10:55]FM_MakeSignedData done [15:10:55]CreateOFDProtocolMessage [15:10:55]wFMCommunicate request_size=4 [15:10:55]MH_SAM_APDU [15:10:55]CAPDU: 80 11 00 00 [15:10:55]Write to MH i2c: E2 08 00 5B 0E 80 11 00 00 00 00 00 00 E3 [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:55]OFD Sender: No OFD packet to send [15:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:55]Read from MH i2c: E2 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: E2 17 00 [15:10:55]MH_I2C_Read... [15:10:55]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 31 37 39 32 90 00 38 [15:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:10:55]wFMCommunicate OK [15:10:55]CreateOFDProtocolMessage done [15:10:55]OFDSenderStorePacket 156331 [15:10:55]StoreOFDPacket docnum=156331 [15:10:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E5 7B 07 01 89 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 7E 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 62 02 00 35 04 06 00 D5 BF F5 30 22 5F 93 96 A8 47 66 82 0A 58 [15:10:55]CheckFolder [15:10:55]dirname=/storage/ofd_packets [15:10:55]CheckFolder done [15:10:55]ProducePacketName [15:10:55]name=ofd_packets/00156331 [15:10:55]NVStorageSaveData ofd_packets/00156331 [15:10:55]File name is /storage/ofd_packets/00156331 [15:10:55]Write 301 bytes [15:10:55]NVStorageSaveData done [15:10:55]OFDSenderStorePacket done [15:10:55]KKMCreateOFDPacket done [15:10:55]NVStorageSaveData kkm_last_timestamp [15:10:55]File name is /storage/kkm_last_timestamp [15:10:55]Write 4 bytes [15:10:55]NVStorageSaveData done [15:10:55]ExternCall_PrintAddStr [15:10:55]wPrintStart [15:10:55]Write to MH i2c: 01 00 00 5C 0E 6A [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 07 00 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 07 00 5C 0E 00 00 00 00 00 FF 0F 7F [15:10:55]RasterBufferAndPrint [15:10:55]line Счет N : (1)99146 [15:10:55]line ИНН: 02508201610067 [15:10:55]line Контрольно-Кассовый Чек [15:10:55]line ПРОДАЖА [15:10:55]line ТРК (МРК, ГНК) : 11 [15:10:55]line Товар: 2710124130 [15:10:55]line Аи-92-К-5 [15:10:55]line 14.950 * 66.90 [15:10:55]line = 1000.16 [15:10:55]line НДС 12% НСП 1% [15:10:55]line > о реализуемом товаре [15:10:55]line ОКРУГЛЕНИЕ: -0.16 [15:10:55]line ИТОГО: 1000.00 [15:10:55]line Внесено: 1000.00 [15:10:55]line СДАЧА: 0.00 [15:10:55]line НСП 1% : 8.85 [15:10:55]line НДС 12% : 106.21 [15:10:55]line Наличными: 1000.00 [15:10:55]line Безнал.: 0.00 [15:10:55]line Место: АЗС № 143 "Партнер Нефть" [15:10:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:10:55]line СНО: Общий режим [15:10:55]line Чек 232 26.10.2024 15:10 [15:10:55]line Смена: 536 ФФД: 1.0 [15:10:55]line ЗНМ: 0300000096 [15:10:55]line РНМ: 0000000000091693 [15:10:55]line Версия ККМ: 001 [15:10:55]line ФМ: 0000000000871792 [15:10:55]line ФД: 156331 [15:10:55]line ФПД: 235020429042271 [15:10:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156331&fm=235020429042271&tin=02508201610067®Number=0000000000091693&sum=100000 [15:10:55]OFD Sender: Processing packet 156331 [packets to send 31, broken 30] [15:10:55]ProducePacketName [15:10:55]name=ofd_packets/00156331 [15:10:55]OFD Sender: To server: pG, [15:10:55]CommunicateWithHost lk.salyk.kg:30040 [15:10:55]ConnectInit lk.salyk.kg [15:10:55]written 0, free lines is 4095 [15:10:55]Connected sock=10 [15:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E5 7B 07 01 89 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 7E 06 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 62 02 00 35 04 06 00 D5 BF F5 30 22 5F 93 96 A8 47 66 82 0A 58 [15:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CA 23 47 00 1C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 62 02 00 F4 03 04 00 F0 AB 1C 67 B6 04 01 00 00 A3 7E 3D 5B 3A 4C D7 8C [15:10:55]CommunicateWithHost err = 0 [15:10:55]CheckOFDResponse [15:10:55]1017 (14) - 77093643461234 [15:10:55]1041 (16) - 0000000000871792 [15:10:55]1040 (4) - 156331 [15:10:55]1012 (4) - 26.10.2024 08:44 [15:10:55]1206 (1) - 0 [15:10:55]OFD Sender: Remove packet 156331 [15:10:55]ProducePacketName [15:10:55]name=ofd_packets/00156331 [15:10:55]NVStorageDeleteData [15:10:55]Write to MH i2c: 01 00 00 87 0E 95 [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 07 00 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 07 00 87 0E 00 00 00 00 00 E9 0C 91 [15:10:55]RasterBufferAndPrint [15:10:55]line [15:10:55]line [15:10:55]line [15:10:55]line [15:10:55]line [15:10:55]written 0, free lines is 3311 [15:10:55]process_action close_receipt done [15:10:55]requested_data is exist [15:10:55]produce_requested_data [15:10:55]requested_item fm.sn is exist - process it [15:10:55]wFMCommunicate request_size=4 [15:10:55]MH_SAM_APDU [15:10:55]CAPDU: 80 11 00 00 [15:10:55]Write to MH i2c: E2 08 00 8E 0E 80 11 00 00 00 00 00 00 16 [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:55]Read from MH i2c: E2 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: E2 17 00 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: E2 17 00 8E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6B [15:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:10:55]wFMCommunicate OK [15:10:55]requested_item fd.num is exist - process it [15:10:55]SAM_PROTO_GetFieldsCounters [15:10:55]wFMCommunicate request_size=4 [15:10:55]MH_SAM_APDU [15:10:55]CAPDU: 80 13 00 00 [15:10:55]Write to MH i2c: E2 08 00 8F 0E 80 13 00 00 00 00 00 00 19 [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 62 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 62 00 8F 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [15:10:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:56]wFMCommunicate OK [15:10:56]SAM_PROTO_GetFieldsCounters done [15:10:56]requested_item shift.num is exist - process it [15:10:56]requested_item shift.opened is exist - process it [15:10:56]req_shift_opened [15:10:56]FM_GetShiftState [15:10:56]SAM_PROTO_GetShiftState [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 13 01 00 [15:10:56]Write to MH i2c: E2 08 00 90 0E 80 13 01 00 00 00 00 00 1B [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 0E 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 0E 00 90 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [15:10:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:10:56]wFMCommunicate OK [15:10:56]SAM_PROTO_GetShiftState done [15:10:56]FM_GetShiftState done [15:10:56]req_shift_opened done [15:10:56]requested_item shift.open_date is exist - process it [15:10:56]req_shift_open_date [15:10:56]req_shift_open_date done [15:10:56]produce_requested_data done [15:10:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156331,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:10:56]process_action_free close_receipt [15:10:56]json_value_free [15:10:56]json_value_free done [15:10:56]process_json_proto returns [15:10:56]Send response to host [15:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156331,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:10:56]free response buf [15:10:56]execute_script done [15:10:56]execute_script returns [15:10:56]free content buf [15:10:56]Sock 8.Close socket [15:10:56]Sock 8.Thread stoped [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:24]accept exits with 9 [15:13:24]New connection [15:13:24]New thread 3066834276 created [15:13:24]Thread 3066977636 joined [15:13:24]Waiting for new connection... [15:13:24] Sock 9.Parse request [15:13:24]Sock 9.Check first char [15:13:24]Sock 9.First char is OK [15:13:24]request: POST /json_proto HTTP/1.0 [15:13:24]Method: POST [15:13:24]URL: /json_proto [15:13:24]Method is POST - this is cgi request [15:13:24]url: /json_proto [15:13:24]query_string will be loaded in cgi processing [15:13:24]execute_cgi json_proto POST (null) [15:13:24]execute_cgi path=json_proto method=POST [15:13:24]POST find Content-Length [15:13:24]Host: 172.17.63.3:8080 [15:13:24]Content-Length: 796 [15:13:24]Content-Type: application/json [15:13:24] [15:13:24]POST finish read [15:13:24]Found Content-Length = 796 [15:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4379457", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:24]execute_script... [15:13:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4379457", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:24]POST & json_proto [15:13:24]process_json_proto [15:13:24]json parsed OK: [15:13:24]protocol is kg_v1.0 [15:13:24]action value=close_receipt [15:13:24]process_action close_receipt [15:13:24]cmd_close_receipt [15:13:24]MH_GetDate [15:13:24]Write to MH i2c: F0 00 00 91 0E 8E [15:13:24]Write i2c OK [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: F0 [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: F0 09 00 [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: F0 09 00 91 0E 00 15 07 1D 67 50 D1 6C 64 28 [15:13:24]GetLastDocTimeStamp 1729955454 [15:13:24]current date 1729955605 [15:13:24]FM_GetShiftState [15:13:24]SAM_PROTO_GetShiftState [15:13:24]wFMCommunicate request_size=4 [15:13:24]MH_SAM_APDU [15:13:24]CAPDU: 80 13 01 00 [15:13:24]Write to MH i2c: E2 08 00 92 0E 80 13 01 00 00 00 00 00 1D [15:13:24]Write i2c OK [15:13:24]MH_I2C_Read... [15:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:25]Read from MH i2c: E2 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 0E 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 0E 00 92 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 52 [15:13:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:13:25]wFMCommunicate OK [15:13:25]SAM_PROTO_GetShiftState done [15:13:25]FM_GetShiftState done [15:13:25]opened in 1729902702 [15:13:25]opened+sec_in_day 1729989102 [15:13:25]quantity*price = 0 [15:13:25]sum+1 = 1 [15:13:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 233 26.10.2024 15:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4379457 ФМ: 0000000000871792 ФД: 156332 ФПД: 272560556482875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151325&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156332&fm=272560556482875&tin=02508201610067®Number=0000000000091693&sum=0 [15:13:26]StoreToDocumentArchive [15:13:26]shift 536 fd 156332 [15:13:26]save to /storage/0536/doc_00156332 [15:13:26]save last doc name /storage/0536/doc_00156332 to /storage/kkm_last_doc_name [15:13:26]save OK [15:13:26]Clear old archive folders... [15:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:13:26]tlvbuf is 016B02E0 [15:13:26]SAM_PROTO_ClearQueue [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 09 00 00 [15:13:26]Write to MH i2c: E2 08 00 9F 0E 80 09 00 00 00 00 00 00 1F [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 03 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 03 00 9F 0E 00 90 00 21 [15:13:26]RAPDU: 90 00 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_ClearQueue done [15:13:26]KKMCreateOFDPacket [15:13:26]OFDProtocolAddRootSTLVToBuf [15:13:26]FM_MakeSignedData [15:13:26]FM_MakeSignedData [15:13:26]SAM_PROTO_SignData [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 0D 01 02 [15:13:26]Write to MH i2c: E2 08 00 A0 0E 80 0D 01 02 00 00 00 00 27 [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 03 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 03 00 A0 0E 00 90 00 22 [15:13:26]RAPDU: 90 00 [15:13:26]wFMCommunicate OK [15:13:26]wFMCommunicate request_size=255 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 15 07 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 62 02 00 35 04 06 00 F7 E4 73 26 [15:13:26]Write to MH i2c: E2 02 01 A1 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 15 07 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 62 02 00 35 04 06 00 F7 E4 73 26 00 00 1E [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]OFD Sender: No OFD packet to send [15:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 03 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 03 00 A1 0E 00 90 00 23 [15:13:26]RAPDU: 90 00 [15:13:26]wFMCommunicate OK [15:13:26]wFMCommunicate request_size=7 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 0D 02 02 02 21 3B [15:13:26]Write to MH i2c: E2 0A 00 A2 0E 80 0D 02 02 02 00 21 3B 00 00 8A [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 03 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 03 00 A2 0E 00 90 00 24 [15:13:26]RAPDU: 90 00 [15:13:26]wFMCommunicate OK [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 0D 03 02 [15:13:26]Write to MH i2c: E2 08 00 A3 0E 80 0D 03 02 00 00 00 00 2C [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0B 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0B 00 A3 0E 00 F3 B1 09 6E 1D 02 34 B6 90 00 51 [15:13:26]RAPDU: F3 B1 09 6E 1D 02 34 B6 90 00 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_SignData done [15:13:26]FM_MakeSignedData done [15:13:26]CreateOFDProtocolMessage [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 11 00 00 [15:13:26]Write to MH i2c: E2 08 00 A4 0E 80 11 00 00 00 00 00 00 2C [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 17 00 [15:13:26]MH_I2C_Read... [15:13:26]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 31 37 39 32 90 00 81 [15:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:13:26]wFMCommunicate OK [15:13:26]CreateOFDProtocolMessage done [15:13:26]OFDSenderStorePacket 156332 [15:13:26]StoreOFDPacket docnum=156332 [15:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 23 AA 04 01 29 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 15 07 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 62 02 00 35 04 06 00 F7 E4 73 26 21 3B F3 B1 09 6E 1D 02 34 B6 [15:13:26]CheckFolder [15:13:26]dirname=/storage/ofd_packets [15:13:26]CheckFolder done [15:13:26]ProducePacketName [15:13:26]name=ofd_packets/00156332 [15:13:26]NVStorageSaveData ofd_packets/00156332 [15:13:26]File name is /storage/ofd_packets/00156332 [15:13:26]Write 298 bytes [15:13:26]NVStorageSaveData done [15:13:26]OFDSenderStorePacket done [15:13:26]KKMCreateOFDPacket done [15:13:26]NVStorageSaveData kkm_last_timestamp [15:13:26]File name is /storage/kkm_last_timestamp [15:13:26]Write 4 bytes [15:13:26]NVStorageSaveData done [15:13:26]OFD Sender: Processing packet 156332 [packets to send 31, broken 30] [15:13:26]ProducePacketName [15:13:26]name=ofd_packets/00156332 [15:13:26]OFD Sender: To server: pG, [15:13:26]CommunicateWithHost lk.salyk.kg:30040 [15:13:26]ConnectInit lk.salyk.kg [15:13:26]ExternCall_PrintAddStr [15:13:26]wPrintStart [15:13:26]Write to MH i2c: 01 00 00 A5 0E B3 [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: 01 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: 01 07 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: 01 07 00 A5 0E 00 00 00 00 00 FF 0F C8 [15:13:26]RasterBufferAndPrint [15:13:26]line Счет N : (1)99147 [15:13:26]line ИНН: 02508201610067 [15:13:26]line Контрольно-Кассовый Чек [15:13:26]line ПРОДАЖА [15:13:26]line ТРК (МРК, ГНК) : 32 [15:13:26]line Товар: 2710194210 [15:13:26]line ДТ-К-5 [15:13:26]line 20.000 * 0.00 [15:13:26]line = 0.00 [15:13:26]line НДС 12% НСП 1% [15:13:26]line > о реализуемом товаре [15:13:26]line ИТОГО: 0.00 [15:13:26]line НСП 1% : 0.00 [15:13:26]line НДС 12% : 0.00 [15:13:26]line Наличными: 0.00 [15:13:26]line Безнал.: 0.00 [15:13:26]line Место: АЗС № 143 "Партнер Нефть" [15:13:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:13:26]line СНО: Общий режим [15:13:26]line Чек 233 26.10.2024 15:13 [15:13:26]line Смена: 536 ФФД: 1.0 [15:13:26]line ЗНМ: 0300000096 [15:13:26]line РНМ: 0000000000091693 [15:13:26]line Версия ККМ: 001 [15:13:26]line Талоны: Топливные Талоны [15:13:26]line 4379457 [15:13:26]line ФМ: 0000000000871792 [15:13:26]line ФД: 156332 [15:13:26]line ФПД: 272560556482875 [15:13:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151325&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156332&fm=272560556482875&tin=02508201610067®Number=0000000000091693&sum=0 [15:13:27]Connected sock=11 [15:13:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 23 AA 04 01 29 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 15 07 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 62 02 00 35 04 06 00 F7 E4 73 26 21 3B F3 B1 09 6E 1D 02 34 B6 [15:13:27]written 0, free lines is 4095 [15:13:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 16 3F 47 00 3E 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 31 37 39 32 10 04 04 00 AC 62 02 00 F4 03 04 00 88 AC 1C 67 B6 04 01 00 00 9F 69 BE 62 5B D8 08 65 [15:13:27]CommunicateWithHost err = 0 [15:13:27]CheckOFDResponse [15:13:27]1017 (14) - 77093643461234 [15:13:27]1041 (16) - 0000000000871792 [15:13:27]1040 (4) - 156332 [15:13:27]1012 (4) - 26.10.2024 08:47 [15:13:27]1206 (1) - 0 [15:13:27]OFD Sender: Remove packet 156332 [15:13:27]ProducePacketName [15:13:27]name=ofd_packets/00156332 [15:13:27]NVStorageDeleteData [15:13:27]Write to MH i2c: 01 00 00 CF 0E DD [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 07 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 07 00 CF 0E 00 00 00 00 00 F2 0C E2 [15:13:27]RasterBufferAndPrint [15:13:27]line [15:13:27]line [15:13:27]line [15:13:27]line [15:13:27]line [15:13:27]written 0, free lines is 3320 [15:13:27]process_action close_receipt done [15:13:27]requested_data is exist [15:13:27]produce_requested_data [15:13:27]requested_item fm.sn is exist - process it [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 11 00 00 [15:13:27]Write to MH i2c: E2 08 00 D6 0E 80 11 00 00 00 00 00 00 5E [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 17 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 17 00 D6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B3 [15:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:13:27]wFMCommunicate OK [15:13:27]requested_item fd.num is exist - process it [15:13:27]SAM_PROTO_GetFieldsCounters [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 13 00 00 [15:13:27]Write to MH i2c: E2 08 00 D7 0E 80 13 00 00 00 00 00 00 61 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 62 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 62 00 D7 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [15:13: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:27]wFMCommunicate OK [15:13:27]SAM_PROTO_GetFieldsCounters done [15:13:27]requested_item shift.num is exist - process it [15:13:27]requested_item shift.opened is exist - process it [15:13:27]req_shift_opened [15:13:27]FM_GetShiftState [15:13:27]SAM_PROTO_GetShiftState [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 13 01 00 [15:13:27]Write to MH i2c: E2 08 00 D8 0E 80 13 01 00 00 00 00 00 63 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]OFD Sender: No OFD packet to send [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:27]Read from MH i2c: E2 0E 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 0E 00 D8 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 98 [15:13:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:13:27]wFMCommunicate OK [15:13:27]SAM_PROTO_GetShiftState done [15:13:27]FM_GetShiftState done [15:13:27]req_shift_opened done [15:13:27]requested_item shift.open_date is exist - process it [15:13:27]req_shift_open_date [15:13:27]req_shift_open_date done [15:13:27]produce_requested_data done [15:13:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156332,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:13:27]process_action_free close_receipt [15:13:27]json_value_free [15:13:27]json_value_free done [15:13:27]process_json_proto returns [15:13:27]Send response to host [15:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156332,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:13:27]free response buf [15:13:27]execute_script done [15:13:27]execute_script returns [15:13:27]free content buf [15:13:27]Sock 9.Close socket [15:13:27]Sock 9.Thread stoped [15:13:31]int [15:13:31]Write to MH i2c: 01 00 00 D9 0E E7 [15:13:31]*** FLAG_PRN_KEY set [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 07 00 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 07 00 D9 0E 00 08 00 00 00 FF 0F 04 [15:13:31]state=0 [15:13:31]Key pressed [15:13:31]Feed [15:13:31]Write to MH i2c: D8 00 00 DA 0E BF [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: D8 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: D8 01 00 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: D8 01 00 DA 0E 00 C0 [15:13:31]int [15:13:31]Write to MH i2c: 01 00 00 DB 0E E9 [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 07 00 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 07 00 DB 0E 00 48 00 00 00 3C 00 74 [15:13:31]state=2 [15:13:31]Key pressed [15:13:31]int [15:13:31]Write to MH i2c: 01 00 00 DC 0E EA [15:13:31]*** FLAG_PRN_KEY reset [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 07 00 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: 01 07 00 DC 0E 00 00 00 00 00 F7 0F F7 [15:13:31]state=2 [15:13:31]Stop feed [15:13:32]OFD Sender: No OFD packet to send [15:13:33]accept exits with 8 [15:13:33]New connection [15:13:33]New thread 3066977636 created [15:13:33]Thread 3066834276 joined [15:13:33]Waiting for new connection... [15:13:33] Sock 8.Parse request [15:13:33]Sock 8.Check first char [15:13:33]Sock 8.First char is OK [15:13:33]request: POST /json_proto HTTP/1.0 [15:13:33]Method: POST [15:13:33]URL: /json_proto [15:13:33]Method is POST - this is cgi request [15:13:33]url: /json_proto [15:13:33]query_string will be loaded in cgi processing [15:13:33]execute_cgi json_proto POST (null) [15:13:33]execute_cgi path=json_proto method=POST [15:13:33]POST find Content-Length [15:13:33]Host: 172.17.63.3:8080 [15:13:33]Content-Length: 676 [15:13:33]Content-Type: application/json [15:13:33] [15:13:33]POST finish read [15:13:33]Found Content-Length = 676 [15:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:33]execute_script... [15: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 : (1)99148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:33]POST & json_proto [15:13:33]process_json_proto [15:13:33]json parsed OK: [15:13:33]protocol is kg_v1.0 [15:13:33]action value=close_receipt [15:13:33]process_action close_receipt [15:13:33]cmd_close_receipt [15:13:33]MH_GetDate [15:13:33]Write to MH i2c: F0 00 00 DD 0E DA [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 09 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 09 00 DD 0E 00 1E 07 1D 67 50 D1 6C 64 7D [15:13:33]GetLastDocTimeStamp 1729955605 [15:13:33]current date 1729955614 [15:13:33]FM_GetShiftState [15:13:33]SAM_PROTO_GetShiftState [15:13:33]wFMCommunicate request_size=4 [15:13:33]MH_SAM_APDU [15:13:33]CAPDU: 80 13 01 00 [15:13:33]Write to MH i2c: E2 08 00 DE 0E 80 13 01 00 00 00 00 00 69 [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:33]Read from MH i2c: E2 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 0E 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 0E 00 DE 0E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9E [15:13:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:13:33]wFMCommunicate OK [15:13:33]SAM_PROTO_GetShiftState done [15:13:33]FM_GetShiftState done [15:13:33]opened in 1729902702 [15:13:33]opened+sec_in_day 1729989102 [15:13:33]quantity*price = 30038 [15:13:33]sum+1 = 30039 [15:13:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 234 26.10.2024 15:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156333 ФПД: 191305019608031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151334&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156333&fm=191305019608031&tin=02508201610067®Number=0000000000091693&sum=30000 [15:13:34]StoreToDocumentArchive [15:13:34]shift 536 fd 156333 [15:13:34]save to /storage/0536/doc_00156333 [15:13:34]save last doc name /storage/0536/doc_00156333 to /storage/kkm_last_doc_name [15:13:34]save OK [15:13:34]Clear old archive folders... [15:13:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:34]tlvbuf is 016FA8E0 [15:13:34]SAM_PROTO_ClearQueue [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 09 00 00 [15:13:34]Write to MH i2c: E2 08 00 EB 0E 80 09 00 00 00 00 00 00 6B [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 EB 0E 00 90 00 6D [15:13:34]RAPDU: 90 00 [15:13:34]wFMCommunicate OK [15:13:34]SAM_PROTO_ClearQueue done [15:13:34]KKMCreateOFDPacket [15:13:34]OFDProtocolAddRootSTLVToBuf [15:13:34]FM_MakeSignedData [15:13:34]FM_MakeSignedData [15:13:34]SAM_PROTO_SignData [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 0D 01 02 [15:13:34]Write to MH i2c: E2 08 00 EC 0E 80 0D 01 02 00 00 00 00 73 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 EC 0E 00 90 00 6E [15:13:34]RAPDU: 90 00 [15:13:34]wFMCommunicate OK [15:13:34]wFMCommunicate request_size=255 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 1E 07 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 62 02 00 35 04 06 00 AD [15:13:34]Write to MH i2c: E2 02 01 ED 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 1E 07 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 62 02 00 35 04 06 00 AD 00 00 66 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 ED 0E 00 90 00 6F [15:13:34]RAPDU: 90 00 [15:13:34]wFMCommunicate OK [15:13:34]wFMCommunicate request_size=10 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 0D 02 02 05 FD AB BC CB DF [15:13:34]Write to MH i2c: E2 0D 00 EE 0E 80 0D 02 02 05 00 FD AB BC CB DF 00 00 8E [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 03 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 03 00 EE 0E 00 90 00 70 [15:13:35]RAPDU: 90 00 [15:13:35]wFMCommunicate OK [15:13:35]wFMCommunicate request_size=4 [15:13:35]MH_SAM_APDU [15:13:35]CAPDU: 80 0D 03 02 [15:13:35]Write to MH i2c: E2 08 00 EF 0E 80 0D 03 02 00 00 00 00 78 [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 0B 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 0B 00 EF 0E 00 8C 34 9C 5F 55 FC 52 49 90 00 20 [15:13:35]RAPDU: 8C 34 9C 5F 55 FC 52 49 90 00 [15:13:35]wFMCommunicate OK [15:13:35]SAM_PROTO_SignData done [15:13:35]FM_MakeSignedData done [15:13:35]CreateOFDProtocolMessage [15:13:35]wFMCommunicate request_size=4 [15:13:35]MH_SAM_APDU [15:13:35]CAPDU: 80 11 00 00 [15:13:35]Write to MH i2c: E2 08 00 F0 0E 80 11 00 00 00 00 00 00 78 [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 17 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 17 00 F0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [15:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:13:35]wFMCommunicate OK [15:13:35]CreateOFDProtocolMessage done [15:13:35]OFDSenderStorePacket 156333 [15:13:35]StoreOFDPacket docnum=156333 [15:13:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8E 9E 07 01 27 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 1E 07 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 62 02 00 35 04 06 00 AD FD AB BC CB DF 8C 34 9C 5F 55 FC 52 49 [15:13:35]CheckFolder [15:13:35]dirname=/storage/ofd_packets [15:13:35]CheckFolder done [15:13:35]ProducePacketName [15:13:35]name=ofd_packets/00156333 [15:13:35]NVStorageSaveData ofd_packets/00156333 [15:13:35]File name is /storage/ofd_packets/00156333 [15:13:35]Write 301 bytes [15:13:35]NVStorageSaveData done [15:13:35]OFDSenderStorePacket done [15:13:35]KKMCreateOFDPacket done [15:13:35]NVStorageSaveData kkm_last_timestamp [15:13:35]File name is /storage/kkm_last_timestamp [15:13:35]Write 4 bytes [15:13:35]NVStorageSaveData done [15:13:35]ExternCall_PrintAddStr [15:13:35]wPrintStart [15:13:35]Write to MH i2c: 01 00 00 F1 0E FF [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 07 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 07 00 F1 0E 00 00 00 00 00 FF 0F 14 [15:13:35]RasterBufferAndPrint [15:13:35]line Счет N : (1)99148 [15:13:35]line ИНН: 02508201610067 [15:13:35]line Контрольно-Кассовый Чек [15:13:35]line ПРОДАЖА [15:13:35]line ТРК (МРК, ГНК) : 21 [15:13:35]line Товар: 2710124130 [15:13:35]line Аи-92-К-5 [15:13:35]line 4.490 * 66.90 [15:13:35]line = 300.38 [15:13:35]line НДС 12% НСП 1% [15:13:35]line > о реализуемом товаре [15:13:35]line ОКРУГЛЕНИЕ: -0.38 [15:13:35]line ИТОГО: 300.00 [15:13:35]line Внесено: 300.00 [15:13:35]line СДАЧА: 0.00 [15:13:35]line НСП 1% : 2.66 [15:13:35]line НДС 12% : 31.90 [15:13:35]line Наличными: 300.00 [15:13:35]line Безнал.: 0.00 [15:13:35]line Место: АЗС № 143 "Партнер Нефть" [15:13:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:13:35]line СНО: Общий режим [15:13:35]line Чек 234 26.10.2024 15:13 [15:13:35]line Смена: 536 ФФД: 1.0 [15:13:35]line ЗНМ: 0300000096 [15:13:35]line РНМ: 0000000000091693 [15:13:35]line Версия ККМ: 001 [15:13:35]line ФМ: 0000000000871792 [15:13:35]line ФД: 156333 [15:13:35]line ФПД: 191305019608031 [15:13:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151334&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156333&fm=191305019608031&tin=02508201610067®Number=0000000000091693&sum=30000 [15:13:35]OFD Sender: Processing packet 156333 [packets to send 31, broken 30] [15:13:35]ProducePacketName [15:13:35]name=ofd_packets/00156333 [15:13:35]OFD Sender: To server: pG, [15:13:35]CommunicateWithHost lk.salyk.kg:30040 [15:13:35]ConnectInit lk.salyk.kg [15:13:35]written 0, free lines is 4095 [15:13:35]Connected sock=10 [15: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 31 37 39 32 0F 01 00 00 8E 9E 07 01 27 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 1E 07 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 62 02 00 35 04 06 00 AD FD AB BC CB DF 8C 34 9C 5F 55 FC 52 49 [15:13:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B3 44 47 00 6B FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 62 02 00 F4 03 04 00 90 AC 1C 67 B6 04 01 00 00 72 EE BC 3C 09 F1 86 1B [15:13:35]CommunicateWithHost err = 0 [15:13:35]CheckOFDResponse [15:13:35]1017 (14) - 77093643461234 [15:13:35]1041 (16) - 0000000000871792 [15:13:35]1040 (4) - 156333 [15:13:35]1012 (4) - 26.10.2024 08:47 [15:13:35]1206 (1) - 0 [15:13:35]OFD Sender: Remove packet 156333 [15:13:35]ProducePacketName [15:13:35]name=ofd_packets/00156333 [15:13:35]NVStorageDeleteData [15:13:35]Write to MH i2c: 01 00 00 1C 0F 2B [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 07 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 07 00 1C 0F 00 00 00 00 00 E4 0C 22 [15:13:35]RasterBufferAndPrint [15:13:35]line [15:13:35]line [15:13:35]line [15:13:35]line [15:13:35]line [15:13:35]written 0, free lines is 3309 [15:13:35]process_action close_receipt done [15:13:35]requested_data is exist [15:13:35]produce_requested_data [15:13:35]requested_item fm.sn is exist - process it [15:13:35]wFMCommunicate request_size=4 [15:13:35]MH_SAM_APDU [15:13:35]CAPDU: 80 11 00 00 [15:13:35]Write to MH i2c: E2 08 00 23 0F 80 11 00 00 00 00 00 00 AC [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 17 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 17 00 23 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 01 [15:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:13:35]wFMCommunicate OK [15:13:35]requested_item fd.num is exist - process it [15:13:35]SAM_PROTO_GetFieldsCounters [15:13:35]wFMCommunicate request_size=4 [15:13:35]MH_SAM_APDU [15:13:35]CAPDU: 80 13 00 00 [15:13:35]Write to MH i2c: E2 08 00 24 0F 80 13 00 00 00 00 00 00 AF [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:36]Read from MH i2c: E2 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: E2 62 00 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: E2 62 00 24 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [15:13:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:36]wFMCommunicate OK [15:13:36]SAM_PROTO_GetFieldsCounters done [15:13:36]requested_item shift.num is exist - process it [15:13:36]requested_item shift.opened is exist - process it [15:13:36]req_shift_opened [15:13:36]FM_GetShiftState [15:13:36]SAM_PROTO_GetShiftState [15:13:36]wFMCommunicate request_size=4 [15:13:36]MH_SAM_APDU [15:13:36]CAPDU: 80 13 01 00 [15:13:36]Write to MH i2c: E2 08 00 25 0F 80 13 01 00 00 00 00 00 B1 [15:13:36]Write i2c OK [15:13:36]MH_I2C_Read... [15:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:36]Read from MH i2c: E2 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: E2 0E 00 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: E2 0E 00 25 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E6 [15:13:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:13:36]wFMCommunicate OK [15:13:36]SAM_PROTO_GetShiftState done [15:13:36]FM_GetShiftState done [15:13:36]req_shift_opened done [15:13:36]requested_item shift.open_date is exist - process it [15:13:36]req_shift_open_date [15:13:36]req_shift_open_date done [15:13:36]produce_requested_data done [15:13:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156333,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:13:36]process_action_free close_receipt [15:13:36]json_value_free [15:13:36]json_value_free done [15:13:36]process_json_proto returns [15:13:36]Send response to host [15:13:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156333,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:13:36]free response buf [15:13:36]execute_script done [15:13:36]execute_script returns [15:13:36]free content buf [15:13:36]Sock 8.Close socket [15:13:36]Sock 8.Thread stoped [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:40]int [15:15:40]Write to MH i2c: 01 00 00 26 0F 35 [15:15:40]*** FLAG_PRN_PAP1 set [15:15:40]Write i2c OK [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: 01 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: 01 07 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: 01 07 00 26 0F 00 01 00 00 00 FF 0F 4B [15:15:40]state=0 [15:15:40]No paper [15:15:40]int [15:15:40]Write to MH i2c: 01 00 00 27 0F 36 [15:15:40]*** FLAG_PRN_PAP2 set [15:15:40]Write i2c OK [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: 01 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: 01 07 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: 01 07 00 27 0F 00 03 00 00 00 FF 0F 4E [15:15:40]state=0 [15:15:40]No paper [15:15:40]Cover opened [15:15:41]OFD Sender: No OFD packet to send [15:15:45]Write to MH i2c: 01 00 00 28 0F 37 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 28 0F 00 03 00 00 00 FF 0F 4F [15:15:45]state=3 [15:15:45]No paper [15:15:45]Cover opened [15:15:46]int [15:15:46]Write to MH i2c: 01 00 00 29 0F 38 [15:15:46]*** FLAG_PRN_PAP2 reset [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 29 0F 00 01 00 00 00 FF 0F 4E [15:15:46]state=3 [15:15:46]No paper [15:15:46]Cover closed [15:15:46]int [15:15:46]Write to MH i2c: 01 00 00 2A 0F 39 [15:15:46]*** FLAG_PRN_PAP1 reset [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 2A 0F 00 00 00 00 00 FF 0F 4E [15:15:46]state=0 [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:26]accept exits with 9 [15:18:26]New connection [15:18:26]New thread 3066834276 created [15:18:26]Thread 3066977636 joined [15:18:26]Waiting for new connection... [15:18:26] Sock 9.Parse request [15:18:26]Sock 9.Check first char [15:18:26]Sock 9.First char is OK [15:18:26]request: POST /json_proto HTTP/1.0 [15:18:26]Method: POST [15:18:26]URL: /json_proto [15:18:26]Method is POST - this is cgi request [15:18:26]url: /json_proto [15:18:26]query_string will be loaded in cgi processing [15:18:26]execute_cgi json_proto POST (null) [15:18:26]execute_cgi path=json_proto method=POST [15:18:26]POST find Content-Length [15:18:26]Host: 172.17.63.3:8080 [15:18:26]Content-Length: 681 [15:18:26]Content-Type: application/json [15:18:26] [15:18:26]POST finish read [15:18:26]Found Content-Length = 681 [15:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:26]execute_script... [15:18:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:26]POST & json_proto [15:18:26]process_json_proto [15:18:26]json parsed OK: [15:18:26]protocol is kg_v1.0 [15:18:26]action value=close_receipt [15:18:26]process_action close_receipt [15:18:26]cmd_close_receipt [15:18:26]MH_GetDate [15:18:26]Write to MH i2c: F0 00 00 2B 0F 29 [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 09 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 09 00 2B 0F 00 43 08 1D 67 50 D1 6C 64 F2 [15:18:26]GetLastDocTimeStamp 1729955614 [15:18:26]current date 1729955907 [15:18:26]FM_GetShiftState [15:18:26]SAM_PROTO_GetShiftState [15:18:26]wFMCommunicate request_size=4 [15:18:26]MH_SAM_APDU [15:18:26]CAPDU: 80 13 01 00 [15:18:26]Write to MH i2c: E2 08 00 2C 0F 80 13 01 00 00 00 00 00 B8 [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:26]Read from MH i2c: E2 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 0E 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 0E 00 2C 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 ED [15:18:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:18:26]wFMCommunicate OK [15:18:26]SAM_PROTO_GetShiftState done [15:18:26]FM_GetShiftState done [15:18:26]opened in 1729902702 [15:18:26]opened+sec_in_day 1729989102 [15:18:26]quantity*price = 150056 [15:18:26]sum+1 = 150058 [15:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 235 26.10.2024 15:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156334 ФПД: 66473244572213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151827&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156334&fm=66473244572213&tin=02508201610067®Number=0000000000091693&sum=150000 [15:18:28]StoreToDocumentArchive [15:18:28]shift 536 fd 156334 [15:18:28]save to /storage/0536/doc_00156334 [15:18:28]save last doc name /storage/0536/doc_00156334 to /storage/kkm_last_doc_name [15:18:28]save OK [15:18:28]Clear old archive folders... [15:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:28]tlvbuf is 016EF670 [15:18:28]SAM_PROTO_ClearQueue [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 09 00 00 [15:18:28]Write to MH i2c: E2 08 00 39 0F 80 09 00 00 00 00 00 00 BA [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 39 0F 00 90 00 BC [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]SAM_PROTO_ClearQueue done [15:18:28]KKMCreateOFDPacket [15:18:28]OFDProtocolAddRootSTLVToBuf [15:18:28]FM_MakeSignedData [15:18:28]FM_MakeSignedData [15:18:28]SAM_PROTO_SignData [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 01 02 [15:18:28]Write to MH i2c: E2 08 00 3A 0F 80 0D 01 02 00 00 00 00 C2 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 3A 0F 00 90 00 BD [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]wFMCommunicate request_size=255 [15:18:28]MH_SAM_APDU [15:18: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 43 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 62 02 00 35 04 06 00 3C [15:18:28]Write to MH i2c: E2 02 01 3B 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 43 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 62 02 00 35 04 06 00 3C 00 00 C1 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 3B 0F 00 90 00 BE [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]wFMCommunicate request_size=10 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 02 02 05 75 02 21 3A 35 [15:18:28]Write to MH i2c: E2 0D 00 3C 0F 80 0D 02 02 05 00 75 02 21 3A 35 00 00 D6 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 3C 0F 00 90 00 BF [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 03 02 [15:18:28]Write to MH i2c: E2 08 00 3D 0F 80 0D 03 02 00 00 00 00 C7 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 0B 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 0B 00 3D 0F 00 34 55 63 F8 41 D7 2E 33 90 00 25 [15:18:28]RAPDU: 34 55 63 F8 41 D7 2E 33 90 00 [15:18:28]wFMCommunicate OK [15:18:28]SAM_PROTO_SignData done [15:18:28]FM_MakeSignedData done [15:18:28]CreateOFDProtocolMessage [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 11 00 00 [15:18:28]Write to MH i2c: E2 08 00 3E 0F 80 11 00 00 00 00 00 00 C7 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 17 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 17 00 3E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1C [15:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:18:28]wFMCommunicate OK [15:18:28]CreateOFDProtocolMessage done [15:18:28]OFDSenderStorePacket 156334 [15:18:28]StoreOFDPacket docnum=156334 [15:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9A F7 07 01 95 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 43 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 62 02 00 35 04 06 00 3C 75 02 21 3A 35 34 55 63 F8 41 D7 2E 33 [15:18:28]CheckFolder [15:18:28]dirname=/storage/ofd_packets [15:18:28]CheckFolder done [15:18:28]ProducePacketName [15:18:28]name=ofd_packets/00156334 [15:18:28]NVStorageSaveData ofd_packets/00156334 [15:18:28]File name is /storage/ofd_packets/00156334 [15:18:28]Write 301 bytes [15:18:28]NVStorageSaveData done [15:18:28]OFDSenderStorePacket done [15:18:28]KKMCreateOFDPacket done [15:18:28]NVStorageSaveData kkm_last_timestamp [15:18:28]File name is /storage/kkm_last_timestamp [15:18:28]Write 4 bytes [15:18:28]NVStorageSaveData done [15:18:28]OFD Sender: Processing packet 156334 [packets to send 31, broken 30] [15:18:28]ProducePacketName [15:18:28]name=ofd_packets/00156334 [15:18:28]OFD Sender: To server: pG, [15:18:28]CommunicateWithHost lk.salyk.kg:30040 [15:18:28]ConnectInit lk.salyk.kg [15:18:28]ExternCall_PrintAddStr [15:18:28]wPrintStart [15:18:28]Write to MH i2c: 01 00 00 3F 0F 4E [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 07 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 07 00 3F 0F 00 00 00 00 00 FF 0F 63 [15:18:28]RasterBufferAndPrint [15:18:28]line Счет N : (1)99149 [15:18:28]line ИНН: 02508201610067 [15:18:28]line Контрольно-Кассовый Чек [15:18:28]line ПРОДАЖА [15:18:28]line ТРК (МРК, ГНК) : 11 [15:18:28]line Товар: 2710124130 [15:18:28]line Аи-92-К-5 [15:18:28]line 22.430 * 66.90 [15:18:28]line = 1500.57 [15:18:28]line НДС 12% НСП 1% [15:18:28]line > о реализуемом товаре [15:18:28]line ОКРУГЛЕНИЕ: -0.57 [15:18:28]line ИТОГО: 1500.00 [15:18:28]line Внесено: 1500.00 [15:18:28]line СДАЧА: 0.00 [15:18:28]line НСП 1% : 13.28 [15:18:28]line НДС 12% : 159.35 [15:18:28]line Наличными: 1500.00 [15:18:28]line Безнал.: 0.00 [15:18:28]line Место: АЗС № 143 "Партнер Нефть" [15:18:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:18:28]line СНО: Общий режим [15:18:28]line Чек 235 26.10.2024 15:18 [15:18:28]line Смена: 536 ФФД: 1.0 [15:18:28]line ЗНМ: 0300000096 [15:18:28]line РНМ: 0000000000091693 [15:18:28]line Версия ККМ: 001 [15:18:28]line ФМ: 0000000000871792 [15:18:28]line ФД: 156334 [15:18:28]line ФПД: 66473244572213 [15:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151827&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156334&fm=66473244572213&tin=02508201610067®Number=0000000000091693&sum=150000 [15:18:28]Connected sock=11 [15:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9A F7 07 01 95 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 43 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 62 02 00 35 04 06 00 3C 75 02 21 3A 35 34 55 63 F8 41 D7 2E 33 [15:18:28]written 0, free lines is 4095 [15:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C4 6C 47 00 35 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 62 02 00 F4 03 04 00 B5 AD 1C 67 B6 04 01 00 00 F2 DD 07 DB 44 31 45 E8 [15:18:29]CommunicateWithHost err = 0 [15:18:29]CheckOFDResponse [15:18:29]1017 (14) - 77093643461234 [15:18:29]1041 (16) - 0000000000871792 [15:18:29]1040 (4) - 156334 [15:18:29]1012 (4) - 26.10.2024 08:52 [15:18:29]1206 (1) - 0 [15:18:29]OFD Sender: Remove packet 156334 [15:18:29]ProducePacketName [15:18:29]name=ofd_packets/00156334 [15:18:29]NVStorageDeleteData [15:18:29]Write to MH i2c: 01 00 00 6A 0F 79 [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 6A 0F 00 00 00 00 00 E0 0C 6C [15:18:29]RasterBufferAndPrint [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]written 0, free lines is 3302 [15:18:29]process_action close_receipt done [15:18:29]requested_data is exist [15:18:29]produce_requested_data [15:18:29]requested_item fm.sn is exist - process it [15:18:29]wFMCommunicate request_size=4 [15:18:29]MH_SAM_APDU [15:18:29]CAPDU: 80 11 00 00 [15:18:29]Write to MH i2c: E2 08 00 71 0F 80 11 00 00 00 00 00 00 FA [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:29]Read from MH i2c: E2 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 17 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 17 00 71 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [15:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:18:29]wFMCommunicate OK [15:18:29]requested_item fd.num is exist - process it [15:18:29]SAM_PROTO_GetFieldsCounters [15:18:29]wFMCommunicate request_size=4 [15:18:29]MH_SAM_APDU [15:18:29]CAPDU: 80 13 00 00 [15:18:29]Write to MH i2c: E2 08 00 72 0F 80 13 00 00 00 00 00 00 FD [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:29]Read from MH i2c: E2 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 62 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 62 00 72 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [15:18:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:29]wFMCommunicate OK [15:18:29]SAM_PROTO_GetFieldsCounters done [15:18:29]requested_item shift.num is exist - process it [15:18:29]requested_item shift.opened is exist - process it [15:18:29]req_shift_opened [15:18:29]FM_GetShiftState [15:18:29]SAM_PROTO_GetShiftState [15:18:29]wFMCommunicate request_size=4 [15:18:29]MH_SAM_APDU [15:18:29]CAPDU: 80 13 01 00 [15:18:29]Write to MH i2c: E2 08 00 73 0F 80 13 01 00 00 00 00 00 FF [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]OFD Sender: No OFD packet to send [15:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:29]Read from MH i2c: E2 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 0E 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 0E 00 73 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 34 [15:18:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:18:29]wFMCommunicate OK [15:18:29]SAM_PROTO_GetShiftState done [15:18:29]FM_GetShiftState done [15:18:29]req_shift_opened done [15:18:29]requested_item shift.open_date is exist - process it [15:18:29]req_shift_open_date [15:18:29]req_shift_open_date done [15:18:29]produce_requested_data done [15:18:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156334,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:18:29]process_action_free close_receipt [15:18:29]json_value_free [15:18:29]json_value_free done [15:18:29]process_json_proto returns [15:18:29]Send response to host [15:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156334,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:18:29]free response buf [15:18:29]execute_script done [15:18:29]execute_script returns [15:18:29]free content buf [15:18:29]Sock 9.Close socket [15:18:29]Sock 9.Thread stoped [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:42]accept exits with 8 [15:18:42]New connection [15:18:42]New thread 3066977636 created [15:18:42]Thread 3066834276 joined [15:18:42]Waiting for new connection... [15:18:42] Sock 8.Parse request [15:18:42]Sock 8.Check first char [15:18:42]Sock 8.First char is OK [15:18:42]request: POST /json_proto HTTP/1.0 [15:18:42]Method: POST [15:18:42]URL: /json_proto [15:18:42]Method is POST - this is cgi request [15:18:42]url: /json_proto [15:18:42]query_string will be loaded in cgi processing [15:18:42]execute_cgi json_proto POST (null) [15:18:42]execute_cgi path=json_proto method=POST [15:18:42]POST find Content-Length [15:18:42]Host: 172.17.63.3:8080 [15:18:42]Content-Length: 765 [15:18:42]Content-Type: application/json [15:18:42] [15:18:42]POST finish read [15:18:42]Found Content-Length = 765 [15:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:42]execute_script... [15:18:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:42]POST & json_proto [15:18:42]process_json_proto [15:18:42]json parsed OK: [15:18:42]protocol is kg_v1.0 [15:18:42]action value=close_receipt [15:18:42]process_action close_receipt [15:18:42]cmd_close_receipt [15:18:42]MH_GetDate [15:18:42]Write to MH i2c: F0 00 00 74 0F 72 [15:18:42]Write i2c OK [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: F0 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: F0 09 00 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: F0 09 00 74 0F 00 53 08 1D 67 50 D1 6C 64 4B [15:18:42]GetLastDocTimeStamp 1729955907 [15:18:42]current date 1729955923 [15:18:42]FM_GetShiftState [15:18:42]SAM_PROTO_GetShiftState [15:18:42]wFMCommunicate request_size=4 [15:18:42]MH_SAM_APDU [15:18:42]CAPDU: 80 13 01 00 [15:18:42]Write to MH i2c: E2 08 00 75 0F 80 13 01 00 00 00 00 00 01 [15:18:42]Write i2c OK [15:18:42]MH_I2C_Read... [15:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:42]Read from MH i2c: E2 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: E2 0E 00 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: E2 0E 00 75 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 36 [15:18:42]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:18:42]wFMCommunicate OK [15:18:42]SAM_PROTO_GetShiftState done [15:18:42]FM_GetShiftState done [15:18:42]opened in 1729902702 [15:18:42]opened+sec_in_day 1729989102 [15:18:42]quantity*price = 35055 [15:18:42]sum+1 = 35057 [15:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 236 26.10.2024 15:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156335 ФПД: 181750968208486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151843&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156335&fm=181750968208486&tin=02508201610067®Number=0000000000091693&sum=35056 [15:18:43]StoreToDocumentArchive [15:18:43]shift 536 fd 156335 [15:18:43]save to /storage/0536/doc_00156335 [15:18:43]save last doc name /storage/0536/doc_00156335 to /storage/kkm_last_doc_name [15:18:43]save OK [15:18:43]Clear old archive folders... [15:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:43]tlvbuf is 0167A820 [15:18:43]SAM_PROTO_ClearQueue [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 09 00 00 [15:18:43]Write to MH i2c: E2 08 00 82 0F 80 09 00 00 00 00 00 00 03 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 82 0F 00 90 00 05 [15:18:43]RAPDU: 90 00 [15:18:43]wFMCommunicate OK [15:18:43]SAM_PROTO_ClearQueue done [15:18:43]KKMCreateOFDPacket [15:18:43]OFDProtocolAddRootSTLVToBuf [15:18:43]FM_MakeSignedData [15:18:43]FM_MakeSignedData [15:18:43]SAM_PROTO_SignData [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 0D 01 02 [15:18:43]Write to MH i2c: E2 08 00 83 0F 80 0D 01 02 00 00 00 00 0B [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 83 0F 00 90 00 06 [15:18:43]RAPDU: 90 00 [15:18:43]wFMCommunicate OK [15:18:43]wFMCommunicate request_size=255 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 53 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 62 02 00 35 04 06 00 A5 [15:18:43]Write to MH i2c: E2 02 01 84 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 53 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 62 02 00 35 04 06 00 A5 00 00 B7 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 84 0F 00 90 00 07 [15:18:43]RAPDU: 90 00 [15:18:43]wFMCommunicate OK [15:18:43]wFMCommunicate request_size=10 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 0D 02 02 05 4D 31 E5 CC 66 [15:18:43]Write to MH i2c: E2 0D 00 85 0F 80 0D 02 02 05 00 4D 31 E5 CC 66 00 00 AD [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 85 0F 00 90 00 08 [15:18:43]RAPDU: 90 00 [15:18:43]wFMCommunicate OK [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 0D 03 02 [15:18:43]Write to MH i2c: E2 08 00 86 0F 80 0D 03 02 00 00 00 00 10 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 0B 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 0B 00 86 0F 00 9A 92 93 FC 12 06 E5 1B 90 00 E4 [15:18:43]RAPDU: 9A 92 93 FC 12 06 E5 1B 90 00 [15:18:43]wFMCommunicate OK [15:18:43]SAM_PROTO_SignData done [15:18:43]FM_MakeSignedData done [15:18:43]CreateOFDProtocolMessage [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 11 00 00 [15:18:43]Write to MH i2c: E2 08 00 87 0F 80 11 00 00 00 00 00 00 10 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 17 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 17 00 87 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [15:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:18:43]wFMCommunicate OK [15:18:43]CreateOFDProtocolMessage done [15:18:43]OFDSenderStorePacket 156335 [15:18:43]StoreOFDPacket docnum=156335 [15:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 73 82 07 01 FD A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 53 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 62 02 00 35 04 06 00 A5 4D 31 E5 CC 66 9A 92 93 FC 12 06 E5 1B [15:18:43]CheckFolder [15:18:43]dirname=/storage/ofd_packets [15:18:43]CheckFolder done [15:18:43]ProducePacketName [15:18:43]name=ofd_packets/00156335 [15:18:43]NVStorageSaveData ofd_packets/00156335 [15:18:43]File name is /storage/ofd_packets/00156335 [15:18:43]Write 301 bytes [15:18:43]NVStorageSaveData done [15:18:43]OFDSenderStorePacket done [15:18:43]KKMCreateOFDPacket done [15:18:43]NVStorageSaveData kkm_last_timestamp [15:18:43]File name is /storage/kkm_last_timestamp [15:18:43]Write 4 bytes [15:18:43]NVStorageSaveData done [15:18:43]ExternCall_PrintAddStr [15:18:43]wPrintStart [15:18:43]Write to MH i2c: 01 00 00 88 0F 97 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: 01 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: 01 07 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: 01 07 00 88 0F 00 00 00 00 00 FF 0F AC [15:18:43]RasterBufferAndPrint [15:18:43]line Счет N : (1)99150 [15:18:43]line ИНН: 02508201610067 [15:18:43]line Контрольно-Кассовый Чек [15:18:43]line ПРОДАЖА [15:18:43]line ТРК (МРК, ГНК) : 21 [15:18:43]line Товар: 2710124130 [15:18:43]line Аи-92-К-5 [15:18:43]line 5.240 * 66.90 [15:18:43]line = 350.56 [15:18:43]line НДС 12% НСП 1% [15:18:43]line > о реализуемом товаре [15:18:43]line ИТОГО: 350.56 [15:18:43]line НСП 1% : 3.10 [15:18:43]line НДС 12% : 37.23 [15:18:43]line Наличными: 0.00 [15:18:43]line Безнал.: 350.56 [15:18:43]line Место: АЗС № 143 "Партнер Нефть" [15:18:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:18:43]line СНО: Общий режим [15:18:43]line Чек 236 26.10.2024 15:18 [15:18:43]line Смена: 536 ФФД: 1.0 [15:18:43]line ЗНМ: 0300000096 [15:18:43]line РНМ: 0000000000091693 [15:18:43]line Версия ККМ: 001 [15:18:43]line Платежная система: Mbank [15:18:43]line ФМ: 0000000000871792 [15:18:43]line ФД: 156335 [15:18:43]line ФПД: 181750968208486 [15:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151843&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156335&fm=181750968208486&tin=02508201610067®Number=0000000000091693&sum=35056 [15:18:43]written 0, free lines is 4095 [15:18:44]OFD Sender: Processing packet 156335 [packets to send 31, broken 30] [15:18:44]ProducePacketName [15:18:44]name=ofd_packets/00156335 [15:18:44]OFD Sender: To server: pG, [15:18:44]CommunicateWithHost lk.salyk.kg:30040 [15:18:44]ConnectInit lk.salyk.kg [15:18:44]Connected sock=10 [15:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 73 82 07 01 FD A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 53 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 62 02 00 35 04 06 00 A5 4D 31 E5 CC 66 9A 92 93 FC 12 06 E5 1B [15:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7A 2B 47 00 79 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 31 37 39 32 10 04 04 00 AF 62 02 00 F4 03 04 00 C5 AD 1C 67 B6 04 01 00 00 11 03 32 C5 7A 41 5B A1 [15:18:44]CommunicateWithHost err = 0 [15:18:44]CheckOFDResponse [15:18:44]1017 (14) - 77093643461234 [15:18:44]1041 (16) - 0000000000871792 [15:18:44]1040 (4) - 156335 [15:18:44]1012 (4) - 26.10.2024 08:52 [15:18:44]1206 (1) - 0 [15:18:44]OFD Sender: Remove packet 156335 [15:18:44]ProducePacketName [15:18:44]name=ofd_packets/00156335 [15:18:44]NVStorageDeleteData [15:18:44]Write to MH i2c: 01 00 00 B1 0F C0 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: 01 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: 01 07 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: 01 07 00 B1 0F 00 00 00 00 00 0C 0D E0 [15:18:44]RasterBufferAndPrint [15:18:44]line [15:18:44]line [15:18:44]line [15:18:44]line [15:18:44]line [15:18:44]written 0, free lines is 3346 [15:18:44]process_action close_receipt done [15:18:44]requested_data is exist [15:18:44]produce_requested_data [15:18:44]requested_item fm.sn is exist - process it [15:18:44]wFMCommunicate request_size=4 [15:18:44]MH_SAM_APDU [15:18:44]CAPDU: 80 11 00 00 [15:18:44]Write to MH i2c: E2 08 00 B8 0F 80 11 00 00 00 00 00 00 41 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:44]Read from MH i2c: E2 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 17 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 17 00 B8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 96 [15:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:18:44]wFMCommunicate OK [15:18:44]requested_item fd.num is exist - process it [15:18:44]SAM_PROTO_GetFieldsCounters [15:18:44]wFMCommunicate request_size=4 [15:18:44]MH_SAM_APDU [15:18:44]CAPDU: 80 13 00 00 [15:18:44]Write to MH i2c: E2 08 00 B9 0F 80 13 00 00 00 00 00 00 44 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:44]Read from MH i2c: E2 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 62 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 62 00 B9 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [15:18: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:44]wFMCommunicate OK [15:18:44]SAM_PROTO_GetFieldsCounters done [15:18:44]requested_item shift.num is exist - process it [15:18:44]requested_item shift.opened is exist - process it [15:18:44]req_shift_opened [15:18:44]FM_GetShiftState [15:18:44]SAM_PROTO_GetShiftState [15:18:44]wFMCommunicate request_size=4 [15:18:44]MH_SAM_APDU [15:18:44]CAPDU: 80 13 01 00 [15:18:44]Write to MH i2c: E2 08 00 BA 0F 80 13 01 00 00 00 00 00 46 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:44]Read from MH i2c: E2 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 0E 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 0E 00 BA 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 7B [15:18:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:18:44]wFMCommunicate OK [15:18:44]SAM_PROTO_GetShiftState done [15:18:44]FM_GetShiftState done [15:18:44]req_shift_opened done [15:18:44]requested_item shift.open_date is exist - process it [15:18:44]req_shift_open_date [15:18:44]req_shift_open_date done [15:18:44]produce_requested_data done [15:18:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156335,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:18:44]process_action_free close_receipt [15:18:44]json_value_free [15:18:44]json_value_free done [15:18:44]process_json_proto returns [15:18:44]Send response to host [15:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156335,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:18:44]free response buf [15:18:44]execute_script done [15:18:44]execute_script returns [15:18:44]free content buf [15:18:44]Sock 8.Close socket [15:18:44]Sock 8.Thread stoped [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:32]accept exits with 9 [15:21:32]New connection [15:21:32]New thread 3066834276 created [15:21:32]Thread 3066977636 joined [15:21:32]Waiting for new connection... [15:21:32] Sock 9.Parse request [15:21:32]Sock 9.Check first char [15:21:32]Sock 9.First char is OK [15:21:32]request: POST /json_proto HTTP/1.0 [15:21:32]Method: POST [15:21:32]URL: /json_proto [15:21:32]Method is POST - this is cgi request [15:21:32]url: /json_proto [15:21:32]query_string will be loaded in cgi processing [15:21:32]execute_cgi json_proto POST (null) [15:21:32]execute_cgi path=json_proto method=POST [15:21:32]POST find Content-Length [15:21:32]Host: 172.17.63.3:8080 [15:21:32]Content-Length: 766 [15:21:32]Content-Type: application/json [15:21:32] [15:21:32]POST finish read [15:21:32]Found Content-Length = 766 [15:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:32]execute_script... [15:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:32]POST & json_proto [15:21:32]process_json_proto [15:21:32]json parsed OK: [15:21:32]protocol is kg_v1.0 [15:21:32]action value=close_receipt [15:21:32]process_action close_receipt [15:21:32]cmd_close_receipt [15:21:32]MH_GetDate [15:21:32]Write to MH i2c: F0 00 00 BB 0F B9 [15:21:32]Write i2c OK [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: F0 [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: F0 09 00 [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: F0 09 00 BB 0F 00 FD 08 1D 67 50 D1 6C 64 3C [15:21:32]GetLastDocTimeStamp 1729955923 [15:21:32]current date 1729956093 [15:21:32]FM_GetShiftState [15:21:32]SAM_PROTO_GetShiftState [15:21:32]wFMCommunicate request_size=4 [15:21:32]MH_SAM_APDU [15:21:32]CAPDU: 80 13 01 00 [15:21:32]Write to MH i2c: E2 08 00 BC 0F 80 13 01 00 00 00 00 00 48 [15:21:32]Write i2c OK [15:21:32]MH_I2C_Read... [15:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:32]Read from MH i2c: E2 [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: E2 0E 00 [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: E2 0E 00 BC 0F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 7D [15:21:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:21:32]wFMCommunicate OK [15:21:32]SAM_PROTO_GetShiftState done [15:21:32]FM_GetShiftState done [15:21:32]opened in 1729902702 [15:21:32]opened+sec_in_day 1729989102 [15:21:32]quantity*price = 80012 [15:21:32]sum+1 = 80013 [15:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 237 26.10.2024 15:21 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156336 ФПД: 265496497384354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152133&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156336&fm=265496497384354&tin=02508201610067®Number=0000000000091693&sum=80012 [15:21:33]StoreToDocumentArchive [15:21:33]shift 536 fd 156336 [15:21:33]save to /storage/0536/doc_00156336 [15:21:33]save last doc name /storage/0536/doc_00156336 to /storage/kkm_last_doc_name [15:21:33]save OK [15:21:33]Clear old archive folders... [15:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:33]tlvbuf is 01693890 [15:21:33]SAM_PROTO_ClearQueue [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 09 00 00 [15:21:33]Write to MH i2c: E2 08 00 C9 0F 80 09 00 00 00 00 00 00 4A [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 C9 0F 00 90 00 4C [15:21:33]RAPDU: 90 00 [15:21:33]wFMCommunicate OK [15:21:33]SAM_PROTO_ClearQueue done [15:21:33]KKMCreateOFDPacket [15:21:33]OFDProtocolAddRootSTLVToBuf [15:21:33]FM_MakeSignedData [15:21:33]FM_MakeSignedData [15:21:33]SAM_PROTO_SignData [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 0D 01 02 [15:21:33]Write to MH i2c: E2 08 00 CA 0F 80 0D 01 02 00 00 00 00 52 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 CA 0F 00 90 00 4D [15:21:33]RAPDU: 90 00 [15:21:33]wFMCommunicate OK [15:21:33]wFMCommunicate request_size=255 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 FD 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 62 02 00 35 04 06 00 F1 [15:21:33]Write to MH i2c: E2 02 01 CB 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 FD 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 62 02 00 35 04 06 00 F1 00 00 7F [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 CB 0F 00 90 00 4E [15:21:33]RAPDU: 90 00 [15:21:33]wFMCommunicate OK [15:21:33]wFMCommunicate request_size=10 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 0D 02 02 05 77 B8 6A 6B A2 [15:21:33]Write to MH i2c: E2 0D 00 CC 0F 80 0D 02 02 05 00 77 B8 6A 6B A2 00 00 05 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 CC 0F 00 90 00 4F [15:21:33]RAPDU: 90 00 [15:21:33]wFMCommunicate OK [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 0D 03 02 [15:21:33]Write to MH i2c: E2 08 00 CD 0F 80 0D 03 02 00 00 00 00 57 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0B 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0B 00 CD 0F 00 55 53 B4 50 B2 39 0E A3 90 00 A0 [15:21:34]RAPDU: 55 53 B4 50 B2 39 0E A3 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_SignData done [15:21:34]FM_MakeSignedData done [15:21:34]CreateOFDProtocolMessage [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 11 00 00 [15:21:34]Write to MH i2c: E2 08 00 CE 0F 80 11 00 00 00 00 00 00 57 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 17 00 [15:21:34]MH_I2C_Read... [15:21:34]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 31 37 39 32 90 00 AC [15:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:21:34]wFMCommunicate OK [15:21:34]CreateOFDProtocolMessage done [15:21:34]OFDSenderStorePacket 156336 [15:21:34]StoreOFDPacket docnum=156336 [15:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4C 63 07 01 20 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 FD 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 62 02 00 35 04 06 00 F1 77 B8 6A 6B A2 55 53 B4 50 B2 39 0E A3 [15:21:34]CheckFolder [15:21:34]dirname=/storage/ofd_packets [15:21:34]CheckFolder done [15:21:34]ProducePacketName [15:21:34]name=ofd_packets/00156336 [15:21:34]NVStorageSaveData ofd_packets/00156336 [15:21:34]File name is /storage/ofd_packets/00156336 [15:21:34]Write 301 bytes [15:21:34]NVStorageSaveData done [15:21:34]OFDSenderStorePacket done [15:21:34]KKMCreateOFDPacket done [15:21:34]NVStorageSaveData kkm_last_timestamp [15:21:34]File name is /storage/kkm_last_timestamp [15:21:34]Write 4 bytes [15:21:34]NVStorageSaveData done [15:21:34]ExternCall_PrintAddStr [15:21:34]wPrintStart [15:21:34]Write to MH i2c: 01 00 00 CF 0F DE [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 CF 0F 00 00 00 00 00 FF 0F F3 [15:21:34]RasterBufferAndPrint [15:21:34]line Счет N : (1)99151 [15:21:34]line ИНН: 02508201610067 [15:21:34]line Контрольно-Кассовый Чек [15:21:34]line ПРОДАЖА [15:21:34]line ТРК (МРК, ГНК) : 21 [15:21:34]line Товар: 2710124130 [15:21:34]line Аи-92-К-5 [15:21:34]line 11.960 * 66.90 [15:21:34]line = 800.12 [15:21:34]line НДС 12% НСП 1% [15:21:34]line > о реализуемом товаре [15:21:34]line ИТОГО: 800.12 [15:21:34]line НСП 1% : 7.08 [15:21:34]line НДС 12% : 84.97 [15:21:34]line Наличными: 0.00 [15:21:34]line Безнал.: 800.12 [15:21:34]line Место: АЗС № 143 "Партнер Нефть" [15:21:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:21:34]line СНО: Общий режим [15:21:34]line Чек 237 26.10.2024 15:21 [15:21:34]line Смена: 536 ФФД: 1.0 [15:21:34]line ЗНМ: 0300000096 [15:21:34]line РНМ: 0000000000091693 [15:21:34]line Версия ККМ: 001 [15:21:34]line Платежная система: Mbank [15:21:34]line ФМ: 0000000000871792 [15:21:34]line ФД: 156336 [15:21:34]line ФПД: 265496497384354 [15:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152133&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156336&fm=265496497384354&tin=02508201610067®Number=0000000000091693&sum=80012 [15:21:34]written 0, free lines is 4095 [15:21:34]OFD Sender: Processing packet 156336 [packets to send 31, broken 30] [15:21:34]ProducePacketName [15:21:34]name=ofd_packets/00156336 [15:21:34]OFD Sender: To server: pG, [15:21:34]CommunicateWithHost lk.salyk.kg:30040 [15:21:34]ConnectInit lk.salyk.kg [15:21:34]Connected sock=10 [15:21:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4C 63 07 01 20 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 FD 08 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 62 02 00 35 04 06 00 F1 77 B8 6A 6B A2 55 53 B4 50 B2 39 0E A3 [15:21:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 38 78 47 00 8F 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 31 37 39 32 10 04 04 00 B0 62 02 00 F4 03 04 00 6F AE 1C 67 B6 04 01 00 00 42 AE C3 C5 30 E0 44 1A [15:21:34]CommunicateWithHost err = 0 [15:21:34]CheckOFDResponse [15:21:34]1017 (14) - 77093643461234 [15:21:34]1041 (16) - 0000000000871792 [15:21:34]1040 (4) - 156336 [15:21:34]1012 (4) - 26.10.2024 08:55 [15:21:34]1206 (1) - 0 [15:21:34]OFD Sender: Remove packet 156336 [15:21:34]ProducePacketName [15:21:34]name=ofd_packets/00156336 [15:21:34]NVStorageDeleteData [15:21:34]Write to MH i2c: 01 00 00 F8 0F 07 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 F8 0F 00 00 00 00 00 0B 0D 26 [15:21:34]RasterBufferAndPrint [15:21:34]line [15:21:34]line [15:21:34]line [15:21:34]line [15:21:34]line [15:21:34]written 0, free lines is 3347 [15:21:34]process_action close_receipt done [15:21:34]requested_data is exist [15:21:34]produce_requested_data [15:21:34]requested_item fm.sn is exist - process it [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 11 00 00 [15:21:34]Write to MH i2c: E2 08 00 FF 0F 80 11 00 00 00 00 00 00 88 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 17 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 17 00 FF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DD [15:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:21:34]wFMCommunicate OK [15:21:34]requested_item fd.num is exist - process it [15:21:34]SAM_PROTO_GetFieldsCounters [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 13 00 00 [15:21:34]Write to MH i2c: E2 08 00 00 10 80 13 00 00 00 00 00 00 8C [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 62 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 62 00 00 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [15:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_GetFieldsCounters done [15:21:34]requested_item shift.num is exist - process it [15:21:34]requested_item shift.opened is exist - process it [15:21:34]req_shift_opened [15:21:34]FM_GetShiftState [15:21:34]SAM_PROTO_GetShiftState [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 13 01 00 [15:21:34]Write to MH i2c: E2 08 00 01 10 80 13 01 00 00 00 00 00 8E [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0E 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0E 00 01 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C3 [15:21:34]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_GetShiftState done [15:21:34]FM_GetShiftState done [15:21:34]req_shift_opened done [15:21:34]requested_item shift.open_date is exist - process it [15:21:34]req_shift_open_date [15:21:34]req_shift_open_date done [15:21:34]produce_requested_data done [15:21:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156336,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:21:34]process_action_free close_receipt [15:21:34]json_value_free [15:21:34]json_value_free done [15:21:34]process_json_proto returns [15:21:34]Send response to host [15:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156336,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:21:34]free response buf [15:21:34]execute_script done [15:21:34]execute_script returns [15:21:34]free content buf [15:21:34]Sock 9.Close socket [15:21:34]Sock 9.Thread stoped [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:40]int [15:21:40]Write to MH i2c: 01 00 00 02 10 12 [15:21:40]*** FLAG_PRN_PAP1 set [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 02 10 00 01 00 00 00 FF 0F 28 [15:21:40]state=0 [15:21:40]No paper [15:21:40]int [15:21:40]Write to MH i2c: 01 00 00 03 10 13 [15:21:40]*** FLAG_PRN_PAP2 set [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 03 10 00 03 00 00 00 FF 0F 2B [15:21:40]state=0 [15:21:40]No paper [15:21:40]Cover opened [15:21:40]int [15:21:40]Write to MH i2c: 01 00 00 04 10 14 [15:21:40]*** FLAG_PRN_PAP2 reset [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 04 10 00 01 00 00 00 FF 0F 2A [15:21:40]state=3 [15:21:40]No paper [15:21:40]Cover closed [15:21:42]int [15:21:42]Write to MH i2c: 01 00 00 05 10 15 [15:21:42]*** FLAG_PRN_PAP2 set [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: 01 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: 01 07 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: 01 07 00 05 10 00 03 00 00 00 FF 0F 2D [15:21:42]state=0 [15:21:42]No paper [15:21:42]Cover opened [15:21:44]OFD Sender: No OFD packet to send [15:21:47]Write to MH i2c: 01 00 00 06 10 16 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 07 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 07 00 06 10 00 03 00 00 00 FF 0F 2E [15:21:47]state=3 [15:21:47]No paper [15:21:47]Cover opened [15:21:49]OFD Sender: No OFD packet to send [15:21:51]int [15:21:51]Write to MH i2c: 01 00 00 07 10 17 [15:21:51]*** FLAG_PRN_PAP2 reset [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 07 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 07 00 07 10 00 01 00 00 00 FF 0F 2D [15:21:51]state=3 [15:21:51]No paper [15:21:51]Cover closed [15:21:51]int [15:21:51]Write to MH i2c: 01 00 00 08 10 18 [15:21:51]*** FLAG_PRN_PAP1 reset [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 07 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 07 00 08 10 00 00 00 00 00 FF 0F 2D [15:21:51]state=0 [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]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:32]accept exits with 8 [15:23:32]New connection [15:23:32]New thread 3066977636 created [15:23:32]Thread 3066834276 joined [15:23:32]Waiting for new connection... [15:23:32] Sock 8.Parse request [15:23:32]Sock 8.Check first char [15:23:32]Sock 8.First char is OK [15:23:32]request: POST /json_proto HTTP/1.0 [15:23:32]Method: POST [15:23:32]URL: /json_proto [15:23:32]Method is POST - this is cgi request [15:23:32]url: /json_proto [15:23:32]query_string will be loaded in cgi processing [15:23:32]execute_cgi json_proto POST (null) [15:23:32]execute_cgi path=json_proto method=POST [15:23:32]POST find Content-Length [15:23:32]Host: 172.17.63.3:8080 [15:23:32]Content-Length: 676 [15:23:32]Content-Type: application/json [15:23:32] [15:23:32]POST finish read [15:23:32]Found Content-Length = 676 [15:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:32]execute_script... [15:23:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:32]POST & json_proto [15:23:32]process_json_proto [15:23:32]json parsed OK: [15:23:32]protocol is kg_v1.0 [15:23:32]action value=close_receipt [15:23:32]process_action close_receipt [15:23:32]cmd_close_receipt [15:23:32]MH_GetDate [15:23:32]Write to MH i2c: F0 00 00 09 10 08 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: F0 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: F0 09 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: F0 09 00 09 10 00 75 09 1D 67 50 D1 6C 64 04 [15:23:32]GetLastDocTimeStamp 1729956093 [15:23:32]current date 1729956213 [15:23:32]FM_GetShiftState [15:23:32]SAM_PROTO_GetShiftState [15:23:32]wFMCommunicate request_size=4 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 13 01 00 [15:23:32]Write to MH i2c: E2 08 00 0A 10 80 13 01 00 00 00 00 00 97 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 0E 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 0E 00 0A 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CC [15:23:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:23:32]wFMCommunicate OK [15:23:32]SAM_PROTO_GetShiftState done [15:23:32]FM_GetShiftState done [15:23:32]opened in 1729902702 [15:23:32]opened+sec_in_day 1729989102 [15:23:32]quantity*price = 50041 [15:23:32]sum+1 = 50042 [15:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 238 26.10.2024 15:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156337 ФПД: 53470382742702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152333&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156337&fm=53470382742702&tin=02508201610067®Number=0000000000091693&sum=50000 [15:23:33]StoreToDocumentArchive [15:23:33]shift 536 fd 156337 [15:23:33]save to /storage/0536/doc_00156337 [15:23:33]save last doc name /storage/0536/doc_00156337 to /storage/kkm_last_doc_name [15:23:33]save OK [15:23:33]Clear old archive folders... [15:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:33]tlvbuf is 01673430 [15:23:33]SAM_PROTO_ClearQueue [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 09 00 00 [15:23:33]Write to MH i2c: E2 08 00 17 10 80 09 00 00 00 00 00 00 99 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 17 10 00 90 00 9B [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_ClearQueue done [15:23:33]KKMCreateOFDPacket [15:23:33]OFDProtocolAddRootSTLVToBuf [15:23:33]FM_MakeSignedData [15:23:33]FM_MakeSignedData [15:23:33]SAM_PROTO_SignData [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 01 02 [15:23:33]Write to MH i2c: E2 08 00 18 10 80 0D 01 02 00 00 00 00 A1 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 18 10 00 90 00 9C [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]wFMCommunicate request_size=255 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 75 09 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 62 02 00 35 04 06 00 30 [15:23:33]Write to MH i2c: E2 02 01 19 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 75 09 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 62 02 00 35 04 06 00 30 00 00 84 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 19 10 00 90 00 9D [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]wFMCommunicate request_size=10 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 02 02 05 A1 8B 2B 5C AE [15:23:33]Write to MH i2c: E2 0D 00 1A 10 80 0D 02 02 05 00 A1 8B 2B 5C AE 00 00 0F [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 1A 10 00 90 00 9E [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 03 02 [15:23:33]Write to MH i2c: E2 08 00 1B 10 80 0D 03 02 00 00 00 00 A6 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0B 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0B 00 1B 10 00 B7 CF 91 94 8D DE 76 58 90 00 8B [15:23:33]RAPDU: B7 CF 91 94 8D DE 76 58 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_SignData done [15:23:33]FM_MakeSignedData done [15:23:33]CreateOFDProtocolMessage [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 11 00 00 [15:23:33]Write to MH i2c: E2 08 00 1C 10 80 11 00 00 00 00 00 00 A6 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 1C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [15:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:23:33]wFMCommunicate OK [15:23:33]CreateOFDProtocolMessage done [15:23:33]OFDSenderStorePacket 156337 [15:23:33]StoreOFDPacket docnum=156337 [15:23:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 D0 07 01 E7 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 75 09 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 62 02 00 35 04 06 00 30 A1 8B 2B 5C AE B7 CF 91 94 8D DE 76 58 [15:23:33]CheckFolder [15:23:33]dirname=/storage/ofd_packets [15:23:33]CheckFolder done [15:23:33]ProducePacketName [15:23:33]name=ofd_packets/00156337 [15:23:33]NVStorageSaveData ofd_packets/00156337 [15:23:33]File name is /storage/ofd_packets/00156337 [15:23:33]Write 301 bytes [15:23:33]NVStorageSaveData done [15:23:33]OFDSenderStorePacket done [15:23:33]KKMCreateOFDPacket done [15:23:33]NVStorageSaveData kkm_last_timestamp [15:23:33]File name is /storage/kkm_last_timestamp [15:23:33]Write 4 bytes [15:23:33]NVStorageSaveData done [15:23:33]ExternCall_PrintAddStr [15:23:33]wPrintStart [15:23:33]Write to MH i2c: 01 00 00 1D 10 2D [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 1D 10 00 00 00 00 00 FF 0F 42 [15:23:33]RasterBufferAndPrint [15:23:33]line Счет N : (1)99152 [15:23:33]line ИНН: 02508201610067 [15:23:33]line Контрольно-Кассовый Чек [15:23:33]line ПРОДАЖА [15:23:33]line ТРК (МРК, ГНК) : 21 [15:23:33]line Товар: 2710124130 [15:23:33]line Аи-92-К-5 [15:23:33]line 7.480 * 66.90 [15:23:33]line = 500.41 [15:23:33]line НДС 12% НСП 1% [15:23:33]line > о реализуемом товаре [15:23:33]line ОКРУГЛЕНИЕ: -0.41 [15:23:33]line ИТОГО: 500.00 [15:23:33]line Внесено: 500.00 [15:23:33]line СДАЧА: 0.00 [15:23:33]line НСП 1% : 4.43 [15:23:33]line НДС 12% : 53.14 [15:23:33]line Наличными: 500.00 [15:23:33]line Безнал.: 0.00 [15:23:33]line Место: АЗС № 143 "Партнер Нефть" [15:23:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:23:33]line СНО: Общий режим [15:23:33]line Чек 238 26.10.2024 15:23 [15:23:33]line Смена: 536 ФФД: 1.0 [15:23:33]line ЗНМ: 0300000096 [15:23:33]line РНМ: 0000000000091693 [15:23:33]line Версия ККМ: 001 [15:23:33]line ФМ: 0000000000871792 [15:23:33]line ФД: 156337 [15:23:33]line ФПД: 53470382742702 [15:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152333&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156337&fm=53470382742702&tin=02508201610067®Number=0000000000091693&sum=50000 [15:23:34]OFD Sender: Processing packet 156337 [packets to send 31, broken 30] [15:23:34]ProducePacketName [15:23:34]name=ofd_packets/00156337 [15:23:34]OFD Sender: To server: pG, [15:23:34]CommunicateWithHost lk.salyk.kg:30040 [15:23:34]ConnectInit lk.salyk.kg [15:23:34]written 0, free lines is 4095 [15:23:34]Connected sock=11 [15:23:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 D0 07 01 E7 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 75 09 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 62 02 00 35 04 06 00 30 A1 8B 2B 5C AE B7 CF 91 94 8D DE 76 58 [15:23:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2B DC 47 00 9E 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 62 02 00 F4 03 04 00 E7 AE 1C 67 B6 04 01 00 00 94 1E 40 A3 A4 35 F5 56 [15:23:34]CommunicateWithHost err = 0 [15:23:34]CheckOFDResponse [15:23:34]1017 (14) - 77093643461234 [15:23:34]1041 (16) - 0000000000871792 [15:23:34]1040 (4) - 156337 [15:23:34]1012 (4) - 26.10.2024 08:57 [15:23:34]1206 (1) - 0 [15:23:34]OFD Sender: Remove packet 156337 [15:23:34]ProducePacketName [15:23:34]name=ofd_packets/00156337 [15:23:34]NVStorageDeleteData [15:23:34]Write to MH i2c: 01 00 00 48 10 58 [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: 01 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: 01 07 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: 01 07 00 48 10 00 00 00 00 00 D8 0C 43 [15:23:34]RasterBufferAndPrint [15:23:34]line [15:23:34]line [15:23:34]line [15:23:34]line [15:23:34]line [15:23:34]written 0, free lines is 3295 [15:23:34]process_action close_receipt done [15:23:34]requested_data is exist [15:23:34]produce_requested_data [15:23:34]requested_item fm.sn is exist - process it [15:23:34]wFMCommunicate request_size=4 [15:23:34]MH_SAM_APDU [15:23:34]CAPDU: 80 11 00 00 [15:23:34]Write to MH i2c: E2 08 00 4F 10 80 11 00 00 00 00 00 00 D9 [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:34]Read from MH i2c: E2 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 17 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 17 00 4F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [15:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:23:34]wFMCommunicate OK [15:23:34]requested_item fd.num is exist - process it [15:23:34]SAM_PROTO_GetFieldsCounters [15:23:34]wFMCommunicate request_size=4 [15:23:34]MH_SAM_APDU [15:23:34]CAPDU: 80 13 00 00 [15:23:34]Write to MH i2c: E2 08 00 50 10 80 13 00 00 00 00 00 00 DC [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:34]Read from MH i2c: E2 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 62 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 62 00 50 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [15:23:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:34]wFMCommunicate OK [15:23:34]SAM_PROTO_GetFieldsCounters done [15:23:34]requested_item shift.num is exist - process it [15:23:34]requested_item shift.opened is exist - process it [15:23:34]req_shift_opened [15:23:34]FM_GetShiftState [15:23:34]SAM_PROTO_GetShiftState [15:23:34]wFMCommunicate request_size=4 [15:23:34]MH_SAM_APDU [15:23:34]CAPDU: 80 13 01 00 [15:23:34]Write to MH i2c: E2 08 00 51 10 80 13 01 00 00 00 00 00 DE [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:34]Read from MH i2c: E2 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 0E 00 [15:23:34]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 0E 00 51 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 13 [15:23:35]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:23:35]wFMCommunicate OK [15:23:35]SAM_PROTO_GetShiftState done [15:23:35]FM_GetShiftState done [15:23:35]req_shift_opened done [15:23:35]requested_item shift.open_date is exist - process it [15:23:35]req_shift_open_date [15:23:35]req_shift_open_date done [15:23:35]produce_requested_data done [15:23:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156337,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:23:35]process_action_free close_receipt [15:23:35]json_value_free [15:23:35]json_value_free done [15:23:35]process_json_proto returns [15:23:35]Send response to host [15:23:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156337,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:23:35]free response buf [15:23:35]execute_script done [15:23:35]execute_script returns [15:23:35]free content buf [15:23:35]Sock 8.Close socket [15:23:35]Sock 8.Thread stoped [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:25:59]accept exits with 9 [15:25:59]New connection [15:25:59]New thread 3066834276 created [15:25:59]Thread 3066977636 joined [15:25:59]Waiting for new connection... [15:25:59] Sock 9.Parse request [15:25:59]Sock 9.Check first char [15:25:59]Sock 9.First char is OK [15:25:59]request: POST /json_proto HTTP/1.0 [15:25:59]Method: POST [15:25:59]URL: /json_proto [15:25:59]Method is POST - this is cgi request [15:25:59]url: /json_proto [15:25:59]query_string will be loaded in cgi processing [15:25:59]execute_cgi json_proto POST (null) [15:25:59]execute_cgi path=json_proto method=POST [15:25:59]POST find Content-Length [15:25:59]Host: 172.17.63.3:8080 [15:25:59]Content-Length: 799 [15:25:59]Content-Type: application/json [15:25:59] [15:25:59]POST finish read [15:25:59]Found Content-Length = 799 [15:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:59]execute_script... [15:25:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:59]POST & json_proto [15:25:59]process_json_proto [15:25:59]json parsed OK: [15:25:59]protocol is kg_v1.0 [15:25:59]action value=close_receipt [15:25:59]process_action close_receipt [15:25:59]cmd_close_receipt [15:25:59]MH_GetDate [15:25:59]Write to MH i2c: F0 00 00 52 10 51 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: F0 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: F0 09 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: F0 09 00 52 10 00 08 0A 1D 67 50 D1 6C 64 E1 [15:25:59]GetLastDocTimeStamp 1729956213 [15:25:59]current date 1729956360 [15:25:59]FM_GetShiftState [15:25:59]SAM_PROTO_GetShiftState [15:25:59]wFMCommunicate request_size=4 [15:25:59]MH_SAM_APDU [15:25:59]CAPDU: 80 13 01 00 [15:25:59]Write to MH i2c: E2 08 00 53 10 80 13 01 00 00 00 00 00 E0 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 0E 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 0E 00 53 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 15 [15:25:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:25:59]wFMCommunicate OK [15:25:59]SAM_PROTO_GetShiftState done [15:25:59]FM_GetShiftState done [15:25:59]opened in 1729902702 [15:25:59]opened+sec_in_day 1729989102 [15:25:59]quantity*price = 50041 [15:25:59]sum+1 = 50042 [15:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 239 26.10.2024 15:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871792 ФД: 156338 ФПД: 164720769388878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152600&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156338&fm=164720769388878&tin=02508201610067®Number=0000000000091693&sum=50041 [15:26:00]StoreToDocumentArchive [15:26:00]shift 536 fd 156338 [15:26:00]save to /storage/0536/doc_00156338 [15:26:00]save last doc name /storage/0536/doc_00156338 to /storage/kkm_last_doc_name [15:26:00]save OK [15:26:00]Clear old archive folders... [15:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:00]tlvbuf is 016930A0 [15:26:00]SAM_PROTO_ClearQueue [15:26:00]wFMCommunicate request_size=4 [15:26:00]MH_SAM_APDU [15:26:00]CAPDU: 80 09 00 00 [15:26:00]Write to MH i2c: E2 08 00 60 10 80 09 00 00 00 00 00 00 E2 [15:26:00]Write i2c OK [15:26:00]MH_I2C_Read... [15:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:00]Read from MH i2c: E2 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 03 00 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 03 00 60 10 00 90 00 E4 [15:26:00]RAPDU: 90 00 [15:26:00]wFMCommunicate OK [15:26:00]SAM_PROTO_ClearQueue done [15:26:00]KKMCreateOFDPacket [15:26:00]OFDProtocolAddRootSTLVToBuf [15:26:00]FM_MakeSignedData [15:26:00]FM_MakeSignedData [15:26:00]SAM_PROTO_SignData [15:26:00]wFMCommunicate request_size=4 [15:26:00]MH_SAM_APDU [15:26:00]CAPDU: 80 0D 01 02 [15:26:00]Write to MH i2c: E2 08 00 61 10 80 0D 01 02 00 00 00 00 EA [15:26:00]Write i2c OK [15:26:00]MH_I2C_Read... [15:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:00]Read from MH i2c: E2 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 03 00 [15:26:00]MH_I2C_Read... [15:26:00]Read from MH i2c: E2 03 00 61 10 00 90 00 E5 [15:26:00]RAPDU: 90 00 [15:26:00]wFMCommunicate OK [15:26:00]wFMCommunicate request_size=255 [15:26:00]MH_SAM_APDU [15:26:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 08 0A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 62 02 00 35 04 06 00 95 [15:26:00]Write to MH i2c: E2 02 01 62 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 08 0A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 62 02 00 35 04 06 00 95 00 00 1A [15:26:00]Write i2c OK [15:26:00]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 62 10 00 90 00 E6 [15:26:01]RAPDU: 90 00 [15:26:01]wFMCommunicate OK [15:26:01]wFMCommunicate request_size=10 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 0D 02 02 05 D0 0A F2 51 4E [15:26:01]Write to MH i2c: E2 0D 00 63 10 80 0D 02 02 05 00 D0 0A F2 51 4E 00 00 62 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 63 10 00 90 00 E7 [15:26:01]RAPDU: 90 00 [15:26:01]wFMCommunicate OK [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 0D 03 02 [15:26:01]Write to MH i2c: E2 08 00 64 10 80 0D 03 02 00 00 00 00 EF [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 0B 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 0B 00 64 10 00 0B 29 B2 6F D6 02 0C 9D 90 00 C6 [15:26:01]RAPDU: 0B 29 B2 6F D6 02 0C 9D 90 00 [15:26:01]wFMCommunicate OK [15:26:01]SAM_PROTO_SignData done [15:26:01]FM_MakeSignedData done [15:26:01]CreateOFDProtocolMessage [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 11 00 00 [15:26:01]Write to MH i2c: E2 08 00 65 10 80 11 00 00 00 00 00 00 EF [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 17 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 17 00 65 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [15:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:26:01]wFMCommunicate OK [15:26:01]CreateOFDProtocolMessage done [15:26:01]OFDSenderStorePacket 156338 [15:26:01]StoreOFDPacket docnum=156338 [15:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 30 C2 07 01 B8 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 08 0A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 62 02 00 35 04 06 00 95 D0 0A F2 51 4E 0B 29 B2 6F D6 02 0C 9D [15:26:01]CheckFolder [15:26:01]dirname=/storage/ofd_packets [15:26:01]CheckFolder done [15:26:01]ProducePacketName [15:26:01]name=ofd_packets/00156338 [15:26:01]NVStorageSaveData ofd_packets/00156338 [15:26:01]File name is /storage/ofd_packets/00156338 [15:26:01]Write 301 bytes [15:26:01]NVStorageSaveData done [15:26:01]OFDSenderStorePacket done [15:26:01]KKMCreateOFDPacket done [15:26:01]NVStorageSaveData kkm_last_timestamp [15:26:01]File name is /storage/kkm_last_timestamp [15:26:01]Write 4 bytes [15:26:01]NVStorageSaveData done [15:26:01]ExternCall_PrintAddStr [15:26:01]wPrintStart [15:26:01]Write to MH i2c: 01 00 00 66 10 76 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: 01 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: 01 07 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: 01 07 00 66 10 00 00 00 00 00 FF 0F 8B [15:26:01]RasterBufferAndPrint [15:26:01]line Счет N : (1)99153 [15:26:01]line ИНН: 02508201610067 [15:26:01]line Контрольно-Кассовый Чек [15:26:01]line ПРОДАЖА [15:26:01]line ТРК (МРК, ГНК) : 21 [15:26:01]line Товар: 2710124130 [15:26:01]line Аи-92-К-5 [15:26:01]line 7.480 * 66.90 [15:26:01]line = 500.41 [15:26:01]line НДС 12% НСП 1% [15:26:01]line > о реализуемом товаре [15:26:01]line ИТОГО: 500.41 [15:26:01]line НСП 1% : 4.43 [15:26:01]line НДС 12% : 53.14 [15:26:01]line Наличными: 0.00 [15:26:01]line Безнал.: 500.41 [15:26:01]line Место: АЗС № 143 "Партнер Нефть" [15:26:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:26:01]line СНО: Общий режим [15:26:01]line Чек 239 26.10.2024 15:26 [15:26:01]line Смена: 536 ФФД: 1.0 [15:26:01]line ЗНМ: 0300000096 [15:26:01]line РНМ: 0000000000091693 [15:26:01]line Версия ККМ: 001 [15:26:01]line Платежная система: O! деньги [15:26:01]line ФМ: 0000000000871792 [15:26:01]line ФД: 156338 [15:26:01]line ФПД: 164720769388878 [15:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152600&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156338&fm=164720769388878&tin=02508201610067®Number=0000000000091693&sum=50041 [15:26:01]written 0, free lines is 4095 [15:26:01]OFD Sender: Processing packet 156338 [packets to send 31, broken 30] [15:26:01]ProducePacketName [15:26:01]name=ofd_packets/00156338 [15:26:01]OFD Sender: To server: pG, [15:26:01]CommunicateWithHost lk.salyk.kg:30040 [15:26:01]ConnectInit lk.salyk.kg [15:26:01]Connected sock=10 [15:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 30 C2 07 01 B8 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 08 0A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 62 02 00 35 04 06 00 95 D0 0A F2 51 4E 0B 29 B2 6F D6 02 0C 9D [15:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FC AD 47 00 96 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 31 37 39 32 10 04 04 00 B2 62 02 00 F4 03 04 00 7A AF 1C 67 B6 04 01 00 00 01 FD D5 49 AA 27 B5 C4 [15:26:02]CommunicateWithHost err = 0 [15:26:02]CheckOFDResponse [15:26:02]1017 (14) - 77093643461234 [15:26:02]1041 (16) - 0000000000871792 [15:26:02]1040 (4) - 156338 [15:26:02]1012 (4) - 26.10.2024 08:59 [15:26:02]1206 (1) - 0 [15:26:02]OFD Sender: Remove packet 156338 [15:26:02]ProducePacketName [15:26:02]name=ofd_packets/00156338 [15:26:02]NVStorageDeleteData [15:26:02]Write to MH i2c: 01 00 00 90 10 A0 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: 01 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: 01 07 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: 01 07 00 90 10 00 00 00 00 00 F0 0C A3 [15:26:02]RasterBufferAndPrint [15:26:02]line [15:26:02]line [15:26:02]line [15:26:02]line [15:26:02]line [15:26:02]written 0, free lines is 3318 [15:26:02]process_action close_receipt done [15:26:02]requested_data is exist [15:26:02]produce_requested_data [15:26:02]requested_item fm.sn is exist - process it [15:26:02]wFMCommunicate request_size=4 [15:26:02]MH_SAM_APDU [15:26:02]CAPDU: 80 11 00 00 [15:26:02]Write to MH i2c: E2 08 00 97 10 80 11 00 00 00 00 00 00 21 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 [15:26:02]MH_I2C_Read... [15:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:02]Read from MH i2c: E2 17 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 17 00 97 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 76 [15:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:26:02]wFMCommunicate OK [15:26:02]requested_item fd.num is exist - process it [15:26:02]SAM_PROTO_GetFieldsCounters [15:26:02]wFMCommunicate request_size=4 [15:26:02]MH_SAM_APDU [15:26:02]CAPDU: 80 13 00 00 [15:26:02]Write to MH i2c: E2 08 00 98 10 80 13 00 00 00 00 00 00 24 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:02]Read from MH i2c: E2 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 62 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 62 00 98 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [15:26:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:02]wFMCommunicate OK [15:26:02]SAM_PROTO_GetFieldsCounters done [15:26:02]requested_item shift.num is exist - process it [15:26:02]requested_item shift.opened is exist - process it [15:26:02]req_shift_opened [15:26:02]FM_GetShiftState [15:26:02]SAM_PROTO_GetShiftState [15:26:02]wFMCommunicate request_size=4 [15:26:02]MH_SAM_APDU [15:26:02]CAPDU: 80 13 01 00 [15:26:02]Write to MH i2c: E2 08 00 99 10 80 13 01 00 00 00 00 00 26 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:02]Read from MH i2c: E2 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 0E 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 0E 00 99 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 5B [15:26:02]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:26:02]wFMCommunicate OK [15:26:02]SAM_PROTO_GetShiftState done [15:26:02]FM_GetShiftState done [15:26:02]req_shift_opened done [15:26:02]requested_item shift.open_date is exist - process it [15:26:02]req_shift_open_date [15:26:02]req_shift_open_date done [15:26:02]produce_requested_data done [15:26:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156338,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:26:02]process_action_free close_receipt [15:26:02]json_value_free [15:26:02]json_value_free done [15:26:02]process_json_proto returns [15:26:02]Send response to host [15:26:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156338,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:26:02]free response buf [15:26:02]execute_script done [15:26:02]execute_script returns [15:26:02]free content buf [15:26:02]Sock 9.Close socket [15:26:02]Sock 9.Thread stoped [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:07]int [15:26:07]Write to MH i2c: 01 00 00 9A 10 AA [15:26:07]*** FLAG_PRN_KEY set [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: 01 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: 01 07 00 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: 01 07 00 9A 10 00 08 00 00 00 FF 0F C7 [15:26:07]state=0 [15:26:07]Key pressed [15:26:07]Feed [15:26:07]Write to MH i2c: D8 00 00 9B 10 82 [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: D8 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: D8 01 00 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: D8 01 00 9B 10 00 83 [15:26:07]int [15:26:07]Write to MH i2c: 01 00 00 9C 10 AC [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: 01 [15:26:07]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 9C 10 00 48 00 00 00 3C 00 37 [15:26:08]state=2 [15:26:08]Key pressed [15:26:08]int [15:26:08]Write to MH i2c: 01 00 00 9D 10 AD [15:26:08]*** FLAG_PRN_KEY reset [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 9D 10 00 00 00 00 00 F7 0F BA [15:26:08]state=2 [15:26:08]Stop feed [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:21]ConnectInit Can't connect to host [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: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:33]accept exits with 8 [15:30:33]New connection [15:30:33]New thread 3066977636 created [15:30:33]Thread 3066834276 joined [15:30:33]Waiting for new connection... [15:30:33] Sock 8.Parse request [15:30:33]Sock 8.Check first char [15:30:33]Sock 8.First char is OK [15:30:33]request: POST /json_proto HTTP/1.0 [15:30:33]Method: POST [15:30:33]URL: /json_proto [15:30:33]Method is POST - this is cgi request [15:30:33]url: /json_proto [15:30:33]query_string will be loaded in cgi processing [15:30:33]execute_cgi json_proto POST (null) [15:30:33]execute_cgi path=json_proto method=POST [15:30:33]POST find Content-Length [15:30:33]Host: 172.17.63.3:8080 [15:30:33]Content-Length: 676 [15:30:33]Content-Type: application/json [15:30:33] [15:30:33]POST finish read [15:30:33]Found Content-Length = 676 [15:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:33]execute_script... [15:30: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)99154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:33]POST & json_proto [15:30:33]process_json_proto [15:30:33]json parsed OK: [15:30:33]protocol is kg_v1.0 [15:30:33]action value=close_receipt [15:30:33]process_action close_receipt [15:30:33]cmd_close_receipt [15:30:33]MH_GetDate [15:30:33]Write to MH i2c: F0 00 00 9E 10 9D [15:30:33]Write i2c OK [15:30:33]MH_I2C_Read... [15:30:33]Read from MH i2c: F0 [15:30:33]MH_I2C_Read... [15:30:33]Read from MH i2c: F0 09 00 [15:30:33]MH_I2C_Read... [15:30:33]Read from MH i2c: F0 09 00 9E 10 00 1A 0B 1D 67 50 D1 6C 64 40 [15:30:33]GetLastDocTimeStamp 1729956360 [15:30:33]current date 1729956634 [15:30:33]FM_GetShiftState [15:30:33]SAM_PROTO_GetShiftState [15:30:33]wFMCommunicate request_size=4 [15:30:33]MH_SAM_APDU [15:30:33]CAPDU: 80 13 01 00 [15:30:33]Write to MH i2c: E2 08 00 9F 10 80 13 01 00 00 00 00 00 2C [15:30:33]Write i2c OK [15:30:33]MH_I2C_Read... [15:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:33]Read from MH i2c: E2 [15:30:33]MH_I2C_Read... [15:30:33]Read from MH i2c: E2 0E 00 [15:30:33]MH_I2C_Read... [15:30:33]Read from MH i2c: E2 0E 00 9F 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 61 [15:30:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:30:33]wFMCommunicate OK [15:30:33]SAM_PROTO_GetShiftState done [15:30:33]FM_GetShiftState done [15:30:33]opened in 1729902702 [15:30:33]opened+sec_in_day 1729989102 [15:30:33]quantity*price = 50041 [15:30:33]sum+1 = 50042 [15:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 240 26.10.2024 15:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156339 ФПД: 33529246279752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153034&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156339&fm=33529246279752&tin=02508201610067®Number=0000000000091693&sum=50000 [15:30:34]StoreToDocumentArchive [15:30:34]shift 536 fd 156339 [15:30:34]save to /storage/0536/doc_00156339 [15:30:34]save last doc name /storage/0536/doc_00156339 to /storage/kkm_last_doc_name [15:30:34]save OK [15:30:34]Clear old archive folders... [15:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:34]tlvbuf is 01672DF0 [15:30:34]SAM_PROTO_ClearQueue [15:30:34]wFMCommunicate request_size=4 [15:30:34]MH_SAM_APDU [15:30:34]CAPDU: 80 09 00 00 [15:30:34]Write to MH i2c: E2 08 00 AC 10 80 09 00 00 00 00 00 00 2E [15:30:34]Write i2c OK [15:30:34]MH_I2C_Read... [15:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:34]Read from MH i2c: E2 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 03 00 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 03 00 AC 10 00 90 00 30 [15:30:34]RAPDU: 90 00 [15:30:34]wFMCommunicate OK [15:30:34]SAM_PROTO_ClearQueue done [15:30:34]KKMCreateOFDPacket [15:30:34]OFDProtocolAddRootSTLVToBuf [15:30:34]FM_MakeSignedData [15:30:34]FM_MakeSignedData [15:30:34]SAM_PROTO_SignData [15:30:34]wFMCommunicate request_size=4 [15:30:34]MH_SAM_APDU [15:30:34]CAPDU: 80 0D 01 02 [15:30:34]Write to MH i2c: E2 08 00 AD 10 80 0D 01 02 00 00 00 00 36 [15:30:34]Write i2c OK [15:30:34]MH_I2C_Read... [15:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:34]Read from MH i2c: E2 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 03 00 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 03 00 AD 10 00 90 00 31 [15:30:34]RAPDU: 90 00 [15:30:34]wFMCommunicate OK [15:30:34]wFMCommunicate request_size=255 [15:30:34]MH_SAM_APDU [15:30:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 1A 0B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 62 02 00 35 04 06 00 1E [15:30:34]Write to MH i2c: E2 02 01 AE 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 1A 0B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 62 02 00 35 04 06 00 1E 00 00 B2 [15:30:34]Write i2c OK [15:30:34]MH_I2C_Read... [15:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:34]Read from MH i2c: E2 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 03 00 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 03 00 AE 10 00 90 00 32 [15:30:34]RAPDU: 90 00 [15:30:34]wFMCommunicate OK [15:30:34]wFMCommunicate request_size=10 [15:30:34]MH_SAM_APDU [15:30:34]CAPDU: 80 0D 02 02 05 7E A2 D0 68 48 [15:30:34]Write to MH i2c: E2 0D 00 AF 10 80 0D 02 02 05 00 7E A2 D0 68 48 00 00 E3 [15:30:34]Write i2c OK [15:30:34]MH_I2C_Read... [15:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:34]Read from MH i2c: E2 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 03 00 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 03 00 AF 10 00 90 00 33 [15:30:34]RAPDU: 90 00 [15:30:34]wFMCommunicate OK [15:30:34]wFMCommunicate request_size=4 [15:30:34]MH_SAM_APDU [15:30:34]CAPDU: 80 0D 03 02 [15:30:34]Write to MH i2c: E2 08 00 B0 10 80 0D 03 02 00 00 00 00 3B [15:30:34]Write i2c OK [15:30:34]MH_I2C_Read... [15:30:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:34]Read from MH i2c: E2 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 0B 00 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 0B 00 B0 10 00 E6 85 8B DD 36 31 74 F8 90 00 E2 [15:30:34]RAPDU: E6 85 8B DD 36 31 74 F8 90 00 [15:30:34]wFMCommunicate OK [15:30:34]SAM_PROTO_SignData done [15:30:34]FM_MakeSignedData done [15:30:34]CreateOFDProtocolMessage [15:30:34]wFMCommunicate request_size=4 [15:30:34]MH_SAM_APDU [15:30:34]CAPDU: 80 11 00 00 [15:30:34]Write to MH i2c: E2 08 00 B1 10 80 11 00 00 00 00 00 00 3B [15:30:34]Write i2c OK [15:30:34]MH_I2C_Read... [15:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:34]Read from MH i2c: E2 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 17 00 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: E2 17 00 B1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 90 [15:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:30:34]wFMCommunicate OK [15:30:34]CreateOFDProtocolMessage done [15:30:34]OFDSenderStorePacket 156339 [15:30:34]StoreOFDPacket docnum=156339 [15:30:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 52 88 07 01 5C 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 1A 0B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 62 02 00 35 04 06 00 1E 7E A2 D0 68 48 E6 85 8B DD 36 31 74 F8 [15:30:34]CheckFolder [15:30:34]dirname=/storage/ofd_packets [15:30:34]CheckFolder done [15:30:34]ProducePacketName [15:30:34]name=ofd_packets/00156339 [15:30:34]NVStorageSaveData ofd_packets/00156339 [15:30:34]File name is /storage/ofd_packets/00156339 [15:30:34]Write 301 bytes [15:30:34]NVStorageSaveData done [15:30:34]OFDSenderStorePacket done [15:30:34]KKMCreateOFDPacket done [15:30:34]NVStorageSaveData kkm_last_timestamp [15:30:34]File name is /storage/kkm_last_timestamp [15:30:34]Write 4 bytes [15:30:34]NVStorageSaveData done [15:30:34]ExternCall_PrintAddStr [15:30:34]wPrintStart [15:30:34]Write to MH i2c: 01 00 00 B2 10 C2 [15:30:34]Write i2c OK [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: 01 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: 01 07 00 [15:30:34]MH_I2C_Read... [15:30:34]Read from MH i2c: 01 07 00 B2 10 00 00 00 00 00 FF 0F D7 [15:30:34]RasterBufferAndPrint [15:30:34]line Счет N : (1)99154 [15:30:34]line ИНН: 02508201610067 [15:30:34]line Контрольно-Кассовый Чек [15:30:34]line ПРОДАЖА [15:30:34]line ТРК (МРК, ГНК) : 21 [15:30:34]line Товар: 2710124130 [15:30:34]line Аи-92-К-5 [15:30:34]line 7.480 * 66.90 [15:30:34]line = 500.41 [15:30:34]line НДС 12% НСП 1% [15:30:34]line > о реализуемом товаре [15:30:34]line ОКРУГЛЕНИЕ: -0.41 [15:30:34]line ИТОГО: 500.00 [15:30:34]line Внесено: 500.00 [15:30:34]line СДАЧА: 0.00 [15:30:34]line НСП 1% : 4.43 [15:30:34]line НДС 12% : 53.14 [15:30:34]line Наличными: 500.00 [15:30:34]line Безнал.: 0.00 [15:30:34]line Место: АЗС № 143 "Партнер Нефть" [15:30:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:30:34]line СНО: Общий режим [15:30:34]line Чек 240 26.10.2024 15:30 [15:30:34]line Смена: 536 ФФД: 1.0 [15:30:34]line ЗНМ: 0300000096 [15:30:34]line РНМ: 0000000000091693 [15:30:34]line Версия ККМ: 001 [15:30:34]line ФМ: 0000000000871792 [15:30:34]line ФД: 156339 [15:30:34]line ФПД: 33529246279752 [15:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153034&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156339&fm=33529246279752&tin=02508201610067®Number=0000000000091693&sum=50000 [15:30:35]OFD Sender: Processing packet 156339 [packets to send 31, broken 30] [15:30:35]ProducePacketName [15:30:35]name=ofd_packets/00156339 [15:30:35]OFD Sender: To server: pG, [15:30:35]CommunicateWithHost lk.salyk.kg:30040 [15:30:35]ConnectInit lk.salyk.kg [15:30:35]written 0, free lines is 4095 [15:30:35]Connected sock=11 [15:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 52 88 07 01 5C 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 1A 0B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 62 02 00 35 04 06 00 1E 7E A2 D0 68 48 E6 85 8B DD 36 31 74 F8 [15:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D9 71 47 00 39 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 31 37 39 32 10 04 04 00 B3 62 02 00 F4 03 04 00 8C B0 1C 67 B6 04 01 00 00 7B E8 D1 2F 41 9D 87 E6 [15:30:35]CommunicateWithHost err = 0 [15:30:35]CheckOFDResponse [15:30:35]1017 (14) - 77093643461234 [15:30:35]1041 (16) - 0000000000871792 [15:30:35]1040 (4) - 156339 [15:30:35]1012 (4) - 26.10.2024 09:04 [15:30:35]1206 (1) - 0 [15:30:35]OFD Sender: Remove packet 156339 [15:30:35]ProducePacketName [15:30:35]name=ofd_packets/00156339 [15:30:35]NVStorageDeleteData [15:30:35]Write to MH i2c: 01 00 00 DD 10 ED [15:30:35]Write i2c OK [15:30:35]MH_I2C_Read... [15:30:35]Read from MH i2c: 01 [15:30:35]MH_I2C_Read... [15:30:35]Read from MH i2c: 01 07 00 [15:30:35]MH_I2C_Read... [15:30:35]Read from MH i2c: 01 07 00 DD 10 00 00 00 00 00 DC 0C DC [15:30:35]RasterBufferAndPrint [15:30:35]line [15:30:35]line [15:30:35]line [15:30:35]line [15:30:35]line [15:30:35]written 0, free lines is 3298 [15:30:35]process_action close_receipt done [15:30:35]requested_data is exist [15:30:35]produce_requested_data [15:30:35]requested_item fm.sn is exist - process it [15:30:35]wFMCommunicate request_size=4 [15:30:35]MH_SAM_APDU [15:30:35]CAPDU: 80 11 00 00 [15:30:35]Write to MH i2c: E2 08 00 E4 10 80 11 00 00 00 00 00 00 6E [15:30:35]Write i2c OK [15:30:35]MH_I2C_Read... [15:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:35]Read from MH i2c: E2 [15:30:35]MH_I2C_Read... [15:30:35]Read from MH i2c: E2 17 00 [15:30:35]MH_I2C_Read... [15:30:35]Read from MH i2c: E2 17 00 E4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C3 [15:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:30:35]wFMCommunicate OK [15:30:35]requested_item fd.num is exist - process it [15:30:35]SAM_PROTO_GetFieldsCounters [15:30:35]wFMCommunicate request_size=4 [15:30:35]MH_SAM_APDU [15:30:35]CAPDU: 80 13 00 00 [15:30:35]Write to MH i2c: E2 08 00 E5 10 80 13 00 00 00 00 00 00 71 [15:30:35]Write i2c OK [15:30:35]MH_I2C_Read... [15:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:35]Read from MH i2c: E2 [15:30:35]MH_I2C_Read... [15:30:35]Read from MH i2c: E2 62 00 [15:30:35]MH_I2C_Read... [15:30:35]Read from MH i2c: E2 62 00 E5 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [15:30: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:35]wFMCommunicate OK [15:30:35]SAM_PROTO_GetFieldsCounters done [15:30:35]requested_item shift.num is exist - process it [15:30:35]requested_item shift.opened is exist - process it [15:30:35]req_shift_opened [15:30:35]FM_GetShiftState [15:30:35]SAM_PROTO_GetShiftState [15:30:35]wFMCommunicate request_size=4 [15:30:35]MH_SAM_APDU [15:30:35]CAPDU: 80 13 01 00 [15:30:35]Write to MH i2c: E2 08 00 E6 10 80 13 01 00 00 00 00 00 73 [15:30:35]Write i2c OK [15:30:35]MH_I2C_Read... [15:30:36]Read from MH i2c: E2 [15:30:36]MH_I2C_Read... [15:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:36]Read from MH i2c: E2 0E 00 [15:30:36]MH_I2C_Read... [15:30:36]Read from MH i2c: E2 0E 00 E6 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A8 [15:30:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:30:36]wFMCommunicate OK [15:30:36]SAM_PROTO_GetShiftState done [15:30:36]FM_GetShiftState done [15:30:36]req_shift_opened done [15:30:36]requested_item shift.open_date is exist - process it [15:30:36]req_shift_open_date [15:30:36]req_shift_open_date done [15:30:36]produce_requested_data done [15:30:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156339,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:30:36]process_action_free close_receipt [15:30:36]json_value_free [15:30:36]json_value_free done [15:30:36]process_json_proto returns [15:30:36]Send response to host [15:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156339,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:30:36]free response buf [15:30:36]execute_script done [15:30:36]execute_script returns [15:30:36]free content buf [15:30:36]Sock 8.Close socket [15:30:36]Sock 8.Thread stoped [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]ConnectInit Can't connect to host [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33: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]accept exits with 10 [15:34:21]New connection [15:34:21]New thread 3066834276 created [15:34:21]Thread 3066977636 joined [15:34:21]Waiting for new connection... [15:34:21] Sock 10.Parse request [15:34:21]Sock 10.Check first char [15:34:21]Sock 10.First char is OK [15:34:21]request: POST /json_proto HTTP/1.0 [15:34:21]Method: POST [15:34:21]URL: /json_proto [15:34:21]Method is POST - this is cgi request [15:34:21]url: /json_proto [15:34:21]query_string will be loaded in cgi processing [15:34:21]execute_cgi json_proto POST (null) [15:34:21]execute_cgi path=json_proto method=POST [15:34:21]POST find Content-Length [15:34:21]Host: 172.17.63.3:8080 [15:34:21]Content-Length: 676 [15:34:21]Content-Type: application/json [15:34:21] [15:34:21]POST finish read [15:34:21]Found Content-Length = 676 [15:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:21]execute_script... [15:34: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)99156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:21]POST & json_proto [15:34:21]process_json_proto [15:34:21]json parsed OK: [15:34:21]protocol is kg_v1.0 [15:34:21]action value=close_receipt [15:34:21]process_action close_receipt [15:34:21]cmd_close_receipt [15:34:21]MH_GetDate [15:34:21]Write to MH i2c: F0 00 00 E7 10 E6 [15:34:21]Write i2c OK [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: F0 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: F0 09 00 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: F0 09 00 E7 10 00 FE 0B 1D 67 50 D1 6C 64 6D [15:34:21]GetLastDocTimeStamp 1729956634 [15:34:21]current date 1729956862 [15:34:21]FM_GetShiftState [15:34:21]SAM_PROTO_GetShiftState [15:34:21]wFMCommunicate request_size=4 [15:34:21]MH_SAM_APDU [15:34:21]CAPDU: 80 13 01 00 [15:34:21]Write to MH i2c: E2 08 00 E8 10 80 13 01 00 00 00 00 00 75 [15:34:21]Write i2c OK [15:34:21]MH_I2C_Read... [15:34:21]OFD Sender: No OFD packet to send [15:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:21]Read from MH i2c: E2 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: E2 0E 00 [15:34:21]MH_I2C_Read... [15:34:21]Read from MH i2c: E2 0E 00 E8 10 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 AA [15:34:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:34:21]wFMCommunicate OK [15:34:21]SAM_PROTO_GetShiftState done [15:34:21]FM_GetShiftState done [15:34:21]opened in 1729902702 [15:34:21]opened+sec_in_day 1729989102 [15:34:21]quantity*price = 20003 [15:34:21]sum+1 = 20004 [15:34:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 241 26.10.2024 15:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156340 ФПД: 99485315134004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153422&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156340&fm=99485315134004&tin=02508201610067®Number=0000000000091693&sum=20000 [15:34:22]StoreToDocumentArchive [15:34:22]shift 536 fd 156340 [15:34:22]save to /storage/0536/doc_00156340 [15:34:22]save last doc name /storage/0536/doc_00156340 to /storage/kkm_last_doc_name [15:34:22]save OK [15:34:22]Clear old archive folders... [15:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:22]tlvbuf is 0167A7D0 [15:34:22]SAM_PROTO_ClearQueue [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 09 00 00 [15:34:22]Write to MH i2c: E2 08 00 F5 10 80 09 00 00 00 00 00 00 77 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 F5 10 00 90 00 79 [15:34:22]RAPDU: 90 00 [15:34:22]wFMCommunicate OK [15:34:22]SAM_PROTO_ClearQueue done [15:34:22]KKMCreateOFDPacket [15:34:22]OFDProtocolAddRootSTLVToBuf [15:34:22]FM_MakeSignedData [15:34:22]FM_MakeSignedData [15:34:22]SAM_PROTO_SignData [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 0D 01 02 [15:34:22]Write to MH i2c: E2 08 00 F6 10 80 0D 01 02 00 00 00 00 7F [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [15:34:22]RAPDU: 90 00 [15:34:22]wFMCommunicate OK [15:34:22]wFMCommunicate request_size=255 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 FE 0B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 62 02 00 35 04 06 00 5A [15:34:22]Write to MH i2c: E2 02 01 F7 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 FE 0B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 62 02 00 35 04 06 00 5A 00 00 DF [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 F7 10 00 90 00 7B [15:34:22]RAPDU: 90 00 [15:34:22]wFMCommunicate OK [15:34:22]wFMCommunicate request_size=10 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 0D 02 02 05 7B 3A DE 72 34 [15:34:22]Write to MH i2c: E2 0D 00 F8 10 80 0D 02 02 05 00 7B 3A DE 72 34 00 00 C5 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [15:34:22]RAPDU: 90 00 [15:34:22]wFMCommunicate OK [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 0D 03 02 [15:34:22]Write to MH i2c: E2 08 00 F9 10 80 0D 03 02 00 00 00 00 84 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0B 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0B 00 F9 10 00 6B 16 A3 15 E8 4B 2C 79 90 00 96 [15:34:22]RAPDU: 6B 16 A3 15 E8 4B 2C 79 90 00 [15:34:22]wFMCommunicate OK [15:34:22]SAM_PROTO_SignData done [15:34:22]FM_MakeSignedData done [15:34:22]CreateOFDProtocolMessage [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 11 00 00 [15:34:22]Write to MH i2c: E2 08 00 FA 10 80 11 00 00 00 00 00 00 84 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:23]Read from MH i2c: E2 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 17 00 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 17 00 FA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D9 [15:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:34:23]wFMCommunicate OK [15:34:23]CreateOFDProtocolMessage done [15:34:23]OFDSenderStorePacket 156340 [15:34:23]StoreOFDPacket docnum=156340 [15:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF 65 07 01 9C 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 FE 0B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 62 02 00 35 04 06 00 5A 7B 3A DE 72 34 6B 16 A3 15 E8 4B 2C 79 [15:34:23]CheckFolder [15:34:23]dirname=/storage/ofd_packets [15:34:23]CheckFolder done [15:34:23]ProducePacketName [15:34:23]name=ofd_packets/00156340 [15:34:23]NVStorageSaveData ofd_packets/00156340 [15:34:23]File name is /storage/ofd_packets/00156340 [15:34:23]Write 301 bytes [15:34:23]NVStorageSaveData done [15:34:23]OFDSenderStorePacket done [15:34:23]KKMCreateOFDPacket done [15:34:23]NVStorageSaveData kkm_last_timestamp [15:34:23]File name is /storage/kkm_last_timestamp [15:34:23]Write 4 bytes [15:34:23]NVStorageSaveData done [15:34:23]ExternCall_PrintAddStr [15:34:23]wPrintStart [15:34:23]Write to MH i2c: 01 00 00 FB 10 0B [15:34:23]Write i2c OK [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: 01 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: 01 07 00 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [15:34:23]RasterBufferAndPrint [15:34:23]line Счет N : (1)99156 [15:34:23]line ИНН: 02508201610067 [15:34:23]line Контрольно-Кассовый Чек [15:34:23]line ПРОДАЖА [15:34:23]line ТРК (МРК, ГНК) : 21 [15:34:23]line Товар: 2710124130 [15:34:23]line Аи-92-К-5 [15:34:23]line 2.990 * 66.90 [15:34:23]line = 200.03 [15:34:23]line НДС 12% НСП 1% [15:34:23]line > о реализуемом товаре [15:34:23]line ОКРУГЛЕНИЕ: -0.03 [15:34:23]line ИТОГО: 200.00 [15:34:23]line Внесено: 200.00 [15:34:23]line СДАЧА: 0.00 [15:34:23]line НСП 1% : 1.77 [15:34:23]line НДС 12% : 21.24 [15:34:23]line Наличными: 200.00 [15:34:23]line Безнал.: 0.00 [15:34:23]line Место: АЗС № 143 "Партнер Нефть" [15:34:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:34:23]line СНО: Общий режим [15:34:23]line Чек 241 26.10.2024 15:34 [15:34:23]line Смена: 536 ФФД: 1.0 [15:34:23]line ЗНМ: 0300000096 [15:34:23]line РНМ: 0000000000091693 [15:34:23]line Версия ККМ: 001 [15:34:23]line ФМ: 0000000000871792 [15:34:23]line ФД: 156340 [15:34:23]line ФПД: 99485315134004 [15:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153422&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156340&fm=99485315134004&tin=02508201610067®Number=0000000000091693&sum=20000 [15:34:23]OFD Sender: Processing packet 156340 [packets to send 31, broken 30] [15:34:23]ProducePacketName [15:34:23]name=ofd_packets/00156340 [15:34:23]OFD Sender: To server: pG, [15:34:23]CommunicateWithHost lk.salyk.kg:30040 [15:34:23]ConnectInit lk.salyk.kg [15:34:23]written 0, free lines is 4095 [15:34:23]Connected sock=11 [15:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF 65 07 01 9C 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 FE 0B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 62 02 00 35 04 06 00 5A 7B 3A DE 72 34 6B 16 A3 15 E8 4B 2C 79 [15:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EB 9B 47 00 ED 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 62 02 00 F4 03 04 00 70 B1 1C 67 B6 04 01 00 00 1A E5 FD 34 76 BC 30 8D [15:34:23]CommunicateWithHost err = 0 [15:34:23]CheckOFDResponse [15:34:23]1017 (14) - 77093643461234 [15:34:23]1041 (16) - 0000000000871792 [15:34:23]1040 (4) - 156340 [15:34:23]1012 (4) - 26.10.2024 09:08 [15:34:23]1206 (1) - 0 [15:34:23]OFD Sender: Remove packet 156340 [15:34:23]ProducePacketName [15:34:23]name=ofd_packets/00156340 [15:34:23]NVStorageDeleteData [15:34:23]Write to MH i2c: 01 00 00 26 11 37 [15:34:23]Write i2c OK [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: 01 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: 01 07 00 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: 01 07 00 26 11 00 00 00 00 00 DC 0C 26 [15:34:23]RasterBufferAndPrint [15:34:23]line [15:34:23]line [15:34:23]line [15:34:23]line [15:34:23]line [15:34:23]written 0, free lines is 3298 [15:34:23]process_action close_receipt done [15:34:23]requested_data is exist [15:34:23]produce_requested_data [15:34:23]requested_item fm.sn is exist - process it [15:34:23]wFMCommunicate request_size=4 [15:34:23]MH_SAM_APDU [15:34:23]CAPDU: 80 11 00 00 [15:34:23]Write to MH i2c: E2 08 00 2D 11 80 11 00 00 00 00 00 00 B8 [15:34:23]Write i2c OK [15:34:23]MH_I2C_Read... [15:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:23]Read from MH i2c: E2 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 17 00 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 17 00 2D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0D [15:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:34:23]wFMCommunicate OK [15:34:23]requested_item fd.num is exist - process it [15:34:23]SAM_PROTO_GetFieldsCounters [15:34:23]wFMCommunicate request_size=4 [15:34:23]MH_SAM_APDU [15:34:23]CAPDU: 80 13 00 00 [15:34:23]Write to MH i2c: E2 08 00 2E 11 80 13 00 00 00 00 00 00 BB [15:34:23]Write i2c OK [15:34:23]MH_I2C_Read... [15:34:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:24]Read from MH i2c: E2 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 62 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 62 00 2E 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [15:34: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:24]wFMCommunicate OK [15:34:24]SAM_PROTO_GetFieldsCounters done [15:34:24]requested_item shift.num is exist - process it [15:34:24]requested_item shift.opened is exist - process it [15:34:24]req_shift_opened [15:34:24]FM_GetShiftState [15:34:24]SAM_PROTO_GetShiftState [15:34:24]wFMCommunicate request_size=4 [15:34:24]MH_SAM_APDU [15:34:24]CAPDU: 80 13 01 00 [15:34:24]Write to MH i2c: E2 08 00 2F 11 80 13 01 00 00 00 00 00 BD [15:34:24]Write i2c OK [15:34:24]MH_I2C_Read... [15:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:24]Read from MH i2c: E2 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 0E 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 0E 00 2F 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F2 [15:34:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:34:24]wFMCommunicate OK [15:34:24]SAM_PROTO_GetShiftState done [15:34:24]FM_GetShiftState done [15:34:24]req_shift_opened done [15:34:24]requested_item shift.open_date is exist - process it [15:34:24]req_shift_open_date [15:34:24]req_shift_open_date done [15:34:24]produce_requested_data done [15:34:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156340,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:34:24]process_action_free close_receipt [15:34:24]json_value_free [15:34:24]json_value_free done [15:34:24]process_json_proto returns [15:34:24]Send response to host [15:34:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156340,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:34:24]free response buf [15:34:24]execute_script done [15:34:24]execute_script returns [15:34:24]free content buf [15:34:24]Sock 10.Close socket [15:34:24]Sock 10.Thread stoped [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:29]accept exits with 9 [15:34:29]New connection [15:34:29]New thread 3066977636 created [15:34:29]Thread 3066834276 joined [15:34:29]Waiting for new connection... [15:34:29] Sock 9.Parse request [15:34:29]Sock 9.Check first char [15:34:29]Sock 9.First char is OK [15:34:29]request: POST /json_proto HTTP/1.0 [15:34:29]Method: POST [15:34:29]URL: /json_proto [15:34:29]Method is POST - this is cgi request [15:34:29]url: /json_proto [15:34:29]query_string will be loaded in cgi processing [15:34:29]execute_cgi json_proto POST (null) [15:34:29]execute_cgi path=json_proto method=POST [15:34:29]POST find Content-Length [15:34:29]Host: 172.17.63.3:8080 [15:34:29]Content-Length: 678 [15:34:29]Content-Type: application/json [15:34:29] [15:34:29]POST finish read [15:34:29]Found Content-Length = 678 [15:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:29]execute_script... [15:34:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:29]POST & json_proto [15:34:29]process_json_proto [15:34:29]json parsed OK: [15:34:29]protocol is kg_v1.0 [15:34:29]action value=close_receipt [15:34:29]process_action close_receipt [15:34:29]cmd_close_receipt [15:34:29]MH_GetDate [15:34:29]Write to MH i2c: F0 00 00 30 11 30 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: F0 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: F0 09 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: F0 09 00 30 11 00 06 0C 1D 67 50 D1 6C 64 C0 [15:34:29]GetLastDocTimeStamp 1729956862 [15:34:29]current date 1729956870 [15:34:29]FM_GetShiftState [15:34:29]SAM_PROTO_GetShiftState [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 13 01 00 [15:34:29]Write to MH i2c: E2 08 00 31 11 80 13 01 00 00 00 00 00 BF [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 0E 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 0E 00 31 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F4 [15:34:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:34:29]wFMCommunicate OK [15:34:29]SAM_PROTO_GetShiftState done [15:34:29]FM_GetShiftState done [15:34:29]opened in 1729902702 [15:34:29]opened+sec_in_day 1729989102 [15:34:29]quantity*price = 200025 [15:34:29]sum+1 = 200026 [15:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 242 26.10.2024 15:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156341 ФПД: 171780938450952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156341&fm=171780938450952&tin=02508201610067®Number=0000000000091693&sum=200000 [15:34:31]StoreToDocumentArchive [15:34:31]shift 536 fd 156341 [15:34:31]save to /storage/0536/doc_00156341 [15:34:31]save last doc name /storage/0536/doc_00156341 to /storage/kkm_last_doc_name [15:34:31]save OK [15:34:31]Clear old archive folders... [15:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:34:31]tlvbuf is 0170EAA0 [15:34:31]SAM_PROTO_ClearQueue [15:34:31]wFMCommunicate request_size=4 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 09 00 00 [15:34:31]Write to MH i2c: E2 08 00 3E 11 80 09 00 00 00 00 00 00 C1 [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:31]Read from MH i2c: E2 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 03 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 03 00 3E 11 00 90 00 C3 [15:34:31]RAPDU: 90 00 [15:34:31]wFMCommunicate OK [15:34:31]SAM_PROTO_ClearQueue done [15:34:31]KKMCreateOFDPacket [15:34:31]OFDProtocolAddRootSTLVToBuf [15:34:31]FM_MakeSignedData [15:34:31]FM_MakeSignedData [15:34:31]SAM_PROTO_SignData [15:34:31]wFMCommunicate request_size=4 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 0D 01 02 [15:34:31]Write to MH i2c: E2 08 00 3F 11 80 0D 01 02 00 00 00 00 C9 [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:31]Read from MH i2c: E2 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 03 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [15:34:31]RAPDU: 90 00 [15:34:31]wFMCommunicate OK [15:34:31]wFMCommunicate request_size=255 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 06 0C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 62 02 00 35 04 06 00 9C 3B DD D0 [15:34:31]Write to MH i2c: E2 02 01 40 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 06 0C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 62 02 00 35 04 06 00 9C 3B DD D0 00 00 80 [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:31]Read from MH i2c: E2 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 03 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [15:34:31]RAPDU: 90 00 [15:34:31]wFMCommunicate OK [15:34:31]wFMCommunicate request_size=7 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 0D 02 02 02 C8 08 [15:34:31]Write to MH i2c: E2 0A 00 41 11 80 0D 02 02 02 00 C8 08 00 00 A0 [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:31]Read from MH i2c: E2 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 03 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [15:34:31]RAPDU: 90 00 [15:34:31]wFMCommunicate OK [15:34:31]wFMCommunicate request_size=4 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 0D 03 02 [15:34:31]Write to MH i2c: E2 08 00 42 11 80 0D 03 02 00 00 00 00 CE [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:31]Read from MH i2c: E2 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 0B 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 0B 00 42 11 00 3B 68 13 F2 E0 66 87 DD 90 00 21 [15:34:31]RAPDU: 3B 68 13 F2 E0 66 87 DD 90 00 [15:34:31]wFMCommunicate OK [15:34:31]SAM_PROTO_SignData done [15:34:31]FM_MakeSignedData done [15:34:31]CreateOFDProtocolMessage [15:34:31]wFMCommunicate request_size=4 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 11 00 00 [15:34:31]Write to MH i2c: E2 08 00 43 11 80 11 00 00 00 00 00 00 CE [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:31]Read from MH i2c: E2 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 17 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 17 00 43 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 23 [15:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:34:31]wFMCommunicate OK [15:34:31]CreateOFDProtocolMessage done [15:34:31]OFDSenderStorePacket 156341 [15:34:31]StoreOFDPacket docnum=156341 [15:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 07 95 04 01 BC B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 06 0C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 62 02 00 35 04 06 00 9C 3B DD D0 C8 08 3B 68 13 F2 E0 66 87 DD [15:34:31]CheckFolder [15:34:31]dirname=/storage/ofd_packets [15:34:31]CheckFolder done [15:34:31]ProducePacketName [15:34:31]name=ofd_packets/00156341 [15:34:31]NVStorageSaveData ofd_packets/00156341 [15:34:31]File name is /storage/ofd_packets/00156341 [15:34:31]Write 298 bytes [15:34:31]NVStorageSaveData done [15:34:31]OFDSenderStorePacket done [15:34:31]KKMCreateOFDPacket done [15:34:31]NVStorageSaveData kkm_last_timestamp [15:34:31]File name is /storage/kkm_last_timestamp [15:34:31]Write 4 bytes [15:34:31]NVStorageSaveData done [15:34:31]ExternCall_PrintAddStr [15:34:31]wPrintStart [15:34:31]Write to MH i2c: 01 00 00 44 11 55 [15:34:31]OFD Sender: Processing packet 156341 [packets to send 31, broken 30] [15:34:31]ProducePacketName [15:34:31]name=ofd_packets/00156341 [15:34:31]OFD Sender: To server: pG, [15:34:31]CommunicateWithHost lk.salyk.kg:30040 [15:34:31]ConnectInit lk.salyk.kg [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: 01 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: 01 07 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: 01 07 00 44 11 00 00 00 00 00 FF 0F 6A [15:34:31]RasterBufferAndPrint [15:34:31]line Счет N : (1)99155 [15:34:31]line ИНН: 02508201610067 [15:34:31]line Контрольно-Кассовый Чек [15:34:31]line ПРОДАЖА [15:34:31]line ТРК (МРК, ГНК) : 32 [15:34:31]line Товар: 2710194210 [15:34:31]line ДТ-К-5 [15:34:31]line 26.250 * 76.20 [15:34:31]line = 2000.25 [15:34:31]line НДС 12% НСП 1% [15:34:31]line > о реализуемом товаре [15:34:31]line ОКРУГЛЕНИЕ: -0.25 [15:34:31]line ИТОГО: 2000.00 [15:34:31]line Внесено: 2000.00 [15:34:31]line СДАЧА: 0.00 [15:34:31]line НСП 1% : 17.70 [15:34:31]line НДС 12% : 212.42 [15:34:31]line Наличными: 2000.00 [15:34:31]line Безнал.: 0.00 [15:34:31]line Место: АЗС № 143 "Партнер Нефть" [15:34:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:34:31]line СНО: Общий режим [15:34:31]line Чек 242 26.10.2024 15:34 [15:34:31]line Смена: 536 ФФД: 1.0 [15:34:31]line ЗНМ: 0300000096 [15:34:31]line РНМ: 0000000000091693 [15:34:31]line Версия ККМ: 001 [15:34:31]line ФМ: 0000000000871792 [15:34:31]line ФД: 156341 [15:34:31]line ФПД: 171780938450952 [15:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156341&fm=171780938450952&tin=02508201610067®Number=0000000000091693&sum=200000 [15:34:31]written 0, free lines is 4095 [15:34:31]Connected sock=8 [15:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 07 95 04 01 BC B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 06 0C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 62 02 00 35 04 06 00 9C 3B DD D0 C8 08 3B 68 13 F2 E0 66 87 DD [15:34:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0C 32 47 00 58 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 62 02 00 F4 03 04 00 78 B1 1C 67 B6 04 01 00 00 3D A1 06 01 69 C4 F2 F0 [15:34:32]CommunicateWithHost err = 0 [15:34:32]CheckOFDResponse [15:34:32]1017 (14) - 77093643461234 [15:34:32]1041 (16) - 0000000000871792 [15:34:32]1040 (4) - 156341 [15:34:32]1012 (4) - 26.10.2024 09:08 [15:34:32]1206 (1) - 0 [15:34:32]OFD Sender: Remove packet 156341 [15:34:32]ProducePacketName [15:34:32]name=ofd_packets/00156341 [15:34:32]NVStorageDeleteData [15:34:32]Write to MH i2c: 01 00 00 6F 11 80 [15:34:32]Write i2c OK [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: 01 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: 01 07 00 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: 01 07 00 6F 11 00 00 00 00 00 F7 0C 8A [15:34:32]RasterBufferAndPrint [15:34:32]line [15:34:32]line [15:34:32]line [15:34:32]line [15:34:32]line [15:34:32]written 0, free lines is 3336 [15:34:32]process_action close_receipt done [15:34:32]requested_data is exist [15:34:32]produce_requested_data [15:34:32]requested_item fm.sn is exist - process it [15:34:32]wFMCommunicate request_size=4 [15:34:32]MH_SAM_APDU [15:34:32]CAPDU: 80 11 00 00 [15:34:32]Write to MH i2c: E2 08 00 76 11 80 11 00 00 00 00 00 00 01 [15:34:32]Write i2c OK [15:34:32]MH_I2C_Read... [15:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:32]Read from MH i2c: E2 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 17 00 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 17 00 76 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 56 [15:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:34:32]wFMCommunicate OK [15:34:32]requested_item fd.num is exist - process it [15:34:32]SAM_PROTO_GetFieldsCounters [15:34:32]wFMCommunicate request_size=4 [15:34:32]MH_SAM_APDU [15:34:32]CAPDU: 80 13 00 00 [15:34:32]Write to MH i2c: E2 08 00 77 11 80 13 00 00 00 00 00 00 04 [15:34:32]Write i2c OK [15:34:32]MH_I2C_Read... [15:34:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:32]Read from MH i2c: E2 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 62 00 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 62 00 77 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [15:34: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:32]wFMCommunicate OK [15:34:32]SAM_PROTO_GetFieldsCounters done [15:34:32]requested_item shift.num is exist - process it [15:34:32]requested_item shift.opened is exist - process it [15:34:32]req_shift_opened [15:34:32]FM_GetShiftState [15:34:32]SAM_PROTO_GetShiftState [15:34:32]wFMCommunicate request_size=4 [15:34:32]MH_SAM_APDU [15:34:32]CAPDU: 80 13 01 00 [15:34:32]Write to MH i2c: E2 08 00 78 11 80 13 01 00 00 00 00 00 06 [15:34:32]Write i2c OK [15:34:32]MH_I2C_Read... [15:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:32]Read from MH i2c: E2 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 0E 00 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 0E 00 78 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 3B [15:34:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:34:32]wFMCommunicate OK [15:34:32]SAM_PROTO_GetShiftState done [15:34:32]FM_GetShiftState done [15:34:32]req_shift_opened done [15:34:32]requested_item shift.open_date is exist - process it [15:34:32]req_shift_open_date [15:34:32]req_shift_open_date done [15:34:32]produce_requested_data done [15:34:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156341,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:34:32]process_action_free close_receipt [15:34:32]json_value_free [15:34:32]json_value_free done [15:34:32]process_json_proto returns [15:34:32]Send response to host [15:34:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156341,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:34:32]free response buf [15:34:32]execute_script done [15:34:32]execute_script returns [15:34:32]free content buf [15:34:32]Sock 9.Close socket [15:34:32]Sock 9.Thread stoped [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [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:50]accept exits with 10 [15:37:50]New connection [15:37:50]New thread 3066834276 created [15:37:50]Thread 3066977636 joined [15:37:50]Waiting for new connection... [15:37:50] Sock 10.Parse request [15:37:50]Sock 10.Check first char [15:37:50]Sock 10.First char is OK [15:37:50]request: POST /json_proto HTTP/1.0 [15:37:50]Method: POST [15:37:50]URL: /json_proto [15:37:50]Method is POST - this is cgi request [15:37:50]url: /json_proto [15:37:50]query_string will be loaded in cgi processing [15:37:50]execute_cgi json_proto POST (null) [15:37:50]execute_cgi path=json_proto method=POST [15:37:50]POST find Content-Length [15:37:50]Host: 172.17.63.3:8080 [15:37:50]Content-Length: 676 [15:37:50]Content-Type: application/json [15:37:50] [15:37:50]POST finish read [15:37:50]Found Content-Length = 676 [15:37:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:50]execute_script... [15:37:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:50]POST & json_proto [15:37:50]process_json_proto [15:37:50]json parsed OK: [15:37:50]protocol is kg_v1.0 [15:37:50]action value=close_receipt [15:37:50]process_action close_receipt [15:37:50]cmd_close_receipt [15:37:50]MH_GetDate [15:37:50]Write to MH i2c: F0 00 00 79 11 79 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: F0 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: F0 09 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: F0 09 00 79 11 00 CF 0C 1D 67 50 D1 6C 64 D2 [15:37:50]GetLastDocTimeStamp 1729956870 [15:37:50]current date 1729957071 [15:37:50]FM_GetShiftState [15:37:50]SAM_PROTO_GetShiftState [15:37:50]wFMCommunicate request_size=4 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 13 01 00 [15:37:50]Write to MH i2c: E2 08 00 7A 11 80 13 01 00 00 00 00 00 08 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 0E 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 0E 00 7A 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 3D [15:37:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:37:50]wFMCommunicate OK [15:37:50]SAM_PROTO_GetShiftState done [15:37:50]FM_GetShiftState done [15:37:50]opened in 1729902702 [15:37:50]opened+sec_in_day 1729989102 [15:37:50]quantity*price = 40006 [15:37:50]sum+1 = 40007 [15:37:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 243 26.10.2024 15:37 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156342 ФПД: 124849447929096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153751&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156342&fm=124849447929096&tin=02508201610067®Number=0000000000091693&sum=40000 [15:37:51]StoreToDocumentArchive [15:37:51]shift 536 fd 156342 [15:37:51]save to /storage/0536/doc_00156342 [15:37:51]save last doc name /storage/0536/doc_00156342 to /storage/kkm_last_doc_name [15:37:51]save OK [15:37:51]Clear old archive folders... [15:37:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:51]tlvbuf is 01698030 [15:37:51]SAM_PROTO_ClearQueue [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 09 00 00 [15:37:51]Write to MH i2c: E2 08 00 87 11 80 09 00 00 00 00 00 00 0A [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 87 11 00 90 00 0C [15:37:51]RAPDU: 90 00 [15:37:51]wFMCommunicate OK [15:37:51]SAM_PROTO_ClearQueue done [15:37:51]KKMCreateOFDPacket [15:37:51]OFDProtocolAddRootSTLVToBuf [15:37:51]FM_MakeSignedData [15:37:51]FM_MakeSignedData [15:37:51]SAM_PROTO_SignData [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 0D 01 02 [15:37:51]Write to MH i2c: E2 08 00 88 11 80 0D 01 02 00 00 00 00 12 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 88 11 00 90 00 0D [15:37:51]RAPDU: 90 00 [15:37:51]wFMCommunicate OK [15:37:51]wFMCommunicate request_size=255 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 CF 0C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 62 02 00 35 04 06 00 71 [15:37:51]Write to MH i2c: E2 02 01 89 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 CF 0C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 62 02 00 35 04 06 00 71 00 00 6C [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [15:37:52]RAPDU: 90 00 [15:37:52]wFMCommunicate OK [15:37:52]wFMCommunicate request_size=10 [15:37:52]MH_SAM_APDU [15:37:52]CAPDU: 80 0D 02 02 05 8C C6 FE 85 08 [15:37:52]Write to MH i2c: E2 0D 00 8A 11 80 0D 02 02 05 00 8C C6 FE 85 08 00 00 FC [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [15:37:52]RAPDU: 90 00 [15:37:52]wFMCommunicate OK [15:37:52]wFMCommunicate request_size=4 [15:37:52]MH_SAM_APDU [15:37:52]CAPDU: 80 0D 03 02 [15:37:52]Write to MH i2c: E2 08 00 8B 11 80 0D 03 02 00 00 00 00 17 [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 0B 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 0B 00 8B 11 00 3A 60 3D 30 5B 1C 0B 82 90 00 23 [15:37:52]RAPDU: 3A 60 3D 30 5B 1C 0B 82 90 00 [15:37:52]wFMCommunicate OK [15:37:52]SAM_PROTO_SignData done [15:37:52]FM_MakeSignedData done [15:37:52]CreateOFDProtocolMessage [15:37:52]wFMCommunicate request_size=4 [15:37:52]MH_SAM_APDU [15:37:52]CAPDU: 80 11 00 00 [15:37:52]Write to MH i2c: E2 08 00 8C 11 80 11 00 00 00 00 00 00 17 [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:52]Read from MH i2c: E2 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 17 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: E2 17 00 8C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6C [15:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:37:52]wFMCommunicate OK [15:37:52]CreateOFDProtocolMessage done [15:37:52]OFDSenderStorePacket 156342 [15:37:52]StoreOFDPacket docnum=156342 [15:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CF 08 07 01 74 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 CF 0C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 62 02 00 35 04 06 00 71 8C C6 FE 85 08 3A 60 3D 30 5B 1C 0B 82 [15:37:52]CheckFolder [15:37:52]dirname=/storage/ofd_packets [15:37:52]CheckFolder done [15:37:52]ProducePacketName [15:37:52]name=ofd_packets/00156342 [15:37:52]NVStorageSaveData ofd_packets/00156342 [15:37:52]File name is /storage/ofd_packets/00156342 [15:37:52]Write 301 bytes [15:37:52]NVStorageSaveData done [15:37:52]OFDSenderStorePacket done [15:37:52]KKMCreateOFDPacket done [15:37:52]NVStorageSaveData kkm_last_timestamp [15:37:52]File name is /storage/kkm_last_timestamp [15:37:52]Write 4 bytes [15:37:52]NVStorageSaveData done [15:37:52]ExternCall_PrintAddStr [15:37:52]wPrintStart [15:37:52]Write to MH i2c: 01 00 00 8D 11 9E [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 07 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 07 00 8D 11 00 00 00 00 00 FF 0F B3 [15:37:52]RasterBufferAndPrint [15:37:52]line Счет N : (1)99157 [15:37:52]line ИНН: 02508201610067 [15:37:52]line Контрольно-Кассовый Чек [15:37:52]line ПРОДАЖА [15:37:52]line ТРК (МРК, ГНК) : 31 [15:37:52]line Товар: 2710124130 [15:37:52]line Аи-92-К-5 [15:37:52]line 5.980 * 66.90 [15:37:52]line = 400.06 [15:37:52]line НДС 12% НСП 1% [15:37:52]line > о реализуемом товаре [15:37:52]line ОКРУГЛЕНИЕ: -0.06 [15:37:52]line ИТОГО: 400.00 [15:37:52]line Внесено: 400.00 [15:37:52]line СДАЧА: 0.00 [15:37:52]line НСП 1% : 3.54 [15:37:52]line НДС 12% : 42.48 [15:37:52]line Наличными: 400.00 [15:37:52]line Безнал.: 0.00 [15:37:52]line Место: АЗС № 143 "Партнер Нефть" [15:37:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:37:52]line СНО: Общий режим [15:37:52]line Чек 243 26.10.2024 15:37 [15:37:52]line Смена: 536 ФФД: 1.0 [15:37:52]line ЗНМ: 0300000096 [15:37:52]line РНМ: 0000000000091693 [15:37:52]line Версия ККМ: 001 [15:37:52]line ФМ: 0000000000871792 [15:37:52]line ФД: 156342 [15:37:52]line ФПД: 124849447929096 [15:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153751&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156342&fm=124849447929096&tin=02508201610067®Number=0000000000091693&sum=40000 [15:37:52]OFD Sender: Processing packet 156342 [packets to send 31, broken 30] [15:37:52]ProducePacketName [15:37:52]name=ofd_packets/00156342 [15:37:52]OFD Sender: To server: pG, [15:37:52]CommunicateWithHost lk.salyk.kg:30040 [15:37:52]ConnectInit lk.salyk.kg [15:37:52]written 0, free lines is 4095 [15:37:52]Connected sock=9 [15:37:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CF 08 07 01 74 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 CF 0C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 62 02 00 35 04 06 00 71 8C C6 FE 85 08 3A 60 3D 30 5B 1C 0B 82 [15:37:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 75 1D 47 00 AD 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 62 02 00 F4 03 04 00 41 B2 1C 67 B6 04 01 00 00 6A 23 F3 0E 7D 83 F5 D9 [15:37:52]CommunicateWithHost err = 0 [15:37:52]CheckOFDResponse [15:37:52]1017 (14) - 77093643461234 [15:37:52]1041 (16) - 0000000000871792 [15:37:52]1040 (4) - 156342 [15:37:52]1012 (4) - 26.10.2024 09:11 [15:37:52]1206 (1) - 0 [15:37:52]OFD Sender: Remove packet 156342 [15:37:52]ProducePacketName [15:37:52]name=ofd_packets/00156342 [15:37:52]NVStorageDeleteData [15:37:53]Write to MH i2c: 01 00 00 B8 11 C9 [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: 01 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: 01 07 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: 01 07 00 B8 11 00 00 00 00 00 E8 0C C4 [15:37:53]RasterBufferAndPrint [15:37:53]line [15:37:53]line [15:37:53]line [15:37:53]line [15:37:53]line [15:37:53]written 0, free lines is 3310 [15:37:53]process_action close_receipt done [15:37:53]requested_data is exist [15:37:53]produce_requested_data [15:37:53]requested_item fm.sn is exist - process it [15:37:53]wFMCommunicate request_size=4 [15:37:53]MH_SAM_APDU [15:37:53]CAPDU: 80 11 00 00 [15:37:53]Write to MH i2c: E2 08 00 BF 11 80 11 00 00 00 00 00 00 4A [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:53]Read from MH i2c: E2 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 17 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 17 00 BF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9F [15:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:37:53]wFMCommunicate OK [15:37:53]requested_item fd.num is exist - process it [15:37:53]SAM_PROTO_GetFieldsCounters [15:37:53]wFMCommunicate request_size=4 [15:37:53]MH_SAM_APDU [15:37:53]CAPDU: 80 13 00 00 [15:37:53]Write to MH i2c: E2 08 00 C0 11 80 13 00 00 00 00 00 00 4D [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:53]Read from MH i2c: E2 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 62 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 62 00 C0 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [15:37: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:53]wFMCommunicate OK [15:37:53]SAM_PROTO_GetFieldsCounters done [15:37:53]requested_item shift.num is exist - process it [15:37:53]requested_item shift.opened is exist - process it [15:37:53]req_shift_opened [15:37:53]FM_GetShiftState [15:37:53]SAM_PROTO_GetShiftState [15:37:53]wFMCommunicate request_size=4 [15:37:53]MH_SAM_APDU [15:37:53]CAPDU: 80 13 01 00 [15:37:53]Write to MH i2c: E2 08 00 C1 11 80 13 01 00 00 00 00 00 4F [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:53]Read from MH i2c: E2 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 0E 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 0E 00 C1 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 84 [15:37:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:37:53]wFMCommunicate OK [15:37:53]SAM_PROTO_GetShiftState done [15:37:53]FM_GetShiftState done [15:37:53]req_shift_opened done [15:37:53]requested_item shift.open_date is exist - process it [15:37:53]req_shift_open_date [15:37:53]req_shift_open_date done [15:37:53]produce_requested_data done [15:37:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156342,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:37:53]process_action_free close_receipt [15:37:53]json_value_free [15:37:53]json_value_free done [15:37:53]process_json_proto returns [15:37:53]Send response to host [15:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156342,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:37:53]free response buf [15:37:53]execute_script done [15:37:53]execute_script returns [15:37:53]free content buf [15:37:53]Sock 10.Close socket [15:37:53]Sock 10.Thread stoped [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:53]accept exits with 8 [15:39:53]New connection [15:39:53]New thread 3066977636 created [15:39:53]Thread 3066834276 joined [15:39:53]Waiting for new connection... [15:39:53] Sock 8.Parse request [15:39:53]Sock 8.Check first char [15:39:53]Sock 8.First char is OK [15:39:53]request: POST /json_proto HTTP/1.0 [15:39:53]Method: POST [15:39:53]URL: /json_proto [15:39:53]Method is POST - this is cgi request [15:39:53]url: /json_proto [15:39:53]query_string will be loaded in cgi processing [15:39:53]execute_cgi json_proto POST (null) [15:39:53]execute_cgi path=json_proto method=POST [15:39:53]POST find Content-Length [15:39:53]Host: 172.17.63.3:8080 [15:39:53]Content-Length: 676 [15:39:53]Content-Type: application/json [15:39:53] [15:39:53]POST finish read [15:39:53]Found Content-Length = 676 [15:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:53]execute_script... [15:39:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:53]POST & json_proto [15:39:53]process_json_proto [15:39:53]json parsed OK: [15:39:53]protocol is kg_v1.0 [15:39:53]action value=close_receipt [15:39:53]process_action close_receipt [15:39:53]cmd_close_receipt [15:39:53]MH_GetDate [15:39:53]Write to MH i2c: F0 00 00 C2 11 C2 [15:39:53]Write i2c OK [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: F0 [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: F0 09 00 [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: F0 09 00 C2 11 00 4A 0D 1D 67 50 D1 6C 64 97 [15:39:53]GetLastDocTimeStamp 1729957071 [15:39:53]current date 1729957194 [15:39:53]FM_GetShiftState [15:39:53]SAM_PROTO_GetShiftState [15:39:53]wFMCommunicate request_size=4 [15:39:53]MH_SAM_APDU [15:39:53]CAPDU: 80 13 01 00 [15:39:53]Write to MH i2c: E2 08 00 C3 11 80 13 01 00 00 00 00 00 51 [15:39:53]Write i2c OK [15:39:53]MH_I2C_Read... [15:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:53]Read from MH i2c: E2 [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: E2 0E 00 [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: E2 0E 00 C3 11 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 86 [15:39:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:39:53]wFMCommunicate OK [15:39:53]SAM_PROTO_GetShiftState done [15:39:53]FM_GetShiftState done [15:39:53]opened in 1729902702 [15:39:53]opened+sec_in_day 1729989102 [15:39:53]quantity*price = 20003 [15:39:53]sum+1 = 20004 [15:39:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 244 26.10.2024 15:39 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156343 ФПД: 118572646870869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156343&fm=118572646870869&tin=02508201610067®Number=0000000000091693&sum=20000 [15:39:54]StoreToDocumentArchive [15:39:54]shift 536 fd 156343 [15:39:54]save to /storage/0536/doc_00156343 [15:39:54]save last doc name /storage/0536/doc_00156343 to /storage/kkm_last_doc_name [15:39:54]save OK [15:39:54]Clear old archive folders... [15:39:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:54]tlvbuf is 0167AED0 [15:39:54]SAM_PROTO_ClearQueue [15:39:54]wFMCommunicate request_size=4 [15:39:54]MH_SAM_APDU [15:39:54]CAPDU: 80 09 00 00 [15:39:54]Write to MH i2c: E2 08 00 D0 11 80 09 00 00 00 00 00 00 53 [15:39:54]Write i2c OK [15:39:54]MH_I2C_Read... [15:39:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:54]Read from MH i2c: E2 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: E2 03 00 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: E2 03 00 D0 11 00 90 00 55 [15:39:54]RAPDU: 90 00 [15:39:54]wFMCommunicate OK [15:39:54]SAM_PROTO_ClearQueue done [15:39:54]KKMCreateOFDPacket [15:39:54]OFDProtocolAddRootSTLVToBuf [15:39:54]FM_MakeSignedData [15:39:54]FM_MakeSignedData [15:39:54]SAM_PROTO_SignData [15:39:54]wFMCommunicate request_size=4 [15:39:54]MH_SAM_APDU [15:39:54]CAPDU: 80 0D 01 02 [15:39:54]Write to MH i2c: E2 08 00 D1 11 80 0D 01 02 00 00 00 00 5B [15:39:54]Write i2c OK [15:39:54]MH_I2C_Read... [15:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:55]Read from MH i2c: E2 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 03 00 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 03 00 D1 11 00 90 00 56 [15:39:55]RAPDU: 90 00 [15:39:55]wFMCommunicate OK [15:39:55]wFMCommunicate request_size=255 [15:39:55]MH_SAM_APDU [15:39:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 4A 0D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 62 02 00 35 04 06 00 6B [15:39:55]Write to MH i2c: E2 02 01 D2 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 4A 0D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 62 02 00 35 04 06 00 6B 00 00 20 [15:39:55]Write i2c OK [15:39:55]MH_I2C_Read... [15:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:55]Read from MH i2c: E2 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 03 00 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 03 00 D2 11 00 90 00 57 [15:39:55]RAPDU: 90 00 [15:39:55]wFMCommunicate OK [15:39:55]wFMCommunicate request_size=10 [15:39:55]MH_SAM_APDU [15:39:55]CAPDU: 80 0D 02 02 05 D7 58 7F 2F 55 [15:39:55]Write to MH i2c: E2 0D 00 D3 11 80 0D 02 02 05 00 D7 58 7F 2F 55 00 00 9A [15:39:55]Write i2c OK [15:39:55]MH_I2C_Read... [15:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:55]Read from MH i2c: E2 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 03 00 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 03 00 D3 11 00 90 00 58 [15:39:55]RAPDU: 90 00 [15:39:55]wFMCommunicate OK [15:39:55]wFMCommunicate request_size=4 [15:39:55]MH_SAM_APDU [15:39:55]CAPDU: 80 0D 03 02 [15:39:55]Write to MH i2c: E2 08 00 D4 11 80 0D 03 02 00 00 00 00 60 [15:39:55]Write i2c OK [15:39:55]MH_I2C_Read... [15:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:55]Read from MH i2c: E2 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 0B 00 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 0B 00 D4 11 00 2B 0F E3 0D 31 83 1C 01 90 00 5C [15:39:55]RAPDU: 2B 0F E3 0D 31 83 1C 01 90 00 [15:39:55]wFMCommunicate OK [15:39:55]SAM_PROTO_SignData done [15:39:55]FM_MakeSignedData done [15:39:55]CreateOFDProtocolMessage [15:39:55]wFMCommunicate request_size=4 [15:39:55]MH_SAM_APDU [15:39:55]CAPDU: 80 11 00 00 [15:39:55]Write to MH i2c: E2 08 00 D5 11 80 11 00 00 00 00 00 00 60 [15:39:55]Write i2c OK [15:39:55]MH_I2C_Read... [15:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:55]Read from MH i2c: E2 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: E2 17 00 [15:39:55]MH_I2C_Read... [15:39:55]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 31 37 39 32 90 00 B5 [15:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:39:55]wFMCommunicate OK [15:39:55]CreateOFDProtocolMessage done [15:39:55]OFDSenderStorePacket 156343 [15:39:55]StoreOFDPacket docnum=156343 [15:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 08 6F 07 01 10 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 4A 0D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 62 02 00 35 04 06 00 6B D7 58 7F 2F 55 2B 0F E3 0D 31 83 1C 01 [15:39:55]CheckFolder [15:39:55]dirname=/storage/ofd_packets [15:39:55]CheckFolder done [15:39:55]ProducePacketName [15:39:55]name=ofd_packets/00156343 [15:39:55]NVStorageSaveData ofd_packets/00156343 [15:39:55]File name is /storage/ofd_packets/00156343 [15:39:55]Write 301 bytes [15:39:55]NVStorageSaveData done [15:39:55]OFDSenderStorePacket done [15:39:55]KKMCreateOFDPacket done [15:39:55]NVStorageSaveData kkm_last_timestamp [15:39:55]File name is /storage/kkm_last_timestamp [15:39:55]Write 4 bytes [15:39:55]NVStorageSaveData done [15:39:55]ExternCall_PrintAddStr [15:39:55]wPrintStart [15:39:55]Write to MH i2c: 01 00 00 D6 11 E7 [15:39:55]Write i2c OK [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: 01 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: 01 07 00 [15:39:55]MH_I2C_Read... [15:39:55]Read from MH i2c: 01 07 00 D6 11 00 00 00 00 00 FF 0F FC [15:39:55]RasterBufferAndPrint [15:39:55]line Счет N : (1)99158 [15:39:55]line ИНН: 02508201610067 [15:39:55]line Контрольно-Кассовый Чек [15:39:55]line ПРОДАЖА [15:39:55]line ТРК (МРК, ГНК) : 11 [15:39:55]line Товар: 2710124130 [15:39:55]line Аи-92-К-5 [15:39:55]line 2.990 * 66.90 [15:39:55]line = 200.03 [15:39:55]line НДС 12% НСП 1% [15:39:55]line > о реализуемом товаре [15:39:55]line ОКРУГЛЕНИЕ: -0.03 [15:39:55]line ИТОГО: 200.00 [15:39:55]line Внесено: 200.00 [15:39:55]line СДАЧА: 0.00 [15:39:55]line НСП 1% : 1.77 [15:39:55]line НДС 12% : 21.24 [15:39:55]line Наличными: 200.00 [15:39:55]line Безнал.: 0.00 [15:39:55]line Место: АЗС № 143 "Партнер Нефть" [15:39:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:39:55]line СНО: Общий режим [15:39:55]line Чек 244 26.10.2024 15:39 [15:39:55]line Смена: 536 ФФД: 1.0 [15:39:55]line ЗНМ: 0300000096 [15:39:55]line РНМ: 0000000000091693 [15:39:55]line Версия ККМ: 001 [15:39:55]line ФМ: 0000000000871792 [15:39:55]line ФД: 156343 [15:39:55]line ФПД: 118572646870869 [15:39:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156343&fm=118572646870869&tin=02508201610067®Number=0000000000091693&sum=20000 [15:39:55]OFD Sender: Processing packet 156343 [packets to send 31, broken 30] [15:39:55]ProducePacketName [15:39:55]name=ofd_packets/00156343 [15:39:55]OFD Sender: To server: pG, [15:39:55]CommunicateWithHost lk.salyk.kg:30040 [15:39:55]ConnectInit lk.salyk.kg [15:39:55]written 0, free lines is 4095 [15:39:55]Connected sock=9 [15:39:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 08 6F 07 01 10 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 4A 0D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 62 02 00 35 04 06 00 6B D7 58 7F 2F 55 2B 0F E3 0D 31 83 1C 01 [15:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 56 D0 47 00 58 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 62 02 00 F4 03 04 00 BD B2 1C 67 B6 04 01 00 00 03 11 80 BC CB FC 6F 6B [15:39:56]CommunicateWithHost err = 0 [15:39:56]CheckOFDResponse [15:39:56]1017 (14) - 77093643461234 [15:39:56]1041 (16) - 0000000000871792 [15:39:56]1040 (4) - 156343 [15:39:56]1012 (4) - 26.10.2024 09:13 [15:39:56]1206 (1) - 0 [15:39:56]OFD Sender: Remove packet 156343 [15:39:56]ProducePacketName [15:39:56]name=ofd_packets/00156343 [15:39:56]NVStorageDeleteData [15:39:56]Write to MH i2c: 01 00 00 01 12 13 [15:39:56]Write i2c OK [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: 01 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: 01 07 00 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: 01 07 00 01 12 00 00 00 00 00 E6 0C 0C [15:39:56]RasterBufferAndPrint [15:39:56]line [15:39:56]line [15:39:56]line [15:39:56]line [15:39:56]line [15:39:56]written 0, free lines is 3308 [15:39:56]process_action close_receipt done [15:39:56]requested_data is exist [15:39:56]produce_requested_data [15:39:56]requested_item fm.sn is exist - process it [15:39:56]wFMCommunicate request_size=4 [15:39:56]MH_SAM_APDU [15:39:56]CAPDU: 80 11 00 00 [15:39:56]Write to MH i2c: E2 08 00 08 12 80 11 00 00 00 00 00 00 94 [15:39:56]Write i2c OK [15:39:56]MH_I2C_Read... [15:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:56]Read from MH i2c: E2 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: E2 17 00 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: E2 17 00 08 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [15:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:39:56]wFMCommunicate OK [15:39:56]requested_item fd.num is exist - process it [15:39:56]SAM_PROTO_GetFieldsCounters [15:39:56]wFMCommunicate request_size=4 [15:39:56]MH_SAM_APDU [15:39:56]CAPDU: 80 13 00 00 [15:39:56]Write to MH i2c: E2 08 00 09 12 80 13 00 00 00 00 00 00 97 [15:39:56]Write i2c OK [15:39:56]MH_I2C_Read... [15:39:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:56]Read from MH i2c: E2 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: E2 62 00 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: E2 62 00 09 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [15:39: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:56]wFMCommunicate OK [15:39:56]SAM_PROTO_GetFieldsCounters done [15:39:56]requested_item shift.num is exist - process it [15:39:56]requested_item shift.opened is exist - process it [15:39:56]req_shift_opened [15:39:56]FM_GetShiftState [15:39:56]SAM_PROTO_GetShiftState [15:39:56]wFMCommunicate request_size=4 [15:39:56]MH_SAM_APDU [15:39:56]CAPDU: 80 13 01 00 [15:39:56]Write to MH i2c: E2 08 00 0A 12 80 13 01 00 00 00 00 00 99 [15:39:56]Write i2c OK [15:39:56]MH_I2C_Read... [15:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:56]Read from MH i2c: E2 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: E2 0E 00 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: E2 0E 00 0A 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 CE [15:39:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:39:56]wFMCommunicate OK [15:39:56]SAM_PROTO_GetShiftState done [15:39:56]FM_GetShiftState done [15:39:56]req_shift_opened done [15:39:56]requested_item shift.open_date is exist - process it [15:39:56]req_shift_open_date [15:39:56]req_shift_open_date done [15:39:56]produce_requested_data done [15:39:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156343,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:39:56]process_action_free close_receipt [15:39:56]json_value_free [15:39:56]json_value_free done [15:39:56]process_json_proto returns [15:39:56]Send response to host [15:39:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156343,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:39:56]free response buf [15:39:56]execute_script done [15:39:56]execute_script returns [15:39:56]free content buf [15:39:56]Sock 8.Close socket [15:39:56]Sock 8.Thread stoped [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:11]accept exits with 10 [15:52:11]New connection [15:52:11]New thread 3066834276 created [15:52:11]Thread 3066977636 joined [15:52:11]Waiting for new connection... [15:52:11] Sock 10.Parse request [15:52:11]Sock 10.Check first char [15:52:11]Sock 10.First char is OK [15:52:11]request: POST /json_proto HTTP/1.0 [15:52:11]Method: POST [15:52:11]URL: /json_proto [15:52:11]Method is POST - this is cgi request [15:52:11]url: /json_proto [15:52:11]query_string will be loaded in cgi processing [15:52:11]execute_cgi json_proto POST (null) [15:52:11]execute_cgi path=json_proto method=POST [15:52:11]POST find Content-Length [15:52:11]Host: 172.17.63.3:8080 [15:52:11]Content-Length: 678 [15:52:11]Content-Type: application/json [15:52:11] [15:52:11]POST finish read [15:52:11]Found Content-Length = 678 [15:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:11]execute_script... [15:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:11]POST & json_proto [15:52:11]process_json_proto [15:52:11]json parsed OK: [15:52:11]protocol is kg_v1.0 [15:52:11]action value=close_receipt [15:52:11]process_action close_receipt [15:52:11]cmd_close_receipt [15:52:11]MH_GetDate [15:52:11]Write to MH i2c: F0 00 00 0B 12 0C [15:52:11]Write i2c OK [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 09 00 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 09 00 0B 12 00 2C 10 1D 67 50 D1 6C 64 C6 [15:52:11]GetLastDocTimeStamp 1729957194 [15:52:11]current date 1729957932 [15:52:11]FM_GetShiftState [15:52:11]SAM_PROTO_GetShiftState [15:52:11]wFMCommunicate request_size=4 [15:52:11]MH_SAM_APDU [15:52:11]CAPDU: 80 13 01 00 [15:52:11]Write to MH i2c: E2 08 00 0C 12 80 13 01 00 00 00 00 00 9B [15:52:11]Write i2c OK [15:52:11]MH_I2C_Read... [15:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:11]Read from MH i2c: E2 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 0E 00 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 0E 00 0C 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D0 [15:52:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:52:11]wFMCommunicate OK [15:52:11]SAM_PROTO_GetShiftState done [15:52:11]FM_GetShiftState done [15:52:11]opened in 1729902702 [15:52:11]opened+sec_in_day 1729989102 [15:52:11]quantity*price = 200025 [15:52:11]sum+1 = 200026 [15:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 245 26.10.2024 15:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156344 ФПД: 222324867163513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155212&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156344&fm=222324867163513&tin=02508201610067®Number=0000000000091693&sum=200000 [15:52:12]StoreToDocumentArchive [15:52:12]shift 536 fd 156344 [15:52:12]save to /storage/0536/doc_00156344 [15:52:12]save last doc name /storage/0536/doc_00156344 to /storage/kkm_last_doc_name [15:52:12]save OK [15:52:12]Clear old archive folders... [15:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:52:12]tlvbuf is 016AE510 [15:52:12]SAM_PROTO_ClearQueue [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 09 00 00 [15:52:12]Write to MH i2c: E2 08 00 19 12 80 09 00 00 00 00 00 00 9D [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 [15:52:12]MH_I2C_Read... [15:52:12]OFD Sender: No OFD packet to send [15:52:12]Read from MH i2c: E2 03 00 19 12 00 90 00 9F [15:52:12]RAPDU: 90 00 [15:52:12]wFMCommunicate OK [15:52:12]SAM_PROTO_ClearQueue done [15:52:12]KKMCreateOFDPacket [15:52:12]OFDProtocolAddRootSTLVToBuf [15:52:12]FM_MakeSignedData [15:52:12]FM_MakeSignedData [15:52:12]SAM_PROTO_SignData [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 0D 01 02 [15:52:12]Write to MH i2c: E2 08 00 1A 12 80 0D 01 02 00 00 00 00 A5 [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 1A 12 00 90 00 A0 [15:52:12]RAPDU: 90 00 [15:52:12]wFMCommunicate OK [15:52:12]wFMCommunicate request_size=255 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 2C 10 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 62 02 00 35 04 06 00 CA 34 0A BB [15:52:12]Write to MH i2c: E2 02 01 1B 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 2C 10 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 62 02 00 35 04 06 00 CA 34 0A BB 00 00 CB [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 1B 12 00 90 00 A1 [15:52:12]RAPDU: 90 00 [15:52:12]wFMCommunicate OK [15:52:12]wFMCommunicate request_size=7 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 0D 02 02 02 65 79 [15:52:12]Write to MH i2c: E2 0A 00 1C 12 80 0D 02 02 02 00 65 79 00 00 8A [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 1C 12 00 90 00 A2 [15:52:12]RAPDU: 90 00 [15:52:12]wFMCommunicate OK [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 0D 03 02 [15:52:12]Write to MH i2c: E2 08 00 1D 12 80 0D 03 02 00 00 00 00 AA [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 0B 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 0B 00 1D 12 00 5D AE 27 48 FB 48 FC F8 90 00 5C [15:52:12]RAPDU: 5D AE 27 48 FB 48 FC F8 90 00 [15:52:12]wFMCommunicate OK [15:52:12]SAM_PROTO_SignData done [15:52:12]FM_MakeSignedData done [15:52:12]CreateOFDProtocolMessage [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 11 00 00 [15:52:12]Write to MH i2c: E2 08 00 1E 12 80 11 00 00 00 00 00 00 AA [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 17 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 17 00 1E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [15:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:52:12]wFMCommunicate OK [15:52:12]CreateOFDProtocolMessage done [15:52:12]OFDSenderStorePacket 156344 [15:52:12]StoreOFDPacket docnum=156344 [15:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 55 67 04 01 E1 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 2C 10 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 62 02 00 35 04 06 00 CA 34 0A BB 65 79 5D AE 27 48 FB 48 FC F8 [15:52:12]CheckFolder [15:52:12]dirname=/storage/ofd_packets [15:52:12]CheckFolder done [15:52:12]ProducePacketName [15:52:12]name=ofd_packets/00156344 [15:52:12]NVStorageSaveData ofd_packets/00156344 [15:52:12]File name is /storage/ofd_packets/00156344 [15:52:12]Write 298 bytes [15:52:12]NVStorageSaveData done [15:52:12]OFDSenderStorePacket done [15:52:12]KKMCreateOFDPacket done [15:52:12]NVStorageSaveData kkm_last_timestamp [15:52:12]File name is /storage/kkm_last_timestamp [15:52:12]Write 4 bytes [15:52:12]NVStorageSaveData done [15:52:12]ExternCall_PrintAddStr [15:52:12]wPrintStart [15:52:12]Write to MH i2c: 01 00 00 1F 12 31 [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: 01 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: 01 07 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: 01 07 00 1F 12 00 00 00 00 00 FF 0F 46 [15:52:12]RasterBufferAndPrint [15:52:12]line Счет N : (1)99159 [15:52:12]line ИНН: 02508201610067 [15:52:12]line Контрольно-Кассовый Чек [15:52:12]line ПРОДАЖА [15:52:12]line ТРК (МРК, ГНК) : 32 [15:52:12]line Товар: 2710194210 [15:52:12]line ДТ-К-5 [15:52:12]line 26.250 * 76.20 [15:52:12]line = 2000.25 [15:52:12]line НДС 12% НСП 1% [15:52:12]line > о реализуемом товаре [15:52:12]line ОКРУГЛЕНИЕ: -0.25 [15:52:12]line ИТОГО: 2000.00 [15:52:12]line Внесено: 2000.00 [15:52:12]line СДАЧА: 0.00 [15:52:12]line НСП 1% : 17.70 [15:52:12]line НДС 12% : 212.42 [15:52:12]line Наличными: 2000.00 [15:52:12]line Безнал.: 0.00 [15:52:12]line Место: АЗС № 143 "Партнер Нефть" [15:52:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:52:12]line СНО: Общий режим [15:52:12]line Чек 245 26.10.2024 15:52 [15:52:12]line Смена: 536 ФФД: 1.0 [15:52:12]line ЗНМ: 0300000096 [15:52:12]line РНМ: 0000000000091693 [15:52:12]line Версия ККМ: 001 [15:52:12]line ФМ: 0000000000871792 [15:52:12]line ФД: 156344 [15:52:12]line ФПД: 222324867163513 [15:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155212&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156344&fm=222324867163513&tin=02508201610067®Number=0000000000091693&sum=200000 [15:52:13]OFD Sender: Processing packet 156344 [packets to send 31, broken 30] [15:52:13]ProducePacketName [15:52:13]name=ofd_packets/00156344 [15:52:13]OFD Sender: To server: pG, [15:52:13]CommunicateWithHost lk.salyk.kg:30040 [15:52:13]ConnectInit lk.salyk.kg [15:52:13]written 0, free lines is 4095 [15:52:13]Connected sock=9 [15:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 55 67 04 01 E1 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 2C 10 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 62 02 00 35 04 06 00 CA 34 0A BB 65 79 5D AE 27 48 FB 48 FC F8 [15:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 91 AC 47 00 8A 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 62 02 00 F4 03 04 00 9E B5 1C 67 B6 04 01 00 00 C2 36 3D 41 16 B2 89 05 [15:52:13]CommunicateWithHost err = 0 [15:52:13]CheckOFDResponse [15:52:13]1017 (14) - 77093643461234 [15:52:13]1041 (16) - 0000000000871792 [15:52:13]1040 (4) - 156344 [15:52:13]1012 (4) - 26.10.2024 09:25 [15:52:13]1206 (1) - 0 [15:52:13]OFD Sender: Remove packet 156344 [15:52:13]ProducePacketName [15:52:13]name=ofd_packets/00156344 [15:52:13]NVStorageDeleteData [15:52:13]Write to MH i2c: 01 00 00 4A 12 5C [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 07 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 E0 0C 4F [15:52:13]RasterBufferAndPrint [15:52:13]line [15:52:13]line [15:52:13]line [15:52:13]line [15:52:13]line [15:52:13]written 0, free lines is 3302 [15:52:13]process_action close_receipt done [15:52:13]requested_data is exist [15:52:13]produce_requested_data [15:52:13]requested_item fm.sn is exist - process it [15:52:13]wFMCommunicate request_size=4 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 11 00 00 [15:52:13]Write to MH i2c: E2 08 00 51 12 80 11 00 00 00 00 00 00 DD [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 17 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 17 00 51 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 32 [15:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:52:13]wFMCommunicate OK [15:52:13]requested_item fd.num is exist - process it [15:52:13]SAM_PROTO_GetFieldsCounters [15:52:13]wFMCommunicate request_size=4 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 13 00 00 [15:52:13]Write to MH i2c: E2 08 00 52 12 80 13 00 00 00 00 00 00 E0 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 62 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 62 00 52 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [15:52: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:13]wFMCommunicate OK [15:52:13]SAM_PROTO_GetFieldsCounters done [15:52:13]requested_item shift.num is exist - process it [15:52:13]requested_item shift.opened is exist - process it [15:52:13]req_shift_opened [15:52:13]FM_GetShiftState [15:52:13]SAM_PROTO_GetShiftState [15:52:13]wFMCommunicate request_size=4 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 13 01 00 [15:52:13]Write to MH i2c: E2 08 00 53 12 80 13 01 00 00 00 00 00 E2 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 0E 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 0E 00 53 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 17 [15:52:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:52:13]wFMCommunicate OK [15:52:13]SAM_PROTO_GetShiftState done [15:52:13]FM_GetShiftState done [15:52:13]req_shift_opened done [15:52:13]requested_item shift.open_date is exist - process it [15:52:13]req_shift_open_date [15:52:13]req_shift_open_date done [15:52:13]produce_requested_data done [15:52:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156344,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:52:13]process_action_free close_receipt [15:52:13]json_value_free [15:52:13]json_value_free done [15:52:13]process_json_proto returns [15:52:13]Send response to host [15:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156344,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:52:13]free response buf [15:52:13]execute_script done [15:52:13]execute_script returns [15:52:13]free content buf [15:52:13]Sock 10.Close socket [15:52:13]Sock 10.Thread stoped [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:28]int [15:52:28]Write to MH i2c: 01 00 00 54 12 66 [15:52:28]*** FLAG_PRN_KEY set [15:52:28]Write i2c OK [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 07 00 [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 07 00 54 12 00 08 00 00 00 FF 0F 83 [15:52:28]state=0 [15:52:28]Key pressed [15:52:28]Feed [15:52:28]Write to MH i2c: D8 00 00 55 12 3E [15:52:28]Write i2c OK [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: D8 [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: D8 01 00 [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: D8 01 00 55 12 00 3F [15:52:28]int [15:52:28]Write to MH i2c: 01 00 00 56 12 68 [15:52:28]Write i2c OK [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 07 00 [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 07 00 56 12 00 48 00 00 00 3D 00 F4 [15:52:28]state=2 [15:52:28]Key pressed [15:52:28]int [15:52:28]Write to MH i2c: 01 00 00 57 12 69 [15:52:28]*** FLAG_PRN_KEY reset [15:52:28]Write i2c OK [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 07 00 [15:52:28]MH_I2C_Read... [15:52:28]Read from MH i2c: 01 07 00 57 12 00 00 00 00 00 F6 0F 75 [15:52:28]state=2 [15:52:28]Stop feed [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:29]accept exits with 8 [15:54:29]New connection [15:54:29]New thread 3066977636 created [15:54:29]Thread 3066834276 joined [15:54:29]Waiting for new connection... [15:54:29] Sock 8.Parse request [15:54:29]Sock 8.Check first char [15:54:29]Sock 8.First char is OK [15:54:29]request: POST /json_proto HTTP/1.0 [15:54:29]Method: POST [15:54:29]URL: /json_proto [15:54:29]Method is POST - this is cgi request [15:54:29]url: /json_proto [15:54:29]query_string will be loaded in cgi processing [15:54:29]execute_cgi json_proto POST (null) [15:54:29]execute_cgi path=json_proto method=POST [15:54:29]POST find Content-Length [15:54:29]Host: 172.17.63.3:8080 [15:54:29]Content-Length: 674 [15:54:29]Content-Type: application/json [15:54:29] [15:54:29]POST finish read [15:54:29]Found Content-Length = 674 [15:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:29]execute_script... [15:54:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:29]POST & json_proto [15:54:29]process_json_proto [15:54:29]json parsed OK: [15:54:29]protocol is kg_v1.0 [15:54:29]action value=close_receipt [15:54:29]process_action close_receipt [15:54:29]cmd_close_receipt [15:54:29]MH_GetDate [15:54:29]Write to MH i2c: F0 00 00 58 12 59 [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: F0 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: F0 09 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: F0 09 00 58 12 00 B6 10 1D 67 50 D1 6C 64 9D [15:54:29]GetLastDocTimeStamp 1729957932 [15:54:29]current date 1729958070 [15:54:29]FM_GetShiftState [15:54:29]SAM_PROTO_GetShiftState [15:54:29]wFMCommunicate request_size=4 [15:54:29]MH_SAM_APDU [15:54:29]CAPDU: 80 13 01 00 [15:54:29]Write to MH i2c: E2 08 00 59 12 80 13 01 00 00 00 00 00 E8 [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:30]Read from MH i2c: E2 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: E2 0E 00 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: E2 0E 00 59 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 1D [15:54:30]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:54:30]wFMCommunicate OK [15:54:30]SAM_PROTO_GetShiftState done [15:54:30]FM_GetShiftState done [15:54:30]opened in 1729902702 [15:54:30]opened+sec_in_day 1729989102 [15:54:30]quantity*price = 80010 [15:54:30]sum+1 = 80011 [15:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 246 26.10.2024 15:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156345 ФПД: 15167937917241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156345&fm=15167937917241&tin=02508201610067®Number=0000000000091693&sum=80000 [15:54:31]StoreToDocumentArchive [15:54:31]shift 536 fd 156345 [15:54:31]save to /storage/0536/doc_00156345 [15:54:31]save last doc name /storage/0536/doc_00156345 to /storage/kkm_last_doc_name [15:54:31]save OK [15:54:31]Clear old archive folders... [15:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:54:31]tlvbuf is B6EC7D20 [15:54:31]SAM_PROTO_ClearQueue [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 09 00 00 [15:54:31]Write to MH i2c: E2 08 00 66 12 80 09 00 00 00 00 00 00 EA [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 66 12 00 90 00 EC [15:54:31]RAPDU: 90 00 [15:54:31]wFMCommunicate OK [15:54:31]SAM_PROTO_ClearQueue done [15:54:31]KKMCreateOFDPacket [15:54:31]OFDProtocolAddRootSTLVToBuf [15:54:31]FM_MakeSignedData [15:54:31]FM_MakeSignedData [15:54:31]SAM_PROTO_SignData [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 0D 01 02 [15:54:31]Write to MH i2c: E2 08 00 67 12 80 0D 01 02 00 00 00 00 F2 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 67 12 00 90 00 ED [15:54:31]RAPDU: 90 00 [15:54:31]wFMCommunicate OK [15:54:31]wFMCommunicate request_size=255 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B6 10 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 62 02 00 35 04 06 00 0D CB 8F 8D [15:54:31]Write to MH i2c: E2 02 01 68 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B6 10 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 62 02 00 35 04 06 00 0D CB 8F 8D 00 00 1A [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 68 12 00 90 00 EE [15:54:31]RAPDU: 90 00 [15:54:31]wFMCommunicate OK [15:54:31]wFMCommunicate request_size=7 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 0D 02 02 02 31 39 [15:54:31]Write to MH i2c: E2 0A 00 69 12 80 0D 02 02 02 00 31 39 00 00 63 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 69 12 00 90 00 EF [15:54:31]RAPDU: 90 00 [15:54:31]wFMCommunicate OK [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 0D 03 02 [15:54:31]Write to MH i2c: E2 08 00 6A 12 80 0D 03 02 00 00 00 00 F7 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 0B 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 0B 00 6A 12 00 39 63 9E 0D EE B2 1C 3F 90 00 3A [15:54:31]RAPDU: 39 63 9E 0D EE B2 1C 3F 90 00 [15:54:31]wFMCommunicate OK [15:54:31]SAM_PROTO_SignData done [15:54:31]FM_MakeSignedData done [15:54:31]CreateOFDProtocolMessage [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 11 00 00 [15:54:31]Write to MH i2c: E2 08 00 6B 12 80 11 00 00 00 00 00 00 F7 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 17 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 17 00 6B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4C [15:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:54:31]wFMCommunicate OK [15:54:31]CreateOFDProtocolMessage done [15:54:31]OFDSenderStorePacket 156345 [15:54:31]StoreOFDPacket docnum=156345 [15:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 7B A4 04 01 5A FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B6 10 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 62 02 00 35 04 06 00 0D CB 8F 8D 31 39 39 63 9E 0D EE B2 1C 3F [15:54:31]CheckFolder [15:54:31]dirname=/storage/ofd_packets [15:54:31]CheckFolder done [15:54:31]ProducePacketName [15:54:31]name=ofd_packets/00156345 [15:54:31]NVStorageSaveData ofd_packets/00156345 [15:54:31]File name is /storage/ofd_packets/00156345 [15:54:31]Write 298 bytes [15:54:31]NVStorageSaveData done [15:54:31]OFDSenderStorePacket done [15:54:31]KKMCreateOFDPacket done [15:54:31]NVStorageSaveData kkm_last_timestamp [15:54:31]File name is /storage/kkm_last_timestamp [15:54:31]Write 4 bytes [15:54:31]NVStorageSaveData done [15:54:31]ExternCall_PrintAddStr [15:54:31]wPrintStart [15:54:31]Write to MH i2c: 01 00 00 6C 12 7E [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 07 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 07 00 6C 12 00 00 00 00 00 FF 0F 93 [15:54:31]RasterBufferAndPrint [15:54:31]line Счет N : (1)99160 [15:54:31]line ИНН: 02508201610067 [15:54:31]line Контрольно-Кассовый Чек [15:54:31]line ПРОДАЖА [15:54:31]line ТРК (МРК, ГНК) : 32 [15:54:31]line Товар: 2710194210 [15:54:31]line ДТ-К-5 [15:54:31]line 10.500 * 76.20 [15:54:31]line = 800.10 [15:54:31]line НДС 12% НСП 1% [15:54:31]line > о реализуемом товаре [15:54:31]line ОКРУГЛЕНИЕ: -0.10 [15:54:31]line ИТОГО: 800.00 [15:54:31]line Внесено: 800.00 [15:54:31]line СДАЧА: 0.00 [15:54:31]line НСП 1% : 7.08 [15:54:31]line НДС 12% : 84.97 [15:54:31]line Наличными: 800.00 [15:54:31]line Безнал.: 0.00 [15:54:31]line Место: АЗС № 143 "Партнер Нефть" [15:54:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:54:31]line СНО: Общий режим [15:54:31]line Чек 246 26.10.2024 15:54 [15:54:31]line Смена: 536 ФФД: 1.0 [15:54:31]line ЗНМ: 0300000096 [15:54:31]line РНМ: 0000000000091693 [15:54:31]line Версия ККМ: 001 [15:54:31]line ФМ: 0000000000871792 [15:54:31]line ФД: 156345 [15:54:31]line ФПД: 15167937917241 [15:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156345&fm=15167937917241&tin=02508201610067®Number=0000000000091693&sum=80000 [15:54:31]OFD Sender: Processing packet 156345 [packets to send 31, broken 30] [15:54:31]ProducePacketName [15:54:31]name=ofd_packets/00156345 [15:54:31]OFD Sender: To server: pG, [15:54:31]CommunicateWithHost lk.salyk.kg:30040 [15:54:31]ConnectInit lk.salyk.kg [15:54:31]written 0, free lines is 4095 [15:54:32]Connected sock=10 [15:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 7B A4 04 01 5A FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B6 10 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 62 02 00 35 04 06 00 0D CB 8F 8D 31 39 39 63 9E 0D EE B2 1C 3F [15:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 60 25 47 00 8E 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 62 02 00 F4 03 04 00 29 B6 1C 67 B6 04 01 00 00 15 D8 EF EE 94 6C CB 4D [15:54:32]CommunicateWithHost err = 0 [15:54:32]CheckOFDResponse [15:54:32]1017 (14) - 77093643461234 [15:54:32]1041 (16) - 0000000000871792 [15:54:32]1040 (4) - 156345 [15:54:32]1012 (4) - 26.10.2024 09:28 [15:54:32]1206 (1) - 0 [15:54:32]OFD Sender: Remove packet 156345 [15:54:32]ProducePacketName [15:54:32]name=ofd_packets/00156345 [15:54:32]NVStorageDeleteData [15:54:32]Write to MH i2c: 01 00 00 97 12 A9 [15:54:32]Write i2c OK [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: 01 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: 01 07 00 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: 01 07 00 97 12 00 00 00 00 00 D0 0C 8C [15:54:32]RasterBufferAndPrint [15:54:32]line [15:54:32]line [15:54:32]line [15:54:32]line [15:54:32]line [15:54:32]written 0, free lines is 3287 [15:54:32]process_action close_receipt done [15:54:32]requested_data is exist [15:54:32]produce_requested_data [15:54:32]requested_item fm.sn is exist - process it [15:54:32]wFMCommunicate request_size=4 [15:54:32]MH_SAM_APDU [15:54:32]CAPDU: 80 11 00 00 [15:54:32]Write to MH i2c: E2 08 00 9E 12 80 11 00 00 00 00 00 00 2A [15:54:32]Write i2c OK [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 [15:54:32]MH_I2C_Read... [15:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:32]Read from MH i2c: E2 17 00 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 17 00 9E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [15:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:54:32]wFMCommunicate OK [15:54:32]requested_item fd.num is exist - process it [15:54:32]SAM_PROTO_GetFieldsCounters [15:54:32]wFMCommunicate request_size=4 [15:54:32]MH_SAM_APDU [15:54:32]CAPDU: 80 13 00 00 [15:54:32]Write to MH i2c: E2 08 00 9F 12 80 13 00 00 00 00 00 00 2D [15:54:32]Write i2c OK [15:54:32]MH_I2C_Read... [15:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:32]Read from MH i2c: E2 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 62 00 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 62 00 9F 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [15:54:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:32]wFMCommunicate OK [15:54:32]SAM_PROTO_GetFieldsCounters done [15:54:32]requested_item shift.num is exist - process it [15:54:32]requested_item shift.opened is exist - process it [15:54:32]req_shift_opened [15:54:32]FM_GetShiftState [15:54:32]SAM_PROTO_GetShiftState [15:54:32]wFMCommunicate request_size=4 [15:54:32]MH_SAM_APDU [15:54:32]CAPDU: 80 13 01 00 [15:54:32]Write to MH i2c: E2 08 00 A0 12 80 13 01 00 00 00 00 00 2F [15:54:32]Write i2c OK [15:54:32]MH_I2C_Read... [15:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:32]Read from MH i2c: E2 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 0E 00 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 0E 00 A0 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 64 [15:54:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:54:32]wFMCommunicate OK [15:54:32]SAM_PROTO_GetShiftState done [15:54:32]FM_GetShiftState done [15:54:32]req_shift_opened done [15:54:32]requested_item shift.open_date is exist - process it [15:54:32]req_shift_open_date [15:54:32]req_shift_open_date done [15:54:32]produce_requested_data done [15:54:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156345,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:54:32]process_action_free close_receipt [15:54:32]json_value_free [15:54:32]json_value_free done [15:54:32]process_json_proto returns [15:54:32]Send response to host [15:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156345,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:54:32]free response buf [15:54:32]execute_script done [15:54:32]execute_script returns [15:54:32]free content buf [15:54:32]Sock 8.Close socket [15:54:32]Sock 8.Thread stoped [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:09]accept exits with 9 [15:56:09]New connection [15:56:09]New thread 3066834276 created [15:56:09]Thread 3066977636 joined [15:56:09]Waiting for new connection... [15:56:09] Sock 9.Parse request [15:56:09]Sock 9.Check first char [15:56:09]Sock 9.First char is OK [15:56:09]request: POST /json_proto HTTP/1.0 [15:56:09]Method: POST [15:56:09]URL: /json_proto [15:56:09]Method is POST - this is cgi request [15:56:09]url: /json_proto [15:56:09]query_string will be loaded in cgi processing [15:56:09]execute_cgi json_proto POST (null) [15:56:09]execute_cgi path=json_proto method=POST [15:56:09]POST find Content-Length [15:56:09]Host: 172.17.63.3:8080 [15:56:09]Content-Length: 676 [15:56:09]Content-Type: application/json [15:56:09] [15:56:09]POST finish read [15:56:09]Found Content-Length = 676 [15:56:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:09]execute_script... [15:56:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:09]POST & json_proto [15:56:09]process_json_proto [15:56:09]json parsed OK: [15:56:09]protocol is kg_v1.0 [15:56:09]action value=close_receipt [15:56:09]process_action close_receipt [15:56:09]cmd_close_receipt [15:56:09]MH_GetDate [15:56:09]Write to MH i2c: F0 00 00 A1 12 A2 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: F0 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: F0 09 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: F0 09 00 A1 12 00 1A 11 1D 67 50 D1 6C 64 4B [15:56:09]GetLastDocTimeStamp 1729958070 [15:56:09]current date 1729958170 [15:56:09]FM_GetShiftState [15:56:09]SAM_PROTO_GetShiftState [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 13 01 00 [15:56:09]Write to MH i2c: E2 08 00 A2 12 80 13 01 00 00 00 00 00 31 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 0E 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 0E 00 A2 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 66 [15:56:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:56:09]wFMCommunicate OK [15:56:09]SAM_PROTO_GetShiftState done [15:56:09]FM_GetShiftState done [15:56:09]opened in 1729902702 [15:56:09]opened+sec_in_day 1729989102 [15:56:09]quantity*price = 20003 [15:56:09]sum+1 = 20004 [15:56:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 247 26.10.2024 15:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156346 ФПД: 24688111019968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155610&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156346&fm=24688111019968&tin=02508201610067®Number=0000000000091693&sum=20000 [15:56:10]StoreToDocumentArchive [15:56:10]shift 536 fd 156346 [15:56:10]save to /storage/0536/doc_00156346 [15:56:10]save last doc name /storage/0536/doc_00156346 to /storage/kkm_last_doc_name [15:56:10]save OK [15:56:10]Clear old archive folders... [15:56:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:10]tlvbuf is B6EE0350 [15:56:10]SAM_PROTO_ClearQueue [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 09 00 00 [15:56:10]Write to MH i2c: E2 08 00 AF 12 80 09 00 00 00 00 00 00 33 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 AF 12 00 90 00 35 [15:56:10]RAPDU: 90 00 [15:56:10]wFMCommunicate OK [15:56:10]SAM_PROTO_ClearQueue done [15:56:10]KKMCreateOFDPacket [15:56:10]OFDProtocolAddRootSTLVToBuf [15:56:10]FM_MakeSignedData [15:56:10]FM_MakeSignedData [15:56:10]SAM_PROTO_SignData [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 0D 01 02 [15:56:10]Write to MH i2c: E2 08 00 B0 12 80 0D 01 02 00 00 00 00 3B [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 B0 12 00 90 00 36 [15:56:10]RAPDU: 90 00 [15:56:10]wFMCommunicate OK [15:56:10]wFMCommunicate request_size=255 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 1A 11 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 62 02 00 35 04 06 00 16 [15:56:10]Write to MH i2c: E2 02 01 B1 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 1A 11 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 62 02 00 35 04 06 00 16 00 00 85 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [15:56:10]RAPDU: 90 00 [15:56:10]wFMCommunicate OK [15:56:10]wFMCommunicate request_size=10 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 0D 02 02 05 74 26 16 67 C0 [15:56:10]Write to MH i2c: E2 0D 00 B2 12 80 0D 02 02 05 00 74 26 16 67 C0 00 00 1F [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [15:56:10]RAPDU: 90 00 [15:56:10]wFMCommunicate OK [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 0D 03 02 [15:56:10]Write to MH i2c: E2 08 00 B3 12 80 0D 03 02 00 00 00 00 40 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 0B 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 0B 00 B3 12 00 51 E2 D2 F2 76 EA 24 2D 90 00 E9 [15:56:10]RAPDU: 51 E2 D2 F2 76 EA 24 2D 90 00 [15:56:10]wFMCommunicate OK [15:56:10]SAM_PROTO_SignData done [15:56:10]FM_MakeSignedData done [15:56:10]CreateOFDProtocolMessage [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 11 00 00 [15:56:10]Write to MH i2c: E2 08 00 B4 12 80 11 00 00 00 00 00 00 40 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 17 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 17 00 B4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 95 [15:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:56:10]wFMCommunicate OK [15:56:10]CreateOFDProtocolMessage done [15:56:10]OFDSenderStorePacket 156346 [15:56:10]StoreOFDPacket docnum=156346 [15:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 51 07 01 31 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 1A 11 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 62 02 00 35 04 06 00 16 74 26 16 67 C0 51 E2 D2 F2 76 EA 24 2D [15:56:10]CheckFolder [15:56:10]dirname=/storage/ofd_packets [15:56:10]CheckFolder done [15:56:10]ProducePacketName [15:56:10]name=ofd_packets/00156346 [15:56:10]NVStorageSaveData ofd_packets/00156346 [15:56:10]File name is /storage/ofd_packets/00156346 [15:56:10]Write 301 bytes [15:56:10]NVStorageSaveData done [15:56:10]OFDSenderStorePacket done [15:56:10]KKMCreateOFDPacket done [15:56:10]NVStorageSaveData kkm_last_timestamp [15:56:10]File name is /storage/kkm_last_timestamp [15:56:10]Write 4 bytes [15:56:10]NVStorageSaveData done [15:56:10]ExternCall_PrintAddStr [15:56:10]wPrintStart [15:56:10]Write to MH i2c: 01 00 00 B5 12 C7 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 FF 0F DC [15:56:10]RasterBufferAndPrint [15:56:10]line Счет N : (1)99161 [15:56:10]line ИНН: 02508201610067 [15:56:10]line Контрольно-Кассовый Чек [15:56:10]line ПРОДАЖА [15:56:10]line ТРК (МРК, ГНК) : 11 [15:56:10]line Товар: 2710124130 [15:56:10]line Аи-92-К-5 [15:56:10]line 2.990 * 66.90 [15:56:10]line = 200.03 [15:56:10]line НДС 12% НСП 1% [15:56:10]line > о реализуемом товаре [15:56:10]line ОКРУГЛЕНИЕ: -0.03 [15:56:10]line ИТОГО: 200.00 [15:56:10]line Внесено: 200.00 [15:56:10]line СДАЧА: 0.00 [15:56:10]line НСП 1% : 1.77 [15:56:10]line НДС 12% : 21.24 [15:56:10]line Наличными: 200.00 [15:56:10]line Безнал.: 0.00 [15:56:10]line Место: АЗС № 143 "Партнер Нефть" [15:56:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:56:10]line СНО: Общий режим [15:56:10]line Чек 247 26.10.2024 15:56 [15:56:10]line Смена: 536 ФФД: 1.0 [15:56:10]line ЗНМ: 0300000096 [15:56:10]line РНМ: 0000000000091693 [15:56:10]line Версия ККМ: 001 [15:56:10]line ФМ: 0000000000871792 [15:56:10]line ФД: 156346 [15:56:10]line ФПД: 24688111019968 [15:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155610&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156346&fm=24688111019968&tin=02508201610067®Number=0000000000091693&sum=20000 [15:56:11]OFD Sender: Processing packet 156346 [packets to send 31, broken 30] [15:56:11]ProducePacketName [15:56:11]name=ofd_packets/00156346 [15:56:11]OFD Sender: To server: pG, [15:56:11]CommunicateWithHost lk.salyk.kg:30040 [15:56:11]ConnectInit lk.salyk.kg [15:56:11]written 0, free lines is 4095 [15:56:11]Connected sock=10 [15:56:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 51 07 01 31 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 1A 11 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 62 02 00 35 04 06 00 16 74 26 16 67 C0 51 E2 D2 F2 76 EA 24 2D [15:56:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2E 58 47 00 5B 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 62 02 00 F4 03 04 00 8C B6 1C 67 B6 04 01 00 00 D8 18 9D EF 0F 29 1E EC [15:56:11]CommunicateWithHost err = 0 [15:56:11]CheckOFDResponse [15:56:11]1017 (14) - 77093643461234 [15:56:11]1041 (16) - 0000000000871792 [15:56:11]1040 (4) - 156346 [15:56:11]1012 (4) - 26.10.2024 09:29 [15:56:11]1206 (1) - 0 [15:56:11]OFD Sender: Remove packet 156346 [15:56:11]ProducePacketName [15:56:11]name=ofd_packets/00156346 [15:56:11]NVStorageDeleteData [15:56:11]Write to MH i2c: 01 00 00 E0 12 F2 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: 01 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: 01 07 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: 01 07 00 E0 12 00 00 00 00 00 E4 0C E9 [15:56:11]RasterBufferAndPrint [15:56:11]line [15:56:11]line [15:56:11]line [15:56:11]line [15:56:11]line [15:56:11]written 0, free lines is 3306 [15:56:11]process_action close_receipt done [15:56:11]requested_data is exist [15:56:11]produce_requested_data [15:56:11]requested_item fm.sn is exist - process it [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 11 00 00 [15:56:11]Write to MH i2c: E2 08 00 E7 12 80 11 00 00 00 00 00 00 73 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 17 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 17 00 E7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C8 [15:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:56:11]wFMCommunicate OK [15:56:11]requested_item fd.num is exist - process it [15:56:11]SAM_PROTO_GetFieldsCounters [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 13 00 00 [15:56:11]Write to MH i2c: E2 08 00 E8 12 80 13 00 00 00 00 00 00 76 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 62 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 62 00 E8 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [15:56: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:11]wFMCommunicate OK [15:56:11]SAM_PROTO_GetFieldsCounters done [15:56:11]requested_item shift.num is exist - process it [15:56:11]requested_item shift.opened is exist - process it [15:56:11]req_shift_opened [15:56:11]FM_GetShiftState [15:56:11]SAM_PROTO_GetShiftState [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 13 01 00 [15:56:11]Write to MH i2c: E2 08 00 E9 12 80 13 01 00 00 00 00 00 78 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:11]Read from MH i2c: E2 0E 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 0E 00 E9 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 AD [15:56:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [15:56:11]wFMCommunicate OK [15:56:11]SAM_PROTO_GetShiftState done [15:56:11]FM_GetShiftState done [15:56:11]req_shift_opened done [15:56:11]requested_item shift.open_date is exist - process it [15:56:11]req_shift_open_date [15:56:11]req_shift_open_date done [15:56:11]produce_requested_data done [15:56:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156346,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [15:56:11]process_action_free close_receipt [15:56:11]json_value_free [15:56:11]json_value_free done [15:56:11]process_json_proto returns [15:56:11]Send response to host [15:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156346,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [15:56:11]free response buf [15:56:11]execute_script done [15:56:11]execute_script returns [15:56:11]free content buf [15:56:11]Sock 9.Close socket [15:56:11]Sock 9.Thread stoped [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:23]accept exits with 8 [16:05:23]New connection [16:05:23]New thread 3066977636 created [16:05:23]Thread 3066834276 joined [16:05:23]Waiting for new connection... [16:05:23] Sock 8.Parse request [16:05:23]Sock 8.Check first char [16:05:23]Sock 8.First char is OK [16:05:23]request: POST /json_proto HTTP/1.0 [16:05:23]Method: POST [16:05:23]URL: /json_proto [16:05:23]Method is POST - this is cgi request [16:05:23]url: /json_proto [16:05:23]query_string will be loaded in cgi processing [16:05:23]execute_cgi json_proto POST (null) [16:05:23]execute_cgi path=json_proto method=POST [16:05:23]POST find Content-Length [16:05:23]Host: 172.17.63.3:8080 [16:05:23]Content-Length: 676 [16:05:23]Content-Type: application/json [16:05:23] [16:05:23]POST finish read [16:05:23]Found Content-Length = 676 [16:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:23]execute_script... [16:05: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)99162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:23]POST & json_proto [16:05:23]process_json_proto [16:05:23]json parsed OK: [16:05:23]protocol is kg_v1.0 [16:05:23]action value=close_receipt [16:05:23]process_action close_receipt [16:05:23]cmd_close_receipt [16:05:23]MH_GetDate [16:05:23]Write to MH i2c: F0 00 00 EA 12 EB [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: F0 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: F0 09 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: F0 09 00 EA 12 00 44 13 1D 67 50 D1 6C 64 C0 [16:05:23]GetLastDocTimeStamp 1729958170 [16:05:23]current date 1729958724 [16:05:23]FM_GetShiftState [16:05:23]SAM_PROTO_GetShiftState [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 13 01 00 [16:05:23]Write to MH i2c: E2 08 00 EB 12 80 13 01 00 00 00 00 00 7A [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0E 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0E 00 EB 12 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 AF [16:05:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:05:23]wFMCommunicate OK [16:05:23]SAM_PROTO_GetShiftState done [16:05:23]FM_GetShiftState done [16:05:23]opened in 1729902702 [16:05:23]opened+sec_in_day 1729989102 [16:05:23]quantity*price = 50041 [16:05:23]sum+1 = 50042 [16:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 248 26.10.2024 16:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156347 ФПД: 274305996509236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160524&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156347&fm=274305996509236&tin=02508201610067®Number=0000000000091693&sum=50000 [16:05:24]StoreToDocumentArchive [16:05:24]shift 536 fd 156347 [16:05:24]save to /storage/0536/doc_00156347 [16:05:24]save last doc name /storage/0536/doc_00156347 to /storage/kkm_last_doc_name [16:05:24]save OK [16:05:24]Clear old archive folders... [16:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:24]tlvbuf is 0167A420 [16:05:24]SAM_PROTO_ClearQueue [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 09 00 00 [16:05:24]Write to MH i2c: E2 08 00 F8 12 80 09 00 00 00 00 00 00 7C [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 F8 12 00 90 00 7E [16:05:24]RAPDU: 90 00 [16:05:24]wFMCommunicate OK [16:05:24]SAM_PROTO_ClearQueue done [16:05:24]KKMCreateOFDPacket [16:05:24]OFDProtocolAddRootSTLVToBuf [16:05:24]FM_MakeSignedData [16:05:24]FM_MakeSignedData [16:05:24]SAM_PROTO_SignData [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 0D 01 02 [16:05:24]Write to MH i2c: E2 08 00 F9 12 80 0D 01 02 00 00 00 00 84 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 F9 12 00 90 00 7F [16:05:24]RAPDU: 90 00 [16:05:24]wFMCommunicate OK [16:05:24]wFMCommunicate request_size=255 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 44 13 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 62 02 00 35 04 06 00 F9 [16:05:24]Write to MH i2c: E2 02 01 FA 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 44 13 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 62 02 00 35 04 06 00 F9 00 00 1D [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 FA 12 00 90 00 80 [16:05:24]RAPDU: 90 00 [16:05:24]wFMCommunicate OK [16:05:24]wFMCommunicate request_size=10 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 0D 02 02 05 7A D7 7B 50 34 [16:05:24]Write to MH i2c: E2 0D 00 FB 12 80 0D 02 02 05 00 7A D7 7B 50 34 00 00 E1 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 03 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 03 00 FB 12 00 90 00 81 [16:05:25]RAPDU: 90 00 [16:05:25]wFMCommunicate OK [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 0D 03 02 [16:05:25]Write to MH i2c: E2 08 00 FC 12 80 0D 03 02 00 00 00 00 89 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 0B 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 0B 00 FC 12 00 5F 3A 7E AD 26 47 4F 23 90 00 2D [16:05:25]RAPDU: 5F 3A 7E AD 26 47 4F 23 90 00 [16:05:25]wFMCommunicate OK [16:05:25]SAM_PROTO_SignData done [16:05:25]FM_MakeSignedData done [16:05:25]CreateOFDProtocolMessage [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 11 00 00 [16:05:25]Write to MH i2c: E2 08 00 FD 12 80 11 00 00 00 00 00 00 89 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 17 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 17 00 FD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DE [16:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:05:25]wFMCommunicate OK [16:05:25]CreateOFDProtocolMessage done [16:05:25]OFDSenderStorePacket 156347 [16:05:25]StoreOFDPacket docnum=156347 [16:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F6 6E 07 01 BB 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 44 13 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 62 02 00 35 04 06 00 F9 7A D7 7B 50 34 5F 3A 7E AD 26 47 4F 23 [16:05:25]CheckFolder [16:05:25]dirname=/storage/ofd_packets [16:05:25]CheckFolder done [16:05:25]ProducePacketName [16:05:25]name=ofd_packets/00156347 [16:05:25]NVStorageSaveData ofd_packets/00156347 [16:05:25]File name is /storage/ofd_packets/00156347 [16:05:25]Write 301 bytes [16:05:25]NVStorageSaveData done [16:05:25]OFDSenderStorePacket done [16:05:25]KKMCreateOFDPacket done [16:05:25]NVStorageSaveData kkm_last_timestamp [16:05:25]File name is /storage/kkm_last_timestamp [16:05:25]Write 4 bytes [16:05:25]NVStorageSaveData done [16:05:25]ExternCall_PrintAddStr [16:05:25]wPrintStart [16:05:25]Write to MH i2c: 01 00 00 FE 12 10 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 FE 12 00 00 00 00 00 FF 0F 25 [16:05:25]RasterBufferAndPrint [16:05:25]line Счет N : (1)99162 [16:05:25]line ИНН: 02508201610067 [16:05:25]line Контрольно-Кассовый Чек [16:05:25]line ПРОДАЖА [16:05:25]line ТРК (МРК, ГНК) : 11 [16:05:25]line Товар: 2710124130 [16:05:25]line Аи-92-К-5 [16:05:25]line 7.480 * 66.90 [16:05:25]line = 500.41 [16:05:25]line НДС 12% НСП 1% [16:05:25]line > о реализуемом товаре [16:05:25]line ОКРУГЛЕНИЕ: -0.41 [16:05:25]line ИТОГО: 500.00 [16:05:25]line Внесено: 500.00 [16:05:25]line СДАЧА: 0.00 [16:05:25]line НСП 1% : 4.43 [16:05:25]line НДС 12% : 53.14 [16:05:25]line Наличными: 500.00 [16:05:25]line Безнал.: 0.00 [16:05:25]line Место: АЗС № 143 "Партнер Нефть" [16:05:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:05:25]line СНО: Общий режим [16:05:25]line Чек 248 26.10.2024 16:05 [16:05:25]line Смена: 536 ФФД: 1.0 [16:05:25]line ЗНМ: 0300000096 [16:05:25]line РНМ: 0000000000091693 [16:05:25]line Версия ККМ: 001 [16:05:25]line ФМ: 0000000000871792 [16:05:25]line ФД: 156347 [16:05:25]line ФПД: 274305996509236 [16:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160524&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156347&fm=274305996509236&tin=02508201610067®Number=0000000000091693&sum=50000 [16:05:25]OFD Sender: Processing packet 156347 [packets to send 31, broken 30] [16:05:25]ProducePacketName [16:05:25]name=ofd_packets/00156347 [16:05:25]OFD Sender: To server: pG, [16:05:25]CommunicateWithHost lk.salyk.kg:30040 [16:05:25]ConnectInit lk.salyk.kg [16:05:25]written 0, free lines is 4095 [16:05:25]Connected sock=10 [16:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F6 6E 07 01 BB 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 44 13 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 62 02 00 35 04 06 00 F9 7A D7 7B 50 34 5F 3A 7E AD 26 47 4F 23 [16:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 18 58 47 00 28 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 62 02 00 F4 03 04 00 B6 B8 1C 67 B6 04 01 00 00 79 DB A3 15 33 AC 4C 1B [16:05:25]CommunicateWithHost err = 0 [16:05:25]CheckOFDResponse [16:05:25]1017 (14) - 77093643461234 [16:05:25]1041 (16) - 0000000000871792 [16:05:25]1040 (4) - 156347 [16:05:25]1012 (4) - 26.10.2024 09:39 [16:05:25]1206 (1) - 0 [16:05:25]OFD Sender: Remove packet 156347 [16:05:25]ProducePacketName [16:05:25]name=ofd_packets/00156347 [16:05:25]NVStorageDeleteData [16:05:25]Write to MH i2c: 01 00 00 29 13 3C [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 29 13 00 00 00 00 00 E4 0C 33 [16:05:25]RasterBufferAndPrint [16:05:25]line [16:05:25]line [16:05:25]line [16:05:25]line [16:05:25]line [16:05:25]written 0, free lines is 3306 [16:05:25]process_action close_receipt done [16:05:25]requested_data is exist [16:05:25]produce_requested_data [16:05:25]requested_item fm.sn is exist - process it [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 11 00 00 [16:05:25]Write to MH i2c: E2 08 00 30 13 80 11 00 00 00 00 00 00 BD [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05: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 30 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 12 [16:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 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 31 13 80 13 00 00 00 00 00 00 C0 [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 31 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16: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 32 13 80 13 01 00 00 00 00 00 C2 [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 32 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F7 [16:05:26]RAPDU: 09 00 01 6E 38 1C 67 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":"0000000000871792","fd.num":156347,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [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":"0000000000871792","fd.num":156347,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [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 8.Close socket [16:05:26]Sock 8.Thread stoped [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:42]accept exits with 9 [16:08:42]New connection [16:08:42]New thread 3066834276 created [16:08:42]Thread 3066977636 joined [16:08:42]Waiting for new connection... [16:08:42] Sock 9.Parse request [16:08:42]Sock 9.Check first char [16:08:42]Sock 9.First char is OK [16:08:42]request: POST /json_proto HTTP/1.0 [16:08:42]Method: POST [16:08:42]URL: /json_proto [16:08:42]Method is POST - this is cgi request [16:08:42]url: /json_proto [16:08:42]query_string will be loaded in cgi processing [16:08:42]execute_cgi json_proto POST (null) [16:08:42]execute_cgi path=json_proto method=POST [16:08:42]POST find Content-Length [16:08:42]Host: 172.17.63.3:8080 [16:08:42]Content-Length: 676 [16:08:42]Content-Type: application/json [16:08:42] [16:08:42]POST finish read [16:08:42]Found Content-Length = 676 [16:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:42]execute_script... [16:08:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:42]POST & json_proto [16:08:42]process_json_proto [16:08:42]json parsed OK: [16:08:42]protocol is kg_v1.0 [16:08:42]action value=close_receipt [16:08:42]process_action close_receipt [16:08:42]cmd_close_receipt [16:08:42]MH_GetDate [16:08:42]Write to MH i2c: F0 00 00 33 13 35 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: F0 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: F0 09 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: F0 09 00 33 13 00 0B 14 1D 67 50 D1 6C 64 D2 [16:08:42]GetLastDocTimeStamp 1729958724 [16:08:42]current date 1729958923 [16:08:42]FM_GetShiftState [16:08:42]SAM_PROTO_GetShiftState [16:08:42]wFMCommunicate request_size=4 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 13 01 00 [16:08:42]Write to MH i2c: E2 08 00 34 13 80 13 01 00 00 00 00 00 C4 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0E 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0E 00 34 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F9 [16:08:42]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:08:42]wFMCommunicate OK [16:08:42]SAM_PROTO_GetShiftState done [16:08:42]FM_GetShiftState done [16:08:42]opened in 1729902702 [16:08:42]opened+sec_in_day 1729989102 [16:08:42]quantity*price = 48034 [16:08:42]sum+1 = 48035 [16:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.01 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 249 26.10.2024 16:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156348 ФПД: 76891000252279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160843&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156348&fm=76891000252279&tin=02508201610067®Number=0000000000091693&sum=48000 [16:08:43]StoreToDocumentArchive [16:08:43]shift 536 fd 156348 [16:08:43]save to /storage/0536/doc_00156348 [16:08:43]save last doc name /storage/0536/doc_00156348 to /storage/kkm_last_doc_name [16:08:43]save OK [16:08:43]Clear old archive folders... [16:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:43]tlvbuf is 016C7200 [16:08:43]SAM_PROTO_ClearQueue [16:08:43]wFMCommunicate request_size=4 [16:08:43]MH_SAM_APDU [16:08:43]CAPDU: 80 09 00 00 [16:08:43]Write to MH i2c: E2 08 00 41 13 80 09 00 00 00 00 00 00 C6 [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:43]Read from MH i2c: E2 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 03 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 03 00 41 13 00 90 00 C8 [16:08:43]RAPDU: 90 00 [16:08:43]wFMCommunicate OK [16:08:43]SAM_PROTO_ClearQueue done [16:08:43]KKMCreateOFDPacket [16:08:43]OFDProtocolAddRootSTLVToBuf [16:08:43]FM_MakeSignedData [16:08:43]FM_MakeSignedData [16:08:43]SAM_PROTO_SignData [16:08:43]wFMCommunicate request_size=4 [16:08:43]MH_SAM_APDU [16:08:43]CAPDU: 80 0D 01 02 [16:08:43]Write to MH i2c: E2 08 00 42 13 80 0D 01 02 00 00 00 00 CE [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:43]Read from MH i2c: E2 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 03 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 03 00 42 13 00 90 00 C9 [16:08:43]RAPDU: 90 00 [16:08:43]wFMCommunicate OK [16:08:43]wFMCommunicate request_size=255 [16:08:43]MH_SAM_APDU [16:08:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 0B 14 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 62 02 00 35 04 06 00 45 [16:08:43]Write to MH i2c: E2 02 01 43 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 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 0B 14 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 62 02 00 35 04 06 00 45 00 00 D9 [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:43]Read from MH i2c: E2 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 03 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 03 00 43 13 00 90 00 CA [16:08:43]RAPDU: 90 00 [16:08:43]wFMCommunicate OK [16:08:43]wFMCommunicate request_size=10 [16:08:43]MH_SAM_APDU [16:08:43]CAPDU: 80 0D 02 02 05 EE 94 C1 A7 77 [16:08:43]Write to MH i2c: E2 0D 00 44 13 80 0D 02 02 05 00 EE 94 C1 A7 77 00 00 3C [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:43]Read from MH i2c: E2 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 03 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [16:08:43]RAPDU: 90 00 [16:08:43]wFMCommunicate OK [16:08:43]wFMCommunicate request_size=4 [16:08:43]MH_SAM_APDU [16:08:43]CAPDU: 80 0D 03 02 [16:08:43]Write to MH i2c: E2 08 00 45 13 80 0D 03 02 00 00 00 00 D3 [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:43]Read from MH i2c: E2 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 0B 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 0B 00 45 13 00 C8 D2 89 11 54 42 01 34 90 00 D3 [16:08:43]RAPDU: C8 D2 89 11 54 42 01 34 90 00 [16:08:43]wFMCommunicate OK [16:08:43]SAM_PROTO_SignData done [16:08:43]FM_MakeSignedData done [16:08:43]CreateOFDProtocolMessage [16:08:43]wFMCommunicate request_size=4 [16:08:43]MH_SAM_APDU [16:08:43]CAPDU: 80 11 00 00 [16:08:43]Write to MH i2c: E2 08 00 46 13 80 11 00 00 00 00 00 00 D3 [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:43]Read from MH i2c: E2 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 17 00 [16:08:43]MH_I2C_Read... [16:08:43]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 31 37 39 32 90 00 28 [16:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:08:43]wFMCommunicate OK [16:08:43]CreateOFDProtocolMessage done [16:08:43]OFDSenderStorePacket 156348 [16:08:43]StoreOFDPacket docnum=156348 [16:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FF 51 07 01 7E 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 0B 14 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 62 02 00 35 04 06 00 45 EE 94 C1 A7 77 C8 D2 89 11 54 42 01 34 [16:08:43]CheckFolder [16:08:43]dirname=/storage/ofd_packets [16:08:43]CheckFolder done [16:08:43]ProducePacketName [16:08:43]name=ofd_packets/00156348 [16:08:43]NVStorageSaveData ofd_packets/00156348 [16:08:43]File name is /storage/ofd_packets/00156348 [16:08:43]Write 301 bytes [16:08:43]NVStorageSaveData done [16:08:43]OFDSenderStorePacket done [16:08:43]KKMCreateOFDPacket done [16:08:43]NVStorageSaveData kkm_last_timestamp [16:08:43]File name is /storage/kkm_last_timestamp [16:08:43]Write 4 bytes [16:08:43]NVStorageSaveData done [16:08:43]ExternCall_PrintAddStr [16:08:43]wPrintStart [16:08:43]Write to MH i2c: 01 00 00 47 13 5A [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: 01 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: 01 07 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: 01 07 00 47 13 00 00 00 00 00 FF 0F 6F [16:08:43]RasterBufferAndPrint [16:08:43]line Счет N : (1)99163 [16:08:43]line ИНН: 02508201610067 [16:08:43]line Контрольно-Кассовый Чек [16:08:43]line ПРОДАЖА [16:08:43]line ТРК (МРК, ГНК) : 31 [16:08:43]line Товар: 2710124130 [16:08:43]line Аи-92-К-5 [16:08:43]line 7.180 * 66.90 [16:08:43]line = 480.34 [16:08:43]line НДС 12% НСП 1% [16:08:43]line > о реализуемом товаре [16:08:43]line ОКРУГЛЕНИЕ: -0.34 [16:08:43]line ИТОГО: 480.00 [16:08:43]line Внесено: 480.00 [16:08:43]line СДАЧА: 0.00 [16:08:43]line НСП 1% : 4.25 [16:08:43]line НДС 12% : 51.01 [16:08:43]line Наличными: 480.00 [16:08:43]line Безнал.: 0.00 [16:08:43]line Место: АЗС № 143 "Партнер Нефть" [16:08:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:08:43]line СНО: Общий режим [16:08:43]line Чек 249 26.10.2024 16:08 [16:08:43]line Смена: 536 ФФД: 1.0 [16:08:43]line ЗНМ: 0300000096 [16:08:43]line РНМ: 0000000000091693 [16:08:43]line Версия ККМ: 001 [16:08:43]line ФМ: 0000000000871792 [16:08:43]line ФД: 156348 [16:08:43]line ФПД: 76891000252279 [16:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160843&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156348&fm=76891000252279&tin=02508201610067®Number=0000000000091693&sum=48000 [16:08:44]OFD Sender: Processing packet 156348 [packets to send 31, broken 30] [16:08:44]ProducePacketName [16:08:44]name=ofd_packets/00156348 [16:08:44]OFD Sender: To server: pG, [16:08:44]CommunicateWithHost lk.salyk.kg:30040 [16:08:44]ConnectInit lk.salyk.kg [16:08:44]written 0, free lines is 4095 [16:08:44]Connected sock=10 [16:08:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FF 51 07 01 7E 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 0B 14 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 62 02 00 35 04 06 00 45 EE 94 C1 A7 77 C8 D2 89 11 54 42 01 34 [16:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 79 D2 47 00 63 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 31 37 39 32 10 04 04 00 BC 62 02 00 F4 03 04 00 7D B9 1C 67 B6 04 01 00 00 7A AE 55 05 4B 68 AE 25 [16:08:44]CommunicateWithHost err = 0 [16:08:44]CheckOFDResponse [16:08:44]1017 (14) - 77093643461234 [16:08:44]1041 (16) - 0000000000871792 [16:08:44]1040 (4) - 156348 [16:08:44]1012 (4) - 26.10.2024 09:42 [16:08:44]1206 (1) - 0 [16:08:44]OFD Sender: Remove packet 156348 [16:08:44]ProducePacketName [16:08:44]name=ofd_packets/00156348 [16:08:44]NVStorageDeleteData [16:08:44]Write to MH i2c: 01 00 00 72 13 85 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 07 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 07 00 72 13 00 00 00 00 00 EA 0C 82 [16:08:44]RasterBufferAndPrint [16:08:44]line [16:08:44]line [16:08:44]line [16:08:44]line [16:08:44]line [16:08:44]written 0, free lines is 3312 [16:08:44]process_action close_receipt done [16:08:44]requested_data is exist [16:08:44]produce_requested_data [16:08:44]requested_item fm.sn is exist - process it [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 11 00 00 [16:08:44]Write to MH i2c: E2 08 00 79 13 80 11 00 00 00 00 00 00 06 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 17 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 17 00 79 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5B [16:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:08:44]wFMCommunicate OK [16:08:44]requested_item fd.num is exist - process it [16:08:44]SAM_PROTO_GetFieldsCounters [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 13 00 00 [16:08:44]Write to MH i2c: E2 08 00 7A 13 80 13 00 00 00 00 00 00 09 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 62 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 62 00 7A 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [16:08:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:44]wFMCommunicate OK [16:08:44]SAM_PROTO_GetFieldsCounters done [16:08:44]requested_item shift.num is exist - process it [16:08:44]requested_item shift.opened is exist - process it [16:08:44]req_shift_opened [16:08:44]FM_GetShiftState [16:08:44]SAM_PROTO_GetShiftState [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 13 01 00 [16:08:44]Write to MH i2c: E2 08 00 7B 13 80 13 01 00 00 00 00 00 0B [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:45]Read from MH i2c: E2 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: E2 0E 00 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: E2 0E 00 7B 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 40 [16:08:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:08:45]wFMCommunicate OK [16:08:45]SAM_PROTO_GetShiftState done [16:08:45]FM_GetShiftState done [16:08:45]req_shift_opened done [16:08:45]requested_item shift.open_date is exist - process it [16:08:45]req_shift_open_date [16:08:45]req_shift_open_date done [16:08:45]produce_requested_data done [16:08:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156348,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:08:45]process_action_free close_receipt [16:08:45]json_value_free [16:08:45]json_value_free done [16:08:45]process_json_proto returns [16:08:45]Send response to host [16:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156348,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:08:45]free response buf [16:08:45]execute_script done [16:08:45]execute_script returns [16:08:45]free content buf [16:08:45]Sock 9.Close socket [16:08:45]Sock 9.Thread stoped [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:51]accept exits with 8 [16:12:51]New connection [16:12:51]New thread 3066977636 created [16:12:51]Thread 3066834276 joined [16:12:51]Waiting for new connection... [16:12:51] Sock 8.Parse request [16:12:51]Sock 8.Check first char [16:12:51]Sock 8.First char is OK [16:12:51]request: POST /json_proto HTTP/1.0 [16:12:51]Method: POST [16:12:51]URL: /json_proto [16:12:51]Method is POST - this is cgi request [16:12:51]url: /json_proto [16:12:51]query_string will be loaded in cgi processing [16:12:51]execute_cgi json_proto POST (null) [16:12:51]execute_cgi path=json_proto method=POST [16:12:51]POST find Content-Length [16:12:51]Host: 172.17.63.3:8080 [16:12:51]Content-Length: 676 [16:12:51]Content-Type: application/json [16:12:51] [16:12:51]POST finish read [16:12:51]Found Content-Length = 676 [16:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:51]execute_script... [16:12:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:51]POST & json_proto [16:12:51]process_json_proto [16:12:51]json parsed OK: [16:12:51]protocol is kg_v1.0 [16:12:51]action value=close_receipt [16:12:51]process_action close_receipt [16:12:51]cmd_close_receipt [16:12:51]MH_GetDate [16:12:51]Write to MH i2c: F0 00 00 7C 13 7E [16:12:51]Write i2c OK [16:12:51]MH_I2C_Read... [16:12:51]Read from MH i2c: F0 [16:12:51]MH_I2C_Read... [16:12:51]Read from MH i2c: F0 09 00 [16:12:51]MH_I2C_Read... [16:12:51]Read from MH i2c: F0 09 00 7C 13 00 04 15 1D 67 50 D1 6C 64 15 [16:12:51]GetLastDocTimeStamp 1729958923 [16:12:51]current date 1729959172 [16:12:51]FM_GetShiftState [16:12:51]SAM_PROTO_GetShiftState [16:12:51]wFMCommunicate request_size=4 [16:12:51]MH_SAM_APDU [16:12:51]CAPDU: 80 13 01 00 [16:12:51]Write to MH i2c: E2 08 00 7D 13 80 13 01 00 00 00 00 00 0D [16:12:51]Write i2c OK [16:12:51]MH_I2C_Read... [16:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:51]Read from MH i2c: E2 [16:12:51]MH_I2C_Read... [16:12:51]Read from MH i2c: E2 0E 00 [16:12:51]MH_I2C_Read... [16:12:51]Read from MH i2c: E2 0E 00 7D 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 42 [16:12:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:12:51]wFMCommunicate OK [16:12:51]SAM_PROTO_GetShiftState done [16:12:51]FM_GetShiftState done [16:12:51]opened in 1729902702 [16:12:51]opened+sec_in_day 1729989102 [16:12:51]quantity*price = 50041 [16:12:51]sum+1 = 50042 [16:12:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 250 26.10.2024 16:12 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156349 ФПД: 72217220664966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161252&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156349&fm=72217220664966&tin=02508201610067®Number=0000000000091693&sum=50000 [16:12:52]StoreToDocumentArchive [16:12:52]shift 536 fd 156349 [16:12:52]save to /storage/0536/doc_00156349 [16:12:52]save last doc name /storage/0536/doc_00156349 to /storage/kkm_last_doc_name [16:12:52]save OK [16:12:52]Clear old archive folders... [16:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:52]tlvbuf is 016E4520 [16:12:52]SAM_PROTO_ClearQueue [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 09 00 00 [16:12:52]Write to MH i2c: E2 08 00 8A 13 80 09 00 00 00 00 00 00 0F [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 8A 13 00 90 00 11 [16:12:52]RAPDU: 90 00 [16:12:52]wFMCommunicate OK [16:12:52]SAM_PROTO_ClearQueue done [16:12:52]KKMCreateOFDPacket [16:12:52]OFDProtocolAddRootSTLVToBuf [16:12:52]FM_MakeSignedData [16:12:52]FM_MakeSignedData [16:12:52]SAM_PROTO_SignData [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 0D 01 02 [16:12:52]Write to MH i2c: E2 08 00 8B 13 80 0D 01 02 00 00 00 00 17 [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 8B 13 00 90 00 12 [16:12:52]RAPDU: 90 00 [16:12:52]wFMCommunicate OK [16:12:52]wFMCommunicate request_size=255 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 04 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 62 02 00 35 04 06 00 41 [16:12:52]Write to MH i2c: E2 02 01 8C 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 04 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 62 02 00 35 04 06 00 41 00 00 BE [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 8C 13 00 90 00 13 [16:12:52]RAPDU: 90 00 [16:12:52]wFMCommunicate OK [16:12:52]wFMCommunicate request_size=10 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 0D 02 02 05 AE 61 C8 CE 86 [16:12:52]Write to MH i2c: E2 0D 00 8D 13 80 0D 02 02 05 00 AE 61 C8 CE 86 00 00 4F [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 8D 13 00 90 00 14 [16:12:52]RAPDU: 90 00 [16:12:52]wFMCommunicate OK [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 0D 03 02 [16:12:52]Write to MH i2c: E2 08 00 8E 13 80 0D 03 02 00 00 00 00 1C [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 0B 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 0B 00 8E 13 00 B3 4D B3 83 9A B8 2B AB 90 00 7B [16:12:52]RAPDU: B3 4D B3 83 9A B8 2B AB 90 00 [16:12:52]wFMCommunicate OK [16:12:52]SAM_PROTO_SignData done [16:12:52]FM_MakeSignedData done [16:12:52]CreateOFDProtocolMessage [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 11 00 00 [16:12:52]Write to MH i2c: E2 08 00 8F 13 80 11 00 00 00 00 00 00 1C [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 17 00 [16:12:52]MH_I2C_Read... [16:12:53]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 31 37 39 32 90 00 71 [16:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:12:53]wFMCommunicate OK [16:12:53]CreateOFDProtocolMessage done [16:12:53]OFDSenderStorePacket 156349 [16:12:53]StoreOFDPacket docnum=156349 [16:12:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DC 8D 07 01 4E 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 04 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 62 02 00 35 04 06 00 41 AE 61 C8 CE 86 B3 4D B3 83 9A B8 2B AB [16:12:53]CheckFolder [16:12:53]dirname=/storage/ofd_packets [16:12:53]CheckFolder done [16:12:53]ProducePacketName [16:12:53]name=ofd_packets/00156349 [16:12:53]NVStorageSaveData ofd_packets/00156349 [16:12:53]File name is /storage/ofd_packets/00156349 [16:12:53]Write 301 bytes [16:12:53]NVStorageSaveData done [16:12:53]OFDSenderStorePacket done [16:12:53]KKMCreateOFDPacket done [16:12:53]NVStorageSaveData kkm_last_timestamp [16:12:53]File name is /storage/kkm_last_timestamp [16:12:53]Write 4 bytes [16:12:53]NVStorageSaveData done [16:12:53]ExternCall_PrintAddStr [16:12:53]wPrintStart [16:12:53]Write to MH i2c: 01 00 00 90 13 A3 [16:12:53]Write i2c OK [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 07 00 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 07 00 90 13 00 00 00 00 00 FF 0F B8 [16:12:53]RasterBufferAndPrint [16:12:53]line Счет N : (1)99164 [16:12:53]line ИНН: 02508201610067 [16:12:53]line Контрольно-Кассовый Чек [16:12:53]line ПРОДАЖА [16:12:53]line ТРК (МРК, ГНК) : 11 [16:12:53]line Товар: 2710124130 [16:12:53]line Аи-92-К-5 [16:12:53]line 7.480 * 66.90 [16:12:53]line = 500.41 [16:12:53]line НДС 12% НСП 1% [16:12:53]line > о реализуемом товаре [16:12:53]line ОКРУГЛЕНИЕ: -0.41 [16:12:53]line ИТОГО: 500.00 [16:12:53]line Внесено: 500.00 [16:12:53]line СДАЧА: 0.00 [16:12:53]line НСП 1% : 4.43 [16:12:53]line НДС 12% : 53.14 [16:12:53]line Наличными: 500.00 [16:12:53]line Безнал.: 0.00 [16:12:53]line Место: АЗС № 143 "Партнер Нефть" [16:12:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:12:53]line СНО: Общий режим [16:12:53]line Чек 250 26.10.2024 16:12 [16:12:53]line Смена: 536 ФФД: 1.0 [16:12:53]line ЗНМ: 0300000096 [16:12:53]line РНМ: 0000000000091693 [16:12:53]line Версия ККМ: 001 [16:12:53]line ФМ: 0000000000871792 [16:12:53]line ФД: 156349 [16:12:53]line ФПД: 72217220664966 [16:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161252&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156349&fm=72217220664966&tin=02508201610067®Number=0000000000091693&sum=50000 [16:12:53]OFD Sender: Processing packet 156349 [packets to send 31, broken 30] [16:12:53]ProducePacketName [16:12:53]name=ofd_packets/00156349 [16:12:53]OFD Sender: To server: pG, [16:12:53]CommunicateWithHost lk.salyk.kg:30040 [16:12:53]ConnectInit lk.salyk.kg [16:12:53]written 0, free lines is 4095 [16:12:53]Connected sock=10 [16:12:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DC 8D 07 01 4E 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 04 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 62 02 00 35 04 06 00 41 AE 61 C8 CE 86 B3 4D B3 83 9A B8 2B AB [16:12:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C7 8E 47 00 AB F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 62 02 00 F4 03 04 00 76 BA 1C 67 B6 04 01 00 00 EC DE 0C 05 A5 20 72 3C [16:12:53]CommunicateWithHost err = 0 [16:12:53]CheckOFDResponse [16:12:53]1017 (14) - 77093643461234 [16:12:53]1041 (16) - 0000000000871792 [16:12:53]1040 (4) - 156349 [16:12:53]1012 (4) - 26.10.2024 09:46 [16:12:53]1206 (1) - 0 [16:12:53]OFD Sender: Remove packet 156349 [16:12:53]ProducePacketName [16:12:53]name=ofd_packets/00156349 [16:12:53]NVStorageDeleteData [16:12:53]Write to MH i2c: 01 00 00 BB 13 CE [16:12:53]Write i2c OK [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 07 00 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 07 00 BB 13 00 00 00 00 00 D4 0C B5 [16:12:53]RasterBufferAndPrint [16:12:53]line [16:12:53]line [16:12:53]line [16:12:53]line [16:12:53]line [16:12:53]written 0, free lines is 3292 [16:12:53]process_action close_receipt done [16:12:53]requested_data is exist [16:12:53]produce_requested_data [16:12:53]requested_item fm.sn is exist - process it [16:12:53]wFMCommunicate request_size=4 [16:12:53]MH_SAM_APDU [16:12:53]CAPDU: 80 11 00 00 [16:12:53]Write to MH i2c: E2 08 00 C2 13 80 11 00 00 00 00 00 00 4F [16:12:53]Write i2c OK [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: E2 [16:12:53]MH_I2C_Read... [16:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:53]Read from MH i2c: E2 17 00 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: E2 17 00 C2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A4 [16:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:12:53]wFMCommunicate OK [16:12:53]requested_item fd.num is exist - process it [16:12:53]SAM_PROTO_GetFieldsCounters [16:12:53]wFMCommunicate request_size=4 [16:12:53]MH_SAM_APDU [16:12:53]CAPDU: 80 13 00 00 [16:12:53]Write to MH i2c: E2 08 00 C3 13 80 13 00 00 00 00 00 00 52 [16:12:53]Write i2c OK [16:12:53]MH_I2C_Read... [16:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:54]Read from MH i2c: E2 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 62 00 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 62 00 C3 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [16:12: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:54]wFMCommunicate OK [16:12:54]SAM_PROTO_GetFieldsCounters done [16:12:54]requested_item shift.num is exist - process it [16:12:54]requested_item shift.opened is exist - process it [16:12:54]req_shift_opened [16:12:54]FM_GetShiftState [16:12:54]SAM_PROTO_GetShiftState [16:12:54]wFMCommunicate request_size=4 [16:12:54]MH_SAM_APDU [16:12:54]CAPDU: 80 13 01 00 [16:12:54]Write to MH i2c: E2 08 00 C4 13 80 13 01 00 00 00 00 00 54 [16:12:54]Write i2c OK [16:12:54]MH_I2C_Read... [16:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:54]Read from MH i2c: E2 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 0E 00 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 0E 00 C4 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 89 [16:12:54]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:12:54]wFMCommunicate OK [16:12:54]SAM_PROTO_GetShiftState done [16:12:54]FM_GetShiftState done [16:12:54]req_shift_opened done [16:12:54]requested_item shift.open_date is exist - process it [16:12:54]req_shift_open_date [16:12:54]req_shift_open_date done [16:12:54]produce_requested_data done [16:12:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156349,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:12:54]process_action_free close_receipt [16:12:54]json_value_free [16:12:54]json_value_free done [16:12:54]process_json_proto returns [16:12:54]Send response to host [16:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156349,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:12:54]free response buf [16:12:54]execute_script done [16:12:54]execute_script returns [16:12:54]free content buf [16:12:54]Sock 8.Close socket [16:12:54]Sock 8.Thread stoped [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:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:40]accept exits with 9 [16:14:40]New connection [16:14:40]New thread 3066834276 created [16:14:40]Thread 3066977636 joined [16:14:40]Waiting for new connection... [16:14:40] Sock 9.Parse request [16:14:40]Sock 9.Check first char [16:14:40]Sock 9.First char is OK [16:14:40]request: POST /json_proto HTTP/1.0 [16:14:40]Method: POST [16:14:40]URL: /json_proto [16:14:40]Method is POST - this is cgi request [16:14:40]url: /json_proto [16:14:40]query_string will be loaded in cgi processing [16:14:40]execute_cgi json_proto POST (null) [16:14:40]execute_cgi path=json_proto method=POST [16:14:40]POST find Content-Length [16:14:40]Host: 172.17.63.3:8080 [16:14:40]Content-Length: 676 [16:14:40]Content-Type: application/json [16:14:40] [16:14:40]POST finish read [16:14:40]Found Content-Length = 676 [16:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:40]execute_script... [16:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:40]POST & json_proto [16:14:40]process_json_proto [16:14:40]json parsed OK: [16:14:40]protocol is kg_v1.0 [16:14:40]action value=close_receipt [16:14:40]process_action close_receipt [16:14:40]cmd_close_receipt [16:14:40]MH_GetDate [16:14:40]Write to MH i2c: F0 00 00 C5 13 C7 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: F0 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: F0 09 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: F0 09 00 C5 13 00 71 15 1D 67 50 D1 6C 64 CB [16:14:40]GetLastDocTimeStamp 1729959172 [16:14:40]current date 1729959281 [16:14:40]FM_GetShiftState [16:14:40]SAM_PROTO_GetShiftState [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 13 01 00 [16:14:40]Write to MH i2c: E2 08 00 C6 13 80 13 01 00 00 00 00 00 56 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 0E 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 0E 00 C6 13 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8B [16:14:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:14:40]wFMCommunicate OK [16:14:40]SAM_PROTO_GetShiftState done [16:14:40]FM_GetShiftState done [16:14:40]opened in 1729902702 [16:14:40]opened+sec_in_day 1729989102 [16:14:40]quantity*price = 50041 [16:14:40]sum+1 = 50042 [16:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 251 26.10.2024 16:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156350 ФПД: 221332737064122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161441&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156350&fm=221332737064122&tin=02508201610067®Number=0000000000091693&sum=50000 [16:14:41]StoreToDocumentArchive [16:14:41]shift 536 fd 156350 [16:14:41]save to /storage/0536/doc_00156350 [16:14:41]save last doc name /storage/0536/doc_00156350 to /storage/kkm_last_doc_name [16:14:41]save OK [16:14:41]Clear old archive folders... [16:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:41]tlvbuf is 0172C2B0 [16:14:41]SAM_PROTO_ClearQueue [16:14:41]wFMCommunicate request_size=4 [16:14:41]MH_SAM_APDU [16:14:41]CAPDU: 80 09 00 00 [16:14:41]Write to MH i2c: E2 08 00 D3 13 80 09 00 00 00 00 00 00 58 [16:14:41]Write i2c OK [16:14:41]MH_I2C_Read... [16:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:41]Read from MH i2c: E2 [16:14:41]MH_I2C_Read... [16:14:41]Read from MH i2c: E2 03 00 [16:14:41]MH_I2C_Read... [16:14:41]Read from MH i2c: E2 03 00 D3 13 00 90 00 5A [16:14:41]RAPDU: 90 00 [16:14:41]wFMCommunicate OK [16:14:41]SAM_PROTO_ClearQueue done [16:14:41]KKMCreateOFDPacket [16:14:41]OFDProtocolAddRootSTLVToBuf [16:14:41]FM_MakeSignedData [16:14:41]FM_MakeSignedData [16:14:41]SAM_PROTO_SignData [16:14:41]wFMCommunicate request_size=4 [16:14:41]MH_SAM_APDU [16:14:41]CAPDU: 80 0D 01 02 [16:14:41]Write to MH i2c: E2 08 00 D4 13 80 0D 01 02 00 00 00 00 60 [16:14:41]Write i2c OK [16:14:41]MH_I2C_Read... [16:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 03 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 03 00 D4 13 00 90 00 5B [16:14:42]RAPDU: 90 00 [16:14:42]wFMCommunicate OK [16:14:42]wFMCommunicate request_size=255 [16:14:42]MH_SAM_APDU [16:14:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 71 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 62 02 00 35 04 06 00 C9 [16:14:42]Write to MH i2c: E2 02 01 D5 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 71 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 62 02 00 35 04 06 00 C9 00 00 FE [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 03 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [16:14:42]RAPDU: 90 00 [16:14:42]wFMCommunicate OK [16:14:42]wFMCommunicate request_size=10 [16:14:42]MH_SAM_APDU [16:14:42]CAPDU: 80 0D 02 02 05 4D 0B 2B 7C BA [16:14:42]Write to MH i2c: E2 0D 00 D6 13 80 0D 02 02 05 00 4D 0B 2B 7C BA 00 00 26 [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 03 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 03 00 D6 13 00 90 00 5D [16:14:42]RAPDU: 90 00 [16:14:42]wFMCommunicate OK [16:14:42]wFMCommunicate request_size=4 [16:14:42]MH_SAM_APDU [16:14:42]CAPDU: 80 0D 03 02 [16:14:42]Write to MH i2c: E2 08 00 D7 13 80 0D 03 02 00 00 00 00 65 [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 0B 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 0B 00 D7 13 00 70 91 4D AB 21 4A 3A B6 90 00 BA [16:14:42]RAPDU: 70 91 4D AB 21 4A 3A B6 90 00 [16:14:42]wFMCommunicate OK [16:14:42]SAM_PROTO_SignData done [16:14:42]FM_MakeSignedData done [16:14:42]CreateOFDProtocolMessage [16:14:42]wFMCommunicate request_size=4 [16:14:42]MH_SAM_APDU [16:14:42]CAPDU: 80 11 00 00 [16:14:42]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 17 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 17 00 D8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BA [16:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:14:42]wFMCommunicate OK [16:14:42]CreateOFDProtocolMessage done [16:14:42]OFDSenderStorePacket 156350 [16:14:42]StoreOFDPacket docnum=156350 [16:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A9 3E 07 01 EB 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 71 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 62 02 00 35 04 06 00 C9 4D 0B 2B 7C BA 70 91 4D AB 21 4A 3A B6 [16:14:42]CheckFolder [16:14:42]dirname=/storage/ofd_packets [16:14:42]CheckFolder done [16:14:42]ProducePacketName [16:14:42]name=ofd_packets/00156350 [16:14:42]NVStorageSaveData ofd_packets/00156350 [16:14:42]File name is /storage/ofd_packets/00156350 [16:14:42]Write 301 bytes [16:14:42]NVStorageSaveData done [16:14:42]OFDSenderStorePacket done [16:14:42]KKMCreateOFDPacket done [16:14:42]NVStorageSaveData kkm_last_timestamp [16:14:42]File name is /storage/kkm_last_timestamp [16:14:42]Write 4 bytes [16:14:42]NVStorageSaveData done [16:14:42]OFD Sender: Processing packet 156350 [packets to send 31, broken 30] [16:14:42]ProducePacketName [16:14:42]name=ofd_packets/00156350 [16:14:42]OFD Sender: To server: pG, [16:14:42]CommunicateWithHost lk.salyk.kg:30040 [16:14:42]ConnectInit lk.salyk.kg [16:14:42]ExternCall_PrintAddStr [16:14:42]wPrintStart [16:14:42]Write to MH i2c: 01 00 00 D9 13 EC [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: 01 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: 01 07 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: 01 07 00 D9 13 00 00 00 00 00 FF 0F 01 [16:14:42]RasterBufferAndPrint [16:14:42]line Счет N : (1)99165 [16:14:42]line ИНН: 02508201610067 [16:14:42]line Контрольно-Кассовый Чек [16:14:42]line ПРОДАЖА [16:14:42]line ТРК (МРК, ГНК) : 31 [16:14:42]line Товар: 2710124130 [16:14:42]line Аи-92-К-5 [16:14:42]line 7.480 * 66.90 [16:14:42]line = 500.41 [16:14:42]line НДС 12% НСП 1% [16:14:42]line > о реализуемом товаре [16:14:42]line ОКРУГЛЕНИЕ: -0.41 [16:14:42]line ИТОГО: 500.00 [16:14:42]line Внесено: 500.00 [16:14:42]line СДАЧА: 0.00 [16:14:42]line НСП 1% : 4.43 [16:14:42]line НДС 12% : 53.14 [16:14:42]line Наличными: 500.00 [16:14:42]line Безнал.: 0.00 [16:14:42]line Место: АЗС № 143 "Партнер Нефть" [16:14:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:14:42]line СНО: Общий режим [16:14:42]line Чек 251 26.10.2024 16:14 [16:14:42]line Смена: 536 ФФД: 1.0 [16:14:42]line ЗНМ: 0300000096 [16:14:42]line РНМ: 0000000000091693 [16:14:42]line Версия ККМ: 001 [16:14:42]line ФМ: 0000000000871792 [16:14:42]line ФД: 156350 [16:14:42]line ФПД: 221332737064122 [16:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161441&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156350&fm=221332737064122&tin=02508201610067®Number=0000000000091693&sum=50000 [16:14:42]Connected sock=12 [16:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A9 3E 07 01 EB 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 71 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 62 02 00 35 04 06 00 C9 4D 0B 2B 7C BA 70 91 4D AB 21 4A 3A B6 [16:14:42]written 0, free lines is 4095 [16:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B6 22 47 00 D2 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 62 02 00 F4 03 04 00 E3 BA 1C 67 B6 04 01 00 00 FC 3F D4 61 68 1A 98 B7 [16:14:42]CommunicateWithHost err = 0 [16:14:42]CheckOFDResponse [16:14:42]1017 (14) - 77093643461234 [16:14:42]1041 (16) - 0000000000871792 [16:14:42]1040 (4) - 156350 [16:14:42]1012 (4) - 26.10.2024 09:48 [16:14:42]1206 (1) - 0 [16:14:42]OFD Sender: Remove packet 156350 [16:14:42]ProducePacketName [16:14:42]name=ofd_packets/00156350 [16:14:42]NVStorageDeleteData [16:14:43]Write to MH i2c: 01 00 00 04 14 18 [16:14:43]Write i2c OK [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: 01 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: 01 07 00 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: 01 07 00 04 14 00 00 00 00 00 E0 0C 0B [16:14:43]RasterBufferAndPrint [16:14:43]line [16:14:43]line [16:14:43]line [16:14:43]line [16:14:43]line [16:14:43]written 0, free lines is 3301 [16:14:43]process_action close_receipt done [16:14:43]requested_data is exist [16:14:43]produce_requested_data [16:14:43]requested_item fm.sn is exist - process it [16:14:43]wFMCommunicate request_size=4 [16:14:43]MH_SAM_APDU [16:14:43]CAPDU: 80 11 00 00 [16:14:43]Write to MH i2c: E2 08 00 0B 14 80 11 00 00 00 00 00 00 99 [16:14:43]Write i2c OK [16:14:43]MH_I2C_Read... [16:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:43]Read from MH i2c: E2 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 17 00 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 17 00 0B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [16:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:14:43]wFMCommunicate OK [16:14:43]requested_item fd.num is exist - process it [16:14:43]SAM_PROTO_GetFieldsCounters [16:14:43]wFMCommunicate request_size=4 [16:14:43]MH_SAM_APDU [16:14:43]CAPDU: 80 13 00 00 [16:14:43]Write to MH i2c: E2 08 00 0C 14 80 13 00 00 00 00 00 00 9C [16:14:43]Write i2c OK [16:14:43]MH_I2C_Read... [16:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:43]Read from MH i2c: E2 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 62 00 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 62 00 0C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:14: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:43]wFMCommunicate OK [16:14:43]SAM_PROTO_GetFieldsCounters done [16:14:43]requested_item shift.num is exist - process it [16:14:43]requested_item shift.opened is exist - process it [16:14:43]req_shift_opened [16:14:43]FM_GetShiftState [16:14:43]SAM_PROTO_GetShiftState [16:14:43]wFMCommunicate request_size=4 [16:14:43]MH_SAM_APDU [16:14:43]CAPDU: 80 13 01 00 [16:14:43]Write to MH i2c: E2 08 00 0D 14 80 13 01 00 00 00 00 00 9E [16:14:43]Write i2c OK [16:14:43]MH_I2C_Read... [16:14:43]OFD Sender: No OFD packet to send [16:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:43]Read from MH i2c: E2 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 0E 00 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 0E 00 0D 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D3 [16:14:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:14:43]wFMCommunicate OK [16:14:43]SAM_PROTO_GetShiftState done [16:14:43]FM_GetShiftState done [16:14:43]req_shift_opened done [16:14:43]requested_item shift.open_date is exist - process it [16:14:43]req_shift_open_date [16:14:43]req_shift_open_date done [16:14:43]produce_requested_data done [16:14:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156350,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:14:43]process_action_free close_receipt [16:14:43]json_value_free [16:14:43]json_value_free done [16:14:43]process_json_proto returns [16:14:43]Send response to host [16:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156350,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:14:43]free response buf [16:14:43]execute_script done [16:14:43]execute_script returns [16:14:43]free content buf [16:14:43]Sock 9.Close socket [16:14:43]Sock 9.Thread stoped [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:14:59]accept exits with 10 [16:14:59]New connection [16:14:59]New thread 3066977636 created [16:14:59]Thread 3066834276 joined [16:14:59]Waiting for new connection... [16:14:59] Sock 10.Parse request [16:14:59]Sock 10.Check first char [16:14:59]Sock 10.First char is OK [16:14:59]request: POST /json_proto HTTP/1.0 [16:14:59]Method: POST [16:14:59]URL: /json_proto [16:14:59]Method is POST - this is cgi request [16:14:59]url: /json_proto [16:14:59]query_string will be loaded in cgi processing [16:14:59]execute_cgi json_proto POST (null) [16:14:59]execute_cgi path=json_proto method=POST [16:14:59]POST find Content-Length [16:14:59]Host: 172.17.63.3:8080 [16:14:59]Content-Length: 765 [16:14:59]Content-Type: application/json [16:14:59] [16:14:59]POST finish read [16:14:59]Found Content-Length = 765 [16:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:59]execute_script... [16:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:59]POST & json_proto [16:14:59]process_json_proto [16:14:59]json parsed OK: [16:14:59]protocol is kg_v1.0 [16:14:59]action value=close_receipt [16:14:59]process_action close_receipt [16:14:59]cmd_close_receipt [16:14:59]MH_GetDate [16:14:59]Write to MH i2c: F0 00 00 0E 14 11 [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: F0 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: F0 09 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: F0 09 00 0E 14 00 84 15 1D 67 50 D1 6C 64 28 [16:14:59]GetLastDocTimeStamp 1729959281 [16:14:59]current date 1729959300 [16:14:59]FM_GetShiftState [16:14:59]SAM_PROTO_GetShiftState [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 13 01 00 [16:14:59]Write to MH i2c: E2 08 00 0F 14 80 13 01 00 00 00 00 00 A0 [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 0E 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 0E 00 0F 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D5 [16:14:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_GetShiftState done [16:14:59]FM_GetShiftState done [16:14:59]opened in 1729902702 [16:14:59]opened+sec_in_day 1729989102 [16:14:59]quantity*price = 30038 [16:14:59]sum+1 = 30039 [16:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 252 26.10.2024 16:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156351 ФПД: 160361882494808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161500&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156351&fm=160361882494808&tin=02508201610067®Number=0000000000091693&sum=30038 [16:15:00]StoreToDocumentArchive [16:15:00]shift 536 fd 156351 [16:15:00]save to /storage/0536/doc_00156351 [16:15:00]save last doc name /storage/0536/doc_00156351 to /storage/kkm_last_doc_name [16:15:00]save OK [16:15:00]Clear old archive folders... [16:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:00]tlvbuf is 016CDF10 [16:15:00]SAM_PROTO_ClearQueue [16:15:00]wFMCommunicate request_size=4 [16:15:00]MH_SAM_APDU [16:15:00]CAPDU: 80 09 00 00 [16:15:00]Write to MH i2c: E2 08 00 1C 14 80 09 00 00 00 00 00 00 A2 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:00]Read from MH i2c: E2 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 03 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [16:15:00]RAPDU: 90 00 [16:15:00]wFMCommunicate OK [16:15:00]SAM_PROTO_ClearQueue done [16:15:00]KKMCreateOFDPacket [16:15:00]OFDProtocolAddRootSTLVToBuf [16:15:00]FM_MakeSignedData [16:15:00]FM_MakeSignedData [16:15:00]SAM_PROTO_SignData [16:15:00]wFMCommunicate request_size=4 [16:15:00]MH_SAM_APDU [16:15:00]CAPDU: 80 0D 01 02 [16:15:00]Write to MH i2c: E2 08 00 1D 14 80 0D 01 02 00 00 00 00 AA [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:00]Read from MH i2c: E2 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 03 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [16:15:00]RAPDU: 90 00 [16:15:00]wFMCommunicate OK [16:15:00]wFMCommunicate request_size=255 [16:15:00]MH_SAM_APDU [16:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 84 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 62 02 00 35 04 06 00 91 [16:15:00]Write to MH i2c: E2 02 01 1E 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 84 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 62 02 00 35 04 06 00 91 00 00 65 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:01]Read from MH i2c: E2 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 03 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [16:15:01]RAPDU: 90 00 [16:15:01]wFMCommunicate OK [16:15:01]wFMCommunicate request_size=10 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 0D 02 02 05 D9 29 0A A7 58 [16:15:01]Write to MH i2c: E2 0D 00 1F 14 80 0D 02 02 05 00 D9 29 0A A7 58 00 00 C2 [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:01]Read from MH i2c: E2 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 03 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [16:15:01]RAPDU: 90 00 [16:15:01]wFMCommunicate OK [16:15:01]wFMCommunicate request_size=4 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 0D 03 02 [16:15:01]Write to MH i2c: E2 08 00 20 14 80 0D 03 02 00 00 00 00 AF [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:01]Read from MH i2c: E2 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 0B 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 0B 00 20 14 00 7E C7 29 37 D2 E0 90 E6 90 00 7D [16:15:01]RAPDU: 7E C7 29 37 D2 E0 90 E6 90 00 [16:15:01]wFMCommunicate OK [16:15:01]SAM_PROTO_SignData done [16:15:01]FM_MakeSignedData done [16:15:01]CreateOFDProtocolMessage [16:15:01]wFMCommunicate request_size=4 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 11 00 00 [16:15:01]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:01]Read from MH i2c: E2 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 17 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 17 00 21 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [16:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:15:01]wFMCommunicate OK [16:15:01]CreateOFDProtocolMessage done [16:15:01]OFDSenderStorePacket 156351 [16:15:01]StoreOFDPacket docnum=156351 [16:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A1 87 07 01 79 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 84 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 62 02 00 35 04 06 00 91 D9 29 0A A7 58 7E C7 29 37 D2 E0 90 E6 [16:15:01]CheckFolder [16:15:01]dirname=/storage/ofd_packets [16:15:01]CheckFolder done [16:15:01]ProducePacketName [16:15:01]name=ofd_packets/00156351 [16:15:01]NVStorageSaveData ofd_packets/00156351 [16:15:01]File name is /storage/ofd_packets/00156351 [16:15:01]Write 301 bytes [16:15:01]NVStorageSaveData done [16:15:01]OFDSenderStorePacket done [16:15:01]KKMCreateOFDPacket done [16:15:01]NVStorageSaveData kkm_last_timestamp [16:15:01]File name is /storage/kkm_last_timestamp [16:15:01]Write 4 bytes [16:15:01]NVStorageSaveData done [16:15:01]ExternCall_PrintAddStr [16:15:01]wPrintStart [16:15:01]Write to MH i2c: 01 00 00 22 14 36 [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: 01 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: 01 07 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: 01 07 00 22 14 00 00 00 00 00 FF 0F 4B [16:15:01]RasterBufferAndPrint [16:15:01]line Счет N : (1)99166 [16:15:01]line ИНН: 02508201610067 [16:15:01]line Контрольно-Кассовый Чек [16:15:01]line ПРОДАЖА [16:15:01]line ТРК (МРК, ГНК) : 11 [16:15:01]line Товар: 2710124130 [16:15:01]line Аи-92-К-5 [16:15:01]line 4.490 * 66.90 [16:15:01]line = 300.38 [16:15:01]line НДС 12% НСП 1% [16:15:01]line > о реализуемом товаре [16:15:01]line ИТОГО: 300.38 [16:15:01]line НСП 1% : 2.66 [16:15:01]line НДС 12% : 31.90 [16:15:01]line Наличными: 0.00 [16:15:01]line Безнал.: 300.38 [16:15:01]line Место: АЗС № 143 "Партнер Нефть" [16:15:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:15:01]line СНО: Общий режим [16:15:01]line Чек 252 26.10.2024 16:15 [16:15:01]line Смена: 536 ФФД: 1.0 [16:15:01]line ЗНМ: 0300000096 [16:15:01]line РНМ: 0000000000091693 [16:15:01]line Версия ККМ: 001 [16:15:01]line Платежная система: Mbank [16:15:01]line ФМ: 0000000000871792 [16:15:01]line ФД: 156351 [16:15:01]line ФПД: 160361882494808 [16:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161500&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156351&fm=160361882494808&tin=02508201610067®Number=0000000000091693&sum=30038 [16:15:01]written 0, free lines is 4095 [16:15:01]OFD Sender: Processing packet 156351 [packets to send 31, broken 30] [16:15:01]ProducePacketName [16:15:01]name=ofd_packets/00156351 [16:15:01]OFD Sender: To server: pG, [16:15:01]CommunicateWithHost lk.salyk.kg:30040 [16:15:01]ConnectInit lk.salyk.kg [16:15:01]Connected sock=8 [16:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A1 87 07 01 79 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 84 15 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 62 02 00 35 04 06 00 91 D9 29 0A A7 58 7E C7 29 37 D2 E0 90 E6 [16:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F1 A9 47 00 4E 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 31 37 39 32 10 04 04 00 BF 62 02 00 F4 03 04 00 F6 BA 1C 67 B6 04 01 00 00 C0 55 9B F3 59 DC BB 41 [16:15:01]CommunicateWithHost err = 0 [16:15:01]CheckOFDResponse [16:15:01]1017 (14) - 77093643461234 [16:15:01]1041 (16) - 0000000000871792 [16:15:01]1040 (4) - 156351 [16:15:01]1012 (4) - 26.10.2024 09:48 [16:15:01]1206 (1) - 0 [16:15:01]OFD Sender: Remove packet 156351 [16:15:01]ProducePacketName [16:15:01]name=ofd_packets/00156351 [16:15:01]NVStorageDeleteData [16:15:01]Write to MH i2c: 01 00 00 4B 14 5F [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: 01 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: 01 07 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 3B 0D AE [16:15:01]RasterBufferAndPrint [16:15:01]line [16:15:01]line [16:15:01]line [16:15:01]line [16:15:01]line [16:15:01]written 0, free lines is 3404 [16:15:01]process_action close_receipt done [16:15:01]requested_data is exist [16:15:01]produce_requested_data [16:15:01]requested_item fm.sn is exist - process it [16:15:01]wFMCommunicate request_size=4 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 11 00 00 [16:15:01]Write to MH i2c: E2 08 00 52 14 80 11 00 00 00 00 00 00 E0 [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:01]Read from MH i2c: E2 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 17 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 17 00 52 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [16:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:15:01]wFMCommunicate OK [16:15:01]requested_item fd.num is exist - process it [16:15:01]SAM_PROTO_GetFieldsCounters [16:15:01]wFMCommunicate request_size=4 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 13 00 00 [16:15:01]Write to MH i2c: E2 08 00 53 14 80 13 00 00 00 00 00 00 E3 [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 62 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 62 00 53 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [16:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:02]wFMCommunicate OK [16:15:02]SAM_PROTO_GetFieldsCounters done [16:15:02]requested_item shift.num is exist - process it [16:15:02]requested_item shift.opened is exist - process it [16:15:02]req_shift_opened [16:15:02]FM_GetShiftState [16:15:02]SAM_PROTO_GetShiftState [16:15:02]wFMCommunicate request_size=4 [16:15:02]MH_SAM_APDU [16:15:02]CAPDU: 80 13 01 00 [16:15:02]Write to MH i2c: E2 08 00 54 14 80 13 01 00 00 00 00 00 E5 [16:15:02]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 0E 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 0E 00 54 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 1A [16:15:02]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:15:02]wFMCommunicate OK [16:15:02]SAM_PROTO_GetShiftState done [16:15:02]FM_GetShiftState done [16:15:02]req_shift_opened done [16:15:02]requested_item shift.open_date is exist - process it [16:15:02]req_shift_open_date [16:15:02]req_shift_open_date done [16:15:02]produce_requested_data done [16:15:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156351,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:15:02]process_action_free close_receipt [16:15:02]json_value_free [16:15:02]json_value_free done [16:15:02]process_json_proto returns [16:15:02]Send response to host [16:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156351,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:15:02]free response buf [16:15:02]execute_script done [16:15:02]execute_script returns [16:15:02]free content buf [16:15:02]Sock 10.Close socket [16:15:02]Sock 10.Thread stoped [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:31]accept exits with 9 [16:18:31]New connection [16:18:31]New thread 3066834276 created [16:18:31]Thread 3066977636 joined [16:18:31]Waiting for new connection... [16:18:31] Sock 9.Parse request [16:18:31]Sock 9.Check first char [16:18:31]Sock 9.First char is OK [16:18:31]request: POST /json_proto HTTP/1.0 [16:18:31]Method: POST [16:18:31]URL: /json_proto [16:18:31]Method is POST - this is cgi request [16:18:31]url: /json_proto [16:18:31]query_string will be loaded in cgi processing [16:18:31]execute_cgi json_proto POST (null) [16:18:31]execute_cgi path=json_proto method=POST [16:18:31]POST find Content-Length [16:18:31]Host: 172.17.63.3:8080 [16:18:31]Content-Length: 681 [16:18:31]Content-Type: application/json [16:18:31] [16:18:31]POST finish read [16:18:31]Found Content-Length = 681 [16:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:31]execute_script... [16:18:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:31]POST & json_proto [16:18:31]process_json_proto [16:18:31]json parsed OK: [16:18:31]protocol is kg_v1.0 [16:18:31]action value=close_receipt [16:18:31]process_action close_receipt [16:18:31]cmd_close_receipt [16:18:31]MH_GetDate [16:18:31]Write to MH i2c: F0 00 00 55 14 58 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: F0 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: F0 09 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: F0 09 00 55 14 00 58 16 1D 67 50 D1 6C 64 44 [16:18:31]GetLastDocTimeStamp 1729959300 [16:18:31]current date 1729959512 [16:18:31]FM_GetShiftState [16:18:31]SAM_PROTO_GetShiftState [16:18:31]wFMCommunicate request_size=4 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 13 01 00 [16:18:31]Write to MH i2c: E2 08 00 56 14 80 13 01 00 00 00 00 00 E7 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 0E 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 0E 00 56 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 1C [16:18:31]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:18:31]wFMCommunicate OK [16:18:31]SAM_PROTO_GetShiftState done [16:18:31]FM_GetShiftState done [16:18:31]opened in 1729902702 [16:18:31]opened+sec_in_day 1729989102 [16:18:31]quantity*price = 100015 [16:18:31]sum+1 = 100017 [16:18:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 253 26.10.2024 16:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156352 ФПД: 30054355862501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161832&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156352&fm=30054355862501&tin=02508201610067®Number=0000000000091693&sum=100000 [16:18:33]StoreToDocumentArchive [16:18:33]shift 536 fd 156352 [16:18:33]save to /storage/0536/doc_00156352 [16:18:33]save last doc name /storage/0536/doc_00156352 to /storage/kkm_last_doc_name [16:18:33]save OK [16:18:33]Clear old archive folders... [16:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:33]tlvbuf is 016BAD90 [16:18:33]SAM_PROTO_ClearQueue [16:18:33]wFMCommunicate request_size=4 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 09 00 00 [16:18:33]Write to MH i2c: E2 08 00 63 14 80 09 00 00 00 00 00 00 E9 [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 03 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 03 00 63 14 00 90 00 EB [16:18:33]RAPDU: 90 00 [16:18:33]wFMCommunicate OK [16:18:33]SAM_PROTO_ClearQueue done [16:18:33]KKMCreateOFDPacket [16:18:33]OFDProtocolAddRootSTLVToBuf [16:18:33]FM_MakeSignedData [16:18:33]FM_MakeSignedData [16:18:33]SAM_PROTO_SignData [16:18:33]wFMCommunicate request_size=4 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 0D 01 02 [16:18:33]Write to MH i2c: E2 08 00 64 14 80 0D 01 02 00 00 00 00 F1 [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 03 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 03 00 64 14 00 90 00 EC [16:18:33]RAPDU: 90 00 [16:18:33]wFMCommunicate OK [16:18:33]wFMCommunicate request_size=255 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 58 16 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 62 02 00 35 04 06 00 1B [16:18:33]Write to MH i2c: E2 02 01 65 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 58 16 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 62 02 00 35 04 06 00 1B 00 00 C7 [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 03 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [16:18:33]RAPDU: 90 00 [16:18:33]wFMCommunicate OK [16:18:33]wFMCommunicate request_size=10 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 0D 02 02 05 55 93 34 83 E5 [16:18:33]Write to MH i2c: E2 0D 00 66 14 80 0D 02 02 05 00 55 93 34 83 E5 00 00 82 [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 03 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [16:18:33]RAPDU: 90 00 [16:18:33]wFMCommunicate OK [16:18:33]wFMCommunicate request_size=4 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 0D 03 02 [16:18:33]Write to MH i2c: E2 08 00 67 14 80 0D 03 02 00 00 00 00 F6 [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 0B 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 0B 00 67 14 00 45 6B EB EE F7 15 42 B7 90 00 85 [16:18:33]RAPDU: 45 6B EB EE F7 15 42 B7 90 00 [16:18:33]wFMCommunicate OK [16:18:33]SAM_PROTO_SignData done [16:18:33]FM_MakeSignedData done [16:18:33]CreateOFDProtocolMessage [16:18:33]wFMCommunicate request_size=4 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 11 00 00 [16:18:33]Write to MH i2c: E2 08 00 68 14 80 11 00 00 00 00 00 00 F6 [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 17 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 17 00 68 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4B [16:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:18:33]wFMCommunicate OK [16:18:33]CreateOFDProtocolMessage done [16:18:33]OFDSenderStorePacket 156352 [16:18:33]StoreOFDPacket docnum=156352 [16:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 83 D7 07 01 76 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 58 16 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 62 02 00 35 04 06 00 1B 55 93 34 83 E5 45 6B EB EE F7 15 42 B7 [16:18:33]CheckFolder [16:18:33]dirname=/storage/ofd_packets [16:18:33]CheckFolder done [16:18:33]ProducePacketName [16:18:33]name=ofd_packets/00156352 [16:18:33]NVStorageSaveData ofd_packets/00156352 [16:18:33]File name is /storage/ofd_packets/00156352 [16:18:33]Write 301 bytes [16:18:33]NVStorageSaveData done [16:18:33]OFDSenderStorePacket done [16:18:33]KKMCreateOFDPacket done [16:18:33]NVStorageSaveData kkm_last_timestamp [16:18:33]File name is /storage/kkm_last_timestamp [16:18:33]Write 4 bytes [16:18:33]NVStorageSaveData done [16:18:33]ExternCall_PrintAddStr [16:18:33]wPrintStart [16:18:33]Write to MH i2c: 01 00 00 69 14 7D [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: 01 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: 01 07 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: 01 07 00 69 14 00 00 00 00 00 FF 0F 92 [16:18:33]RasterBufferAndPrint [16:18:33]line Счет N : (1)99167 [16:18:33]line ИНН: 02508201610067 [16:18:33]line Контрольно-Кассовый Чек [16:18:33]line ПРОДАЖА [16:18:33]line ТРК (МРК, ГНК) : 31 [16:18:33]line Товар: 2710124130 [16:18:33]line Аи-92-К-5 [16:18:33]line 14.950 * 66.90 [16:18:33]line = 1000.16 [16:18:33]line НДС 12% НСП 1% [16:18:33]line > о реализуемом товаре [16:18:33]line ОКРУГЛЕНИЕ: -0.16 [16:18:33]line ИТОГО: 1000.00 [16:18:33]line Внесено: 1000.00 [16:18:33]line СДАЧА: 0.00 [16:18:33]line НСП 1% : 8.85 [16:18:33]line НДС 12% : 106.21 [16:18:33]line Наличными: 1000.00 [16:18:33]line Безнал.: 0.00 [16:18:33]line Место: АЗС № 143 "Партнер Нефть" [16:18:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:18:33]line СНО: Общий режим [16:18:33]line Чек 253 26.10.2024 16:18 [16:18:33]line Смена: 536 ФФД: 1.0 [16:18:33]line ЗНМ: 0300000096 [16:18:33]line РНМ: 0000000000091693 [16:18:33]line Версия ККМ: 001 [16:18:33]line ФМ: 0000000000871792 [16:18:33]line ФД: 156352 [16:18:33]line ФПД: 30054355862501 [16:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161832&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156352&fm=30054355862501&tin=02508201610067®Number=0000000000091693&sum=100000 [16:18:33]OFD Sender: Processing packet 156352 [packets to send 31, broken 30] [16:18:33]ProducePacketName [16:18:33]name=ofd_packets/00156352 [16:18:33]OFD Sender: To server: pG, [16:18:33]CommunicateWithHost lk.salyk.kg:30040 [16:18:33]ConnectInit lk.salyk.kg [16:18:33]written 0, free lines is 4095 [16:18:34]Connected sock=10 [16:18:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 83 D7 07 01 76 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 58 16 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 62 02 00 35 04 06 00 1B 55 93 34 83 E5 45 6B EB EE F7 15 42 B7 [16:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 59 92 47 00 1C 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 62 02 00 F4 03 04 00 CB BB 1C 67 B6 04 01 00 00 D5 6A AD 31 80 6E B6 35 [16:18:34]CommunicateWithHost err = 0 [16:18:34]CheckOFDResponse [16:18:34]1017 (14) - 77093643461234 [16:18:34]1041 (16) - 0000000000871792 [16:18:34]1040 (4) - 156352 [16:18:34]1012 (4) - 26.10.2024 09:52 [16:18:34]1206 (1) - 0 [16:18:34]OFD Sender: Remove packet 156352 [16:18:34]ProducePacketName [16:18:34]name=ofd_packets/00156352 [16:18:34]NVStorageDeleteData [16:18:34]Write to MH i2c: 01 00 00 94 14 A8 [16:18:34]Write i2c OK [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: 01 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: 01 07 00 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: 01 07 00 94 14 00 00 00 00 00 E8 0C A3 [16:18:34]RasterBufferAndPrint [16:18:34]line [16:18:34]line [16:18:34]line [16:18:34]line [16:18:34]line [16:18:34]written 0, free lines is 3311 [16:18:34]process_action close_receipt done [16:18:34]requested_data is exist [16:18:34]produce_requested_data [16:18:34]requested_item fm.sn is exist - process it [16:18:34]wFMCommunicate request_size=4 [16:18:34]MH_SAM_APDU [16:18:34]CAPDU: 80 11 00 00 [16:18:34]Write to MH i2c: E2 08 00 9B 14 80 11 00 00 00 00 00 00 29 [16:18:34]Write i2c OK [16:18:34]MH_I2C_Read... [16:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:34]Read from MH i2c: E2 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 17 00 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 17 00 9B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [16:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:18:34]wFMCommunicate OK [16:18:34]requested_item fd.num is exist - process it [16:18:34]SAM_PROTO_GetFieldsCounters [16:18:34]wFMCommunicate request_size=4 [16:18:34]MH_SAM_APDU [16:18:34]CAPDU: 80 13 00 00 [16:18:34]Write to MH i2c: E2 08 00 9C 14 80 13 00 00 00 00 00 00 2C [16:18:34]Write i2c OK [16:18:34]MH_I2C_Read... [16:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:34]Read from MH i2c: E2 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 62 00 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 62 00 9C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:34]wFMCommunicate OK [16:18:34]SAM_PROTO_GetFieldsCounters done [16:18:34]requested_item shift.num is exist - process it [16:18:34]requested_item shift.opened is exist - process it [16:18:34]req_shift_opened [16:18:34]FM_GetShiftState [16:18:34]SAM_PROTO_GetShiftState [16:18:34]wFMCommunicate request_size=4 [16:18:34]MH_SAM_APDU [16:18:34]CAPDU: 80 13 01 00 [16:18:34]Write to MH i2c: E2 08 00 9D 14 80 13 01 00 00 00 00 00 2E [16:18:34]Write i2c OK [16:18:34]MH_I2C_Read... [16:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:34]Read from MH i2c: E2 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 0E 00 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 0E 00 9D 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 63 [16:18:34]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:18:34]wFMCommunicate OK [16:18:34]SAM_PROTO_GetShiftState done [16:18:34]FM_GetShiftState done [16:18:34]req_shift_opened done [16:18:34]requested_item shift.open_date is exist - process it [16:18:34]req_shift_open_date [16:18:34]req_shift_open_date done [16:18:34]produce_requested_data done [16:18:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156352,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:18:34]process_action_free close_receipt [16:18:34]json_value_free [16:18:34]json_value_free done [16:18:34]process_json_proto returns [16:18:34]Send response to host [16:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156352,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:18:34]free response buf [16:18:34]execute_script done [16:18:34]execute_script returns [16:18:34]free content buf [16:18:34]Sock 9.Close socket [16:18:34]Sock 9.Thread stoped [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]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:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:34]accept exits with 8 [16:26:34]New connection [16:26:34]New thread 3066977636 created [16:26:34]Thread 3066834276 joined [16:26:34]Waiting for new connection... [16:26:34] Sock 8.Parse request [16:26:34]Sock 8.Check first char [16:26:34]Sock 8.First char is OK [16:26:34]request: POST /json_proto HTTP/1.0 [16:26:34]Method: POST [16:26:34]URL: /json_proto [16:26:34]Method is POST - this is cgi request [16:26:34]url: /json_proto [16:26:34]query_string will be loaded in cgi processing [16:26:34]execute_cgi json_proto POST (null) [16:26:34]execute_cgi path=json_proto method=POST [16:26:34]POST find Content-Length [16:26:34]Host: 172.17.63.3:8080 [16:26:34]Content-Length: 768 [16:26:34]Content-Type: application/json [16:26:34] [16:26:34]POST finish read [16:26:34]Found Content-Length = 768 [16:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:34]execute_script... [16:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:34]POST & json_proto [16:26:34]process_json_proto [16:26:34]json parsed OK: [16:26:34]protocol is kg_v1.0 [16:26:34]action value=close_receipt [16:26:34]process_action close_receipt [16:26:34]cmd_close_receipt [16:26:34]MH_GetDate [16:26:34]Write to MH i2c: F0 00 00 9E 14 A1 [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: F0 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: F0 09 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: F0 09 00 9E 14 00 3B 18 1D 67 50 D1 6C 64 72 [16:26:34]GetLastDocTimeStamp 1729959512 [16:26:34]current date 1729959995 [16:26:34]FM_GetShiftState [16:26:34]SAM_PROTO_GetShiftState [16:26:34]wFMCommunicate request_size=4 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 13 01 00 [16:26:34]Write to MH i2c: E2 08 00 9F 14 80 13 01 00 00 00 00 00 30 [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 0E 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 0E 00 9F 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 65 [16:26:34]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:26:34]wFMCommunicate OK [16:26:34]SAM_PROTO_GetShiftState done [16:26:34]FM_GetShiftState done [16:26:34]opened in 1729902702 [16:26:34]opened+sec_in_day 1729989102 [16:26:34]quantity*price = 200031 [16:26:34]sum+1 = 200032 [16:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 254 26.10.2024 16:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156353 ФПД: 12148277593122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162635&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156353&fm=12148277593122&tin=02508201610067®Number=0000000000091693&sum=200031 [16:26:35]StoreToDocumentArchive [16:26:35]shift 536 fd 156353 [16:26:35]save to /storage/0536/doc_00156353 [16:26:35]save last doc name /storage/0536/doc_00156353 to /storage/kkm_last_doc_name [16:26:35]save OK [16:26:35]Clear old archive folders... [16:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:35]tlvbuf is 016B3AE0 [16:26:35]SAM_PROTO_ClearQueue [16:26:35]wFMCommunicate request_size=4 [16:26:35]MH_SAM_APDU [16:26:35]CAPDU: 80 09 00 00 [16:26:35]Write to MH i2c: E2 08 00 AC 14 80 09 00 00 00 00 00 00 32 [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:35]Read from MH i2c: E2 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 03 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 03 00 AC 14 00 90 00 34 [16:26:35]RAPDU: 90 00 [16:26:35]wFMCommunicate OK [16:26:35]SAM_PROTO_ClearQueue done [16:26:35]KKMCreateOFDPacket [16:26:35]OFDProtocolAddRootSTLVToBuf [16:26:35]FM_MakeSignedData [16:26:35]FM_MakeSignedData [16:26:35]SAM_PROTO_SignData [16:26:35]wFMCommunicate request_size=4 [16:26:35]MH_SAM_APDU [16:26:35]CAPDU: 80 0D 01 02 [16:26:35]Write to MH i2c: E2 08 00 AD 14 80 0D 01 02 00 00 00 00 3A [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:35]Read from MH i2c: E2 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 03 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 03 00 AD 14 00 90 00 35 [16:26:35]RAPDU: 90 00 [16:26:35]wFMCommunicate OK [16:26:35]wFMCommunicate request_size=255 [16:26:35]MH_SAM_APDU [16:26:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 3B 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 62 02 00 35 04 06 00 0B [16:26:35]Write to MH i2c: E2 02 01 AE 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 3B 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 62 02 00 35 04 06 00 0B 00 00 6D [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:35]Read from MH i2c: E2 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 03 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 03 00 AE 14 00 90 00 36 [16:26:35]RAPDU: 90 00 [16:26:35]wFMCommunicate OK [16:26:35]wFMCommunicate request_size=10 [16:26:35]MH_SAM_APDU [16:26:35]CAPDU: 80 0D 02 02 05 0C 7D C5 44 22 [16:26:35]Write to MH i2c: E2 0D 00 AF 14 80 0D 02 02 05 00 0C 7D C5 44 22 00 00 FB [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:35]Read from MH i2c: E2 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 03 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [16:26:35]RAPDU: 90 00 [16:26:35]wFMCommunicate OK [16:26:35]wFMCommunicate request_size=4 [16:26:35]MH_SAM_APDU [16:26:35]CAPDU: 80 0D 03 02 [16:26:35]Write to MH i2c: E2 08 00 B0 14 80 0D 03 02 00 00 00 00 3F [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:35]Read from MH i2c: E2 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 0B 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 0B 00 B0 14 00 20 6C 8D 84 3B 39 D1 42 90 00 64 [16:26:35]RAPDU: 20 6C 8D 84 3B 39 D1 42 90 00 [16:26:35]wFMCommunicate OK [16:26:35]SAM_PROTO_SignData done [16:26:35]FM_MakeSignedData done [16:26:35]CreateOFDProtocolMessage [16:26:35]wFMCommunicate request_size=4 [16:26:35]MH_SAM_APDU [16:26:35]CAPDU: 80 11 00 00 [16:26:35]Write to MH i2c: E2 08 00 B1 14 80 11 00 00 00 00 00 00 3F [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:35]Read from MH i2c: E2 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 17 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: E2 17 00 B1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 94 [16:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:26:35]wFMCommunicate OK [16:26:35]CreateOFDProtocolMessage done [16:26:35]OFDSenderStorePacket 156353 [16:26:35]StoreOFDPacket docnum=156353 [16:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 24 07 01 65 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 3B 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 62 02 00 35 04 06 00 0B 0C 7D C5 44 22 20 6C 8D 84 3B 39 D1 42 [16:26:35]CheckFolder [16:26:35]dirname=/storage/ofd_packets [16:26:35]CheckFolder done [16:26:35]ProducePacketName [16:26:35]name=ofd_packets/00156353 [16:26:35]NVStorageSaveData ofd_packets/00156353 [16:26:35]File name is /storage/ofd_packets/00156353 [16:26:35]Write 301 bytes [16:26:35]NVStorageSaveData done [16:26:35]OFDSenderStorePacket done [16:26:35]KKMCreateOFDPacket done [16:26:35]NVStorageSaveData kkm_last_timestamp [16:26:35]File name is /storage/kkm_last_timestamp [16:26:35]Write 4 bytes [16:26:35]NVStorageSaveData done [16:26:35]ExternCall_PrintAddStr [16:26:35]wPrintStart [16:26:35]Write to MH i2c: 01 00 00 B2 14 C6 [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: 01 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: 01 07 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: 01 07 00 B2 14 00 00 00 00 00 FF 0F DB [16:26:35]RasterBufferAndPrint [16:26:35]line Счет N : (1)99169 [16:26:35]line ИНН: 02508201610067 [16:26:35]line Контрольно-Кассовый Чек [16:26:35]line ПРОДАЖА [16:26:35]line ТРК (МРК, ГНК) : 21 [16:26:35]line Товар: 2710124130 [16:26:35]line Аи-92-К-5 [16:26:35]line 29.900 * 66.90 [16:26:35]line = 2000.31 [16:26:35]line НДС 12% НСП 1% [16:26:35]line > о реализуемом товаре [16:26:35]line ИТОГО: 2000.31 [16:26:35]line НСП 1% : 17.70 [16:26:35]line НДС 12% : 212.42 [16:26:35]line Наличными: 0.00 [16:26:35]line Безнал.: 2000.31 [16:26:35]line Место: АЗС № 143 "Партнер Нефть" [16:26:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:26:35]line СНО: Общий режим [16:26:35]line Чек 254 26.10.2024 16:26 [16:26:35]line Смена: 536 ФФД: 1.0 [16:26:35]line ЗНМ: 0300000096 [16:26:35]line РНМ: 0000000000091693 [16:26:35]line Версия ККМ: 001 [16:26:35]line Платежная система: Mbank [16:26:35]line ФМ: 0000000000871792 [16:26:35]line ФД: 156353 [16:26:35]line ФПД: 12148277593122 [16:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162635&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156353&fm=12148277593122&tin=02508201610067®Number=0000000000091693&sum=200031 [16:26:36]OFD Sender: Processing packet 156353 [packets to send 31, broken 30] [16:26:36]ProducePacketName [16:26:36]name=ofd_packets/00156353 [16:26:36]OFD Sender: To server: pG, [16:26:36]CommunicateWithHost lk.salyk.kg:30040 [16:26:36]ConnectInit lk.salyk.kg [16:26:36]written 0, free lines is 4095 [16:26:36]Connected sock=10 [16:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 24 07 01 65 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 3B 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 62 02 00 35 04 06 00 0B 0C 7D C5 44 22 20 6C 8D 84 3B 39 D1 42 [16:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B3 53 47 00 F4 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 62 02 00 F4 03 04 00 AD BD 1C 67 B6 04 01 00 00 E4 B3 6F A7 EA 3C 70 2E [16:26:36]CommunicateWithHost err = 0 [16:26:36]CheckOFDResponse [16:26:36]1017 (14) - 77093643461234 [16:26:36]1041 (16) - 0000000000871792 [16:26:36]1040 (4) - 156353 [16:26:36]1012 (4) - 26.10.2024 10:00 [16:26:36]1206 (1) - 0 [16:26:36]OFD Sender: Remove packet 156353 [16:26:36]ProducePacketName [16:26:36]name=ofd_packets/00156353 [16:26:36]NVStorageDeleteData [16:26:36]Write to MH i2c: 01 00 00 DB 14 EF [16:26:36]Write i2c OK [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: 01 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: 01 07 00 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: 01 07 00 DB 14 00 00 00 00 00 19 0D 1C [16:26:36]RasterBufferAndPrint [16:26:36]line [16:26:36]line [16:26:36]line [16:26:36]line [16:26:36]line [16:26:36]written 0, free lines is 3359 [16:26:36]process_action close_receipt done [16:26:36]requested_data is exist [16:26:36]produce_requested_data [16:26:36]requested_item fm.sn is exist - process it [16:26:36]wFMCommunicate request_size=4 [16:26:36]MH_SAM_APDU [16:26:36]CAPDU: 80 11 00 00 [16:26:36]Write to MH i2c: E2 08 00 E2 14 80 11 00 00 00 00 00 00 70 [16:26:36]Write i2c OK [16:26:36]MH_I2C_Read... [16:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:36]Read from MH i2c: E2 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 17 00 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 17 00 E2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [16:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:26:36]wFMCommunicate OK [16:26:36]requested_item fd.num is exist - process it [16:26:36]SAM_PROTO_GetFieldsCounters [16:26:36]wFMCommunicate request_size=4 [16:26:36]MH_SAM_APDU [16:26:36]CAPDU: 80 13 00 00 [16:26:36]Write to MH i2c: E2 08 00 E3 14 80 13 00 00 00 00 00 00 73 [16:26:36]Write i2c OK [16:26:36]MH_I2C_Read... [16:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:36]Read from MH i2c: E2 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 62 00 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 62 00 E3 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [16:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:36]wFMCommunicate OK [16:26:36]SAM_PROTO_GetFieldsCounters done [16:26:36]requested_item shift.num is exist - process it [16:26:36]requested_item shift.opened is exist - process it [16:26:36]req_shift_opened [16:26:36]FM_GetShiftState [16:26:36]SAM_PROTO_GetShiftState [16:26:36]wFMCommunicate request_size=4 [16:26:36]MH_SAM_APDU [16:26:36]CAPDU: 80 13 01 00 [16:26:36]Write to MH i2c: E2 08 00 E4 14 80 13 01 00 00 00 00 00 75 [16:26:36]Write i2c OK [16:26:36]MH_I2C_Read... [16:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:36]Read from MH i2c: E2 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 0E 00 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 0E 00 E4 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 AA [16:26:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:26:36]wFMCommunicate OK [16:26:36]SAM_PROTO_GetShiftState done [16:26:36]FM_GetShiftState done [16:26:36]req_shift_opened done [16:26:36]requested_item shift.open_date is exist - process it [16:26:36]req_shift_open_date [16:26:36]req_shift_open_date done [16:26:36]produce_requested_data done [16:26:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156353,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:26:36]process_action_free close_receipt [16:26:36]json_value_free [16:26:36]json_value_free done [16:26:36]process_json_proto returns [16:26:36]Send response to host [16:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156353,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:26:36]free response buf [16:26:36]execute_script done [16:26:36]execute_script returns [16:26:36]free content buf [16:26:36]Sock 8.Close socket [16:26:36]Sock 8.Thread stoped [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:47]accept exits with 9 [16:26:47]New connection [16:26:47]New thread 3066834276 created [16:26:47]Thread 3066977636 joined [16:26:47]Waiting for new connection... [16:26:47] Sock 9.Parse request [16:26:47]Sock 9.Check first char [16:26:47]Sock 9.First char is OK [16:26:47]request: POST /json_proto HTTP/1.0 [16:26:47]Method: POST [16:26:47]URL: /json_proto [16:26:47]Method is POST - this is cgi request [16:26:47]url: /json_proto [16:26:47]query_string will be loaded in cgi processing [16:26:47]execute_cgi json_proto POST (null) [16:26:47]execute_cgi path=json_proto method=POST [16:26:47]POST find Content-Length [16:26:47]Host: 172.17.63.3:8080 [16:26:47]Content-Length: 678 [16:26:47]Content-Type: application/json [16:26:47] [16:26:47]POST finish read [16:26:47]Found Content-Length = 678 [16:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.240, "sum" : 4666.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4666.00, "payments": [ { "type": 0, "sum" : 4666.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:47]execute_script... [16:26:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.240, "sum" : 4666.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4666.00, "payments": [ { "type": 0, "sum" : 4666.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:47]POST & json_proto [16:26:47]process_json_proto [16:26:47]json parsed OK: [16:26:47]protocol is kg_v1.0 [16:26:47]action value=close_receipt [16:26:47]process_action close_receipt [16:26:47]cmd_close_receipt [16:26:47]MH_GetDate [16:26:47]Write to MH i2c: F0 00 00 E5 14 E8 [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: F0 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: F0 09 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: F0 09 00 E5 14 00 48 18 1D 67 50 D1 6C 64 C6 [16:26:47]GetLastDocTimeStamp 1729959995 [16:26:47]current date 1729960008 [16:26:47]FM_GetShiftState [16:26:47]SAM_PROTO_GetShiftState [16:26:47]wFMCommunicate request_size=4 [16:26:47]MH_SAM_APDU [16:26:47]CAPDU: 80 13 01 00 [16:26:47]Write to MH i2c: E2 08 00 E6 14 80 13 01 00 00 00 00 00 77 [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:47]Read from MH i2c: E2 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 0E 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 0E 00 E6 14 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 AC [16:26:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:26:47]wFMCommunicate OK [16:26:47]SAM_PROTO_GetShiftState done [16:26:47]FM_GetShiftState done [16:26:47]opened in 1729902702 [16:26:47]opened+sec_in_day 1729989102 [16:26:47]quantity*price = 466648 [16:26:47]sum+1 = 466650 [16:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 4666.00 Внесено: 5000.00 СДАЧА: 334.00 НСП 1% : 41.30 НДС 12% : 495.56 Наличными: 4666.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 255 26.10.2024 16:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156354 ФПД: 244268856849229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162648&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156354&fm=244268856849229&tin=02508201610067®Number=0000000000091693&sum=466600 [16:26:49]StoreToDocumentArchive [16:26:49]shift 536 fd 156354 [16:26:49]save to /storage/0536/doc_00156354 [16:26:49]save last doc name /storage/0536/doc_00156354 to /storage/kkm_last_doc_name [16:26:49]save OK [16:26:49]Clear old archive folders... [16:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:49]tlvbuf is B6EAE220 [16:26:49]SAM_PROTO_ClearQueue [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 09 00 00 [16:26:49]Write to MH i2c: E2 08 00 F3 14 80 09 00 00 00 00 00 00 79 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 03 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 03 00 F3 14 00 90 00 7B [16:26:49]RAPDU: 90 00 [16:26:49]wFMCommunicate OK [16:26:49]SAM_PROTO_ClearQueue done [16:26:49]KKMCreateOFDPacket [16:26:49]OFDProtocolAddRootSTLVToBuf [16:26:49]FM_MakeSignedData [16:26:49]FM_MakeSignedData [16:26:49]SAM_PROTO_SignData [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 0D 01 02 [16:26:49]Write to MH i2c: E2 08 00 F4 14 80 0D 01 02 00 00 00 00 81 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 03 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 03 00 F4 14 00 90 00 7C [16:26:49]RAPDU: 90 00 [16:26:49]wFMCommunicate OK [16:26:49]wFMCommunicate request_size=255 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 EF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D9 1E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 C1 00 00 00 00 07 04 06 00 A8 1E 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 48 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 62 02 00 35 04 06 00 DE 29 46 71 [16:26:49]Write to MH i2c: E2 02 01 F5 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 EF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D9 1E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 C1 00 00 00 00 07 04 06 00 A8 1E 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 48 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 62 02 00 35 04 06 00 DE 29 46 71 00 00 EB [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 03 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 03 00 F5 14 00 90 00 7D [16:26:49]RAPDU: 90 00 [16:26:49]wFMCommunicate OK [16:26:49]wFMCommunicate request_size=7 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 0D 02 02 02 33 4D [16:26:49]Write to MH i2c: E2 0A 00 F6 14 80 0D 02 02 02 00 33 4D 00 00 08 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 03 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 03 00 F6 14 00 90 00 7E [16:26:49]RAPDU: 90 00 [16:26:49]wFMCommunicate OK [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 0D 03 02 [16:26:49]Write to MH i2c: E2 08 00 F7 14 80 0D 03 02 00 00 00 00 86 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 0B 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 0B 00 F7 14 00 0A 2D 2B BC 9D D3 85 91 90 00 2B [16:26:49]RAPDU: 0A 2D 2B BC 9D D3 85 91 90 00 [16:26:49]wFMCommunicate OK [16:26:49]SAM_PROTO_SignData done [16:26:49]FM_MakeSignedData done [16:26:49]CreateOFDProtocolMessage [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 11 00 00 [16:26:49]Write to MH i2c: E2 08 00 F8 14 80 11 00 00 00 00 00 00 86 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 17 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 17 00 F8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DB [16:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:26:49]wFMCommunicate OK [16:26:49]CreateOFDProtocolMessage done [16:26:49]OFDSenderStorePacket 156354 [16:26:49]StoreOFDPacket docnum=156354 [16:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 72 3D 04 01 8F 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 EF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D9 1E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 C1 00 00 00 00 07 04 06 00 A8 1E 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 48 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 62 02 00 35 04 06 00 DE 29 46 71 33 4D 0A 2D 2B BC 9D D3 85 91 [16:26:49]CheckFolder [16:26:49]dirname=/storage/ofd_packets [16:26:49]CheckFolder done [16:26:49]ProducePacketName [16:26:49]name=ofd_packets/00156354 [16:26:49]NVStorageSaveData ofd_packets/00156354 [16:26:49]File name is /storage/ofd_packets/00156354 [16:26:49]Write 298 bytes [16:26:49]NVStorageSaveData done [16:26:49]OFDSenderStorePacket done [16:26:49]KKMCreateOFDPacket done [16:26:49]NVStorageSaveData kkm_last_timestamp [16:26:49]File name is /storage/kkm_last_timestamp [16:26:49]Write 4 bytes [16:26:49]NVStorageSaveData done [16:26:49]ExternCall_PrintAddStr [16:26:49]wPrintStart [16:26:49]Write to MH i2c: 01 00 00 F9 14 0D [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: 01 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: 01 07 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: 01 07 00 F9 14 00 00 00 00 00 FF 0F 22 [16:26:49]RasterBufferAndPrint [16:26:49]line Счет N : (1)99168 [16:26:49]line ИНН: 02508201610067 [16:26:49]line Контрольно-Кассовый Чек [16:26:49]line ПРОДАЖА [16:26:49]line ТРК (МРК, ГНК) : 32 [16:26:49]line Товар: 2710194210 [16:26:49]line ДТ-К-5 [16:26:49]line 61.240 * 76.20 [16:26:49]line = 4666.49 [16:26:49]line НДС 12% НСП 1% [16:26:49]line > о реализуемом товаре [16:26:49]line ОКРУГЛЕНИЕ: -0.49 [16:26:49]line ИТОГО: 4666.00 [16:26:49]line Внесено: 5000.00 [16:26:49]line СДАЧА: 334.00 [16:26:49]line НСП 1% : 41.30 [16:26:49]line НДС 12% : 495.56 [16:26:49]line Наличными: 4666.00 [16:26:49]line Безнал.: 0.00 [16:26:49]line Место: АЗС № 143 "Партнер Нефть" [16:26:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:26:49]line СНО: Общий режим [16:26:49]line Чек 255 26.10.2024 16:26 [16:26:49]line Смена: 536 ФФД: 1.0 [16:26:49]line ЗНМ: 0300000096 [16:26:49]line РНМ: 0000000000091693 [16:26:49]line Версия ККМ: 001 [16:26:49]line ФМ: 0000000000871792 [16:26:49]line ФД: 156354 [16:26:49]line ФПД: 244268856849229 [16:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162648&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156354&fm=244268856849229&tin=02508201610067®Number=0000000000091693&sum=466600 [16:26:49]OFD Sender: Processing packet 156354 [packets to send 31, broken 30] [16:26:49]ProducePacketName [16:26:49]name=ofd_packets/00156354 [16:26:49]OFD Sender: To server: pG, [16:26:49]CommunicateWithHost lk.salyk.kg:30040 [16:26:49]written 0, free lines is 4095 [16:26:49]ConnectInit lk.salyk.kg [16:26:50]Connected sock=10 [16: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 31 37 39 32 0C 01 00 00 72 3D 04 01 8F 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 EF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D9 1E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 C1 00 00 00 00 07 04 06 00 A8 1E 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 48 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 62 02 00 35 04 06 00 DE 29 46 71 33 4D 0A 2D 2B BC 9D D3 85 91 [16:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 27 73 47 00 AB 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 31 37 39 32 10 04 04 00 C2 62 02 00 F4 03 04 00 BB BD 1C 67 B6 04 01 00 00 FC 2C 3D F6 96 7E C6 DC [16:26:50]CommunicateWithHost err = 0 [16:26:50]CheckOFDResponse [16:26:50]1017 (14) - 77093643461234 [16:26:50]1041 (16) - 0000000000871792 [16:26:50]1040 (4) - 156354 [16:26:50]1012 (4) - 26.10.2024 10:00 [16:26:50]1206 (1) - 0 [16:26:50]OFD Sender: Remove packet 156354 [16:26:50]ProducePacketName [16:26:50]name=ofd_packets/00156354 [16:26:50]NVStorageDeleteData [16:26:50]Write to MH i2c: 01 00 00 24 15 39 [16:26:50]Write i2c OK [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: 01 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: 01 07 00 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: 01 07 00 24 15 00 00 00 00 00 EB 0C 37 [16:26:50]RasterBufferAndPrint [16:26:50]line [16:26:50]line [16:26:50]line [16:26:50]line [16:26:50]line [16:26:50]written 0, free lines is 3316 [16:26:50]process_action close_receipt done [16:26:50]requested_data is exist [16:26:50]produce_requested_data [16:26:50]requested_item fm.sn is exist - process it [16:26:50]wFMCommunicate request_size=4 [16:26:50]MH_SAM_APDU [16:26:50]CAPDU: 80 11 00 00 [16:26:50]Write to MH i2c: E2 08 00 2B 15 80 11 00 00 00 00 00 00 BA [16:26:50]Write i2c OK [16:26:50]MH_I2C_Read... [16:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:50]Read from MH i2c: E2 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 17 00 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 17 00 2B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [16:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:26:50]wFMCommunicate OK [16:26:50]requested_item fd.num is exist - process it [16:26:50]SAM_PROTO_GetFieldsCounters [16:26:50]wFMCommunicate request_size=4 [16:26:50]MH_SAM_APDU [16:26:50]CAPDU: 80 13 00 00 [16:26:50]Write to MH i2c: E2 08 00 2C 15 80 13 00 00 00 00 00 00 BD [16:26:50]Write i2c OK [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 [16:26:50]MH_I2C_Read... [16:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:50]Read from MH i2c: E2 62 00 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 62 00 2C 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [16:26: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:50]wFMCommunicate OK [16:26:50]SAM_PROTO_GetFieldsCounters done [16:26:50]requested_item shift.num is exist - process it [16:26:50]requested_item shift.opened is exist - process it [16:26:50]req_shift_opened [16:26:50]FM_GetShiftState [16:26:50]SAM_PROTO_GetShiftState [16:26:50]wFMCommunicate request_size=4 [16:26:50]MH_SAM_APDU [16:26:50]CAPDU: 80 13 01 00 [16:26:50]Write to MH i2c: E2 08 00 2D 15 80 13 01 00 00 00 00 00 BF [16:26:50]Write i2c OK [16:26:50]MH_I2C_Read... [16:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:50]Read from MH i2c: E2 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 0E 00 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 0E 00 2D 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 F4 [16:26:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:26:50]wFMCommunicate OK [16:26:50]SAM_PROTO_GetShiftState done [16:26:50]FM_GetShiftState done [16:26:50]req_shift_opened done [16:26:50]requested_item shift.open_date is exist - process it [16:26:50]req_shift_open_date [16:26:50]req_shift_open_date done [16:26:50]produce_requested_data done [16:26:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156354,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:26:50]process_action_free close_receipt [16:26:50]json_value_free [16:26:50]json_value_free done [16:26:50]process_json_proto returns [16:26:50]Send response to host [16:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156354,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:26:50]free response buf [16:26:50]execute_script done [16:26:50]execute_script returns [16:26:50]free content buf [16:26:50]Sock 9.Close socket [16:26:50]Sock 9.Thread stoped [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]int [16:27:10]Write to MH i2c: 01 00 00 2E 15 43 [16:27:10]*** FLAG_PRN_KEY set [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 2E 15 00 08 00 00 00 FF 0F 60 [16:27:10]state=0 [16:27:10]Key pressed [16:27:10]Feed [16:27:10]Write to MH i2c: D8 00 00 2F 15 1B [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: D8 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: D8 01 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: D8 01 00 2F 15 00 1C [16:27:10]int [16:27:10]Write to MH i2c: 01 00 00 30 15 45 [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 30 15 00 48 00 00 00 3D 00 D1 [16:27:10]state=2 [16:27:10]Key pressed [16:27:10]int [16:27:10]Write to MH i2c: 01 00 00 31 15 46 [16:27:10]*** FLAG_PRN_KEY reset [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 31 15 00 00 00 00 00 FF 0F 5B [16:27:10]state=2 [16:27:10]Stop feed [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:28:57]accept exits with 8 [16:28:57]New connection [16:28:57]New thread 3066977636 created [16:28:57]Thread 3066834276 joined [16:28:57]Waiting for new connection... [16:28:57] Sock 8.Parse request [16:28:57]Sock 8.Check first char [16:28:57]Sock 8.First char is OK [16:28:57]request: POST /json_proto HTTP/1.0 [16:28:57]Method: POST [16:28:57]URL: /json_proto [16:28:57]Method is POST - this is cgi request [16:28:57]url: /json_proto [16:28:57]query_string will be loaded in cgi processing [16:28:57]execute_cgi json_proto POST (null) [16:28:57]execute_cgi path=json_proto method=POST [16:28:57]POST find Content-Length [16:28:57]Host: 172.17.63.3:8080 [16:28:57]Content-Length: 676 [16:28:57]Content-Type: application/json [16:28:57] [16:28:57]POST finish read [16:28:57]Found Content-Length = 676 [16:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:57]execute_script... [16:28:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:57]POST & json_proto [16:28:57]process_json_proto [16:28:57]json parsed OK: [16:28:57]protocol is kg_v1.0 [16:28:57]action value=close_receipt [16:28:57]process_action close_receipt [16:28:57]cmd_close_receipt [16:28:57]MH_GetDate [16:28:57]Write to MH i2c: F0 00 00 32 15 36 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: F0 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: F0 09 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: F0 09 00 32 15 00 CA 18 1D 67 50 D1 6C 64 96 [16:28:57]GetLastDocTimeStamp 1729960008 [16:28:57]current date 1729960138 [16:28:57]FM_GetShiftState [16:28:57]SAM_PROTO_GetShiftState [16:28:57]wFMCommunicate request_size=4 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 13 01 00 [16:28:57]Write to MH i2c: E2 08 00 33 15 80 13 01 00 00 00 00 00 C5 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 0E 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 0E 00 33 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FA [16:28:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:28:57]wFMCommunicate OK [16:28:57]SAM_PROTO_GetShiftState done [16:28:57]FM_GetShiftState done [16:28:57]opened in 1729902702 [16:28:57]opened+sec_in_day 1729989102 [16:28:57]quantity*price = 50041 [16:28:57]sum+1 = 50042 [16:28:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 256 26.10.2024 16:28 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156355 ФПД: 145119886709063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162858&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156355&fm=145119886709063&tin=02508201610067®Number=0000000000091693&sum=50000 [16:28:58]StoreToDocumentArchive [16:28:58]shift 536 fd 156355 [16:28:58]save to /storage/0536/doc_00156355 [16:28:58]save last doc name /storage/0536/doc_00156355 to /storage/kkm_last_doc_name [16:28:58]save OK [16:28:58]Clear old archive folders... [16:28:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:58]tlvbuf is 016812F0 [16:28:58]SAM_PROTO_ClearQueue [16:28:58]wFMCommunicate request_size=4 [16:28:58]MH_SAM_APDU [16:28:58]CAPDU: 80 09 00 00 [16:28:58]Write to MH i2c: E2 08 00 40 15 80 09 00 00 00 00 00 00 C7 [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:58]Read from MH i2c: E2 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [16:28:58]RAPDU: 90 00 [16:28:58]wFMCommunicate OK [16:28:58]SAM_PROTO_ClearQueue done [16:28:58]KKMCreateOFDPacket [16:28:58]OFDProtocolAddRootSTLVToBuf [16:28:58]FM_MakeSignedData [16:28:58]FM_MakeSignedData [16:28:58]SAM_PROTO_SignData [16:28:58]wFMCommunicate request_size=4 [16:28:58]MH_SAM_APDU [16:28:58]CAPDU: 80 0D 01 02 [16:28:58]Write to MH i2c: E2 08 00 41 15 80 0D 01 02 00 00 00 00 CF [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:58]Read from MH i2c: E2 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 41 15 00 90 00 CA [16:28:58]RAPDU: 90 00 [16:28:58]wFMCommunicate OK [16:28:58]wFMCommunicate request_size=255 [16:28:58]MH_SAM_APDU [16:28:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CA 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 62 02 00 35 04 06 00 83 [16:28:58]Write to MH i2c: E2 02 01 42 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CA 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 62 02 00 35 04 06 00 83 00 00 8E [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:58]Read from MH i2c: E2 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 42 15 00 90 00 CB [16:28:58]RAPDU: 90 00 [16:28:58]wFMCommunicate OK [16:28:58]wFMCommunicate request_size=10 [16:28:58]MH_SAM_APDU [16:28:58]CAPDU: 80 0D 02 02 05 FC 5B 4C 11 47 [16:28:58]Write to MH i2c: E2 0D 00 43 15 80 0D 02 02 05 00 FC 5B 4C 11 47 00 00 D7 [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:59]Read from MH i2c: E2 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 03 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 03 00 43 15 00 90 00 CC [16:28:59]RAPDU: 90 00 [16:28:59]wFMCommunicate OK [16:28:59]wFMCommunicate request_size=4 [16:28:59]MH_SAM_APDU [16:28:59]CAPDU: 80 0D 03 02 [16:28:59]Write to MH i2c: E2 08 00 44 15 80 0D 03 02 00 00 00 00 D4 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:59]Read from MH i2c: E2 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 0B 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 0B 00 44 15 00 7A E6 5E 18 E8 80 CC 61 90 00 40 [16:28:59]RAPDU: 7A E6 5E 18 E8 80 CC 61 90 00 [16:28:59]wFMCommunicate OK [16:28:59]SAM_PROTO_SignData done [16:28:59]FM_MakeSignedData done [16:28:59]CreateOFDProtocolMessage [16:28:59]wFMCommunicate request_size=4 [16:28:59]MH_SAM_APDU [16:28:59]CAPDU: 80 11 00 00 [16:28:59]Write to MH i2c: E2 08 00 45 15 80 11 00 00 00 00 00 00 D4 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:59]Read from MH i2c: E2 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 17 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 17 00 45 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 29 [16:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:28:59]wFMCommunicate OK [16:28:59]CreateOFDProtocolMessage done [16:28:59]OFDSenderStorePacket 156355 [16:28:59]StoreOFDPacket docnum=156355 [16:28:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E 13 07 01 F7 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CA 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 62 02 00 35 04 06 00 83 FC 5B 4C 11 47 7A E6 5E 18 E8 80 CC 61 [16:28:59]CheckFolder [16:28:59]dirname=/storage/ofd_packets [16:28:59]CheckFolder done [16:28:59]ProducePacketName [16:28:59]name=ofd_packets/00156355 [16:28:59]NVStorageSaveData ofd_packets/00156355 [16:28:59]File name is /storage/ofd_packets/00156355 [16:28:59]Write 301 bytes [16:28:59]NVStorageSaveData done [16:28:59]OFDSenderStorePacket done [16:28:59]KKMCreateOFDPacket done [16:28:59]NVStorageSaveData kkm_last_timestamp [16:28:59]File name is /storage/kkm_last_timestamp [16:28:59]Write 4 bytes [16:28:59]NVStorageSaveData done [16:28:59]ExternCall_PrintAddStr [16:28:59]wPrintStart [16:28:59]Write to MH i2c: 01 00 00 46 15 5B [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 07 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 07 00 46 15 00 00 00 00 00 FF 0F 70 [16:28:59]RasterBufferAndPrint [16:28:59]line Счет N : (1)99170 [16:28:59]line ИНН: 02508201610067 [16:28:59]line Контрольно-Кассовый Чек [16:28:59]line ПРОДАЖА [16:28:59]line ТРК (МРК, ГНК) : 21 [16:28:59]line Товар: 2710124130 [16:28:59]line Аи-92-К-5 [16:28:59]line 7.480 * 66.90 [16:28:59]line = 500.41 [16:28:59]line НДС 12% НСП 1% [16:28:59]line > о реализуемом товаре [16:28:59]line ОКРУГЛЕНИЕ: -0.41 [16:28:59]line ИТОГО: 500.00 [16:28:59]line Внесено: 500.00 [16:28:59]line СДАЧА: 0.00 [16:28:59]line НСП 1% : 4.43 [16:28:59]line НДС 12% : 53.14 [16:28:59]line Наличными: 500.00 [16:28:59]line Безнал.: 0.00 [16:28:59]line Место: АЗС № 143 "Партнер Нефть" [16:28:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:28:59]line СНО: Общий режим [16:28:59]line Чек 256 26.10.2024 16:28 [16:28:59]line Смена: 536 ФФД: 1.0 [16:28:59]line ЗНМ: 0300000096 [16:28:59]line РНМ: 0000000000091693 [16:28:59]line Версия ККМ: 001 [16:28:59]line ФМ: 0000000000871792 [16:28:59]line ФД: 156355 [16:28:59]line ФПД: 145119886709063 [16:28:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162858&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156355&fm=145119886709063&tin=02508201610067®Number=0000000000091693&sum=50000 [16:28:59]OFD Sender: Processing packet 156355 [packets to send 31, broken 30] [16:28:59]ProducePacketName [16:28:59]name=ofd_packets/00156355 [16:28:59]OFD Sender: To server: pG, [16:28:59]CommunicateWithHost lk.salyk.kg:30040 [16:28:59]ConnectInit lk.salyk.kg [16:28:59]written 0, free lines is 4095 [16:28:59]Connected sock=10 [16:28:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E 13 07 01 F7 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CA 18 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 62 02 00 35 04 06 00 83 FC 5B 4C 11 47 7A E6 5E 18 E8 80 CC 61 [16:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 42 E9 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 31 37 39 32 10 04 04 00 C3 62 02 00 F4 03 04 00 3C BE 1C 67 B6 04 01 00 00 62 31 69 B4 F1 60 72 BA [16:28:59]CommunicateWithHost err = 0 [16:28:59]CheckOFDResponse [16:28:59]1017 (14) - 77093643461234 [16:28:59]1041 (16) - 0000000000871792 [16:28:59]1040 (4) - 156355 [16:28:59]1012 (4) - 26.10.2024 10:02 [16:28:59]1206 (1) - 0 [16:28:59]OFD Sender: Remove packet 156355 [16:28:59]ProducePacketName [16:28:59]name=ofd_packets/00156355 [16:28:59]NVStorageDeleteData [16:28:59]Write to MH i2c: 01 00 00 71 15 86 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 07 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 07 00 71 15 00 00 00 00 00 E4 0C 7D [16:28:59]RasterBufferAndPrint [16:28:59]line [16:28:59]line [16:28:59]line [16:28:59]line [16:28:59]line [16:28:59]written 0, free lines is 3306 [16:28:59]process_action close_receipt done [16:28:59]requested_data is exist [16:28:59]produce_requested_data [16:28:59]requested_item fm.sn is exist - process it [16:28:59]wFMCommunicate request_size=4 [16:28:59]MH_SAM_APDU [16:28:59]CAPDU: 80 11 00 00 [16:28:59]Write to MH i2c: E2 08 00 78 15 80 11 00 00 00 00 00 00 07 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:59]Read from MH i2c: E2 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 17 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 17 00 78 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5C [16:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:28:59]wFMCommunicate OK [16:28:59]requested_item fd.num is exist - process it [16:28:59]SAM_PROTO_GetFieldsCounters [16:28:59]wFMCommunicate request_size=4 [16:28:59]MH_SAM_APDU [16:28:59]CAPDU: 80 13 00 00 [16:28:59]Write to MH i2c: E2 08 00 79 15 80 13 00 00 00 00 00 00 0A [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 62 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 62 00 79 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [16:29: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:00]wFMCommunicate OK [16:29:00]SAM_PROTO_GetFieldsCounters done [16:29:00]requested_item shift.num is exist - process it [16:29:00]requested_item shift.opened is exist - process it [16:29:00]req_shift_opened [16:29:00]FM_GetShiftState [16:29:00]SAM_PROTO_GetShiftState [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 13 01 00 [16:29:00]Write to MH i2c: E2 08 00 7A 15 80 13 01 00 00 00 00 00 0C [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 0E 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 0E 00 7A 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 41 [16:29:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:29:00]wFMCommunicate OK [16:29:00]SAM_PROTO_GetShiftState done [16:29:00]FM_GetShiftState done [16:29:00]req_shift_opened done [16:29:00]requested_item shift.open_date is exist - process it [16:29:00]req_shift_open_date [16:29:00]req_shift_open_date done [16:29:00]produce_requested_data done [16:29:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156355,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:29:00]process_action_free close_receipt [16:29:00]json_value_free [16:29:00]json_value_free done [16:29:00]process_json_proto returns [16:29:00]Send response to host [16:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156355,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:29:00]free response buf [16:29:00]execute_script done [16:29:00]execute_script returns [16:29:00]free content buf [16:29:00]Sock 8.Close socket [16:29:00]Sock 8.Thread stoped [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:29:57]accept exits with 9 [16:29:57]New connection [16:29:57]New thread 3066834276 created [16:29:57]Thread 3066977636 joined [16:29:57]Waiting for new connection... [16:29:57] Sock 9.Parse request [16:29:57]Sock 9.Check first char [16:29:57]Sock 9.First char is OK [16:29:57]request: POST /json_proto HTTP/1.0 [16:29:57]Method: POST [16:29:57]URL: /json_proto [16:29:57]Method is POST - this is cgi request [16:29:57]url: /json_proto [16:29:57]query_string will be loaded in cgi processing [16:29:57]execute_cgi json_proto POST (null) [16:29:57]execute_cgi path=json_proto method=POST [16:29:57]POST find Content-Length [16:29:57]Host: 172.17.63.3:8080 [16:29:57]Content-Length: 681 [16:29:57]Content-Type: application/json [16:29:57] [16:29:57]POST finish read [16:29:57]Found Content-Length = 681 [16:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:57]execute_script... [16:29:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:57]POST & json_proto [16:29:57]process_json_proto [16:29:57]json parsed OK: [16:29:57]protocol is kg_v1.0 [16:29:57]action value=close_receipt [16:29:57]process_action close_receipt [16:29:57]cmd_close_receipt [16:29:57]MH_GetDate [16:29:57]Write to MH i2c: F0 00 00 7B 15 7F [16:29:57]Write i2c OK [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: F0 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: F0 09 00 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: F0 09 00 7B 15 00 06 19 1D 67 50 D1 6C 64 1C [16:29:57]GetLastDocTimeStamp 1729960138 [16:29:57]current date 1729960198 [16:29:57]FM_GetShiftState [16:29:57]SAM_PROTO_GetShiftState [16:29:57]wFMCommunicate request_size=4 [16:29:57]MH_SAM_APDU [16:29:57]CAPDU: 80 13 01 00 [16:29:57]Write to MH i2c: E2 08 00 7C 15 80 13 01 00 00 00 00 00 0E [16:29:57]Write i2c OK [16:29:57]MH_I2C_Read... [16:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:57]Read from MH i2c: E2 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: E2 0E 00 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: E2 0E 00 7C 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 43 [16:29:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:29:57]wFMCommunicate OK [16:29:57]SAM_PROTO_GetShiftState done [16:29:57]FM_GetShiftState done [16:29:57]opened in 1729902702 [16:29:57]opened+sec_in_day 1729989102 [16:29:57]quantity*price = 100015 [16:29:57]sum+1 = 100017 [16:29:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 257 26.10.2024 16:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156356 ФПД: 49229419659563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162958&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156356&fm=49229419659563&tin=02508201610067®Number=0000000000091693&sum=100000 [16:29:58]StoreToDocumentArchive [16:29:58]shift 536 fd 156356 [16:29:58]save to /storage/0536/doc_00156356 [16:29:58]save last doc name /storage/0536/doc_00156356 to /storage/kkm_last_doc_name [16:29:58]save OK [16:29:58]Clear old archive folders... [16:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:58]tlvbuf is 0167A830 [16:29:58]SAM_PROTO_ClearQueue [16:29:58]wFMCommunicate request_size=4 [16:29:58]MH_SAM_APDU [16:29:58]CAPDU: 80 09 00 00 [16:29:58]Write to MH i2c: E2 08 00 89 15 80 09 00 00 00 00 00 00 10 [16:29:58]Write i2c OK [16:29:58]MH_I2C_Read... [16:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:58]Read from MH i2c: E2 [16:29:58]MH_I2C_Read... [16:29:58]Read from MH i2c: E2 03 00 [16:29:58]MH_I2C_Read... [16:29:58]Read from MH i2c: E2 03 00 89 15 00 90 00 12 [16:29:58]RAPDU: 90 00 [16:29:58]wFMCommunicate OK [16:29:58]SAM_PROTO_ClearQueue done [16:29:58]KKMCreateOFDPacket [16:29:58]OFDProtocolAddRootSTLVToBuf [16:29:58]FM_MakeSignedData [16:29:58]FM_MakeSignedData [16:29:58]SAM_PROTO_SignData [16:29:58]wFMCommunicate request_size=4 [16:29:58]MH_SAM_APDU [16:29:58]CAPDU: 80 0D 01 02 [16:29:58]Write to MH i2c: E2 08 00 8A 15 80 0D 01 02 00 00 00 00 18 [16:29:58]Write i2c OK [16:29:58]MH_I2C_Read... [16:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:58]Read from MH i2c: E2 [16:29:58]MH_I2C_Read... [16:29:58]Read from MH i2c: E2 03 00 [16:29:58]MH_I2C_Read... [16:29:58]Read from MH i2c: E2 03 00 8A 15 00 90 00 13 [16:29:58]RAPDU: 90 00 [16:29:58]wFMCommunicate OK [16:29:58]wFMCommunicate request_size=255 [16:29:58]MH_SAM_APDU [16:29:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 06 19 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 62 02 00 35 04 06 00 2C [16:29:58]Write to MH i2c: E2 02 01 8B 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 06 19 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 62 02 00 35 04 06 00 2C 00 00 B9 [16:29:58]Write i2c OK [16:29:58]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 8B 15 00 90 00 14 [16:29:59]RAPDU: 90 00 [16:29:59]wFMCommunicate OK [16:29:59]wFMCommunicate request_size=10 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 0D 02 02 05 C6 1E 12 41 2B [16:29:59]Write to MH i2c: E2 0D 00 8C 15 80 0D 02 02 05 00 C6 1E 12 41 2B 00 00 87 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 8C 15 00 90 00 15 [16:29:59]RAPDU: 90 00 [16:29:59]wFMCommunicate OK [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 0D 03 02 [16:29:59]Write to MH i2c: E2 08 00 8D 15 80 0D 03 02 00 00 00 00 1D [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 0B 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 0B 00 8D 15 00 C4 7D 57 54 3F D8 4A DB 90 00 46 [16:29:59]RAPDU: C4 7D 57 54 3F D8 4A DB 90 00 [16:29:59]wFMCommunicate OK [16:29:59]SAM_PROTO_SignData done [16:29:59]FM_MakeSignedData done [16:29:59]CreateOFDProtocolMessage [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 11 00 00 [16:29:59]Write to MH i2c: E2 08 00 8E 15 80 11 00 00 00 00 00 00 1D [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 17 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 17 00 8E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 72 [16:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:29:59]wFMCommunicate OK [16:29:59]CreateOFDProtocolMessage done [16:29:59]OFDSenderStorePacket 156356 [16:29:59]StoreOFDPacket docnum=156356 [16:29:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B A6 07 01 06 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 06 19 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 62 02 00 35 04 06 00 2C C6 1E 12 41 2B C4 7D 57 54 3F D8 4A DB [16:29:59]CheckFolder [16:29:59]dirname=/storage/ofd_packets [16:29:59]CheckFolder done [16:29:59]ProducePacketName [16:29:59]name=ofd_packets/00156356 [16:29:59]NVStorageSaveData ofd_packets/00156356 [16:29:59]File name is /storage/ofd_packets/00156356 [16:29:59]Write 301 bytes [16:29:59]NVStorageSaveData done [16:29:59]OFDSenderStorePacket done [16:29:59]KKMCreateOFDPacket done [16:29:59]NVStorageSaveData kkm_last_timestamp [16:29:59]File name is /storage/kkm_last_timestamp [16:29:59]Write 4 bytes [16:29:59]NVStorageSaveData done [16:29:59]ExternCall_PrintAddStr [16:29:59]wPrintStart [16:29:59]Write to MH i2c: 01 00 00 8F 15 A4 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: 01 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: 01 07 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: 01 07 00 8F 15 00 00 00 00 00 FF 0F B9 [16:29:59]RasterBufferAndPrint [16:29:59]line Счет N : (1)99171 [16:29:59]line ИНН: 02508201610067 [16:29:59]line Контрольно-Кассовый Чек [16:29:59]line ПРОДАЖА [16:29:59]line ТРК (МРК, ГНК) : 11 [16:29:59]line Товар: 2710124130 [16:29:59]line Аи-92-К-5 [16:29:59]line 14.950 * 66.90 [16:29:59]line = 1000.16 [16:29:59]line НДС 12% НСП 1% [16:29:59]line > о реализуемом товаре [16:29:59]line ОКРУГЛЕНИЕ: -0.16 [16:29:59]line ИТОГО: 1000.00 [16:29:59]line Внесено: 1000.00 [16:29:59]line СДАЧА: 0.00 [16:29:59]line НСП 1% : 8.85 [16:29:59]line НДС 12% : 106.21 [16:29:59]line Наличными: 1000.00 [16:29:59]line Безнал.: 0.00 [16:29:59]line Место: АЗС № 143 "Партнер Нефть" [16:29:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:29:59]line СНО: Общий режим [16:29:59]line Чек 257 26.10.2024 16:29 [16:29:59]line Смена: 536 ФФД: 1.0 [16:29:59]line ЗНМ: 0300000096 [16:29:59]line РНМ: 0000000000091693 [16:29:59]line Версия ККМ: 001 [16:29:59]line ФМ: 0000000000871792 [16:29:59]line ФД: 156356 [16:29:59]line ФПД: 49229419659563 [16:29:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162958&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156356&fm=49229419659563&tin=02508201610067®Number=0000000000091693&sum=100000 [16:29:59]OFD Sender: Processing packet 156356 [packets to send 31, broken 30] [16:29:59]ProducePacketName [16:29:59]name=ofd_packets/00156356 [16:29:59]OFD Sender: To server: pG, [16:29:59]CommunicateWithHost lk.salyk.kg:30040 [16:29:59]ConnectInit lk.salyk.kg [16:29:59]written 0, free lines is 4095 [16:29:59]Connected sock=10 [16:29:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B A6 07 01 06 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 06 19 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 62 02 00 35 04 06 00 2C C6 1E 12 41 2B C4 7D 57 54 3F D8 4A DB [16:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8A B4 47 00 B7 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 62 02 00 F4 03 04 00 79 BE 1C 67 B6 04 01 00 00 31 D5 A5 27 B1 76 93 E3 [16:30:00]CommunicateWithHost err = 0 [16:30:00]CheckOFDResponse [16:30:00]1017 (14) - 77093643461234 [16:30:00]1041 (16) - 0000000000871792 [16:30:00]1040 (4) - 156356 [16:30:00]1012 (4) - 26.10.2024 10:03 [16:30:00]1206 (1) - 0 [16:30:00]OFD Sender: Remove packet 156356 [16:30:00]ProducePacketName [16:30:00]name=ofd_packets/00156356 [16:30:00]NVStorageDeleteData [16:30:00]Write to MH i2c: 01 00 00 BA 15 CF [16:30:00]Write i2c OK [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: 01 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: 01 07 00 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: 01 07 00 BA 15 00 00 00 00 00 F3 0C D5 [16:30:00]RasterBufferAndPrint [16:30:00]line [16:30:00]line [16:30:00]line [16:30:00]line [16:30:00]line [16:30:00]written 0, free lines is 3324 [16:30:00]process_action close_receipt done [16:30:00]requested_data is exist [16:30:00]produce_requested_data [16:30:00]requested_item fm.sn is exist - process it [16:30:00]wFMCommunicate request_size=4 [16:30:00]MH_SAM_APDU [16:30:00]CAPDU: 80 11 00 00 [16:30:00]Write to MH i2c: E2 08 00 C1 15 80 11 00 00 00 00 00 00 50 [16:30:00]Write i2c OK [16:30:00]MH_I2C_Read... [16:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:00]Read from MH i2c: E2 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: E2 17 00 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: E2 17 00 C1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [16:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:30:00]wFMCommunicate OK [16:30:00]requested_item fd.num is exist - process it [16:30:00]SAM_PROTO_GetFieldsCounters [16:30:00]wFMCommunicate request_size=4 [16:30:00]MH_SAM_APDU [16:30:00]CAPDU: 80 13 00 00 [16:30:00]Write to MH i2c: E2 08 00 C2 15 80 13 00 00 00 00 00 00 53 [16:30:00]Write i2c OK [16:30:00]MH_I2C_Read... [16:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:00]Read from MH i2c: E2 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: E2 62 00 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: E2 62 00 C2 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [16:30: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:00]wFMCommunicate OK [16:30:00]SAM_PROTO_GetFieldsCounters done [16:30:00]requested_item shift.num is exist - process it [16:30:00]requested_item shift.opened is exist - process it [16:30:00]req_shift_opened [16:30:00]FM_GetShiftState [16:30:00]SAM_PROTO_GetShiftState [16:30:00]wFMCommunicate request_size=4 [16:30:00]MH_SAM_APDU [16:30:00]CAPDU: 80 13 01 00 [16:30:00]Write to MH i2c: E2 08 00 C3 15 80 13 01 00 00 00 00 00 55 [16:30:00]Write i2c OK [16:30:00]MH_I2C_Read... [16:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:00]Read from MH i2c: E2 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: E2 0E 00 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: E2 0E 00 C3 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8A [16:30:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:30:00]wFMCommunicate OK [16:30:00]SAM_PROTO_GetShiftState done [16:30:00]FM_GetShiftState done [16:30:00]req_shift_opened done [16:30:00]requested_item shift.open_date is exist - process it [16:30:00]req_shift_open_date [16:30:00]req_shift_open_date done [16:30:00]produce_requested_data done [16:30:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156356,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:30:00]process_action_free close_receipt [16:30:00]json_value_free [16:30:00]json_value_free done [16:30:00]process_json_proto returns [16:30:00]Send response to host [16:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156356,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:30:00]free response buf [16:30:00]execute_script done [16:30:00]execute_script returns [16:30:00]free content buf [16:30:00]Sock 9.Close socket [16:30:00]Sock 9.Thread stoped [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:26]accept exits with 8 [16:34:26]New connection [16:34:26]New thread 3066977636 created [16:34:26]Thread 3066834276 joined [16:34:26]Waiting for new connection... [16:34:26] Sock 8.Parse request [16:34:26]Sock 8.Check first char [16:34:26]Sock 8.First char is OK [16:34:26]request: POST /json_proto HTTP/1.0 [16:34:26]Method: POST [16:34:26]URL: /json_proto [16:34:26]Method is POST - this is cgi request [16:34:26]url: /json_proto [16:34:26]query_string will be loaded in cgi processing [16:34:26]execute_cgi json_proto POST (null) [16:34:26]execute_cgi path=json_proto method=POST [16:34:26]POST find Content-Length [16:34:26]Host: 172.17.63.3:8080 [16:34:26]Content-Length: 676 [16:34:26]Content-Type: application/json [16:34:26] [16:34:26]POST finish read [16:34:26]Found Content-Length = 676 [16:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:26]execute_script... [16:34: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)99172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:26]POST & json_proto [16:34:26]process_json_proto [16:34:26]json parsed OK: [16:34:26]protocol is kg_v1.0 [16:34:26]action value=close_receipt [16:34:26]process_action close_receipt [16:34:26]cmd_close_receipt [16:34:26]MH_GetDate [16:34:26]Write to MH i2c: F0 00 00 C4 15 C8 [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: F0 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: F0 09 00 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: F0 09 00 C4 15 00 13 1A 1D 67 50 D1 6C 64 73 [16:34:26]GetLastDocTimeStamp 1729960198 [16:34:26]current date 1729960467 [16:34:26]FM_GetShiftState [16:34:26]SAM_PROTO_GetShiftState [16:34:26]wFMCommunicate request_size=4 [16:34:26]MH_SAM_APDU [16:34:26]CAPDU: 80 13 01 00 [16:34:26]Write to MH i2c: E2 08 00 C5 15 80 13 01 00 00 00 00 00 57 [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:26]Read from MH i2c: E2 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: E2 0E 00 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: E2 0E 00 C5 15 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8C [16:34:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:34:26]wFMCommunicate OK [16:34:26]SAM_PROTO_GetShiftState done [16:34:26]FM_GetShiftState done [16:34:26]opened in 1729902702 [16:34:26]opened+sec_in_day 1729989102 [16:34:26]quantity*price = 34052 [16:34:26]sum+1 = 34053 [16:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 258 26.10.2024 16:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156357 ФПД: 95156272528125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163427&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156357&fm=95156272528125&tin=02508201610067®Number=0000000000091693&sum=34000 [16:34:27]StoreToDocumentArchive [16:34:27]shift 536 fd 156357 [16:34:27]save to /storage/0536/doc_00156357 [16:34:27]save last doc name /storage/0536/doc_00156357 to /storage/kkm_last_doc_name [16:34:27]save OK [16:34:27]Clear old archive folders... [16:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:27]tlvbuf is 016A3F70 [16:34:27]SAM_PROTO_ClearQueue [16:34:27]wFMCommunicate request_size=4 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 09 00 00 [16:34:27]Write to MH i2c: E2 08 00 D2 15 80 09 00 00 00 00 00 00 59 [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 03 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 03 00 D2 15 00 90 00 5B [16:34:27]RAPDU: 90 00 [16:34:27]wFMCommunicate OK [16:34:27]SAM_PROTO_ClearQueue done [16:34:27]KKMCreateOFDPacket [16:34:27]OFDProtocolAddRootSTLVToBuf [16:34:27]FM_MakeSignedData [16:34:27]FM_MakeSignedData [16:34:27]SAM_PROTO_SignData [16:34:27]wFMCommunicate request_size=4 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 0D 01 02 [16:34:27]Write to MH i2c: E2 08 00 D3 15 80 0D 01 02 00 00 00 00 61 [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:27]Read from MH i2c: E2 03 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 03 00 D3 15 00 90 00 5C [16:34:27]RAPDU: 90 00 [16:34:27]wFMCommunicate OK [16:34:27]wFMCommunicate request_size=255 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 13 1A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 62 02 00 35 04 06 00 56 [16:34:27]Write to MH i2c: E2 02 01 D4 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 13 1A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 62 02 00 35 04 06 00 56 00 00 7B [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 03 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 03 00 D4 15 00 90 00 5D [16:34:27]RAPDU: 90 00 [16:34:27]wFMCommunicate OK [16:34:27]wFMCommunicate request_size=10 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 0D 02 02 05 8B 4B D2 7A FD [16:34:27]Write to MH i2c: E2 0D 00 D5 15 80 0D 02 02 05 00 8B 4B D2 7A FD 00 00 8D [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 03 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 03 00 D5 15 00 90 00 5E [16:34:27]RAPDU: 90 00 [16:34:27]wFMCommunicate OK [16:34:27]wFMCommunicate request_size=4 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 0D 03 02 [16:34:27]Write to MH i2c: E2 08 00 D6 15 80 0D 03 02 00 00 00 00 66 [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 0B 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 0B 00 D6 15 00 5E 8F 97 AE 4C AB 24 7B 90 00 2F [16:34:27]RAPDU: 5E 8F 97 AE 4C AB 24 7B 90 00 [16:34:27]wFMCommunicate OK [16:34:27]SAM_PROTO_SignData done [16:34:27]FM_MakeSignedData done [16:34:27]CreateOFDProtocolMessage [16:34:27]wFMCommunicate request_size=4 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 11 00 00 [16:34:27]Write to MH i2c: E2 08 00 D7 15 80 11 00 00 00 00 00 00 66 [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 17 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 17 00 D7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BB [16:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:34:27]wFMCommunicate OK [16:34:27]CreateOFDProtocolMessage done [16:34:27]OFDSenderStorePacket 156357 [16:34:27]StoreOFDPacket docnum=156357 [16:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C9 8A 07 01 C3 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 13 1A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 62 02 00 35 04 06 00 56 8B 4B D2 7A FD 5E 8F 97 AE 4C AB 24 7B [16:34:27]CheckFolder [16:34:27]dirname=/storage/ofd_packets [16:34:27]CheckFolder done [16:34:27]ProducePacketName [16:34:27]name=ofd_packets/00156357 [16:34:27]NVStorageSaveData ofd_packets/00156357 [16:34:27]File name is /storage/ofd_packets/00156357 [16:34:27]Write 301 bytes [16:34:27]NVStorageSaveData done [16:34:27]OFDSenderStorePacket done [16:34:27]KKMCreateOFDPacket done [16:34:27]NVStorageSaveData kkm_last_timestamp [16:34:27]File name is /storage/kkm_last_timestamp [16:34:27]Write 4 bytes [16:34:27]NVStorageSaveData done [16:34:27]ExternCall_PrintAddStr [16:34:27]wPrintStart [16:34:27]Write to MH i2c: 01 00 00 D8 15 ED [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: 01 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: 01 07 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: 01 07 00 D8 15 00 00 00 00 00 FF 0F 02 [16:34:27]RasterBufferAndPrint [16:34:27]line Счет N : (1)99172 [16:34:27]line ИНН: 02508201610067 [16:34:27]line Контрольно-Кассовый Чек [16:34:27]line ПРОДАЖА [16:34:27]line ТРК (МРК, ГНК) : 11 [16:34:27]line Товар: 2710124130 [16:34:27]line Аи-92-К-5 [16:34:27]line 5.090 * 66.90 [16:34:27]line = 340.52 [16:34:27]line НДС 12% НСП 1% [16:34:27]line > о реализуемом товаре [16:34:27]line ОКРУГЛЕНИЕ: -0.52 [16:34:27]line ИТОГО: 340.00 [16:34:27]line Внесено: 340.00 [16:34:27]line СДАЧА: 0.00 [16:34:27]line НСП 1% : 3.01 [16:34:27]line НДС 12% : 36.16 [16:34:27]line Наличными: 340.00 [16:34:27]line Безнал.: 0.00 [16:34:27]line Место: АЗС № 143 "Партнер Нефть" [16:34:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:34:27]line СНО: Общий режим [16:34:27]line Чек 258 26.10.2024 16:34 [16:34:27]line Смена: 536 ФФД: 1.0 [16:34:27]line ЗНМ: 0300000096 [16:34:27]line РНМ: 0000000000091693 [16:34:27]line Версия ККМ: 001 [16:34:27]line ФМ: 0000000000871792 [16:34:27]line ФД: 156357 [16:34:27]line ФПД: 95156272528125 [16:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163427&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156357&fm=95156272528125&tin=02508201610067®Number=0000000000091693&sum=34000 [16:34:28]OFD Sender: Processing packet 156357 [packets to send 31, broken 30] [16:34:28]ProducePacketName [16:34:28]name=ofd_packets/00156357 [16:34:28]OFD Sender: To server: pG, [16:34:28]CommunicateWithHost lk.salyk.kg:30040 [16:34:28]ConnectInit lk.salyk.kg [16:34:28]written 0, free lines is 4095 [16:34:28]Connected sock=10 [16:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C9 8A 07 01 C3 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 13 1A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 62 02 00 35 04 06 00 56 8B 4B D2 7A FD 5E 8F 97 AE 4C AB 24 7B [16:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 20 6C 47 00 0D 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 62 02 00 F4 03 04 00 85 BF 1C 67 B6 04 01 00 00 76 0D AB BE 32 2F 15 4F [16:34:28]CommunicateWithHost err = 0 [16:34:28]CheckOFDResponse [16:34:28]1017 (14) - 77093643461234 [16:34:28]1041 (16) - 0000000000871792 [16:34:28]1040 (4) - 156357 [16:34:28]1012 (4) - 26.10.2024 10:08 [16:34:28]1206 (1) - 0 [16:34:28]OFD Sender: Remove packet 156357 [16:34:28]ProducePacketName [16:34:28]name=ofd_packets/00156357 [16:34:28]NVStorageDeleteData [16:34:28]Write to MH i2c: 01 00 00 03 16 19 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: 01 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: 01 07 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: 01 07 00 03 16 00 00 00 00 00 EA 0C 16 [16:34:28]RasterBufferAndPrint [16:34:28]line [16:34:28]line [16:34:28]line [16:34:28]line [16:34:28]line [16:34:28]written 0, free lines is 3312 [16:34:28]process_action close_receipt done [16:34:28]requested_data is exist [16:34:28]produce_requested_data [16:34:28]requested_item fm.sn is exist - process it [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 11 00 00 [16:34:28]Write to MH i2c: E2 08 00 0A 16 80 11 00 00 00 00 00 00 9A [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 17 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 17 00 0A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EF [16:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:34:28]wFMCommunicate OK [16:34:28]requested_item fd.num is exist - process it [16:34:28]SAM_PROTO_GetFieldsCounters [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 13 00 00 [16:34:28]Write to MH i2c: E2 08 00 0B 16 80 13 00 00 00 00 00 00 9D [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 62 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 62 00 0B 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [16:34: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:28]wFMCommunicate OK [16:34:28]SAM_PROTO_GetFieldsCounters done [16:34:28]requested_item shift.num is exist - process it [16:34:28]requested_item shift.opened is exist - process it [16:34:28]req_shift_opened [16:34:28]FM_GetShiftState [16:34:28]SAM_PROTO_GetShiftState [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 13 01 00 [16:34:28]Write to MH i2c: E2 08 00 0C 16 80 13 01 00 00 00 00 00 9F [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 0E 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 0E 00 0C 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D4 [16:34:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:34:28]wFMCommunicate OK [16:34:28]SAM_PROTO_GetShiftState done [16:34:28]FM_GetShiftState done [16:34:28]req_shift_opened done [16:34:28]requested_item shift.open_date is exist - process it [16:34:28]req_shift_open_date [16:34:28]req_shift_open_date done [16:34:28]produce_requested_data done [16:34:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156357,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:34:28]process_action_free close_receipt [16:34:28]json_value_free [16:34:28]json_value_free done [16:34:28]process_json_proto returns [16:34:28]Send response to host [16:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156357,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:34:28]free response buf [16:34:28]execute_script done [16:34:28]execute_script returns [16:34:28]free content buf [16:34:28]Sock 8.Close socket [16:34:28]Sock 8.Thread stoped [16:34:28]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:08]accept exits with 9 [16:40:08]New connection [16:40:08]New thread 3066834276 created [16:40:08]Thread 3066977636 joined [16:40:08]Waiting for new connection... [16:40:08] Sock 9.Parse request [16:40:08]Sock 9.Check first char [16:40:08]Sock 9.First char is OK [16:40:08]request: POST /json_proto HTTP/1.0 [16:40:08]Method: POST [16:40:08]URL: /json_proto [16:40:08]Method is POST - this is cgi request [16:40:08]url: /json_proto [16:40:08]query_string will be loaded in cgi processing [16:40:08]execute_cgi json_proto POST (null) [16:40:08]execute_cgi path=json_proto method=POST [16:40:08]POST find Content-Length [16:40:08]Host: 172.17.63.3:8080 [16:40:08]Content-Length: 676 [16:40:08]Content-Type: application/json [16:40:08] [16:40:08]POST finish read [16:40:08]Found Content-Length = 676 [16:40:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:08]execute_script... [16:40:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:08]POST & json_proto [16:40:08]process_json_proto [16:40:08]json parsed OK: [16:40:08]protocol is kg_v1.0 [16:40:08]action value=close_receipt [16:40:08]process_action close_receipt [16:40:08]cmd_close_receipt [16:40:08]MH_GetDate [16:40:08]Write to MH i2c: F0 00 00 0D 16 12 [16:40:08]Write i2c OK [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: F0 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: F0 09 00 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: F0 09 00 0D 16 00 69 1B 1D 67 50 D1 6C 64 14 [16:40:08]GetLastDocTimeStamp 1729960467 [16:40:08]current date 1729960809 [16:40:08]FM_GetShiftState [16:40:08]SAM_PROTO_GetShiftState [16:40:08]wFMCommunicate request_size=4 [16:40:08]MH_SAM_APDU [16:40:08]CAPDU: 80 13 01 00 [16:40:08]Write to MH i2c: E2 08 00 0E 16 80 13 01 00 00 00 00 00 A1 [16:40:08]Write i2c OK [16:40:08]MH_I2C_Read... [16:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:08]Read from MH i2c: E2 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: E2 0E 00 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: E2 0E 00 0E 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D6 [16:40:08]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:40:08]wFMCommunicate OK [16:40:08]SAM_PROTO_GetShiftState done [16:40:08]FM_GetShiftState done [16:40:08]opened in 1729902702 [16:40:08]opened+sec_in_day 1729989102 [16:40:08]quantity*price = 35055 [16:40:08]sum+1 = 35057 [16:40:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 259 26.10.2024 16:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156358 ФПД: 34220205954095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156358&fm=34220205954095&tin=02508201610067®Number=0000000000091693&sum=35000 [16:40:09]StoreToDocumentArchive [16:40:09]shift 536 fd 156358 [16:40:09]save to /storage/0536/doc_00156358 [16:40:09]save last doc name /storage/0536/doc_00156358 to /storage/kkm_last_doc_name [16:40:09]save OK [16:40:09]Clear old archive folders... [16:40:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:09]tlvbuf is 0167A890 [16:40:09]SAM_PROTO_ClearQueue [16:40:09]wFMCommunicate request_size=4 [16:40:09]MH_SAM_APDU [16:40:09]CAPDU: 80 09 00 00 [16:40:09]Write to MH i2c: E2 08 00 1B 16 80 09 00 00 00 00 00 00 A3 [16:40:09]Write i2c OK [16:40:09]MH_I2C_Read... [16:40:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:09]Read from MH i2c: E2 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: E2 03 00 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: E2 03 00 1B 16 00 90 00 A5 [16:40:09]RAPDU: 90 00 [16:40:09]wFMCommunicate OK [16:40:09]SAM_PROTO_ClearQueue done [16:40:09]KKMCreateOFDPacket [16:40:09]OFDProtocolAddRootSTLVToBuf [16:40:09]FM_MakeSignedData [16:40:09]FM_MakeSignedData [16:40:09]SAM_PROTO_SignData [16:40:09]wFMCommunicate request_size=4 [16:40:09]MH_SAM_APDU [16:40:09]CAPDU: 80 0D 01 02 [16:40:09]Write to MH i2c: E2 08 00 1C 16 80 0D 01 02 00 00 00 00 AB [16:40:09]Write i2c OK [16:40:09]MH_I2C_Read... [16:40:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:09]Read from MH i2c: E2 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: E2 03 00 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: E2 03 00 1C 16 00 90 00 A6 [16:40:09]RAPDU: 90 00 [16:40:09]wFMCommunicate OK [16:40:09]wFMCommunicate request_size=255 [16:40:09]MH_SAM_APDU [16:40:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 69 1B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 62 02 00 35 04 06 00 1F [16:40:09]Write to MH i2c: E2 02 01 1D 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 69 1B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 62 02 00 35 04 06 00 1F 00 00 B9 [16:40:09]Write i2c OK [16:40:09]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 1D 16 00 90 00 A7 [16:40:10]RAPDU: 90 00 [16:40:10]wFMCommunicate OK [16:40:10]wFMCommunicate request_size=10 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 0D 02 02 05 1F 83 38 54 2F [16:40:10]Write to MH i2c: E2 0D 00 1E 16 80 0D 02 02 05 00 1F 83 38 54 2F 00 00 15 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 1E 16 00 90 00 A8 [16:40:10]RAPDU: 90 00 [16:40:10]wFMCommunicate OK [16:40:10]wFMCommunicate request_size=4 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 0D 03 02 [16:40:10]Write to MH i2c: E2 08 00 1F 16 80 0D 03 02 00 00 00 00 B0 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 0B 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 0B 00 1F 16 00 DC BE F9 09 64 AC 9F 6F 90 00 6B [16:40:10]RAPDU: DC BE F9 09 64 AC 9F 6F 90 00 [16:40:10]wFMCommunicate OK [16:40:10]SAM_PROTO_SignData done [16:40:10]FM_MakeSignedData done [16:40:10]CreateOFDProtocolMessage [16:40:10]wFMCommunicate request_size=4 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 11 00 00 [16:40:10]Write to MH i2c: E2 08 00 20 16 80 11 00 00 00 00 00 00 B0 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 17 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 17 00 20 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 05 [16:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:40:10]wFMCommunicate OK [16:40:10]CreateOFDProtocolMessage done [16:40:10]OFDSenderStorePacket 156358 [16:40:10]StoreOFDPacket docnum=156358 [16:40:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE EC 07 01 47 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 69 1B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 62 02 00 35 04 06 00 1F 1F 83 38 54 2F DC BE F9 09 64 AC 9F 6F [16:40:10]CheckFolder [16:40:10]dirname=/storage/ofd_packets [16:40:10]CheckFolder done [16:40:10]ProducePacketName [16:40:10]name=ofd_packets/00156358 [16:40:10]NVStorageSaveData ofd_packets/00156358 [16:40:10]File name is /storage/ofd_packets/00156358 [16:40:10]Write 301 bytes [16:40:10]NVStorageSaveData done [16:40:10]OFDSenderStorePacket done [16:40:10]KKMCreateOFDPacket done [16:40:10]NVStorageSaveData kkm_last_timestamp [16:40:10]File name is /storage/kkm_last_timestamp [16:40:10]Write 4 bytes [16:40:10]NVStorageSaveData done [16:40:10]ExternCall_PrintAddStr [16:40:10]wPrintStart [16:40:10]Write to MH i2c: 01 00 00 21 16 37 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 07 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 07 00 21 16 00 00 00 00 00 FF 0F 4C [16:40:10]RasterBufferAndPrint [16:40:10]line Счет N : (1)99173 [16:40:10]line ИНН: 02508201610067 [16:40:10]line Контрольно-Кассовый Чек [16:40:10]line ПРОДАЖА [16:40:10]line ТРК (МРК, ГНК) : 31 [16:40:10]line Товар: 2710124130 [16:40:10]line Аи-92-К-5 [16:40:10]line 5.240 * 66.90 [16:40:10]line = 350.56 [16:40:10]line НДС 12% НСП 1% [16:40:10]line > о реализуемом товаре [16:40:10]line ОКРУГЛЕНИЕ: -0.56 [16:40:10]line ИТОГО: 350.00 [16:40:10]line Внесено: 350.00 [16:40:10]line СДАЧА: 0.00 [16:40:10]line НСП 1% : 3.10 [16:40:10]line НДС 12% : 37.23 [16:40:10]line Наличными: 350.00 [16:40:10]line Безнал.: 0.00 [16:40:10]line Место: АЗС № 143 "Партнер Нефть" [16:40:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:40:10]line СНО: Общий режим [16:40:10]line Чек 259 26.10.2024 16:40 [16:40:10]line Смена: 536 ФФД: 1.0 [16:40:10]line ЗНМ: 0300000096 [16:40:10]line РНМ: 0000000000091693 [16:40:10]line Версия ККМ: 001 [16:40:10]line ФМ: 0000000000871792 [16:40:10]line ФД: 156358 [16:40:10]line ФПД: 34220205954095 [16:40:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156358&fm=34220205954095&tin=02508201610067®Number=0000000000091693&sum=35000 [16:40:10]OFD Sender: Processing packet 156358 [packets to send 31, broken 30] [16:40:10]ProducePacketName [16:40:10]name=ofd_packets/00156358 [16:40:10]OFD Sender: To server: pG, [16:40:10]CommunicateWithHost lk.salyk.kg:30040 [16:40:10]ConnectInit lk.salyk.kg [16:40:10]written 0, free lines is 4095 [16:40:10]Connected sock=10 [16:40:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE EC 07 01 47 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 69 1B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 62 02 00 35 04 06 00 1F 1F 83 38 54 2F DC BE F9 09 64 AC 9F 6F [16:40:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4F F6 47 00 17 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 62 02 00 F4 03 04 00 DB C0 1C 67 B6 04 01 00 00 4E 39 51 C6 3A CE 39 A3 [16:40:10]CommunicateWithHost err = 0 [16:40:10]CheckOFDResponse [16:40:10]1017 (14) - 77093643461234 [16:40:10]1041 (16) - 0000000000871792 [16:40:10]1040 (4) - 156358 [16:40:10]1012 (4) - 26.10.2024 10:13 [16:40:10]1206 (1) - 0 [16:40:10]OFD Sender: Remove packet 156358 [16:40:10]ProducePacketName [16:40:10]name=ofd_packets/00156358 [16:40:10]NVStorageDeleteData [16:40:11]Write to MH i2c: 01 00 00 4C 16 62 [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 4C 16 00 00 00 00 00 DC 0C 51 [16:40:11]RasterBufferAndPrint [16:40:11]line [16:40:11]line [16:40:11]line [16:40:11]line [16:40:11]line [16:40:11]written 0, free lines is 3298 [16:40:11]process_action close_receipt done [16:40:11]requested_data is exist [16:40:11]produce_requested_data [16:40:11]requested_item fm.sn is exist - process it [16:40:11]wFMCommunicate request_size=4 [16:40:11]MH_SAM_APDU [16:40:11]CAPDU: 80 11 00 00 [16:40:11]Write to MH i2c: E2 08 00 53 16 80 11 00 00 00 00 00 00 E3 [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:11]Read from MH i2c: E2 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 17 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 17 00 53 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 38 [16:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:40:11]wFMCommunicate OK [16:40:11]requested_item fd.num is exist - process it [16:40:11]SAM_PROTO_GetFieldsCounters [16:40:11]wFMCommunicate request_size=4 [16:40:11]MH_SAM_APDU [16:40:11]CAPDU: 80 13 00 00 [16:40:11]Write to MH i2c: E2 08 00 54 16 80 13 00 00 00 00 00 00 E6 [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:11]Read from MH i2c: E2 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 62 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 62 00 54 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [16:40: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:11]wFMCommunicate OK [16:40:11]SAM_PROTO_GetFieldsCounters done [16:40:11]requested_item shift.num is exist - process it [16:40:11]requested_item shift.opened is exist - process it [16:40:11]req_shift_opened [16:40:11]FM_GetShiftState [16:40:11]SAM_PROTO_GetShiftState [16:40:11]wFMCommunicate request_size=4 [16:40:11]MH_SAM_APDU [16:40:11]CAPDU: 80 13 01 00 [16:40:11]Write to MH i2c: E2 08 00 55 16 80 13 01 00 00 00 00 00 E8 [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:11]Read from MH i2c: E2 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 0E 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 0E 00 55 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 1D [16:40:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:40:11]wFMCommunicate OK [16:40:11]SAM_PROTO_GetShiftState done [16:40:11]FM_GetShiftState done [16:40:11]req_shift_opened done [16:40:11]requested_item shift.open_date is exist - process it [16:40:11]req_shift_open_date [16:40:11]req_shift_open_date done [16:40:11]produce_requested_data done [16:40:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156358,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:40:11]process_action_free close_receipt [16:40:11]json_value_free [16:40:11]json_value_free done [16:40:11]process_json_proto returns [16:40:11]Send response to host [16:40:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156358,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:40:11]free response buf [16:40:11]execute_script done [16:40:11]execute_script returns [16:40:11]free content buf [16:40:11]Sock 9.Close socket [16:40:11]Sock 9.Thread stoped [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:38]accept exits with 8 [16:42:38]New connection [16:42:38]New thread 3066977636 created [16:42:38]Thread 3066834276 joined [16:42:38]Waiting for new connection... [16:42:38] Sock 8.Parse request [16:42:38]Sock 8.Check first char [16:42:38]Sock 8.First char is OK [16:42:38]request: POST /json_proto HTTP/1.0 [16:42:38]Method: POST [16:42:38]URL: /json_proto [16:42:38]Method is POST - this is cgi request [16:42:38]url: /json_proto [16:42:38]query_string will be loaded in cgi processing [16:42:38]execute_cgi json_proto POST (null) [16:42:38]execute_cgi path=json_proto method=POST [16:42:38]POST find Content-Length [16:42:38]Host: 172.17.63.3:8080 [16:42:38]Content-Length: 678 [16:42:38]Content-Type: application/json [16:42:38] [16:42:38]POST finish read [16:42:38]Found Content-Length = 678 [16:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.190, "sum" : 949.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 949.00, "payments": [ { "type": 0, "sum" : 949.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:38]execute_script... [16:42:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.190, "sum" : 949.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 949.00, "payments": [ { "type": 0, "sum" : 949.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:38]POST & json_proto [16:42:38]process_json_proto [16:42:38]json parsed OK: [16:42:38]protocol is kg_v1.0 [16:42:38]action value=close_receipt [16:42:38]process_action close_receipt [16:42:38]cmd_close_receipt [16:42:38]MH_GetDate [16:42:38]Write to MH i2c: F0 00 00 56 16 5B [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: F0 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: F0 09 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: F0 09 00 56 16 00 FF 1B 1D 67 50 D1 6C 64 F3 [16:42:38]GetLastDocTimeStamp 1729960809 [16:42:38]current date 1729960959 [16:42:38]FM_GetShiftState [16:42:38]SAM_PROTO_GetShiftState [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 13 01 00 [16:42:38]Write to MH i2c: E2 08 00 57 16 80 13 01 00 00 00 00 00 EA [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 0E 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 0E 00 57 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 1F [16:42:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:42:38]wFMCommunicate OK [16:42:38]SAM_PROTO_GetShiftState done [16:42:38]FM_GetShiftState done [16:42:38]opened in 1729902702 [16:42:38]opened+sec_in_day 1729989102 [16:42:38]quantity*price = 94931 [16:42:38]sum+1 = 94932 [16:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 949.00 Внесено: 1000.00 СДАЧА: 51.00 НСП 1% : 8.40 НДС 12% : 100.81 Наличными: 949.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 260 26.10.2024 16:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156359 ФПД: 267329778636921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164239&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156359&fm=267329778636921&tin=02508201610067®Number=0000000000091693&sum=94900 [16:42:39]StoreToDocumentArchive [16:42:39]shift 536 fd 156359 [16:42:39]save to /storage/0536/doc_00156359 [16:42:39]save last doc name /storage/0536/doc_00156359 to /storage/kkm_last_doc_name [16:42:39]save OK [16:42:39]Clear old archive folders... [16:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:39]tlvbuf is B6EC73D0 [16:42:39]SAM_PROTO_ClearQueue [16:42:39]wFMCommunicate request_size=4 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 09 00 00 [16:42:39]Write to MH i2c: E2 08 00 64 16 80 09 00 00 00 00 00 00 EC [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 03 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [16:42:39]RAPDU: 90 00 [16:42:39]wFMCommunicate OK [16:42:39]SAM_PROTO_ClearQueue done [16:42:39]KKMCreateOFDPacket [16:42:39]OFDProtocolAddRootSTLVToBuf [16:42:39]FM_MakeSignedData [16:42:39]FM_MakeSignedData [16:42:39]SAM_PROTO_SignData [16:42:39]wFMCommunicate request_size=4 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 0D 01 02 [16:42:39]Write to MH i2c: E2 08 00 65 16 80 0D 01 02 00 00 00 00 F4 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 03 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [16:42:39]RAPDU: 90 00 [16:42:39]wFMCommunicate OK [16:42:39]wFMCommunicate request_size=255 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 27 00 00 00 00 07 04 06 00 B4 72 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 FF 1B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 62 02 00 35 04 06 00 F3 [16:42:39]Write to MH i2c: E2 02 01 66 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 27 00 00 00 00 07 04 06 00 B4 72 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 FF 1B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 62 02 00 35 04 06 00 F3 00 00 26 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 03 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [16:42:39]RAPDU: 90 00 [16:42:39]wFMCommunicate OK [16:42:39]wFMCommunicate request_size=10 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 0D 02 02 05 22 90 7E 58 79 [16:42:39]Write to MH i2c: E2 0D 00 67 16 80 0D 02 02 05 00 22 90 7E 58 79 00 00 02 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 03 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 03 00 67 16 00 90 00 F1 [16:42:39]RAPDU: 90 00 [16:42:39]wFMCommunicate OK [16:42:39]wFMCommunicate request_size=4 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 0D 03 02 [16:42:39]Write to MH i2c: E2 08 00 68 16 80 0D 03 02 00 00 00 00 F9 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 0B 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 0B 00 68 16 00 EA D7 04 E2 42 61 7A 33 90 00 F1 [16:42:39]RAPDU: EA D7 04 E2 42 61 7A 33 90 00 [16:42:39]wFMCommunicate OK [16:42:39]SAM_PROTO_SignData done [16:42:39]FM_MakeSignedData done [16:42:39]CreateOFDProtocolMessage [16:42:39]wFMCommunicate request_size=4 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 11 00 00 [16:42:39]Write to MH i2c: E2 08 00 69 16 80 11 00 00 00 00 00 00 F9 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 17 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 17 00 69 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4E [16:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:42:39]wFMCommunicate OK [16:42:39]CreateOFDProtocolMessage done [16:42:39]OFDSenderStorePacket 156359 [16:42:39]StoreOFDPacket docnum=156359 [16:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F9 AD 07 01 12 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 27 00 00 00 00 07 04 06 00 B4 72 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 FF 1B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 62 02 00 35 04 06 00 F3 22 90 7E 58 79 EA D7 04 E2 42 61 7A 33 [16:42:39]CheckFolder [16:42:39]dirname=/storage/ofd_packets [16:42:39]CheckFolder done [16:42:39]ProducePacketName [16:42:39]name=ofd_packets/00156359 [16:42:39]NVStorageSaveData ofd_packets/00156359 [16:42:39]File name is /storage/ofd_packets/00156359 [16:42:39]Write 301 bytes [16:42:39]NVStorageSaveData done [16:42:39]OFDSenderStorePacket done [16:42:39]KKMCreateOFDPacket done [16:42:39]NVStorageSaveData kkm_last_timestamp [16:42:39]File name is /storage/kkm_last_timestamp [16:42:39]Write 4 bytes [16:42:39]NVStorageSaveData done [16:42:39]ExternCall_PrintAddStr [16:42:39]wPrintStart [16:42:39]Write to MH i2c: 01 00 00 6A 16 80 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: 01 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: 01 07 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: 01 07 00 6A 16 00 00 00 00 00 FF 0F 95 [16:42:39]RasterBufferAndPrint [16:42:39]line Счет N : (1)99174 [16:42:39]line ИНН: 02508201610067 [16:42:39]line Контрольно-Кассовый Чек [16:42:39]line ПРОДАЖА [16:42:39]line ТРК (МРК, ГНК) : 31 [16:42:39]line Товар: 2710124130 [16:42:39]line Аи-92-К-5 [16:42:39]line 14.190 * 66.90 [16:42:39]line = 949.31 [16:42:39]line НДС 12% НСП 1% [16:42:39]line > о реализуемом товаре [16:42:39]line ОКРУГЛЕНИЕ: -0.31 [16:42:39]line ИТОГО: 949.00 [16:42:39]line Внесено: 1000.00 [16:42:39]line СДАЧА: 51.00 [16:42:39]line НСП 1% : 8.40 [16:42:39]line НДС 12% : 100.81 [16:42:39]line Наличными: 949.00 [16:42:39]line Безнал.: 0.00 [16:42:39]line Место: АЗС № 143 "Партнер Нефть" [16:42:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:42:39]line СНО: Общий режим [16:42:39]line Чек 260 26.10.2024 16:42 [16:42:39]line Смена: 536 ФФД: 1.0 [16:42:39]line ЗНМ: 0300000096 [16:42:39]line РНМ: 0000000000091693 [16:42:39]line Версия ККМ: 001 [16:42:39]line ФМ: 0000000000871792 [16:42:39]line ФД: 156359 [16:42:39]line ФПД: 267329778636921 [16:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164239&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156359&fm=267329778636921&tin=02508201610067®Number=0000000000091693&sum=94900 [16:42:40]OFD Sender: Processing packet 156359 [packets to send 31, broken 30] [16:42:40]ProducePacketName [16:42:40]name=ofd_packets/00156359 [16:42:40]OFD Sender: To server: pG, [16:42:40]CommunicateWithHost lk.salyk.kg:30040 [16:42:40]ConnectInit lk.salyk.kg [16:42:40]written 0, free lines is 4095 [16:42:40]Connected sock=10 [16:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F9 AD 07 01 12 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 27 00 00 00 00 07 04 06 00 B4 72 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 FF 1B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 62 02 00 35 04 06 00 F3 22 90 7E 58 79 EA D7 04 E2 42 61 7A 33 [16:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 61 18 47 00 EA 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 62 02 00 F4 03 04 00 71 C1 1C 67 B6 04 01 00 00 1F 43 48 23 B4 0F F9 A4 [16:42:40]CommunicateWithHost err = 0 [16:42:40]CheckOFDResponse [16:42:40]1017 (14) - 77093643461234 [16:42:40]1041 (16) - 0000000000871792 [16:42:40]1040 (4) - 156359 [16:42:40]1012 (4) - 26.10.2024 10:16 [16:42:40]1206 (1) - 0 [16:42:40]OFD Sender: Remove packet 156359 [16:42:40]ProducePacketName [16:42:40]name=ofd_packets/00156359 [16:42:40]NVStorageDeleteData [16:42:40]Write to MH i2c: 01 00 00 95 16 AB [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: 01 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: 01 07 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: 01 07 00 95 16 00 00 00 00 00 E4 0C A2 [16:42:40]RasterBufferAndPrint [16:42:40]line [16:42:40]line [16:42:40]line [16:42:40]line [16:42:40]line [16:42:40]written 0, free lines is 3306 [16:42:40]process_action close_receipt done [16:42:40]requested_data is exist [16:42:40]produce_requested_data [16:42:40]requested_item fm.sn is exist - process it [16:42:40]wFMCommunicate request_size=4 [16:42:40]MH_SAM_APDU [16:42:40]CAPDU: 80 11 00 00 [16:42:40]Write to MH i2c: E2 08 00 9C 16 80 11 00 00 00 00 00 00 2C [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:40]Read from MH i2c: E2 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 17 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 17 00 9C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 81 [16:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:42:40]wFMCommunicate OK [16:42:40]requested_item fd.num is exist - process it [16:42:40]SAM_PROTO_GetFieldsCounters [16:42:40]wFMCommunicate request_size=4 [16:42:40]MH_SAM_APDU [16:42:40]CAPDU: 80 13 00 00 [16:42:40]Write to MH i2c: E2 08 00 9D 16 80 13 00 00 00 00 00 00 2F [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:40]Read from MH i2c: E2 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 62 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 62 00 9D 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [16:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:40]wFMCommunicate OK [16:42:40]SAM_PROTO_GetFieldsCounters done [16:42:40]requested_item shift.num is exist - process it [16:42:40]requested_item shift.opened is exist - process it [16:42:40]req_shift_opened [16:42:40]FM_GetShiftState [16:42:40]SAM_PROTO_GetShiftState [16:42:40]wFMCommunicate request_size=4 [16:42:40]MH_SAM_APDU [16:42:40]CAPDU: 80 13 01 00 [16:42:40]Write to MH i2c: E2 08 00 9E 16 80 13 01 00 00 00 00 00 31 [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:41]Read from MH i2c: E2 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 0E 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 0E 00 9E 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 66 [16:42:41]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:42:41]wFMCommunicate OK [16:42:41]SAM_PROTO_GetShiftState done [16:42:41]FM_GetShiftState done [16:42:41]req_shift_opened done [16:42:41]requested_item shift.open_date is exist - process it [16:42:41]req_shift_open_date [16:42:41]req_shift_open_date done [16:42:41]produce_requested_data done [16:42:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156359,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:42:41]process_action_free close_receipt [16:42:41]json_value_free [16:42:41]json_value_free done [16:42:41]process_json_proto returns [16:42:41]Send response to host [16:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156359,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:42:41]free response buf [16:42:41]execute_script done [16:42:41]execute_script returns [16:42:41]free content buf [16:42:41]Sock 8.Close socket [16:42:41]Sock 8.Thread stoped [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:46]int [16:42:46]Write to MH i2c: 01 00 00 9F 16 B5 [16:42:46]*** FLAG_PRN_KEY set [16:42:46]Write i2c OK [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: 01 [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: 01 07 00 [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: 01 07 00 9F 16 00 08 00 00 00 FF 0F D2 [16:42:46]state=0 [16:42:46]Key pressed [16:42:46]Feed [16:42:46]Write to MH i2c: D8 00 00 A0 16 8D [16:42:46]Write i2c OK [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: D8 [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: D8 01 00 [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: D8 01 00 A0 16 00 8E [16:42:46]int [16:42:46]Write to MH i2c: 01 00 00 A1 16 B7 [16:42:46]Write i2c OK [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: 01 [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: 01 07 00 [16:42:46]MH_I2C_Read... [16:42:46]Read from MH i2c: 01 07 00 A1 16 00 48 00 00 00 3D 00 43 [16:42:46]state=2 [16:42:46]Key pressed [16:42:47]int [16:42:47]Write to MH i2c: 01 00 00 A2 16 B8 [16:42:47]*** FLAG_PRN_KEY reset [16:42:47]Write i2c OK [16:42:47]MH_I2C_Read... [16:42:47]Read from MH i2c: 01 [16:42:47]MH_I2C_Read... [16:42:47]Read from MH i2c: 01 07 00 [16:42:47]MH_I2C_Read... [16:42:47]Read from MH i2c: 01 07 00 A2 16 00 00 00 00 00 FF 0F CD [16:42:47]state=2 [16:42:47]Stop feed [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:10]accept exits with 9 [16:44:10]New connection [16:44:10]New thread 3066834276 created [16:44:10]Thread 3066977636 joined [16:44:10]Waiting for new connection... [16:44:10] Sock 9.Parse request [16:44:10]Sock 9.Check first char [16:44:10]Sock 9.First char is OK [16:44:10]request: POST /json_proto HTTP/1.0 [16:44:10]Method: POST [16:44:10]URL: /json_proto [16:44:10]Method is POST - this is cgi request [16:44:10]url: /json_proto [16:44:10]query_string will be loaded in cgi processing [16:44:10]execute_cgi json_proto POST (null) [16:44:10]execute_cgi path=json_proto method=POST [16:44:10]POST find Content-Length [16:44:10]Host: 172.17.63.3:8080 [16:44:10]Content-Length: 676 [16:44:10]Content-Type: application/json [16:44:10] [16:44:10]POST finish read [16:44:10]Found Content-Length = 676 [16:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:10]execute_script... [16:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:10]POST & json_proto [16:44:10]process_json_proto [16:44:10]json parsed OK: [16:44:10]protocol is kg_v1.0 [16:44:10]action value=close_receipt [16:44:10]process_action close_receipt [16:44:10]cmd_close_receipt [16:44:10]MH_GetDate [16:44:10]Write to MH i2c: F0 00 00 A3 16 A8 [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: F0 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: F0 09 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: F0 09 00 A3 16 00 5B 1C 1D 67 50 D1 6C 64 9D [16:44:10]GetLastDocTimeStamp 1729960959 [16:44:10]current date 1729961051 [16:44:10]FM_GetShiftState [16:44:10]SAM_PROTO_GetShiftState [16:44:10]wFMCommunicate request_size=4 [16:44:10]MH_SAM_APDU [16:44:10]CAPDU: 80 13 01 00 [16:44:10]Write to MH i2c: E2 08 00 A4 16 80 13 01 00 00 00 00 00 37 [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:10]Read from MH i2c: E2 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 0E 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 0E 00 A4 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6C [16:44:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:44:10]wFMCommunicate OK [16:44:10]SAM_PROTO_GetShiftState done [16:44:10]FM_GetShiftState done [16:44:10]opened in 1729902702 [16:44:10]opened+sec_in_day 1729989102 [16:44:10]quantity*price = 50041 [16:44:10]sum+1 = 50042 [16:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 261 26.10.2024 16:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156360 ФПД: 182811217095798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164411&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156360&fm=182811217095798&tin=02508201610067®Number=0000000000091693&sum=50000 [16:44:11]StoreToDocumentArchive [16:44:11]shift 536 fd 156360 [16:44:11]save to /storage/0536/doc_00156360 [16:44:11]save last doc name /storage/0536/doc_00156360 to /storage/kkm_last_doc_name [16:44:11]save OK [16:44:11]Clear old archive folders... [16:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:11]tlvbuf is 016976D0 [16:44:11]SAM_PROTO_ClearQueue [16:44:11]wFMCommunicate request_size=4 [16:44:11]MH_SAM_APDU [16:44:11]CAPDU: 80 09 00 00 [16:44:11]Write to MH i2c: E2 08 00 B1 16 80 09 00 00 00 00 00 00 39 [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:11]OFD Sender: No OFD packet to send [16:44:11]Read from MH i2c: E2 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 03 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 03 00 B1 16 00 90 00 3B [16:44:11]RAPDU: 90 00 [16:44:11]wFMCommunicate OK [16:44:11]SAM_PROTO_ClearQueue done [16:44:11]KKMCreateOFDPacket [16:44:11]OFDProtocolAddRootSTLVToBuf [16:44:11]FM_MakeSignedData [16:44:11]FM_MakeSignedData [16:44:11]SAM_PROTO_SignData [16:44:11]wFMCommunicate request_size=4 [16:44:11]MH_SAM_APDU [16:44:11]CAPDU: 80 0D 01 02 [16:44:11]Write to MH i2c: E2 08 00 B2 16 80 0D 01 02 00 00 00 00 41 [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:11]Read from MH i2c: E2 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 03 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 03 00 B2 16 00 90 00 3C [16:44:11]RAPDU: 90 00 [16:44:11]wFMCommunicate OK [16:44:11]wFMCommunicate request_size=255 [16:44:11]MH_SAM_APDU [16:44:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 5B 1C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 62 02 00 35 04 06 00 A6 [16:44:11]Write to MH i2c: E2 02 01 B3 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 5B 1C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 62 02 00 35 04 06 00 A6 00 00 C2 [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:11]Read from MH i2c: E2 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 03 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 03 00 B3 16 00 90 00 3D [16:44:11]RAPDU: 90 00 [16:44:11]wFMCommunicate OK [16:44:11]wFMCommunicate request_size=10 [16:44:11]MH_SAM_APDU [16:44:11]CAPDU: 80 0D 02 02 05 44 0D A7 EC 76 [16:44:11]Write to MH i2c: E2 0D 00 B4 16 80 0D 02 02 05 00 44 0D A7 EC 76 00 00 A8 [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:11]Read from MH i2c: E2 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 03 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 03 00 B4 16 00 90 00 3E [16:44:11]RAPDU: 90 00 [16:44:11]wFMCommunicate OK [16:44:11]wFMCommunicate request_size=4 [16:44:11]MH_SAM_APDU [16:44:11]CAPDU: 80 0D 03 02 [16:44:11]Write to MH i2c: E2 08 00 B5 16 80 0D 03 02 00 00 00 00 46 [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:11]Read from MH i2c: E2 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 0B 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 0B 00 B5 16 00 51 4B 65 E9 5D E1 96 61 90 00 66 [16:44:11]RAPDU: 51 4B 65 E9 5D E1 96 61 90 00 [16:44:11]wFMCommunicate OK [16:44:11]SAM_PROTO_SignData done [16:44:11]FM_MakeSignedData done [16:44:11]CreateOFDProtocolMessage [16:44:11]wFMCommunicate request_size=4 [16:44:11]MH_SAM_APDU [16:44:11]CAPDU: 80 11 00 00 [16:44:11]Write to MH i2c: E2 08 00 B6 16 80 11 00 00 00 00 00 00 46 [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:11]Read from MH i2c: E2 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 17 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: E2 17 00 B6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [16:44:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:44:11]wFMCommunicate OK [16:44:11]CreateOFDProtocolMessage done [16:44:11]OFDSenderStorePacket 156360 [16:44:11]StoreOFDPacket docnum=156360 [16:44:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3E AC 07 01 05 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 5B 1C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 62 02 00 35 04 06 00 A6 44 0D A7 EC 76 51 4B 65 E9 5D E1 96 61 [16:44:11]CheckFolder [16:44:11]dirname=/storage/ofd_packets [16:44:11]CheckFolder done [16:44:11]ProducePacketName [16:44:11]name=ofd_packets/00156360 [16:44:11]NVStorageSaveData ofd_packets/00156360 [16:44:11]File name is /storage/ofd_packets/00156360 [16:44:11]Write 301 bytes [16:44:11]NVStorageSaveData done [16:44:11]OFDSenderStorePacket done [16:44:11]KKMCreateOFDPacket done [16:44:11]NVStorageSaveData kkm_last_timestamp [16:44:11]File name is /storage/kkm_last_timestamp [16:44:11]Write 4 bytes [16:44:11]NVStorageSaveData done [16:44:11]ExternCall_PrintAddStr [16:44:11]wPrintStart [16:44:11]Write to MH i2c: 01 00 00 B7 16 CD [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 07 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 07 00 B7 16 00 00 00 00 00 FF 0F E2 [16:44:11]RasterBufferAndPrint [16:44:11]line Счет N : (1)99175 [16:44:11]line ИНН: 02508201610067 [16:44:11]line Контрольно-Кассовый Чек [16:44:11]line ПРОДАЖА [16:44:11]line ТРК (МРК, ГНК) : 21 [16:44:11]line Товар: 2710124130 [16:44:11]line Аи-92-К-5 [16:44:11]line 7.480 * 66.90 [16:44:11]line = 500.41 [16:44:11]line НДС 12% НСП 1% [16:44:11]line > о реализуемом товаре [16:44:11]line ОКРУГЛЕНИЕ: -0.41 [16:44:11]line ИТОГО: 500.00 [16:44:11]line Внесено: 500.00 [16:44:11]line СДАЧА: 0.00 [16:44:11]line НСП 1% : 4.43 [16:44:11]line НДС 12% : 53.14 [16:44:11]line Наличными: 500.00 [16:44:11]line Безнал.: 0.00 [16:44:11]line Место: АЗС № 143 "Партнер Нефть" [16:44:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:44:11]line СНО: Общий режим [16:44:11]line Чек 261 26.10.2024 16:44 [16:44:11]line Смена: 536 ФФД: 1.0 [16:44:11]line ЗНМ: 0300000096 [16:44:11]line РНМ: 0000000000091693 [16:44:11]line Версия ККМ: 001 [16:44:11]line ФМ: 0000000000871792 [16:44:11]line ФД: 156360 [16:44:11]line ФПД: 182811217095798 [16:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164411&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156360&fm=182811217095798&tin=02508201610067®Number=0000000000091693&sum=50000 [16:44:12]OFD Sender: Processing packet 156360 [packets to send 31, broken 30] [16:44:12]ProducePacketName [16:44:12]name=ofd_packets/00156360 [16:44:12]OFD Sender: To server: pG, [16:44:12]CommunicateWithHost lk.salyk.kg:30040 [16:44:12]ConnectInit lk.salyk.kg [16:44:12]written 0, free lines is 4095 [16:44:12]Connected sock=10 [16:44:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3E AC 07 01 05 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 5B 1C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 62 02 00 35 04 06 00 A6 44 0D A7 EC 76 51 4B 65 E9 5D E1 96 61 [16:44:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E8 19 47 00 AB 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 62 02 00 F4 03 04 00 CD C1 1C 67 B6 04 01 00 00 2E 44 46 92 25 BB 70 EE [16:44:12]CommunicateWithHost err = 0 [16:44:12]CheckOFDResponse [16:44:12]1017 (14) - 77093643461234 [16:44:12]1041 (16) - 0000000000871792 [16:44:12]1040 (4) - 156360 [16:44:12]1012 (4) - 26.10.2024 10:17 [16:44:12]1206 (1) - 0 [16:44:12]OFD Sender: Remove packet 156360 [16:44:12]ProducePacketName [16:44:12]name=ofd_packets/00156360 [16:44:12]NVStorageDeleteData [16:44:12]Write to MH i2c: 01 00 00 E2 16 F8 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 07 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 07 00 E2 16 00 00 00 00 00 DE 0C E9 [16:44:12]RasterBufferAndPrint [16:44:12]line [16:44:12]line [16:44:12]line [16:44:12]line [16:44:12]line [16:44:12]written 0, free lines is 3300 [16:44:12]process_action close_receipt done [16:44:12]requested_data is exist [16:44:12]produce_requested_data [16:44:12]requested_item fm.sn is exist - process it [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 11 00 00 [16:44:12]Write to MH i2c: E2 08 00 E9 16 80 11 00 00 00 00 00 00 79 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 17 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 17 00 E9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CE [16:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:44:12]wFMCommunicate OK [16:44:12]requested_item fd.num is exist - process it [16:44:12]SAM_PROTO_GetFieldsCounters [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 13 00 00 [16:44:12]Write to MH i2c: E2 08 00 EA 16 80 13 00 00 00 00 00 00 7C [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 62 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 62 00 EA 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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [16:44:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:12]wFMCommunicate OK [16:44:12]SAM_PROTO_GetFieldsCounters done [16:44:12]requested_item shift.num is exist - process it [16:44:12]requested_item shift.opened is exist - process it [16:44:12]req_shift_opened [16:44:12]FM_GetShiftState [16:44:12]SAM_PROTO_GetShiftState [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 13 01 00 [16:44:12]Write to MH i2c: E2 08 00 EB 16 80 13 01 00 00 00 00 00 7E [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 0E 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 0E 00 EB 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B3 [16:44:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:44:12]wFMCommunicate OK [16:44:12]SAM_PROTO_GetShiftState done [16:44:12]FM_GetShiftState done [16:44:12]req_shift_opened done [16:44:12]requested_item shift.open_date is exist - process it [16:44:12]req_shift_open_date [16:44:12]req_shift_open_date done [16:44:12]produce_requested_data done [16:44:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156360,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:44:12]process_action_free close_receipt [16:44:12]json_value_free [16:44:12]json_value_free done [16:44:12]process_json_proto returns [16:44:12]Send response to host [16:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156360,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:44:12]free response buf [16:44:12]execute_script done [16:44:12]execute_script returns [16:44:12]free content buf [16:44:12]Sock 9.Close socket [16:44:12]Sock 9.Thread stoped [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:13]accept exits with 8 [16:46:13]New connection [16:46:13]New thread 3066977636 created [16:46:13]Thread 3066834276 joined [16:46:13]Waiting for new connection... [16:46:13] Sock 8.Parse request [16:46:13]Sock 8.Check first char [16:46:13]Sock 8.First char is OK [16:46:13]request: POST /json_proto HTTP/1.0 [16:46:13]Method: POST [16:46:13]URL: /json_proto [16:46:13]Method is POST - this is cgi request [16:46:13]url: /json_proto [16:46:13]query_string will be loaded in cgi processing [16:46:13]execute_cgi json_proto POST (null) [16:46:13]execute_cgi path=json_proto method=POST [16:46:13]POST find Content-Length [16:46:13]Host: 172.17.63.3:8080 [16:46:13]Content-Length: 676 [16:46:13]Content-Type: application/json [16:46:13] [16:46:13]POST finish read [16:46:13]Found Content-Length = 676 [16:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:13]execute_script... [16: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 : (1)99176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:13]POST & json_proto [16:46:13]process_json_proto [16:46:13]json parsed OK: [16:46:13]protocol is kg_v1.0 [16:46:13]action value=close_receipt [16:46:13]process_action close_receipt [16:46:13]cmd_close_receipt [16:46:13]MH_GetDate [16:46:13]Write to MH i2c: F0 00 00 EC 16 F1 [16:46:13]Write i2c OK [16:46:13]MH_I2C_Read... [16:46:13]Read from MH i2c: F0 [16:46:13]MH_I2C_Read... [16:46:13]Read from MH i2c: F0 09 00 [16:46:13]MH_I2C_Read... [16:46:13]Read from MH i2c: F0 09 00 EC 16 00 D6 1C 1D 67 50 D1 6C 64 61 [16:46:13]GetLastDocTimeStamp 1729961051 [16:46:13]current date 1729961174 [16:46:13]FM_GetShiftState [16:46:13]SAM_PROTO_GetShiftState [16:46:13]wFMCommunicate request_size=4 [16:46:13]MH_SAM_APDU [16:46:13]CAPDU: 80 13 01 00 [16:46:13]Write to MH i2c: E2 08 00 ED 16 80 13 01 00 00 00 00 00 80 [16:46:13]Write i2c OK [16:46:13]MH_I2C_Read... [16:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:13]Read from MH i2c: E2 [16:46:13]MH_I2C_Read... [16:46:13]Read from MH i2c: E2 0E 00 [16:46:13]MH_I2C_Read... [16:46:13]Read from MH i2c: E2 0E 00 ED 16 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B5 [16:46:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:46:13]wFMCommunicate OK [16:46:13]SAM_PROTO_GetShiftState done [16:46:13]FM_GetShiftState done [16:46:13]opened in 1729902702 [16:46:13]opened+sec_in_day 1729989102 [16:46:13]quantity*price = 20003 [16:46:13]sum+1 = 20004 [16:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 262 26.10.2024 16:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156361 ФПД: 236078782930358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164614&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156361&fm=236078782930358&tin=02508201610067®Number=0000000000091693&sum=20000 [16:46:14]StoreToDocumentArchive [16:46:14]shift 536 fd 156361 [16:46:14]save to /storage/0536/doc_00156361 [16:46:14]save last doc name /storage/0536/doc_00156361 to /storage/kkm_last_doc_name [16:46:14]save OK [16:46:14]Clear old archive folders... [16:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:14]tlvbuf is 016F5C20 [16:46:14]SAM_PROTO_ClearQueue [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 09 00 00 [16:46:14]Write to MH i2c: E2 08 00 FA 16 80 09 00 00 00 00 00 00 82 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [16:46:14]RAPDU: 90 00 [16:46:14]wFMCommunicate OK [16:46:14]SAM_PROTO_ClearQueue done [16:46:14]KKMCreateOFDPacket [16:46:14]OFDProtocolAddRootSTLVToBuf [16:46:14]FM_MakeSignedData [16:46:14]FM_MakeSignedData [16:46:14]SAM_PROTO_SignData [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 0D 01 02 [16:46:14]Write to MH i2c: E2 08 00 FB 16 80 0D 01 02 00 00 00 00 8A [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [16:46:14]RAPDU: 90 00 [16:46:14]wFMCommunicate OK [16:46:14]wFMCommunicate request_size=255 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D6 1C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 62 02 00 35 04 06 00 D6 [16:46:14]Write to MH i2c: E2 02 01 FC 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D6 1C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 62 02 00 35 04 06 00 D6 00 00 7A [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [16:46:14]RAPDU: 90 00 [16:46:14]wFMCommunicate OK [16:46:14]wFMCommunicate request_size=10 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 0D 02 02 05 B6 5F FE DD B6 [16:46:14]Write to MH i2c: E2 0D 00 FD 16 80 0D 02 02 05 00 B6 5F FE DD B6 00 00 3D [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [16:46:14]RAPDU: 90 00 [16:46:14]wFMCommunicate OK [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 0D 03 02 [16:46:14]Write to MH i2c: E2 08 00 FE 16 80 0D 03 02 00 00 00 00 8F [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0B 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0B 00 FE 16 00 D9 77 86 62 9E FD DF 62 90 00 A4 [16:46:14]RAPDU: D9 77 86 62 9E FD DF 62 90 00 [16:46:14]wFMCommunicate OK [16:46:14]SAM_PROTO_SignData done [16:46:14]FM_MakeSignedData done [16:46:14]CreateOFDProtocolMessage [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 11 00 00 [16:46:14]Write to MH i2c: E2 08 00 FF 16 80 11 00 00 00 00 00 00 8F [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 17 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 17 00 FF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [16:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:46:14]wFMCommunicate OK [16:46:14]CreateOFDProtocolMessage done [16:46:14]OFDSenderStorePacket 156361 [16:46:14]StoreOFDPacket docnum=156361 [16:46:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B 7D 07 01 02 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D6 1C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 62 02 00 35 04 06 00 D6 B6 5F FE DD B6 D9 77 86 62 9E FD DF 62 [16:46:14]CheckFolder [16:46:14]dirname=/storage/ofd_packets [16:46:14]CheckFolder done [16:46:14]ProducePacketName [16:46:14]name=ofd_packets/00156361 [16:46:14]NVStorageSaveData ofd_packets/00156361 [16:46:14]File name is /storage/ofd_packets/00156361 [16:46:14]Write 301 bytes [16:46:14]NVStorageSaveData done [16:46:14]OFDSenderStorePacket done [16:46:14]KKMCreateOFDPacket done [16:46:14]NVStorageSaveData kkm_last_timestamp [16:46:14]File name is /storage/kkm_last_timestamp [16:46:14]Write 4 bytes [16:46:14]NVStorageSaveData done [16:46:14]ExternCall_PrintAddStr [16:46:14]wPrintStart [16:46:14]Write to MH i2c: 01 00 00 00 17 17 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: 01 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: 01 07 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: 01 07 00 00 17 00 00 00 00 00 FF 0F 2C [16:46:14]RasterBufferAndPrint [16:46:14]line Счет N : (1)99176 [16:46:14]line ИНН: 02508201610067 [16:46:14]line Контрольно-Кассовый Чек [16:46:14]line ПРОДАЖА [16:46:14]line ТРК (МРК, ГНК) : 11 [16:46:14]line Товар: 2710124130 [16:46:14]line Аи-92-К-5 [16:46:14]line 2.990 * 66.90 [16:46:14]line = 200.03 [16:46:14]line НДС 12% НСП 1% [16:46:14]line > о реализуемом товаре [16:46:14]line ОКРУГЛЕНИЕ: -0.03 [16:46:14]line ИТОГО: 200.00 [16:46:14]line Внесено: 200.00 [16:46:14]line СДАЧА: 0.00 [16:46:14]line НСП 1% : 1.77 [16:46:14]line НДС 12% : 21.24 [16:46:14]line Наличными: 200.00 [16:46:14]line Безнал.: 0.00 [16:46:14]line Место: АЗС № 143 "Партнер Нефть" [16:46:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:46:14]line СНО: Общий режим [16:46:14]line Чек 262 26.10.2024 16:46 [16:46:14]line Смена: 536 ФФД: 1.0 [16:46:14]line ЗНМ: 0300000096 [16:46:14]line РНМ: 0000000000091693 [16:46:14]line Версия ККМ: 001 [16:46:14]line ФМ: 0000000000871792 [16:46:14]line ФД: 156361 [16:46:14]line ФПД: 236078782930358 [16:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164614&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156361&fm=236078782930358&tin=02508201610067®Number=0000000000091693&sum=20000 [16:46:15]OFD Sender: Processing packet 156361 [packets to send 31, broken 30] [16:46:15]ProducePacketName [16:46:15]name=ofd_packets/00156361 [16:46:15]OFD Sender: To server: pG, [16:46:15]CommunicateWithHost lk.salyk.kg:30040 [16:46:15]ConnectInit lk.salyk.kg [16:46:15]written 0, free lines is 4095 [16:46:15]Connected sock=10 [16: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 31 37 39 32 0F 01 00 00 6B 7D 07 01 02 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D6 1C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 62 02 00 35 04 06 00 D6 B6 5F FE DD B6 D9 77 86 62 9E FD DF 62 [16:46:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 87 1A 47 00 D7 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 62 02 00 F4 03 04 00 48 C2 1C 67 B6 04 01 00 00 6B 2A 51 F2 36 DB FC E9 [16:46:15]CommunicateWithHost err = 0 [16:46:15]CheckOFDResponse [16:46:15]1017 (14) - 77093643461234 [16:46:15]1041 (16) - 0000000000871792 [16:46:15]1040 (4) - 156361 [16:46:15]1012 (4) - 26.10.2024 10:19 [16:46:15]1206 (1) - 0 [16:46:15]OFD Sender: Remove packet 156361 [16:46:15]ProducePacketName [16:46:15]name=ofd_packets/00156361 [16:46:15]NVStorageDeleteData [16:46:15]Write to MH i2c: 01 00 00 2B 17 42 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 07 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 E6 0C 3B [16:46:15]RasterBufferAndPrint [16:46:15]line [16:46:15]line [16:46:15]line [16:46:15]line [16:46:15]line [16:46:15]written 0, free lines is 3308 [16:46:15]process_action close_receipt done [16:46:15]requested_data is exist [16:46:15]produce_requested_data [16:46:15]requested_item fm.sn is exist - process it [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 11 00 00 [16:46:15]Write to MH i2c: E2 08 00 32 17 80 11 00 00 00 00 00 00 C3 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 17 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 17 00 32 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [16:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:46:15]wFMCommunicate OK [16:46:15]requested_item fd.num is exist - process it [16:46:15]SAM_PROTO_GetFieldsCounters [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 13 00 00 [16:46:15]Write to MH i2c: E2 08 00 33 17 80 13 00 00 00 00 00 00 C6 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 62 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 62 00 33 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [16:46: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:16]wFMCommunicate OK [16:46:16]SAM_PROTO_GetFieldsCounters done [16:46:16]requested_item shift.num is exist - process it [16:46:16]requested_item shift.opened is exist - process it [16:46:16]req_shift_opened [16:46:16]FM_GetShiftState [16:46:16]SAM_PROTO_GetShiftState [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 13 01 00 [16:46:16]Write to MH i2c: E2 08 00 34 17 80 13 01 00 00 00 00 00 C8 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0E 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0E 00 34 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FD [16:46:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:46:16]wFMCommunicate OK [16:46:16]SAM_PROTO_GetShiftState done [16:46:16]FM_GetShiftState done [16:46:16]req_shift_opened done [16:46:16]requested_item shift.open_date is exist - process it [16:46:16]req_shift_open_date [16:46:16]req_shift_open_date done [16:46:16]produce_requested_data done [16:46:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156361,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:46:16]process_action_free close_receipt [16:46:16]json_value_free [16:46:16]json_value_free done [16:46:16]process_json_proto returns [16:46:16]Send response to host [16:46:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156361,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:46:16]free response buf [16:46:16]execute_script done [16:46:16]execute_script returns [16:46:16]free content buf [16:46:16]Sock 8.Close socket [16:46:16]Sock 8.Thread stoped [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:50:58]accept exits with 9 [16:50:58]New connection [16:50:58]New thread 3066834276 created [16:50:58]Thread 3066977636 joined [16:50:58]Waiting for new connection... [16:50:58] Sock 9.Parse request [16:50:58]Sock 9.Check first char [16:50:58]Sock 9.First char is OK [16:50:58]request: POST /json_proto HTTP/1.0 [16:50:58]Method: POST [16:50:58]URL: /json_proto [16:50:58]Method is POST - this is cgi request [16:50:58]url: /json_proto [16:50:58]query_string will be loaded in cgi processing [16:50:58]execute_cgi json_proto POST (null) [16:50:58]execute_cgi path=json_proto method=POST [16:50:58]POST find Content-Length [16:50:58]Host: 172.17.63.3:8080 [16:50:58]Content-Length: 681 [16:50:58]Content-Type: application/json [16:50:58] [16:50:58]POST finish read [16:50:58]Found Content-Length = 681 [16:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:58]execute_script... [16:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:58]POST & json_proto [16:50:58]process_json_proto [16:50:58]json parsed OK: [16:50:58]protocol is kg_v1.0 [16:50:58]action value=close_receipt [16:50:58]process_action close_receipt [16:50:58]cmd_close_receipt [16:50:58]MH_GetDate [16:50:58]Write to MH i2c: F0 00 00 35 17 3B [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 09 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 09 00 35 17 00 F3 1D 1D 67 50 D1 6C 64 C9 [16:50:58]GetLastDocTimeStamp 1729961174 [16:50:58]current date 1729961459 [16:50:58]FM_GetShiftState [16:50:58]SAM_PROTO_GetShiftState [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 13 01 00 [16:50:58]Write to MH i2c: E2 08 00 36 17 80 13 01 00 00 00 00 00 CA [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0E 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0E 00 36 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 FF [16:50:58]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:50:58]wFMCommunicate OK [16:50:58]SAM_PROTO_GetShiftState done [16:50:58]FM_GetShiftState done [16:50:58]opened in 1729902702 [16:50:58]opened+sec_in_day 1729989102 [16:50:58]quantity*price = 100015 [16:50:58]sum+1 = 100017 [16:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 263 26.10.2024 16:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156362 ФПД: 106931243572213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165059&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156362&fm=106931243572213&tin=02508201610067®Number=0000000000091693&sum=100000 [16:50:59]StoreToDocumentArchive [16:50:59]shift 536 fd 156362 [16:50:59]save to /storage/0536/doc_00156362 [16:50:59]save last doc name /storage/0536/doc_00156362 to /storage/kkm_last_doc_name [16:50:59]save OK [16:50:59]Clear old archive folders... [16:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:59]tlvbuf is 01720840 [16:50:59]SAM_PROTO_ClearQueue [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 09 00 00 [16:50:59]Write to MH i2c: E2 08 00 43 17 80 09 00 00 00 00 00 00 CC [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 43 17 00 90 00 CE [16:50:59]RAPDU: 90 00 [16:50:59]wFMCommunicate OK [16:50:59]SAM_PROTO_ClearQueue done [16:50:59]KKMCreateOFDPacket [16:50:59]OFDProtocolAddRootSTLVToBuf [16:50:59]FM_MakeSignedData [16:50:59]FM_MakeSignedData [16:50:59]SAM_PROTO_SignData [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 0D 01 02 [16:50:59]Write to MH i2c: E2 08 00 44 17 80 0D 01 02 00 00 00 00 D4 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 44 17 00 90 00 CF [16:50:59]RAPDU: 90 00 [16:50:59]wFMCommunicate OK [16:50:59]wFMCommunicate request_size=255 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 F3 1D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 62 02 00 35 04 06 00 61 [16:50:59]Write to MH i2c: E2 02 01 45 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 F3 1D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 62 02 00 35 04 06 00 61 00 00 A7 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [16:50:59]RAPDU: 90 00 [16:50:59]wFMCommunicate OK [16:50:59]wFMCommunicate request_size=10 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 0D 02 02 05 40 DE C9 DB F5 [16:50:59]Write to MH i2c: E2 0D 00 46 17 80 0D 02 02 05 00 40 DE C9 DB F5 00 00 98 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [16:51:00]RAPDU: 90 00 [16:51:00]wFMCommunicate OK [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 0D 03 02 [16:51:00]Write to MH i2c: E2 08 00 47 17 80 0D 03 02 00 00 00 00 D9 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 0B 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 0B 00 47 17 00 24 D2 A2 17 CC 68 1B C1 90 00 99 [16:51:00]RAPDU: 24 D2 A2 17 CC 68 1B C1 90 00 [16:51:00]wFMCommunicate OK [16:51:00]SAM_PROTO_SignData done [16:51:00]FM_MakeSignedData done [16:51:00]CreateOFDProtocolMessage [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 11 00 00 [16:51:00]Write to MH i2c: E2 08 00 48 17 80 11 00 00 00 00 00 00 D9 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 17 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 17 00 48 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [16:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:51:00]wFMCommunicate OK [16:51:00]CreateOFDProtocolMessage done [16:51:00]OFDSenderStorePacket 156362 [16:51:00]StoreOFDPacket docnum=156362 [16:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 60 61 07 01 33 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 F3 1D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 62 02 00 35 04 06 00 61 40 DE C9 DB F5 24 D2 A2 17 CC 68 1B C1 [16:51:00]CheckFolder [16:51:00]dirname=/storage/ofd_packets [16:51:00]CheckFolder done [16:51:00]ProducePacketName [16:51:00]name=ofd_packets/00156362 [16:51:00]NVStorageSaveData ofd_packets/00156362 [16:51:00]File name is /storage/ofd_packets/00156362 [16:51:00]Write 301 bytes [16:51:00]NVStorageSaveData done [16:51:00]OFDSenderStorePacket done [16:51:00]KKMCreateOFDPacket done [16:51:00]NVStorageSaveData kkm_last_timestamp [16:51:00]File name is /storage/kkm_last_timestamp [16:51:00]Write 4 bytes [16:51:00]NVStorageSaveData done [16:51:00]ExternCall_PrintAddStr [16:51:00]wPrintStart [16:51:00]Write to MH i2c: 01 00 00 49 17 60 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 49 17 00 00 00 00 00 FF 0F 75 [16:51:00]RasterBufferAndPrint [16:51:00]line Счет N : (1)99177 [16:51:00]line ИНН: 02508201610067 [16:51:00]line Контрольно-Кассовый Чек [16:51:00]line ПРОДАЖА [16:51:00]line ТРК (МРК, ГНК) : 31 [16:51:00]line Товар: 2710124130 [16:51:00]line Аи-92-К-5 [16:51:00]line 14.950 * 66.90 [16:51:00]line = 1000.16 [16:51:00]line НДС 12% НСП 1% [16:51:00]line > о реализуемом товаре [16:51:00]line ОКРУГЛЕНИЕ: -0.16 [16:51:00]line ИТОГО: 1000.00 [16:51:00]line Внесено: 1000.00 [16:51:00]line СДАЧА: 0.00 [16:51:00]line НСП 1% : 8.85 [16:51:00]line НДС 12% : 106.21 [16:51:00]line Наличными: 1000.00 [16:51:00]line Безнал.: 0.00 [16:51:00]line Место: АЗС № 143 "Партнер Нефть" [16:51:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:51:00]line СНО: Общий режим [16:51:00]line Чек 263 26.10.2024 16:50 [16:51:00]line Смена: 536 ФФД: 1.0 [16:51:00]line ЗНМ: 0300000096 [16:51:00]line РНМ: 0000000000091693 [16:51:00]line Версия ККМ: 001 [16:51:00]line ФМ: 0000000000871792 [16:51:00]line ФД: 156362 [16:51:00]line ФПД: 106931243572213 [16:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165059&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156362&fm=106931243572213&tin=02508201610067®Number=0000000000091693&sum=100000 [16:51:00]OFD Sender: Processing packet 156362 [packets to send 31, broken 30] [16:51:00]ProducePacketName [16:51:00]name=ofd_packets/00156362 [16:51:00]OFD Sender: To server: pG, [16:51:00]CommunicateWithHost lk.salyk.kg:30040 [16:51:00]ConnectInit lk.salyk.kg [16:51:00]written 0, free lines is 4095 [16:51:00]Connected sock=10 [16:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 60 61 07 01 33 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 F3 1D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 62 02 00 35 04 06 00 61 40 DE C9 DB F5 24 D2 A2 17 CC 68 1B C1 [16:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DD 6E 47 00 5E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 62 02 00 F4 03 04 00 65 C3 1C 67 B6 04 01 00 00 81 16 8B 6C 85 15 A9 80 [16:51:00]CommunicateWithHost err = 0 [16:51:00]CheckOFDResponse [16:51:00]1017 (14) - 77093643461234 [16:51:00]1041 (16) - 0000000000871792 [16:51:00]1040 (4) - 156362 [16:51:00]1012 (4) - 26.10.2024 10:24 [16:51:00]1206 (1) - 0 [16:51:00]OFD Sender: Remove packet 156362 [16:51:00]ProducePacketName [16:51:00]name=ofd_packets/00156362 [16:51:00]NVStorageDeleteData [16:51:00]Write to MH i2c: 01 00 00 74 17 8B [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 74 17 00 00 00 00 00 E6 0C 84 [16:51:00]RasterBufferAndPrint [16:51:00]line [16:51:00]line [16:51:00]line [16:51:00]line [16:51:00]line [16:51:00]written 0, free lines is 3308 [16:51:00]process_action close_receipt done [16:51:00]requested_data is exist [16:51:00]produce_requested_data [16:51:00]requested_item fm.sn is exist - process it [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 11 00 00 [16:51:00]Write to MH i2c: E2 08 00 7B 17 80 11 00 00 00 00 00 00 0C [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 17 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 17 00 7B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 61 [16:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:51:01]wFMCommunicate OK [16:51:01]requested_item fd.num is exist - process it [16:51:01]SAM_PROTO_GetFieldsCounters [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 13 00 00 [16:51:01]Write to MH i2c: E2 08 00 7C 17 80 13 00 00 00 00 00 00 0F [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 62 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 62 00 7C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [16:51: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_GetFieldsCounters done [16:51:01]requested_item shift.num is exist - process it [16:51:01]requested_item shift.opened is exist - process it [16:51:01]req_shift_opened [16:51:01]FM_GetShiftState [16:51:01]SAM_PROTO_GetShiftState [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 13 01 00 [16:51:01]Write to MH i2c: E2 08 00 7D 17 80 13 01 00 00 00 00 00 11 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0E 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0E 00 7D 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 46 [16:51:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_GetShiftState done [16:51:01]FM_GetShiftState done [16:51:01]req_shift_opened done [16:51:01]requested_item shift.open_date is exist - process it [16:51:01]req_shift_open_date [16:51:01]req_shift_open_date done [16:51:01]produce_requested_data done [16:51:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156362,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:51:01]process_action_free close_receipt [16:51:01]json_value_free [16:51:01]json_value_free done [16:51:01]process_json_proto returns [16:51:01]Send response to host [16:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156362,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:51:01]free response buf [16:51:01]execute_script done [16:51:01]execute_script returns [16:51:01]free content buf [16:51:01]Sock 9.Close socket [16:51:01]Sock 9.Thread stoped [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:47]accept exits with 8 [16:53:47]New connection [16:53:47]New thread 3066977636 created [16:53:47]Thread 3066834276 joined [16:53:47]Waiting for new connection... [16:53:47] Sock 8.Parse request [16:53:47]Sock 8.Check first char [16:53:47]Sock 8.First char is OK [16:53:47]request: POST /json_proto HTTP/1.0 [16:53:47]Method: POST [16:53:47]URL: /json_proto [16:53:47]Method is POST - this is cgi request [16:53:47]url: /json_proto [16:53:47]query_string will be loaded in cgi processing [16:53:47]execute_cgi json_proto POST (null) [16:53:47]execute_cgi path=json_proto method=POST [16:53:47]POST find Content-Length [16:53:47]Host: 172.17.63.3:8080 [16:53:47]Content-Length: 676 [16:53:47]Content-Type: application/json [16:53:47] [16:53:47]POST finish read [16:53:47]Found Content-Length = 676 [16:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:47]execute_script... [16:53:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:47]POST & json_proto [16:53:47]process_json_proto [16:53:47]json parsed OK: [16:53:47]protocol is kg_v1.0 [16:53:47]action value=close_receipt [16:53:47]process_action close_receipt [16:53:47]cmd_close_receipt [16:53:47]MH_GetDate [16:53:47]Write to MH i2c: F0 00 00 7E 17 84 [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: F0 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: F0 09 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: F0 09 00 7E 17 00 9C 1E 1D 67 50 D1 6C 64 BC [16:53:47]GetLastDocTimeStamp 1729961459 [16:53:47]current date 1729961628 [16:53:47]FM_GetShiftState [16:53:47]SAM_PROTO_GetShiftState [16:53:47]wFMCommunicate request_size=4 [16:53:47]MH_SAM_APDU [16:53:47]CAPDU: 80 13 01 00 [16:53:47]Write to MH i2c: E2 08 00 7F 17 80 13 01 00 00 00 00 00 13 [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:47]Read from MH i2c: E2 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 0E 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 0E 00 7F 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 48 [16:53:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:53:47]wFMCommunicate OK [16:53:47]SAM_PROTO_GetShiftState done [16:53:47]FM_GetShiftState done [16:53:47]opened in 1729902702 [16:53:47]opened+sec_in_day 1729989102 [16:53:47]quantity*price = 50041 [16:53:47]sum+1 = 50042 [16:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 264 26.10.2024 16:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156363 ФПД: 63792616996333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165348&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156363&fm=63792616996333&tin=02508201610067®Number=0000000000091693&sum=50000 [16:53:48]StoreToDocumentArchive [16:53:48]shift 536 fd 156363 [16:53:48]save to /storage/0536/doc_00156363 [16:53:48]save last doc name /storage/0536/doc_00156363 to /storage/kkm_last_doc_name [16:53:48]save OK [16:53:48]Clear old archive folders... [16:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:48]tlvbuf is 0167A330 [16:53:48]SAM_PROTO_ClearQueue [16:53:48]wFMCommunicate request_size=4 [16:53:48]MH_SAM_APDU [16:53:48]CAPDU: 80 09 00 00 [16:53:48]Write to MH i2c: E2 08 00 8C 17 80 09 00 00 00 00 00 00 15 [16:53:48]Write i2c OK [16:53:48]MH_I2C_Read... [16:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:48]Read from MH i2c: E2 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: E2 03 00 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: E2 03 00 8C 17 00 90 00 17 [16:53:48]RAPDU: 90 00 [16:53:48]wFMCommunicate OK [16:53:48]SAM_PROTO_ClearQueue done [16:53:48]KKMCreateOFDPacket [16:53:48]OFDProtocolAddRootSTLVToBuf [16:53:48]FM_MakeSignedData [16:53:48]FM_MakeSignedData [16:53:48]SAM_PROTO_SignData [16:53:48]wFMCommunicate request_size=4 [16:53:48]MH_SAM_APDU [16:53:48]CAPDU: 80 0D 01 02 [16:53:48]Write to MH i2c: E2 08 00 8D 17 80 0D 01 02 00 00 00 00 1D [16:53:48]Write i2c OK [16:53:48]MH_I2C_Read... [16:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:48]Read from MH i2c: E2 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: E2 03 00 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: E2 03 00 8D 17 00 90 00 18 [16:53:48]RAPDU: 90 00 [16:53:48]wFMCommunicate OK [16:53:48]wFMCommunicate request_size=255 [16:53:48]MH_SAM_APDU [16:53:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 9C 1E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 62 02 00 35 04 06 00 3A [16:53:48]Write to MH i2c: E2 02 01 8E 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 9C 1E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 62 02 00 35 04 06 00 3A 00 00 7B [16:53:48]Write i2c OK [16:53:48]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 8E 17 00 90 00 19 [16:53:49]RAPDU: 90 00 [16:53:49]wFMCommunicate OK [16:53:49]wFMCommunicate request_size=10 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 0D 02 02 05 04 E0 46 7D ED [16:53:49]Write to MH i2c: E2 0D 00 8F 17 80 0D 02 02 05 00 04 E0 46 7D ED 00 00 BE [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 8F 17 00 90 00 1A [16:53:49]RAPDU: 90 00 [16:53:49]wFMCommunicate OK [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 0D 03 02 [16:53:49]Write to MH i2c: E2 08 00 90 17 80 0D 03 02 00 00 00 00 22 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 0B 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 0B 00 90 17 00 D0 81 4D A0 E1 C5 BB 2E 90 00 F0 [16:53:49]RAPDU: D0 81 4D A0 E1 C5 BB 2E 90 00 [16:53:49]wFMCommunicate OK [16:53:49]SAM_PROTO_SignData done [16:53:49]FM_MakeSignedData done [16:53:49]CreateOFDProtocolMessage [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 11 00 00 [16:53:49]Write to MH i2c: E2 08 00 91 17 80 11 00 00 00 00 00 00 22 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 17 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 17 00 91 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 77 [16:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:53:49]wFMCommunicate OK [16:53:49]CreateOFDProtocolMessage done [16:53:49]OFDSenderStorePacket 156363 [16:53:49]StoreOFDPacket docnum=156363 [16:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 9C 07 01 3D 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 9C 1E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 62 02 00 35 04 06 00 3A 04 E0 46 7D ED D0 81 4D A0 E1 C5 BB 2E [16:53:49]CheckFolder [16:53:49]dirname=/storage/ofd_packets [16:53:49]CheckFolder done [16:53:49]ProducePacketName [16:53:49]name=ofd_packets/00156363 [16:53:49]NVStorageSaveData ofd_packets/00156363 [16:53:49]File name is /storage/ofd_packets/00156363 [16:53:49]Write 301 bytes [16:53:49]NVStorageSaveData done [16:53:49]OFDSenderStorePacket done [16:53:49]KKMCreateOFDPacket done [16:53:49]NVStorageSaveData kkm_last_timestamp [16:53:49]File name is /storage/kkm_last_timestamp [16:53:49]Write 4 bytes [16:53:49]NVStorageSaveData done [16:53:49]ExternCall_PrintAddStr [16:53:49]wPrintStart [16:53:49]Write to MH i2c: 01 00 00 92 17 A9 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: 01 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: 01 07 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: 01 07 00 92 17 00 00 00 00 00 FF 0F BE [16:53:49]RasterBufferAndPrint [16:53:49]line Счет N : (1)99179 [16:53:49]line ИНН: 02508201610067 [16:53:49]line Контрольно-Кассовый Чек [16:53:49]line ПРОДАЖА [16:53:49]line ТРК (МРК, ГНК) : 11 [16:53:49]line Товар: 2710124130 [16:53:49]line Аи-92-К-5 [16:53:49]line 7.480 * 66.90 [16:53:49]line = 500.41 [16:53:49]line НДС 12% НСП 1% [16:53:49]line > о реализуемом товаре [16:53:49]line ОКРУГЛЕНИЕ: -0.41 [16:53:49]line ИТОГО: 500.00 [16:53:49]line Внесено: 500.00 [16:53:49]line СДАЧА: 0.00 [16:53:49]line НСП 1% : 4.43 [16:53:49]line НДС 12% : 53.14 [16:53:49]line Наличными: 500.00 [16:53:49]line Безнал.: 0.00 [16:53:49]line Место: АЗС № 143 "Партнер Нефть" [16:53:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:53:49]line СНО: Общий режим [16:53:49]line Чек 264 26.10.2024 16:53 [16:53:49]line Смена: 536 ФФД: 1.0 [16:53:49]line ЗНМ: 0300000096 [16:53:49]line РНМ: 0000000000091693 [16:53:49]line Версия ККМ: 001 [16:53:49]line ФМ: 0000000000871792 [16:53:49]line ФД: 156363 [16:53:49]line ФПД: 63792616996333 [16:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165348&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156363&fm=63792616996333&tin=02508201610067®Number=0000000000091693&sum=50000 [16:53:49]OFD Sender: Processing packet 156363 [packets to send 31, broken 30] [16:53:49]ProducePacketName [16:53:49]name=ofd_packets/00156363 [16:53:49]OFD Sender: To server: pG, [16:53:49]CommunicateWithHost lk.salyk.kg:30040 [16:53:49]ConnectInit lk.salyk.kg [16:53:49]written 0, free lines is 4095 [16:53:49]Connected sock=10 [16:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 9C 07 01 3D 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 9C 1E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 62 02 00 35 04 06 00 3A 04 E0 46 7D ED D0 81 4D A0 E1 C5 BB 2E [16:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5A 70 47 00 C4 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 62 02 00 F4 03 04 00 0E C4 1C 67 B6 04 01 00 00 16 41 63 88 EC 0F 06 CC [16:53:49]CommunicateWithHost err = 0 [16:53:49]CheckOFDResponse [16:53:49]1017 (14) - 77093643461234 [16:53:49]1041 (16) - 0000000000871792 [16:53:49]1040 (4) - 156363 [16:53:49]1012 (4) - 26.10.2024 10:27 [16:53:49]1206 (1) - 0 [16:53:49]OFD Sender: Remove packet 156363 [16:53:49]ProducePacketName [16:53:49]name=ofd_packets/00156363 [16:53:49]NVStorageDeleteData [16:53:49]Write to MH i2c: 01 00 00 BD 17 D4 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 07 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 07 00 BD 17 00 00 00 00 00 EE 0C D5 [16:53:50]RasterBufferAndPrint [16:53:50]line [16:53:50]line [16:53:50]line [16:53:50]line [16:53:50]line [16:53:50]written 0, free lines is 3316 [16:53:50]process_action close_receipt done [16:53:50]requested_data is exist [16:53:50]produce_requested_data [16:53:50]requested_item fm.sn is exist - process it [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 11 00 00 [16:53:50]Write to MH i2c: E2 08 00 C4 17 80 11 00 00 00 00 00 00 55 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 17 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 17 00 C4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AA [16:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:53:50]wFMCommunicate OK [16:53:50]requested_item fd.num is exist - process it [16:53:50]SAM_PROTO_GetFieldsCounters [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 13 00 00 [16:53:50]Write to MH i2c: E2 08 00 C5 17 80 13 00 00 00 00 00 00 58 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 62 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 62 00 C5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:50]wFMCommunicate OK [16:53:50]SAM_PROTO_GetFieldsCounters done [16:53:50]requested_item shift.num is exist - process it [16:53:50]requested_item shift.opened is exist - process it [16:53:50]req_shift_opened [16:53:50]FM_GetShiftState [16:53:50]SAM_PROTO_GetShiftState [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 13 01 00 [16:53:50]Write to MH i2c: E2 08 00 C6 17 80 13 01 00 00 00 00 00 5A [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 0E 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 0E 00 C6 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 8F [16:53:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:53:50]wFMCommunicate OK [16:53:50]SAM_PROTO_GetShiftState done [16:53:50]FM_GetShiftState done [16:53:50]req_shift_opened done [16:53:50]requested_item shift.open_date is exist - process it [16:53:50]req_shift_open_date [16:53:50]req_shift_open_date done [16:53:50]produce_requested_data done [16:53:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156363,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:53:50]process_action_free close_receipt [16:53:50]json_value_free [16:53:50]json_value_free done [16:53:50]process_json_proto returns [16:53:50]Send response to host [16:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156363,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:53:50]free response buf [16:53:50]execute_script done [16:53:50]execute_script returns [16:53:50]free content buf [16:53:50]Sock 8.Close socket [16:53:50]Sock 8.Thread stoped [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:53:55]accept exits with 9 [16:53:55]New connection [16:53:55]New thread 3066834276 created [16:53:55]Thread 3066977636 joined [16:53:55]Waiting for new connection... [16:53:55] Sock 9.Parse request [16:53:55]Sock 9.Check first char [16:53:55]Sock 9.First char is OK [16:53:55]request: POST /json_proto HTTP/1.0 [16:53:55]Method: POST [16:53:55]URL: /json_proto [16:53:55]Method is POST - this is cgi request [16:53:55]url: /json_proto [16:53:55]query_string will be loaded in cgi processing [16:53:55]execute_cgi json_proto POST (null) [16:53:55]execute_cgi path=json_proto method=POST [16:53:55]POST find Content-Length [16:53:55]Host: 172.17.63.3:8080 [16:53:55]Content-Length: 676 [16:53:55]Content-Type: application/json [16:53:55] [16:53:55]POST finish read [16:53:55]Found Content-Length = 676 [16:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:55]execute_script... [16:53: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)99178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:55]POST & json_proto [16:53:55]process_json_proto [16:53:55]json parsed OK: [16:53:55]protocol is kg_v1.0 [16:53:55]action value=close_receipt [16:53:55]process_action close_receipt [16:53:55]cmd_close_receipt [16:53:55]MH_GetDate [16:53:55]Write to MH i2c: F0 00 00 C7 17 CD [16:53:55]Write i2c OK [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: F0 [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: F0 09 00 [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: F0 09 00 C7 17 00 A4 1E 1D 67 50 D1 6C 64 0D [16:53:55]GetLastDocTimeStamp 1729961628 [16:53:55]current date 1729961636 [16:53:55]FM_GetShiftState [16:53:55]SAM_PROTO_GetShiftState [16:53:55]wFMCommunicate request_size=4 [16:53:55]MH_SAM_APDU [16:53:55]CAPDU: 80 13 01 00 [16:53:55]Write to MH i2c: E2 08 00 C8 17 80 13 01 00 00 00 00 00 5C [16:53:55]Write i2c OK [16:53:55]MH_I2C_Read... [16:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:55]Read from MH i2c: E2 [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: E2 0E 00 [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: E2 0E 00 C8 17 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 91 [16:53:55]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:53:55]wFMCommunicate OK [16:53:55]SAM_PROTO_GetShiftState done [16:53:55]FM_GetShiftState done [16:53:55]opened in 1729902702 [16:53:55]opened+sec_in_day 1729989102 [16:53:55]quantity*price = 30038 [16:53:55]sum+1 = 30039 [16:53:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 265 26.10.2024 16:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156364 ФПД: 179138073590409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165356&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156364&fm=179138073590409&tin=02508201610067®Number=0000000000091693&sum=30000 [16:53:56]StoreToDocumentArchive [16:53:56]shift 536 fd 156364 [16:53:56]save to /storage/0536/doc_00156364 [16:53:56]save last doc name /storage/0536/doc_00156364 to /storage/kkm_last_doc_name [16:53:56]save OK [16:53:56]Clear old archive folders... [16:53:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:56]tlvbuf is 016EFBC0 [16:53:56]SAM_PROTO_ClearQueue [16:53:56]wFMCommunicate request_size=4 [16:53:56]MH_SAM_APDU [16:53:56]CAPDU: 80 09 00 00 [16:53:56]Write to MH i2c: E2 08 00 D5 17 80 09 00 00 00 00 00 00 5E [16:53:56]Write i2c OK [16:53:56]MH_I2C_Read... [16:53:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:56]Read from MH i2c: E2 [16:53:56]MH_I2C_Read... [16:53:56]Read from MH i2c: E2 03 00 [16:53:56]MH_I2C_Read... [16:53:56]Read from MH i2c: E2 03 00 D5 17 00 90 00 60 [16:53:56]RAPDU: 90 00 [16:53:56]wFMCommunicate OK [16:53:56]SAM_PROTO_ClearQueue done [16:53:56]KKMCreateOFDPacket [16:53:56]OFDProtocolAddRootSTLVToBuf [16:53:56]FM_MakeSignedData [16:53:56]FM_MakeSignedData [16:53:56]SAM_PROTO_SignData [16:53:56]wFMCommunicate request_size=4 [16:53:56]MH_SAM_APDU [16:53:56]CAPDU: 80 0D 01 02 [16:53:56]Write to MH i2c: E2 08 00 D6 17 80 0D 01 02 00 00 00 00 66 [16:53:56]Write i2c OK [16:53:56]MH_I2C_Read... [16:53:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:56]Read from MH i2c: E2 [16:53:56]MH_I2C_Read... [16:53:56]Read from MH i2c: E2 03 00 [16:53:56]MH_I2C_Read... [16:53:56]Read from MH i2c: E2 03 00 D6 17 00 90 00 61 [16:53:56]RAPDU: 90 00 [16:53:56]wFMCommunicate OK [16:53:56]wFMCommunicate request_size=255 [16:53:56]MH_SAM_APDU [16:53:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 A4 1E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 62 02 00 35 04 06 00 A2 [16:53:56]Write to MH i2c: E2 02 01 D7 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 A4 1E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 62 02 00 35 04 06 00 A2 00 00 2A [16:53:56]Write i2c OK [16:53:56]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 03 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 03 00 D7 17 00 90 00 62 [16:53:57]RAPDU: 90 00 [16:53:57]wFMCommunicate OK [16:53:57]wFMCommunicate request_size=10 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 0D 02 02 05 EC D5 3D FA 89 [16:53:57]Write to MH i2c: E2 0D 00 D8 17 80 0D 02 02 05 00 EC D5 3D FA 89 00 00 F4 [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 03 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 03 00 D8 17 00 90 00 63 [16:53:57]RAPDU: 90 00 [16:53:57]wFMCommunicate OK [16:53:57]wFMCommunicate request_size=4 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 0D 03 02 [16:53:57]Write to MH i2c: E2 08 00 D9 17 80 0D 03 02 00 00 00 00 6B [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 0B 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 0B 00 D9 17 00 14 F7 63 7B 5D 37 D3 72 90 00 2E [16:53:57]RAPDU: 14 F7 63 7B 5D 37 D3 72 90 00 [16:53:57]wFMCommunicate OK [16:53:57]SAM_PROTO_SignData done [16:53:57]FM_MakeSignedData done [16:53:57]CreateOFDProtocolMessage [16:53:57]wFMCommunicate request_size=4 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 11 00 00 [16:53:57]Write to MH i2c: E2 08 00 DA 17 80 11 00 00 00 00 00 00 6B [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 17 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 17 00 DA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C0 [16:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:53:57]wFMCommunicate OK [16:53:57]CreateOFDProtocolMessage done [16:53:57]OFDSenderStorePacket 156364 [16:53:57]StoreOFDPacket docnum=156364 [16:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CE 5A 07 01 EA 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 A4 1E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 62 02 00 35 04 06 00 A2 EC D5 3D FA 89 14 F7 63 7B 5D 37 D3 72 [16:53:57]CheckFolder [16:53:57]dirname=/storage/ofd_packets [16:53:57]CheckFolder done [16:53:57]ProducePacketName [16:53:57]name=ofd_packets/00156364 [16:53:57]NVStorageSaveData ofd_packets/00156364 [16:53:57]File name is /storage/ofd_packets/00156364 [16:53:57]Write 301 bytes [16:53:57]NVStorageSaveData done [16:53:57]OFDSenderStorePacket done [16:53:57]KKMCreateOFDPacket done [16:53:57]NVStorageSaveData kkm_last_timestamp [16:53:57]File name is /storage/kkm_last_timestamp [16:53:57]Write 4 bytes [16:53:57]NVStorageSaveData done [16:53:57]ExternCall_PrintAddStr [16:53:57]wPrintStart [16:53:57]Write to MH i2c: 01 00 00 DB 17 F2 [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 07 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 07 00 DB 17 00 00 00 00 00 FF 0F 07 [16:53:57]RasterBufferAndPrint [16:53:57]line Счет N : (1)99178 [16:53:57]line ИНН: 02508201610067 [16:53:57]line Контрольно-Кассовый Чек [16:53:57]line ПРОДАЖА [16:53:57]line ТРК (МРК, ГНК) : 31 [16:53:57]line Товар: 2710124130 [16:53:57]line Аи-92-К-5 [16:53:57]line 4.490 * 66.90 [16:53:57]line = 300.38 [16:53:57]line НДС 12% НСП 1% [16:53:57]line > о реализуемом товаре [16:53:57]line ОКРУГЛЕНИЕ: -0.38 [16:53:57]line ИТОГО: 300.00 [16:53:57]line Внесено: 300.00 [16:53:57]line СДАЧА: 0.00 [16:53:57]line НСП 1% : 2.66 [16:53:57]line НДС 12% : 31.90 [16:53:57]line Наличными: 300.00 [16:53:57]line Безнал.: 0.00 [16:53:57]line Место: АЗС № 143 "Партнер Нефть" [16:53:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:53:57]line СНО: Общий режим [16:53:57]line Чек 265 26.10.2024 16:53 [16:53:57]line Смена: 536 ФФД: 1.0 [16:53:57]line ЗНМ: 0300000096 [16:53:57]line РНМ: 0000000000091693 [16:53:57]line Версия ККМ: 001 [16:53:57]line ФМ: 0000000000871792 [16:53:57]line ФД: 156364 [16:53:57]line ФПД: 179138073590409 [16:53:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165356&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156364&fm=179138073590409&tin=02508201610067®Number=0000000000091693&sum=30000 [16:53:57]written 0, free lines is 4095 [16:53:57]OFD Sender: Processing packet 156364 [packets to send 31, broken 30] [16:53:57]ProducePacketName [16:53:57]name=ofd_packets/00156364 [16:53:57]OFD Sender: To server: pG, [16:53:57]CommunicateWithHost lk.salyk.kg:30040 [16:53:57]ConnectInit lk.salyk.kg [16:53:57]Connected sock=10 [16:53:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CE 5A 07 01 EA 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 A4 1E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 62 02 00 35 04 06 00 A2 EC D5 3D FA 89 14 F7 63 7B 5D 37 D3 72 [16:53:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C1 0A 47 00 8C 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 31 37 39 32 10 04 04 00 CC 62 02 00 F4 03 04 00 16 C4 1C 67 B6 04 01 00 00 DB CE 98 04 B7 F1 5A FE [16:53:57]CommunicateWithHost err = 0 [16:53:57]CheckOFDResponse [16:53:57]1017 (14) - 77093643461234 [16:53:57]1041 (16) - 0000000000871792 [16:53:57]1040 (4) - 156364 [16:53:57]1012 (4) - 26.10.2024 10:27 [16:53:57]1206 (1) - 0 [16:53:57]OFD Sender: Remove packet 156364 [16:53:57]ProducePacketName [16:53:57]name=ofd_packets/00156364 [16:53:57]NVStorageDeleteData [16:53:57]Write to MH i2c: 01 00 00 06 18 1E [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 07 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 01 0D 33 [16:53:57]RasterBufferAndPrint [16:53:57]line [16:53:57]line [16:53:57]line [16:53:57]line [16:53:57]line [16:53:57]written 0, free lines is 3338 [16:53:57]process_action close_receipt done [16:53:57]requested_data is exist [16:53:57]produce_requested_data [16:53:57]requested_item fm.sn is exist - process it [16:53:57]wFMCommunicate request_size=4 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 11 00 00 [16:53:57]Write to MH i2c: E2 08 00 0D 18 80 11 00 00 00 00 00 00 9F [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 17 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 17 00 0D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [16:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:53:57]wFMCommunicate OK [16:53:57]requested_item fd.num is exist - process it [16:53:57]SAM_PROTO_GetFieldsCounters [16:53:57]wFMCommunicate request_size=4 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 13 00 00 [16:53:57]Write to MH i2c: E2 08 00 0E 18 80 13 00 00 00 00 00 00 A2 [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 62 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 62 00 0E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [16:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:57]wFMCommunicate OK [16:53:57]SAM_PROTO_GetFieldsCounters done [16:53:57]requested_item shift.num is exist - process it [16:53:57]requested_item shift.opened is exist - process it [16:53:57]req_shift_opened [16:53:57]FM_GetShiftState [16:53:57]SAM_PROTO_GetShiftState [16:53:57]wFMCommunicate request_size=4 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 13 01 00 [16:53:57]Write to MH i2c: E2 08 00 0F 18 80 13 01 00 00 00 00 00 A4 [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 0E 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 0E 00 0F 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 D9 [16:53:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:53:57]wFMCommunicate OK [16:53:57]SAM_PROTO_GetShiftState done [16:53:57]FM_GetShiftState done [16:53:57]req_shift_opened done [16:53:57]requested_item shift.open_date is exist - process it [16:53:57]req_shift_open_date [16:53:57]req_shift_open_date done [16:53:57]produce_requested_data done [16:53:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156364,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:53:57]process_action_free close_receipt [16:53:57]json_value_free [16:53:57]json_value_free done [16:53:57]process_json_proto returns [16:53:57]Send response to host [16:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156364,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:53:57]free response buf [16:53:57]execute_script done [16:53:57]execute_script returns [16:53:57]free content buf [16:53:57]Sock 9.Close socket [16:53:57]Sock 9.Thread stoped [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:29]accept exits with 8 [16:55:29]New connection [16:55:29]New thread 3066977636 created [16:55:29]Thread 3066834276 joined [16:55:29]Waiting for new connection... [16:55:29] Sock 8.Parse request [16:55:29]Sock 8.Check first char [16:55:29]Sock 8.First char is OK [16:55:29]request: POST /json_proto HTTP/1.0 [16:55:29]Method: POST [16:55:29]URL: /json_proto [16:55:29]Method is POST - this is cgi request [16:55:29]url: /json_proto [16:55:29]query_string will be loaded in cgi processing [16:55:29]execute_cgi json_proto POST (null) [16:55:29]execute_cgi path=json_proto method=POST [16:55:29]POST find Content-Length [16:55:29]Host: 172.17.63.3:8080 [16:55:29]Content-Length: 672 [16:55:29]Content-Type: application/json [16:55:29] [16:55:29]POST finish read [16:55:29]Found Content-Length = 672 [16:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.590, "sum" : 39.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 39.00, "payments": [ { "type": 0, "sum" : 39.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:29]execute_script... [16:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.590, "sum" : 39.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 39.00, "payments": [ { "type": 0, "sum" : 39.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:29]POST & json_proto [16:55:29]process_json_proto [16:55:29]json parsed OK: [16:55:29]protocol is kg_v1.0 [16:55:29]action value=close_receipt [16:55:29]process_action close_receipt [16:55:29]cmd_close_receipt [16:55:29]MH_GetDate [16:55:29]Write to MH i2c: F0 00 00 10 18 17 [16:55:29]Write i2c OK [16:55:29]MH_I2C_Read... [16:55:29]Read from MH i2c: F0 [16:55:29]MH_I2C_Read... [16:55:29]Read from MH i2c: F0 09 00 [16:55:29]MH_I2C_Read... [16:55:29]Read from MH i2c: F0 09 00 10 18 00 02 1F 1D 67 50 D1 6C 64 B6 [16:55:29]GetLastDocTimeStamp 1729961636 [16:55:29]current date 1729961730 [16:55:29]FM_GetShiftState [16:55:29]SAM_PROTO_GetShiftState [16:55:29]wFMCommunicate request_size=4 [16:55:29]MH_SAM_APDU [16:55:29]CAPDU: 80 13 01 00 [16:55:29]Write to MH i2c: E2 08 00 11 18 80 13 01 00 00 00 00 00 A6 [16:55:29]Write i2c OK [16:55:29]MH_I2C_Read... [16:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:29]Read from MH i2c: E2 [16:55:29]MH_I2C_Read... [16:55:29]Read from MH i2c: E2 0E 00 [16:55:29]MH_I2C_Read... [16:55:29]Read from MH i2c: E2 0E 00 11 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DB [16:55:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:55:29]wFMCommunicate OK [16:55:29]SAM_PROTO_GetShiftState done [16:55:29]FM_GetShiftState done [16:55:29]opened in 1729902702 [16:55:29]opened+sec_in_day 1729989102 [16:55:29]quantity*price = 3947 [16:55:29]sum+1 = 3948 [16:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 39.00 Внесено: 70.00 СДАЧА: 31.00 НСП 1% : 0.35 НДС 12% : 4.19 Наличными: 39.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 266 26.10.2024 16:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156365 ФПД: 154135602787989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165530&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156365&fm=154135602787989&tin=02508201610067®Number=0000000000091693&sum=3900 [16:55:30]StoreToDocumentArchive [16:55:30]shift 536 fd 156365 [16:55:30]save to /storage/0536/doc_00156365 [16:55:30]save last doc name /storage/0536/doc_00156365 to /storage/kkm_last_doc_name [16:55:30]save OK [16:55:30]Clear old archive folders... [16:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:30]tlvbuf is 016F2ED0 [16:55:30]SAM_PROTO_ClearQueue [16:55:30]wFMCommunicate request_size=4 [16:55:30]MH_SAM_APDU [16:55:30]CAPDU: 80 09 00 00 [16:55:30]Write to MH i2c: E2 08 00 1E 18 80 09 00 00 00 00 00 00 A8 [16:55:30]Write i2c OK [16:55:30]MH_I2C_Read... [16:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:30]Read from MH i2c: E2 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: E2 03 00 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: E2 03 00 1E 18 00 90 00 AA [16:55:30]RAPDU: 90 00 [16:55:30]wFMCommunicate OK [16:55:30]SAM_PROTO_ClearQueue done [16:55:30]KKMCreateOFDPacket [16:55:30]OFDProtocolAddRootSTLVToBuf [16:55:30]FM_MakeSignedData [16:55:30]FM_MakeSignedData [16:55:30]SAM_PROTO_SignData [16:55:30]wFMCommunicate request_size=4 [16:55:30]MH_SAM_APDU [16:55:30]CAPDU: 80 0D 01 02 [16:55:30]Write to MH i2c: E2 08 00 1F 18 80 0D 01 02 00 00 00 00 B0 [16:55:30]Write i2c OK [16:55:30]MH_I2C_Read... [16:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:31]Read from MH i2c: E2 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 03 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 03 00 1F 18 00 90 00 AB [16:55:31]RAPDU: 90 00 [16:55:31]wFMCommunicate OK [16:55:31]wFMCommunicate request_size=255 [16:55:31]MH_SAM_APDU [16:55:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 02 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 01 00 00 00 00 07 04 06 00 3C 0F 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 01 00 00 F4 03 04 00 02 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 62 02 00 35 04 06 00 8C [16:55:31]Write to MH i2c: E2 02 01 20 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 02 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 01 00 00 00 00 07 04 06 00 3C 0F 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 01 00 00 F4 03 04 00 02 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 62 02 00 35 04 06 00 8C 00 00 A9 [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:31]Read from MH i2c: E2 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 03 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 03 00 20 18 00 90 00 AC [16:55:31]RAPDU: 90 00 [16:55:31]wFMCommunicate OK [16:55:31]wFMCommunicate request_size=10 [16:55:31]MH_SAM_APDU [16:55:31]CAPDU: 80 0D 02 02 05 2F 7D D9 F6 95 [16:55:31]Write to MH i2c: E2 0D 00 21 18 80 0D 02 02 05 00 2F 7D D9 F6 95 00 00 CD [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:31]Read from MH i2c: E2 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 03 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 03 00 21 18 00 90 00 AD [16:55:31]RAPDU: 90 00 [16:55:31]wFMCommunicate OK [16:55:31]wFMCommunicate request_size=4 [16:55:31]MH_SAM_APDU [16:55:31]CAPDU: 80 0D 03 02 [16:55:31]Write to MH i2c: E2 08 00 22 18 80 0D 03 02 00 00 00 00 B5 [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:31]Read from MH i2c: E2 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 0B 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 0B 00 22 18 00 BD CC DC 9C 53 C5 DF B0 90 00 5E [16:55:31]RAPDU: BD CC DC 9C 53 C5 DF B0 90 00 [16:55:31]wFMCommunicate OK [16:55:31]SAM_PROTO_SignData done [16:55:31]FM_MakeSignedData done [16:55:31]CreateOFDProtocolMessage [16:55:31]wFMCommunicate request_size=4 [16:55:31]MH_SAM_APDU [16:55:31]CAPDU: 80 11 00 00 [16:55:31]Write to MH i2c: E2 08 00 23 18 80 11 00 00 00 00 00 00 B5 [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:31]Read from MH i2c: E2 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 17 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 17 00 23 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0A [16:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:55:31]wFMCommunicate OK [16:55:31]CreateOFDProtocolMessage done [16:55:31]OFDSenderStorePacket 156365 [16:55:31]StoreOFDPacket docnum=156365 [16:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 94 07 01 00 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 02 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 01 00 00 00 00 07 04 06 00 3C 0F 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 01 00 00 F4 03 04 00 02 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 62 02 00 35 04 06 00 8C 2F 7D D9 F6 95 BD CC DC 9C 53 C5 DF B0 [16:55:31]CheckFolder [16:55:31]dirname=/storage/ofd_packets [16:55:31]CheckFolder done [16:55:31]ProducePacketName [16:55:31]name=ofd_packets/00156365 [16:55:31]NVStorageSaveData ofd_packets/00156365 [16:55:31]File name is /storage/ofd_packets/00156365 [16:55:31]Write 301 bytes [16:55:31]NVStorageSaveData done [16:55:31]OFDSenderStorePacket done [16:55:31]KKMCreateOFDPacket done [16:55:31]NVStorageSaveData kkm_last_timestamp [16:55:31]File name is /storage/kkm_last_timestamp [16:55:31]Write 4 bytes [16:55:31]NVStorageSaveData done [16:55:31]ExternCall_PrintAddStr [16:55:31]wPrintStart [16:55:31]Write to MH i2c: 01 00 00 24 18 3C [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 07 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 07 00 24 18 00 00 00 00 00 FF 0F 51 [16:55:31]RasterBufferAndPrint [16:55:31]line Счет N : (1)99180 [16:55:31]line ИНН: 02508201610067 [16:55:31]line Контрольно-Кассовый Чек [16:55:31]line ПРОДАЖА [16:55:31]line ТРК (МРК, ГНК) : 31 [16:55:31]line Товар: 2710124130 [16:55:31]line Аи-92-К-5 [16:55:31]line 0.590 * 66.90 [16:55:31]line = 39.47 [16:55:31]line НДС 12% НСП 1% [16:55:31]line > о реализуемом товаре [16:55:31]line ОКРУГЛЕНИЕ: -0.47 [16:55:31]line ИТОГО: 39.00 [16:55:31]line Внесено: 70.00 [16:55:31]line СДАЧА: 31.00 [16:55:31]line НСП 1% : 0.35 [16:55:31]line НДС 12% : 4.19 [16:55:31]line Наличными: 39.00 [16:55:31]line Безнал.: 0.00 [16:55:31]line Место: АЗС № 143 "Партнер Нефть" [16:55:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:55:31]line СНО: Общий режим [16:55:31]line Чек 266 26.10.2024 16:55 [16:55:31]line Смена: 536 ФФД: 1.0 [16:55:31]line ЗНМ: 0300000096 [16:55:31]line РНМ: 0000000000091693 [16:55:31]line Версия ККМ: 001 [16:55:31]line ФМ: 0000000000871792 [16:55:31]line ФД: 156365 [16:55:31]line ФПД: 154135602787989 [16:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165530&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156365&fm=154135602787989&tin=02508201610067®Number=0000000000091693&sum=3900 [16:55:31]OFD Sender: Processing packet 156365 [packets to send 31, broken 30] [16:55:31]ProducePacketName [16:55:31]name=ofd_packets/00156365 [16:55:31]OFD Sender: To server: pG, [16:55:31]CommunicateWithHost lk.salyk.kg:30040 [16:55:31]ConnectInit lk.salyk.kg [16:55:31]written 0, free lines is 4095 [16:55:31]Connected sock=9 [16:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 94 07 01 00 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 02 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 01 00 00 00 00 07 04 06 00 3C 0F 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 01 00 00 F4 03 04 00 02 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 62 02 00 35 04 06 00 8C 2F 7D D9 F6 95 BD CC DC 9C 53 C5 DF B0 [16:55:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 31 82 47 00 9B A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 62 02 00 F4 03 04 00 75 C4 1C 67 B6 04 01 00 00 4A 4F 87 44 5A C8 3F C8 [16:55:32]CommunicateWithHost err = 0 [16:55:32]CheckOFDResponse [16:55:32]1017 (14) - 77093643461234 [16:55:32]1041 (16) - 0000000000871792 [16:55:32]1040 (4) - 156365 [16:55:32]1012 (4) - 26.10.2024 10:29 [16:55:32]1206 (1) - 0 [16:55:32]OFD Sender: Remove packet 156365 [16:55:32]ProducePacketName [16:55:32]name=ofd_packets/00156365 [16:55:32]NVStorageDeleteData [16:55:32]Write to MH i2c: 01 00 00 4F 18 67 [16:55:32]Write i2c OK [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: 01 [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: 01 07 00 [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: 01 07 00 4F 18 00 00 00 00 00 FB 0C 75 [16:55:32]RasterBufferAndPrint [16:55:32]line [16:55:32]line [16:55:32]line [16:55:32]line [16:55:32]line [16:55:32]written 0, free lines is 3329 [16:55:32]process_action close_receipt done [16:55:32]requested_data is exist [16:55:32]produce_requested_data [16:55:32]requested_item fm.sn is exist - process it [16:55:32]wFMCommunicate request_size=4 [16:55:32]MH_SAM_APDU [16:55:32]CAPDU: 80 11 00 00 [16:55:32]Write to MH i2c: E2 08 00 56 18 80 11 00 00 00 00 00 00 E8 [16:55:32]Write i2c OK [16:55:32]MH_I2C_Read... [16:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:32]Read from MH i2c: E2 [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: E2 17 00 [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: E2 17 00 56 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [16:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:55:32]wFMCommunicate OK [16:55:32]requested_item fd.num is exist - process it [16:55:32]SAM_PROTO_GetFieldsCounters [16:55:32]wFMCommunicate request_size=4 [16:55:32]MH_SAM_APDU [16:55:32]CAPDU: 80 13 00 00 [16:55:32]Write to MH i2c: E2 08 00 57 18 80 13 00 00 00 00 00 00 EB [16:55:32]Write i2c OK [16:55:32]MH_I2C_Read... [16:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:32]Read from MH i2c: E2 [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: E2 62 00 [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: E2 62 00 57 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [16:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:32]wFMCommunicate OK [16:55:32]SAM_PROTO_GetFieldsCounters done [16:55:32]requested_item shift.num is exist - process it [16:55:32]requested_item shift.opened is exist - process it [16:55:32]req_shift_opened [16:55:32]FM_GetShiftState [16:55:32]SAM_PROTO_GetShiftState [16:55:32]wFMCommunicate request_size=4 [16:55:32]MH_SAM_APDU [16:55:32]CAPDU: 80 13 01 00 [16:55:32]Write to MH i2c: E2 08 00 58 18 80 13 01 00 00 00 00 00 ED [16:55:32]Write i2c OK [16:55:32]MH_I2C_Read... [16:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:32]Read from MH i2c: E2 [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: E2 0E 00 [16:55:32]MH_I2C_Read... [16:55:32]Read from MH i2c: E2 0E 00 58 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 22 [16:55:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:55:32]wFMCommunicate OK [16:55:32]SAM_PROTO_GetShiftState done [16:55:32]FM_GetShiftState done [16:55:32]req_shift_opened done [16:55:32]requested_item shift.open_date is exist - process it [16:55:32]req_shift_open_date [16:55:32]req_shift_open_date done [16:55:32]produce_requested_data done [16:55:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156365,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:55:32]process_action_free close_receipt [16:55:32]json_value_free [16:55:32]json_value_free done [16:55:32]process_json_proto returns [16:55:32]Send response to host [16:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156365,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:55:32]free response buf [16:55:32]execute_script done [16:55:32]execute_script returns [16:55:32]free content buf [16:55:32]Sock 8.Close socket [16:55:32]Sock 8.Thread stoped [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:38]accept exits with 10 [16:55:38]New connection [16:55:38]New thread 3066834276 created [16:55:38]Thread 3066977636 joined [16:55:38]Waiting for new connection... [16:55:38] Sock 10.Parse request [16:55:38]Sock 10.Check first char [16:55:38]Sock 10.First char is OK [16:55:38]request: POST /json_proto HTTP/1.0 [16:55:38]Method: POST [16:55:38]URL: /json_proto [16:55:38]Method is POST - this is cgi request [16:55:38]url: /json_proto [16:55:38]query_string will be loaded in cgi processing [16:55:38]execute_cgi json_proto POST (null) [16:55:38]execute_cgi path=json_proto method=POST [16:55:38]POST find Content-Length [16:55:38]Host: 172.17.63.3:8080 [16:55:38]Content-Length: 676 [16:55:38]Content-Type: application/json [16:55:38] [16:55:38]POST finish read [16:55:38]Found Content-Length = 676 [16:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:38]execute_script... [16:55:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:38]POST & json_proto [16:55:38]process_json_proto [16:55:38]json parsed OK: [16:55:38]protocol is kg_v1.0 [16:55:38]action value=close_receipt [16:55:38]process_action close_receipt [16:55:38]cmd_close_receipt [16:55:38]MH_GetDate [16:55:38]Write to MH i2c: F0 00 00 59 18 60 [16:55:38]Write i2c OK [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: F0 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: F0 09 00 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: F0 09 00 59 18 00 0B 1F 1D 67 50 D1 6C 64 08 [16:55:38]GetLastDocTimeStamp 1729961730 [16:55:38]current date 1729961739 [16:55:38]FM_GetShiftState [16:55:38]SAM_PROTO_GetShiftState [16:55:38]wFMCommunicate request_size=4 [16:55:38]MH_SAM_APDU [16:55:38]CAPDU: 80 13 01 00 [16:55:38]Write to MH i2c: E2 08 00 5A 18 80 13 01 00 00 00 00 00 EF [16:55:38]Write i2c OK [16:55:38]MH_I2C_Read... [16:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:38]Read from MH i2c: E2 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 0E 00 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 0E 00 5A 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 24 [16:55:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:55:38]wFMCommunicate OK [16:55:38]SAM_PROTO_GetShiftState done [16:55:38]FM_GetShiftState done [16:55:38]opened in 1729902702 [16:55:38]opened+sec_in_day 1729989102 [16:55:38]quantity*price = 35055 [16:55:38]sum+1 = 35057 [16:55:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 267 26.10.2024 16:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156366 ФПД: 164575708183381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156366&fm=164575708183381&tin=02508201610067®Number=0000000000091693&sum=35000 [16:55:39]StoreToDocumentArchive [16:55:39]shift 536 fd 156366 [16:55:39]save to /storage/0536/doc_00156366 [16:55:39]save last doc name /storage/0536/doc_00156366 to /storage/kkm_last_doc_name [16:55:39]save OK [16:55:39]Clear old archive folders... [16:55:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:39]tlvbuf is B6EC78B0 [16:55:39]SAM_PROTO_ClearQueue [16:55:39]wFMCommunicate request_size=4 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 09 00 00 [16:55:39]Write to MH i2c: E2 08 00 67 18 80 09 00 00 00 00 00 00 F1 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:39]Read from MH i2c: E2 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 03 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [16:55:39]RAPDU: 90 00 [16:55:39]wFMCommunicate OK [16:55:39]SAM_PROTO_ClearQueue done [16:55:39]KKMCreateOFDPacket [16:55:39]OFDProtocolAddRootSTLVToBuf [16:55:39]FM_MakeSignedData [16:55:39]FM_MakeSignedData [16:55:39]SAM_PROTO_SignData [16:55:39]wFMCommunicate request_size=4 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 0D 01 02 [16:55:39]Write to MH i2c: E2 08 00 68 18 80 0D 01 02 00 00 00 00 F9 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:39]Read from MH i2c: E2 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 03 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [16:55:39]RAPDU: 90 00 [16:55:39]wFMCommunicate OK [16:55:39]wFMCommunicate request_size=255 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 0B 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 62 02 00 35 04 06 00 95 [16:55:39]Write to MH i2c: E2 02 01 69 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 0B 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 62 02 00 35 04 06 00 95 00 00 33 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [16:55:40]RAPDU: 90 00 [16:55:40]wFMCommunicate OK [16:55:40]wFMCommunicate request_size=10 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 0D 02 02 05 AE 44 9F FB 55 [16:55:40]Write to MH i2c: E2 0D 00 6A 18 80 0D 02 02 05 00 AE 44 9F FB 55 00 00 E7 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 6A 18 00 90 00 F6 [16:55:40]RAPDU: 90 00 [16:55:40]wFMCommunicate OK [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 0D 03 02 [16:55:40]Write to MH i2c: E2 08 00 6B 18 80 0D 03 02 00 00 00 00 FE [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0B 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0B 00 6B 18 00 67 EC FB 7A DF 34 3A E4 90 00 F8 [16:55:40]RAPDU: 67 EC FB 7A DF 34 3A E4 90 00 [16:55:40]wFMCommunicate OK [16:55:40]SAM_PROTO_SignData done [16:55:40]FM_MakeSignedData done [16:55:40]CreateOFDProtocolMessage [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 11 00 00 [16:55:40]Write to MH i2c: E2 08 00 6C 18 80 11 00 00 00 00 00 00 FE [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 17 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 17 00 6C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [16:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:55:40]wFMCommunicate OK [16:55:40]CreateOFDProtocolMessage done [16:55:40]OFDSenderStorePacket 156366 [16:55:40]StoreOFDPacket docnum=156366 [16:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BD 83 07 01 17 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 0B 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 62 02 00 35 04 06 00 95 AE 44 9F FB 55 67 EC FB 7A DF 34 3A E4 [16:55:40]CheckFolder [16:55:40]dirname=/storage/ofd_packets [16:55:40]CheckFolder done [16:55:40]ProducePacketName [16:55:40]name=ofd_packets/00156366 [16:55:40]NVStorageSaveData ofd_packets/00156366 [16:55:40]File name is /storage/ofd_packets/00156366 [16:55:40]Write 301 bytes [16:55:40]NVStorageSaveData done [16:55:40]OFDSenderStorePacket done [16:55:40]KKMCreateOFDPacket done [16:55:40]NVStorageSaveData kkm_last_timestamp [16:55:40]File name is /storage/kkm_last_timestamp [16:55:40]Write 4 bytes [16:55:40]NVStorageSaveData done [16:55:40]ExternCall_PrintAddStr [16:55:40]wPrintStart [16:55:40]Write to MH i2c: 01 00 00 6D 18 85 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 6D 18 00 00 00 00 00 FF 0F 9A [16:55:40]RasterBufferAndPrint [16:55:40]line Счет N : (1)99181 [16:55:40]line ИНН: 02508201610067 [16:55:40]line Контрольно-Кассовый Чек [16:55:40]line ПРОДАЖА [16:55:40]line ТРК (МРК, ГНК) : 11 [16:55:40]line Товар: 2710124130 [16:55:40]line Аи-92-К-5 [16:55:40]line 5.240 * 66.90 [16:55:40]line = 350.56 [16:55:40]line НДС 12% НСП 1% [16:55:40]line > о реализуемом товаре [16:55:40]line ОКРУГЛЕНИЕ: -0.56 [16:55:40]line ИТОГО: 350.00 [16:55:40]line Внесено: 350.00 [16:55:40]line СДАЧА: 0.00 [16:55:40]line НСП 1% : 3.10 [16:55:40]line НДС 12% : 37.23 [16:55:40]line Наличными: 350.00 [16:55:40]line Безнал.: 0.00 [16:55:40]line Место: АЗС № 143 "Партнер Нефть" [16:55:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:55:40]line СНО: Общий режим [16:55:40]line Чек 267 26.10.2024 16:55 [16:55:40]line Смена: 536 ФФД: 1.0 [16:55:40]line ЗНМ: 0300000096 [16:55:40]line РНМ: 0000000000091693 [16:55:40]line Версия ККМ: 001 [16:55:40]line ФМ: 0000000000871792 [16:55:40]line ФД: 156366 [16:55:40]line ФПД: 164575708183381 [16:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156366&fm=164575708183381&tin=02508201610067®Number=0000000000091693&sum=35000 [16:55:40]written 0, free lines is 4095 [16:55:40]OFD Sender: Processing packet 156366 [packets to send 31, broken 30] [16:55:40]ProducePacketName [16:55:40]name=ofd_packets/00156366 [16:55:40]OFD Sender: To server: pG, [16:55:40]CommunicateWithHost lk.salyk.kg:30040 [16:55:40]ConnectInit lk.salyk.kg [16:55:40]Connected sock=9 [16:55:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BD 83 07 01 17 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 0B 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 62 02 00 35 04 06 00 95 AE 44 9F FB 55 67 EC FB 7A DF 34 3A E4 [16:55:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A1 4B 47 00 D1 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 31 37 39 32 10 04 04 00 CE 62 02 00 F4 03 04 00 7D C4 1C 67 B6 04 01 00 00 70 95 22 90 3F DD 4F 9B [16:55:40]CommunicateWithHost err = 0 [16:55:40]CheckOFDResponse [16:55:40]1017 (14) - 77093643461234 [16:55:40]1041 (16) - 0000000000871792 [16:55:40]1040 (4) - 156366 [16:55:40]1012 (4) - 26.10.2024 10:29 [16:55:40]1206 (1) - 0 [16:55:40]OFD Sender: Remove packet 156366 [16:55:40]ProducePacketName [16:55:40]name=ofd_packets/00156366 [16:55:40]NVStorageDeleteData [16:55:40]Write to MH i2c: 01 00 00 98 18 B0 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 F2 0C B5 [16:55:40]RasterBufferAndPrint [16:55:40]line [16:55:40]line [16:55:40]line [16:55:40]line [16:55:40]line [16:55:40]written 0, free lines is 3327 [16:55:40]process_action close_receipt done [16:55:40]requested_data is exist [16:55:40]produce_requested_data [16:55:40]requested_item fm.sn is exist - process it [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 11 00 00 [16:55:40]Write to MH i2c: E2 08 00 9F 18 80 11 00 00 00 00 00 00 31 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 17 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 17 00 9F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [16:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:55:40]wFMCommunicate OK [16:55:40]requested_item fd.num is exist - process it [16:55:40]SAM_PROTO_GetFieldsCounters [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 13 00 00 [16:55:40]Write to MH i2c: E2 08 00 A0 18 80 13 00 00 00 00 00 00 34 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 62 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 62 00 A0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [16: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:40]wFMCommunicate OK [16:55:40]SAM_PROTO_GetFieldsCounters done [16:55:40]requested_item shift.num is exist - process it [16:55:40]requested_item shift.opened is exist - process it [16:55:40]req_shift_opened [16:55:40]FM_GetShiftState [16:55:40]SAM_PROTO_GetShiftState [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 13 01 00 [16:55:40]Write to MH i2c: E2 08 00 A1 18 80 13 01 00 00 00 00 00 36 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0E 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0E 00 A1 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 6B [16:55:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:55:40]wFMCommunicate OK [16:55:40]SAM_PROTO_GetShiftState done [16:55:40]FM_GetShiftState done [16:55:40]req_shift_opened done [16:55:40]requested_item shift.open_date is exist - process it [16:55:40]req_shift_open_date [16:55:40]req_shift_open_date done [16:55:40]produce_requested_data done [16:55:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156366,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:55:40]process_action_free close_receipt [16:55:40]json_value_free [16:55:40]json_value_free done [16:55:40]process_json_proto returns [16:55:40]Send response to host [16:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156366,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:55:40]free response buf [16:55:40]execute_script done [16:55:40]execute_script returns [16:55:40]free content buf [16:55:40]Sock 10.Close socket [16:55:40]Sock 10.Thread stoped [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:51]int [16:55:51]Write to MH i2c: 01 00 00 A2 18 BA [16:55:51]*** FLAG_PRN_KEY set [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 07 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 07 00 A2 18 00 08 00 00 00 FF 0F D7 [16:55:51]state=0 [16:55:51]Key pressed [16:55:51]Feed [16:55:51]Write to MH i2c: D8 00 00 A3 18 92 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: D8 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: D8 01 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: D8 01 00 A3 18 00 93 [16:55:51]int [16:55:51]Write to MH i2c: 01 00 00 A4 18 BC [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 07 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 07 00 A4 18 00 48 00 00 00 3D 00 48 [16:55:51]state=2 [16:55:51]Key pressed [16:55:52]int [16:55:52]Write to MH i2c: 01 00 00 A5 18 BD [16:55:52]*** FLAG_PRN_KEY reset [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 07 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 07 00 A5 18 00 00 00 00 00 FF 0F D2 [16:55:52]state=2 [16:55:52]Stop feed [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:49]accept exits with 8 [16:56:49]New connection [16:56:49]New thread 3066977636 created [16:56:49]Thread 3066834276 joined [16:56:49]Waiting for new connection... [16:56:49] Sock 8.Parse request [16:56:49]Sock 8.Check first char [16:56:49]Sock 8.First char is OK [16:56:49]request: POST /json_proto HTTP/1.0 [16:56:49]Method: POST [16:56:49]URL: /json_proto [16:56:49]Method is POST - this is cgi request [16:56:49]url: /json_proto [16:56:49]query_string will be loaded in cgi processing [16:56:49]execute_cgi json_proto POST (null) [16:56:49]execute_cgi path=json_proto method=POST [16:56:49]POST find Content-Length [16:56:49]Host: 172.17.63.3:8080 [16:56:49]Content-Length: 681 [16:56:49]Content-Type: application/json [16:56:49] [16:56:49]POST finish read [16:56:49]Found Content-Length = 681 [16:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:49]execute_script... [16:56: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)99182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:49]POST & json_proto [16:56:49]process_json_proto [16:56:49]json parsed OK: [16:56:49]protocol is kg_v1.0 [16:56:49]action value=close_receipt [16:56:49]process_action close_receipt [16:56:49]cmd_close_receipt [16:56:49]MH_GetDate [16:56:49]Write to MH i2c: F0 00 00 A6 18 AD [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: F0 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: F0 09 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: F0 09 00 A6 18 00 53 1F 1D 67 50 D1 6C 64 9D [16:56:49]GetLastDocTimeStamp 1729961739 [16:56:49]current date 1729961811 [16:56:49]FM_GetShiftState [16:56:49]SAM_PROTO_GetShiftState [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 13 01 00 [16:56:49]Write to MH i2c: E2 08 00 A7 18 80 13 01 00 00 00 00 00 3C [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:50]Read from MH i2c: E2 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 0E 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 0E 00 A7 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 71 [16:56:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:56:50]wFMCommunicate OK [16:56:50]SAM_PROTO_GetShiftState done [16:56:50]FM_GetShiftState done [16:56:50]opened in 1729902702 [16:56:50]opened+sec_in_day 1729989102 [16:56:50]quantity*price = 100015 [16:56:50]sum+1 = 100017 [16:56:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 268 26.10.2024 16:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156367 ФПД: 26917388741667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165651&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156367&fm=26917388741667&tin=02508201610067®Number=0000000000091693&sum=100000 [16:56:51]StoreToDocumentArchive [16:56:51]shift 536 fd 156367 [16:56:51]save to /storage/0536/doc_00156367 [16:56:51]save last doc name /storage/0536/doc_00156367 to /storage/kkm_last_doc_name [16:56:51]save OK [16:56:51]Clear old archive folders... [16:56:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:51]tlvbuf is 017126D0 [16:56:51]SAM_PROTO_ClearQueue [16:56:51]wFMCommunicate request_size=4 [16:56:51]MH_SAM_APDU [16:56:51]CAPDU: 80 09 00 00 [16:56:51]Write to MH i2c: E2 08 00 B4 18 80 09 00 00 00 00 00 00 3E [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]OFD Sender: No OFD packet to send [16:56:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 03 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [16:56:51]RAPDU: 90 00 [16:56:51]wFMCommunicate OK [16:56:51]SAM_PROTO_ClearQueue done [16:56:51]KKMCreateOFDPacket [16:56:51]OFDProtocolAddRootSTLVToBuf [16:56:51]FM_MakeSignedData [16:56:51]FM_MakeSignedData [16:56:51]SAM_PROTO_SignData [16:56:51]wFMCommunicate request_size=4 [16:56:51]MH_SAM_APDU [16:56:51]CAPDU: 80 0D 01 02 [16:56:51]Write to MH i2c: E2 08 00 B5 18 80 0D 01 02 00 00 00 00 46 [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 03 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [16:56:51]RAPDU: 90 00 [16:56:51]wFMCommunicate OK [16:56:51]wFMCommunicate request_size=255 [16:56:51]MH_SAM_APDU [16:56:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 53 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 62 02 00 35 04 06 00 18 [16:56:51]Write to MH i2c: E2 02 01 B6 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 53 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 62 02 00 35 04 06 00 18 00 00 3C [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 03 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [16:56:51]RAPDU: 90 00 [16:56:51]wFMCommunicate OK [16:56:51]wFMCommunicate request_size=10 [16:56:51]MH_SAM_APDU [16:56:51]CAPDU: 80 0D 02 02 05 7B 31 64 EC 23 [16:56:51]Write to MH i2c: E2 0D 00 B7 18 80 0D 02 02 05 00 7B 31 64 EC 23 00 00 72 [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 03 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [16:56:51]RAPDU: 90 00 [16:56:51]wFMCommunicate OK [16:56:51]wFMCommunicate request_size=4 [16:56:51]MH_SAM_APDU [16:56:51]CAPDU: 80 0D 03 02 [16:56:51]Write to MH i2c: E2 08 00 B8 18 80 0D 03 02 00 00 00 00 4B [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 0B 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 0B 00 B8 18 00 3A A2 9F BC D6 AD B5 ED 90 00 A8 [16:56:51]RAPDU: 3A A2 9F BC D6 AD B5 ED 90 00 [16:56:51]wFMCommunicate OK [16:56:51]SAM_PROTO_SignData done [16:56:51]FM_MakeSignedData done [16:56:51]CreateOFDProtocolMessage [16:56:51]wFMCommunicate request_size=4 [16:56:51]MH_SAM_APDU [16:56:51]CAPDU: 80 11 00 00 [16:56:51]Write to MH i2c: E2 08 00 B9 18 80 11 00 00 00 00 00 00 4B [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 17 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 17 00 B9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [16:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:56:51]wFMCommunicate OK [16:56:51]CreateOFDProtocolMessage done [16:56:51]OFDSenderStorePacket 156367 [16:56:51]StoreOFDPacket docnum=156367 [16:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2C 60 07 01 17 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 53 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 62 02 00 35 04 06 00 18 7B 31 64 EC 23 3A A2 9F BC D6 AD B5 ED [16:56:51]CheckFolder [16:56:51]dirname=/storage/ofd_packets [16:56:51]CheckFolder done [16:56:51]ProducePacketName [16:56:51]name=ofd_packets/00156367 [16:56:51]NVStorageSaveData ofd_packets/00156367 [16:56:51]File name is /storage/ofd_packets/00156367 [16:56:51]Write 301 bytes [16:56:51]NVStorageSaveData done [16:56:51]OFDSenderStorePacket done [16:56:51]KKMCreateOFDPacket done [16:56:51]NVStorageSaveData kkm_last_timestamp [16:56:51]File name is /storage/kkm_last_timestamp [16:56:51]Write 4 bytes [16:56:51]NVStorageSaveData done [16:56:51]ExternCall_PrintAddStr [16:56:51]wPrintStart [16:56:51]Write to MH i2c: 01 00 00 BA 18 D2 [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: 01 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: 01 07 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 FF 0F E7 [16:56:51]RasterBufferAndPrint [16:56:51]line Счет N : (1)99182 [16:56:51]line ИНН: 02508201610067 [16:56:51]line Контрольно-Кассовый Чек [16:56:51]line ПРОДАЖА [16:56:51]line ТРК (МРК, ГНК) : 31 [16:56:51]line Товар: 2710124130 [16:56:51]line Аи-92-К-5 [16:56:51]line 14.950 * 66.90 [16:56:51]line = 1000.16 [16:56:51]line НДС 12% НСП 1% [16:56:51]line > о реализуемом товаре [16:56:51]line ОКРУГЛЕНИЕ: -0.16 [16:56:51]line ИТОГО: 1000.00 [16:56:51]line Внесено: 1000.00 [16:56:51]line СДАЧА: 0.00 [16:56:51]line НСП 1% : 8.85 [16:56:51]line НДС 12% : 106.21 [16:56:51]line Наличными: 1000.00 [16:56:51]line Безнал.: 0.00 [16:56:51]line Место: АЗС № 143 "Партнер Нефть" [16:56:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:56:51]line СНО: Общий режим [16:56:51]line Чек 268 26.10.2024 16:56 [16:56:51]line Смена: 536 ФФД: 1.0 [16:56:51]line ЗНМ: 0300000096 [16:56:51]line РНМ: 0000000000091693 [16:56:51]line Версия ККМ: 001 [16:56:51]line ФМ: 0000000000871792 [16:56:51]line ФД: 156367 [16:56:51]line ФПД: 26917388741667 [16:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165651&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156367&fm=26917388741667&tin=02508201610067®Number=0000000000091693&sum=100000 [16:56:52]OFD Sender: Processing packet 156367 [packets to send 31, broken 30] [16:56:52]ProducePacketName [16:56:52]name=ofd_packets/00156367 [16:56:52]OFD Sender: To server: pG, [16:56:52]CommunicateWithHost lk.salyk.kg:30040 [16:56:52]ConnectInit lk.salyk.kg [16:56:52]written 0, free lines is 4095 [16:56:52]Connected sock=10 [16:56:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2C 60 07 01 17 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 53 1F 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 62 02 00 35 04 06 00 18 7B 31 64 EC 23 3A A2 9F BC D6 AD B5 ED [16:56:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 32 99 47 00 BB 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 62 02 00 F4 03 04 00 C5 C4 1C 67 B6 04 01 00 00 34 EB ED 31 A7 41 10 CC [16:56:52]CommunicateWithHost err = 0 [16:56:52]CheckOFDResponse [16:56:52]1017 (14) - 77093643461234 [16:56:52]1041 (16) - 0000000000871792 [16:56:52]1040 (4) - 156367 [16:56:52]1012 (4) - 26.10.2024 10:30 [16:56:52]1206 (1) - 0 [16:56:52]OFD Sender: Remove packet 156367 [16:56:52]ProducePacketName [16:56:52]name=ofd_packets/00156367 [16:56:52]NVStorageDeleteData [16:56:52]Write to MH i2c: 01 00 00 E5 18 FD [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 E5 18 00 00 00 00 00 F1 0C 01 [16:56:52]RasterBufferAndPrint [16:56:52]line [16:56:52]line [16:56:52]line [16:56:52]line [16:56:52]line [16:56:52]written 0, free lines is 3319 [16:56:52]process_action close_receipt done [16:56:52]requested_data is exist [16:56:52]produce_requested_data [16:56:52]requested_item fm.sn is exist - process it [16:56:52]wFMCommunicate request_size=4 [16:56:52]MH_SAM_APDU [16:56:52]CAPDU: 80 11 00 00 [16:56:52]Write to MH i2c: E2 08 00 EC 18 80 11 00 00 00 00 00 00 7E [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:52]Read from MH i2c: E2 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 17 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 17 00 EC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [16:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:56:52]wFMCommunicate OK [16:56:52]requested_item fd.num is exist - process it [16:56:52]SAM_PROTO_GetFieldsCounters [16:56:52]wFMCommunicate request_size=4 [16:56:52]MH_SAM_APDU [16:56:52]CAPDU: 80 13 00 00 [16:56:52]Write to MH i2c: E2 08 00 ED 18 80 13 00 00 00 00 00 00 81 [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:52]Read from MH i2c: E2 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 62 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 62 00 ED 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:56: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:52]wFMCommunicate OK [16:56:52]SAM_PROTO_GetFieldsCounters done [16:56:52]requested_item shift.num is exist - process it [16:56:52]requested_item shift.opened is exist - process it [16:56:52]req_shift_opened [16:56:52]FM_GetShiftState [16:56:52]SAM_PROTO_GetShiftState [16:56:52]wFMCommunicate request_size=4 [16:56:52]MH_SAM_APDU [16:56:52]CAPDU: 80 13 01 00 [16:56:52]Write to MH i2c: E2 08 00 EE 18 80 13 01 00 00 00 00 00 83 [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:52]Read from MH i2c: E2 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 0E 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 0E 00 EE 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B8 [16:56:52]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [16:56:52]wFMCommunicate OK [16:56:52]SAM_PROTO_GetShiftState done [16:56:52]FM_GetShiftState done [16:56:52]req_shift_opened done [16:56:52]requested_item shift.open_date is exist - process it [16:56:52]req_shift_open_date [16:56:52]req_shift_open_date done [16:56:52]produce_requested_data done [16:56:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156367,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [16:56:52]process_action_free close_receipt [16:56:52]json_value_free [16:56:52]json_value_free done [16:56:52]process_json_proto returns [16:56:52]Send response to host [16:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156367,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [16:56:52]free response buf [16:56:52]execute_script done [16:56:52]execute_script returns [16:56:52]free content buf [16:56:52]Sock 8.Close socket [16:56:52]Sock 8.Thread stoped [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:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:14]accept exits with 9 [17:04:14]New connection [17:04:14]New thread 3066834276 created [17:04:14]Thread 3066977636 joined [17:04:14]Waiting for new connection... [17:04:14] Sock 9.Parse request [17:04:14]Sock 9.Check first char [17:04:14]Sock 9.First char is OK [17:04:14]request: POST /json_proto HTTP/1.0 [17:04:14]Method: POST [17:04:14]URL: /json_proto [17:04:14]Method is POST - this is cgi request [17:04:14]url: /json_proto [17:04:14]query_string will be loaded in cgi processing [17:04:14]execute_cgi json_proto POST (null) [17:04:14]execute_cgi path=json_proto method=POST [17:04:14]POST find Content-Length [17:04:14]Host: 172.17.63.3:8080 [17:04:14]Content-Length: 678 [17:04:14]Content-Type: application/json [17:04:14] [17:04:14]POST finish read [17:04:14]Found Content-Length = 678 [17:04:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:14]execute_script... [17:04:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:14]POST & json_proto [17:04:14]process_json_proto [17:04:14]json parsed OK: [17:04:14]protocol is kg_v1.0 [17:04:14]action value=close_receipt [17:04:14]process_action close_receipt [17:04:14]cmd_close_receipt [17:04:14]MH_GetDate [17:04:14]Write to MH i2c: F0 00 00 EF 18 F6 [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: F0 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: F0 09 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: F0 09 00 EF 18 00 0F 21 1D 67 50 D1 6C 64 A4 [17:04:14]GetLastDocTimeStamp 1729961811 [17:04:14]current date 1729962255 [17:04:14]FM_GetShiftState [17:04:14]SAM_PROTO_GetShiftState [17:04:14]wFMCommunicate request_size=4 [17:04:14]MH_SAM_APDU [17:04:14]CAPDU: 80 13 01 00 [17:04:14]Write to MH i2c: E2 08 00 F0 18 80 13 01 00 00 00 00 00 85 [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:14]Read from MH i2c: E2 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 0E 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 0E 00 F0 18 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BA [17:04:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:04:14]wFMCommunicate OK [17:04:14]SAM_PROTO_GetShiftState done [17:04:14]FM_GetShiftState done [17:04:14]opened in 1729902702 [17:04:14]opened+sec_in_day 1729989102 [17:04:14]quantity*price = 100050 [17:04:14]sum+1 = 100052 [17:04:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 269 26.10.2024 17:04 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156368 ФПД: 152023873464222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170415&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156368&fm=152023873464222&tin=02508201610067®Number=0000000000091693&sum=100000 [17:04:15]StoreToDocumentArchive [17:04:15]shift 536 fd 156368 [17:04:15]save to /storage/0536/doc_00156368 [17:04:15]save last doc name /storage/0536/doc_00156368 to /storage/kkm_last_doc_name [17:04:15]save OK [17:04:15]Clear old archive folders... [17:04:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:04:15]tlvbuf is B6DAE0C0 [17:04:15]SAM_PROTO_ClearQueue [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 09 00 00 [17:04:15]Write to MH i2c: E2 08 00 FD 18 80 09 00 00 00 00 00 00 87 [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 FD 18 00 90 00 89 [17:04:15]RAPDU: 90 00 [17:04:15]wFMCommunicate OK [17:04:15]SAM_PROTO_ClearQueue done [17:04:15]KKMCreateOFDPacket [17:04:15]OFDProtocolAddRootSTLVToBuf [17:04:15]FM_MakeSignedData [17:04:15]FM_MakeSignedData [17:04:15]SAM_PROTO_SignData [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 0D 01 02 [17:04:15]Write to MH i2c: E2 08 00 FE 18 80 0D 01 02 00 00 00 00 8F [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 FE 18 00 90 00 8A [17:04:15]RAPDU: 90 00 [17:04:15]wFMCommunicate OK [17:04:15]wFMCommunicate request_size=255 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 0F 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 62 02 00 35 04 06 00 8A 43 D0 F9 [17:04:15]Write to MH i2c: E2 02 01 FF 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 0F 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 62 02 00 35 04 06 00 8A 43 D0 F9 00 00 BF [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 FF 18 00 90 00 8B [17:04:15]RAPDU: 90 00 [17:04:15]wFMCommunicate OK [17:04:15]wFMCommunicate request_size=7 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 0D 02 02 02 A7 9E [17:04:15]Write to MH i2c: E2 0A 00 00 19 80 0D 02 02 02 00 A7 9E 00 00 DC [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 00 19 00 90 00 8D [17:04:15]RAPDU: 90 00 [17:04:15]wFMCommunicate OK [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 0D 03 02 [17:04:15]Write to MH i2c: E2 08 00 01 19 80 0D 03 02 00 00 00 00 95 [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 0B 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 0B 00 01 19 00 26 4D 44 CE 06 6B 4F B2 90 00 8D [17:04:15]RAPDU: 26 4D 44 CE 06 6B 4F B2 90 00 [17:04:15]wFMCommunicate OK [17:04:15]SAM_PROTO_SignData done [17:04:15]FM_MakeSignedData done [17:04:15]CreateOFDProtocolMessage [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 11 00 00 [17:04:15]Write to MH i2c: E2 08 00 02 19 80 11 00 00 00 00 00 00 95 [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 17 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 17 00 02 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [17:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:04:15]wFMCommunicate OK [17:04:15]CreateOFDProtocolMessage done [17:04:15]OFDSenderStorePacket 156368 [17:04:15]StoreOFDPacket docnum=156368 [17:04:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2A 74 04 01 E8 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 0F 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 62 02 00 35 04 06 00 8A 43 D0 F9 A7 9E 26 4D 44 CE 06 6B 4F B2 [17:04:15]CheckFolder [17:04:15]dirname=/storage/ofd_packets [17:04:15]CheckFolder done [17:04:15]ProducePacketName [17:04:15]name=ofd_packets/00156368 [17:04:15]NVStorageSaveData ofd_packets/00156368 [17:04:15]File name is /storage/ofd_packets/00156368 [17:04:15]Write 298 bytes [17:04:15]NVStorageSaveData done [17:04:15]OFDSenderStorePacket done [17:04:15]KKMCreateOFDPacket done [17:04:15]NVStorageSaveData kkm_last_timestamp [17:04:15]File name is /storage/kkm_last_timestamp [17:04:15]Write 4 bytes [17:04:15]NVStorageSaveData done [17:04:15]ExternCall_PrintAddStr [17:04:15]wPrintStart [17:04:15]Write to MH i2c: 01 00 00 03 19 1C [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: 01 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: 01 07 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: 01 07 00 03 19 00 00 00 00 00 FF 0F 31 [17:04:15]RasterBufferAndPrint [17:04:15]line Счет N : (1)99183 [17:04:15]line ИНН: 02508201610067 [17:04:15]line Контрольно-Кассовый Чек [17:04:15]line ПРОДАЖА [17:04:15]line ТРК (МРК, ГНК) : 32 [17:04:15]line Товар: 2710194210 [17:04:15]line ДТ-К-5 [17:04:15]line 13.130 * 76.20 [17:04:15]line = 1000.51 [17:04:15]line НДС 12% НСП 1% [17:04:15]line > о реализуемом товаре [17:04:15]line ОКРУГЛЕНИЕ: -0.51 [17:04:15]line ИТОГО: 1000.00 [17:04:15]line Внесено: 1000.00 [17:04:15]line СДАЧА: 0.00 [17:04:15]line НСП 1% : 8.85 [17:04:15]line НДС 12% : 106.25 [17:04:15]line Наличными: 1000.00 [17:04:15]line Безнал.: 0.00 [17:04:15]line Место: АЗС № 143 "Партнер Нефть" [17:04:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:04:15]line СНО: Общий режим [17:04:15]line Чек 269 26.10.2024 17:04 [17:04:15]line Смена: 536 ФФД: 1.0 [17:04:15]line ЗНМ: 0300000096 [17:04:15]line РНМ: 0000000000091693 [17:04:15]line Версия ККМ: 001 [17:04:15]line ФМ: 0000000000871792 [17:04:15]line ФД: 156368 [17:04:15]line ФПД: 152023873464222 [17:04:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170415&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156368&fm=152023873464222&tin=02508201610067®Number=0000000000091693&sum=100000 [17:04:16]OFD Sender: Processing packet 156368 [packets to send 31, broken 30] [17:04:16]ProducePacketName [17:04:16]name=ofd_packets/00156368 [17:04:16]OFD Sender: To server: pG, [17:04:16]CommunicateWithHost lk.salyk.kg:30040 [17:04:16]ConnectInit lk.salyk.kg [17:04:16]written 0, free lines is 4095 [17:04:16]Connected sock=10 [17:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2A 74 04 01 E8 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 0F 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 62 02 00 35 04 06 00 8A 43 D0 F9 A7 9E 26 4D 44 CE 06 6B 4F B2 [17:04:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9D 3C 47 00 7A 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 31 37 39 32 10 04 04 00 D0 62 02 00 F4 03 04 00 81 C6 1C 67 B6 04 01 00 00 91 FA 96 87 57 26 08 29 [17:04:16]CommunicateWithHost err = 0 [17:04:16]CheckOFDResponse [17:04:16]1017 (14) - 77093643461234 [17:04:16]1041 (16) - 0000000000871792 [17:04:16]1040 (4) - 156368 [17:04:16]1012 (4) - 26.10.2024 10:37 [17:04:16]1206 (1) - 0 [17:04:16]OFD Sender: Remove packet 156368 [17:04:16]ProducePacketName [17:04:16]name=ofd_packets/00156368 [17:04:16]NVStorageDeleteData [17:04:16]Write to MH i2c: 01 00 00 2E 19 47 [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 07 00 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 07 00 2E 19 00 00 00 00 00 ED 0C 47 [17:04:16]RasterBufferAndPrint [17:04:16]line [17:04:16]line [17:04:16]line [17:04:16]line [17:04:16]line [17:04:16]written 0, free lines is 3315 [17:04:16]process_action close_receipt done [17:04:16]requested_data is exist [17:04:16]produce_requested_data [17:04:16]requested_item fm.sn is exist - process it [17:04:16]wFMCommunicate request_size=4 [17:04:16]MH_SAM_APDU [17:04:16]CAPDU: 80 11 00 00 [17:04:16]Write to MH i2c: E2 08 00 35 19 80 11 00 00 00 00 00 00 C8 [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:16]Read from MH i2c: E2 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: E2 17 00 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: E2 17 00 35 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [17:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:04:16]wFMCommunicate OK [17:04:16]requested_item fd.num is exist - process it [17:04:16]SAM_PROTO_GetFieldsCounters [17:04:16]wFMCommunicate request_size=4 [17:04:16]MH_SAM_APDU [17:04:16]CAPDU: 80 13 00 00 [17:04:16]Write to MH i2c: E2 08 00 36 19 80 13 00 00 00 00 00 00 CB [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:16]Read from MH i2c: E2 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: E2 62 00 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: E2 62 00 36 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [17:04: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:16]wFMCommunicate OK [17:04:16]SAM_PROTO_GetFieldsCounters done [17:04:16]requested_item shift.num is exist - process it [17:04:16]requested_item shift.opened is exist - process it [17:04:16]req_shift_opened [17:04:16]FM_GetShiftState [17:04:16]SAM_PROTO_GetShiftState [17:04:16]wFMCommunicate request_size=4 [17:04:16]MH_SAM_APDU [17:04:16]CAPDU: 80 13 01 00 [17:04:16]Write to MH i2c: E2 08 00 37 19 80 13 01 00 00 00 00 00 CD [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:17]Read from MH i2c: E2 [17:04:17]MH_I2C_Read... [17:04:17]Read from MH i2c: E2 0E 00 [17:04:17]MH_I2C_Read... [17:04:17]Read from MH i2c: E2 0E 00 37 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 02 [17:04:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:04:17]wFMCommunicate OK [17:04:17]SAM_PROTO_GetShiftState done [17:04:17]FM_GetShiftState done [17:04:17]req_shift_opened done [17:04:17]requested_item shift.open_date is exist - process it [17:04:17]req_shift_open_date [17:04:17]req_shift_open_date done [17:04:17]produce_requested_data done [17:04:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156368,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:04:17]process_action_free close_receipt [17:04:17]json_value_free [17:04:17]json_value_free done [17:04:17]process_json_proto returns [17:04:17]Send response to host [17:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156368,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:04:17]free response buf [17:04:17]execute_script done [17:04:17]execute_script returns [17:04:17]free content buf [17:04:17]Sock 9.Close socket [17:04:17]Sock 9.Thread stoped [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:50]accept exits with 8 [17:05:50]New connection [17:05:50]New thread 3066977636 created [17:05:50]Thread 3066834276 joined [17:05:50]Waiting for new connection... [17:05:50] Sock 8.Parse request [17:05:50]Sock 8.Check first char [17:05:50]Sock 8.First char is OK [17:05:50]request: POST /json_proto HTTP/1.0 [17:05:50]Method: POST [17:05:50]URL: /json_proto [17:05:50]Method is POST - this is cgi request [17:05:50]url: /json_proto [17:05:50]query_string will be loaded in cgi processing [17:05:50]execute_cgi json_proto POST (null) [17:05:50]execute_cgi path=json_proto method=POST [17:05:50]POST find Content-Length [17:05:50]Host: 172.17.63.3:8080 [17:05:50]Content-Length: 796 [17:05:50]Content-Type: application/json [17:05:50] [17:05:50]POST finish read [17:05:50]Found Content-Length = 796 [17:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4381433", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:50]execute_script... [17:05:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4381433", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:50]POST & json_proto [17:05:50]process_json_proto [17:05:50]json parsed OK: [17:05:50]protocol is kg_v1.0 [17:05:50]action value=close_receipt [17:05:50]process_action close_receipt [17:05:50]cmd_close_receipt [17:05:50]MH_GetDate [17:05:50]Write to MH i2c: F0 00 00 38 19 40 [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 09 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 09 00 38 19 00 6F 21 1D 67 50 D1 6C 64 4E [17:05:50]GetLastDocTimeStamp 1729962255 [17:05:50]current date 1729962351 [17:05:50]FM_GetShiftState [17:05:50]SAM_PROTO_GetShiftState [17:05:50]wFMCommunicate request_size=4 [17:05:50]MH_SAM_APDU [17:05:50]CAPDU: 80 13 01 00 [17:05:50]Write to MH i2c: E2 08 00 39 19 80 13 01 00 00 00 00 00 CF [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:50]Read from MH i2c: E2 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: E2 0E 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: E2 0E 00 39 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 04 [17:05:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:05:50]wFMCommunicate OK [17:05:50]SAM_PROTO_GetShiftState done [17:05:50]FM_GetShiftState done [17:05:50]opened in 1729902702 [17:05:50]opened+sec_in_day 1729989102 [17:05:50]quantity*price = 0 [17:05:50]sum+1 = 1 [17:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 270 26.10.2024 17:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4381433 ФМ: 0000000000871792 ФД: 156369 ФПД: 22396675667818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170551&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156369&fm=22396675667818&tin=02508201610067®Number=0000000000091693&sum=0 [17:05:51]StoreToDocumentArchive [17:05:51]shift 536 fd 156369 [17:05:51]save to /storage/0536/doc_00156369 [17:05:51]save last doc name /storage/0536/doc_00156369 to /storage/kkm_last_doc_name [17:05:51]save OK [17:05:51]Clear old archive folders... [17:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:05:51]tlvbuf is 0167A3F0 [17:05:51]SAM_PROTO_ClearQueue [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 09 00 00 [17:05:51]Write to MH i2c: E2 08 00 46 19 80 09 00 00 00 00 00 00 D1 [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [17:05:51]RAPDU: 90 00 [17:05:51]wFMCommunicate OK [17:05:51]SAM_PROTO_ClearQueue done [17:05:51]KKMCreateOFDPacket [17:05:51]OFDProtocolAddRootSTLVToBuf [17:05:51]FM_MakeSignedData [17:05:51]FM_MakeSignedData [17:05:51]SAM_PROTO_SignData [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 0D 01 02 [17:05:51]Write to MH i2c: E2 08 00 47 19 80 0D 01 02 00 00 00 00 D9 [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [17:05:51]RAPDU: 90 00 [17:05:51]wFMCommunicate OK [17:05:51]wFMCommunicate request_size=255 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 6F 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 62 02 00 35 04 06 00 14 5E A1 E5 [17:05:51]Write to MH i2c: E2 02 01 48 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 6F 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 62 02 00 35 04 06 00 14 5E A1 E5 00 00 13 [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 48 19 00 90 00 D5 [17:05:52]RAPDU: 90 00 [17:05:52]wFMCommunicate OK [17:05:52]wFMCommunicate request_size=7 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 0D 02 02 02 B7 6A [17:05:52]Write to MH i2c: E2 0A 00 49 19 80 0D 02 02 02 00 B7 6A 00 00 01 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [17:05:52]RAPDU: 90 00 [17:05:52]wFMCommunicate OK [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 0D 03 02 [17:05:52]Write to MH i2c: E2 08 00 4A 19 80 0D 03 02 00 00 00 00 DE [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0B 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0B 00 4A 19 00 58 F5 90 9C 2F 28 34 E0 90 00 C3 [17:05:52]RAPDU: 58 F5 90 9C 2F 28 34 E0 90 00 [17:05:52]wFMCommunicate OK [17:05:52]SAM_PROTO_SignData done [17:05:52]FM_MakeSignedData done [17:05:52]CreateOFDProtocolMessage [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 11 00 00 [17:05:52]Write to MH i2c: E2 08 00 4B 19 80 11 00 00 00 00 00 00 DE [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 4B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [17:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:05:52]wFMCommunicate OK [17:05:52]CreateOFDProtocolMessage done [17:05:52]OFDSenderStorePacket 156369 [17:05:52]StoreOFDPacket docnum=156369 [17:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3F 6E 04 01 B1 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 6F 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 62 02 00 35 04 06 00 14 5E A1 E5 B7 6A 58 F5 90 9C 2F 28 34 E0 [17:05:52]CheckFolder [17:05:52]dirname=/storage/ofd_packets [17:05:52]CheckFolder done [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00156369 [17:05:52]NVStorageSaveData ofd_packets/00156369 [17:05:52]File name is /storage/ofd_packets/00156369 [17:05:52]Write 298 bytes [17:05:52]NVStorageSaveData done [17:05:52]OFDSenderStorePacket done [17:05:52]KKMCreateOFDPacket done [17:05:52]NVStorageSaveData kkm_last_timestamp [17:05:52]File name is /storage/kkm_last_timestamp [17:05:52]Write 4 bytes [17:05:52]NVStorageSaveData done [17:05:52]ExternCall_PrintAddStr [17:05:52]wPrintStart [17:05:52]Write to MH i2c: 01 00 00 4C 19 65 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 4C 19 00 00 00 00 00 FF 0F 7A [17:05:52]RasterBufferAndPrint [17:05:52]line Счет N : (1)99184 [17:05:52]line ИНН: 02508201610067 [17:05:52]line Контрольно-Кассовый Чек [17:05:52]line ПРОДАЖА [17:05:52]line ТРК (МРК, ГНК) : 32 [17:05:52]line Товар: 2710194210 [17:05:52]line ДТ-К-5 [17:05:52]line 20.000 * 0.00 [17:05:52]line = 0.00 [17:05:52]line НДС 12% НСП 1% [17:05:52]line > о реализуемом товаре [17:05:52]line ИТОГО: 0.00 [17:05:52]line НСП 1% : 0.00 [17:05:52]line НДС 12% : 0.00 [17:05:52]line Наличными: 0.00 [17:05:52]line Безнал.: 0.00 [17:05:52]line Место: АЗС № 143 "Партнер Нефть" [17:05:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:05:52]line СНО: Общий режим [17:05:52]line Чек 270 26.10.2024 17:05 [17:05:52]line Смена: 536 ФФД: 1.0 [17:05:52]line ЗНМ: 0300000096 [17:05:52]line РНМ: 0000000000091693 [17:05:52]line Версия ККМ: 001 [17:05:52]line Талоны: Топливные Талоны [17:05:52]line 4381433 [17:05:52]line ФМ: 0000000000871792 [17:05:52]line ФД: 156369 [17:05:52]line ФПД: 22396675667818 [17:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170551&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156369&fm=22396675667818&tin=02508201610067®Number=0000000000091693&sum=0 [17:05:52]OFD Sender: Processing packet 156369 [packets to send 31, broken 30] [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00156369 [17:05:52]OFD Sender: To server: pG, [17:05:52]CommunicateWithHost lk.salyk.kg:30040 [17:05:52]ConnectInit lk.salyk.kg [17:05:52]written 0, free lines is 4095 [17:05:52]Connected sock=9 [17:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3F 6E 04 01 B1 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 6F 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 62 02 00 35 04 06 00 14 5E A1 E5 B7 6A 58 F5 90 9C 2F 28 34 E0 [17:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3F FD 47 00 DE 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 62 02 00 F4 03 04 00 E1 C6 1C 67 B6 04 01 00 00 A4 11 0E D8 44 F2 F2 92 [17:05:52]CommunicateWithHost err = 0 [17:05:52]CheckOFDResponse [17:05:52]1017 (14) - 77093643461234 [17:05:52]1041 (16) - 0000000000871792 [17:05:52]1040 (4) - 156369 [17:05:52]1012 (4) - 26.10.2024 10:39 [17:05:52]1206 (1) - 0 [17:05:52]OFD Sender: Remove packet 156369 [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00156369 [17:05:52]NVStorageDeleteData [17:05:52]Write to MH i2c: 01 00 00 76 19 8F [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 76 19 00 00 00 00 00 02 0D A5 [17:05:52]RasterBufferAndPrint [17:05:52]line [17:05:52]line [17:05:52]line [17:05:52]line [17:05:52]line [17:05:52]written 0, free lines is 3336 [17:05:52]process_action close_receipt done [17:05:52]requested_data is exist [17:05:52]produce_requested_data [17:05:52]requested_item fm.sn is exist - process it [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 11 00 00 [17:05:52]Write to MH i2c: E2 08 00 7D 19 80 11 00 00 00 00 00 00 10 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 7D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [17:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:05:52]wFMCommunicate OK [17:05:52]requested_item fd.num is exist - process it [17:05:52]SAM_PROTO_GetFieldsCounters [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 13 00 00 [17:05:52]Write to MH i2c: E2 08 00 7E 19 80 13 00 00 00 00 00 00 13 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:53]Read from MH i2c: E2 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: E2 62 00 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: E2 62 00 7E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [17:05: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:53]wFMCommunicate OK [17:05:53]SAM_PROTO_GetFieldsCounters done [17:05:53]requested_item shift.num is exist - process it [17:05:53]requested_item shift.opened is exist - process it [17:05:53]req_shift_opened [17:05:53]FM_GetShiftState [17:05:53]SAM_PROTO_GetShiftState [17:05:53]wFMCommunicate request_size=4 [17:05:53]MH_SAM_APDU [17:05:53]CAPDU: 80 13 01 00 [17:05:53]Write to MH i2c: E2 08 00 7F 19 80 13 01 00 00 00 00 00 15 [17:05:53]Write i2c OK [17:05:53]MH_I2C_Read... [17:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:53]Read from MH i2c: E2 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: E2 0E 00 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: E2 0E 00 7F 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4A [17:05:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:05:53]wFMCommunicate OK [17:05:53]SAM_PROTO_GetShiftState done [17:05:53]FM_GetShiftState done [17:05:53]req_shift_opened done [17:05:53]requested_item shift.open_date is exist - process it [17:05:53]req_shift_open_date [17:05:53]req_shift_open_date done [17:05:53]produce_requested_data done [17:05:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156369,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:05:53]process_action_free close_receipt [17:05:53]json_value_free [17:05:53]json_value_free done [17:05:53]process_json_proto returns [17:05:53]Send response to host [17:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156369,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:05:53]free response buf [17:05:53]execute_script done [17:05:53]execute_script returns [17:05:53]free content buf [17:05:53]Sock 8.Close socket [17:05:53]Sock 8.Thread stoped [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:09]accept exits with 10 [17:06:09]New connection [17:06:09]New thread 3066834276 created [17:06:09]Thread 3066977636 joined [17:06:09]Waiting for new connection... [17:06:09] Sock 10.Parse request [17:06:09]Sock 10.Check first char [17:06:09]Sock 10.First char is OK [17:06:09]request: POST /json_proto HTTP/1.0 [17:06:09]Method: POST [17:06:09]URL: /json_proto [17:06:09]Method is POST - this is cgi request [17:06:09]url: /json_proto [17:06:09]query_string will be loaded in cgi processing [17:06:09]execute_cgi json_proto POST (null) [17:06:09]execute_cgi path=json_proto method=POST [17:06:09]POST find Content-Length [17:06:09]Host: 172.17.63.3:8080 [17:06:09]Content-Length: 676 [17:06:09]Content-Type: application/json [17:06:09] [17:06:09]POST finish read [17:06:09]Found Content-Length = 676 [17:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:09]execute_script... [17:06:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:09]POST & json_proto [17:06:09]process_json_proto [17:06:09]json parsed OK: [17:06:09]protocol is kg_v1.0 [17:06:09]action value=close_receipt [17:06:09]process_action close_receipt [17:06:09]cmd_close_receipt [17:06:09]MH_GetDate [17:06:09]Write to MH i2c: F0 00 00 80 19 88 [17:06:09]Write i2c OK [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: F0 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: F0 09 00 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: F0 09 00 80 19 00 82 21 1D 67 50 D1 6C 64 A9 [17:06:09]GetLastDocTimeStamp 1729962351 [17:06:09]current date 1729962370 [17:06:09]FM_GetShiftState [17:06:09]SAM_PROTO_GetShiftState [17:06:09]wFMCommunicate request_size=4 [17:06:09]MH_SAM_APDU [17:06:09]CAPDU: 80 13 01 00 [17:06:09]Write to MH i2c: E2 08 00 81 19 80 13 01 00 00 00 00 00 17 [17:06:09]Write i2c OK [17:06:09]MH_I2C_Read... [17:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:09]Read from MH i2c: E2 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: E2 0E 00 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: E2 0E 00 81 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4C [17:06:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:06:09]wFMCommunicate OK [17:06:09]SAM_PROTO_GetShiftState done [17:06:09]FM_GetShiftState done [17:06:09]opened in 1729902702 [17:06:09]opened+sec_in_day 1729989102 [17:06:09]quantity*price = 30038 [17:06:09]sum+1 = 30039 [17:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 271 26.10.2024 17:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156370 ФПД: 43847884865998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170610&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156370&fm=43847884865998&tin=02508201610067®Number=0000000000091693&sum=30000 [17:06:10]StoreToDocumentArchive [17:06:10]shift 536 fd 156370 [17:06:10]save to /storage/0536/doc_00156370 [17:06:10]save last doc name /storage/0536/doc_00156370 to /storage/kkm_last_doc_name [17:06:10]save OK [17:06:10]Clear old archive folders... [17:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:10]tlvbuf is B6EAE480 [17:06:10]SAM_PROTO_ClearQueue [17:06:10]wFMCommunicate request_size=4 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 09 00 00 [17:06:10]Write to MH i2c: E2 08 00 8E 19 80 09 00 00 00 00 00 00 19 [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 03 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [17:06:10]RAPDU: 90 00 [17:06:10]wFMCommunicate OK [17:06:10]SAM_PROTO_ClearQueue done [17:06:10]KKMCreateOFDPacket [17:06:10]OFDProtocolAddRootSTLVToBuf [17:06:10]FM_MakeSignedData [17:06:10]FM_MakeSignedData [17:06:10]SAM_PROTO_SignData [17:06:10]wFMCommunicate request_size=4 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 0D 01 02 [17:06:10]Write to MH i2c: E2 08 00 8F 19 80 0D 01 02 00 00 00 00 21 [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 03 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 03 00 8F 19 00 90 00 1C [17:06:10]RAPDU: 90 00 [17:06:10]wFMCommunicate OK [17:06:10]wFMCommunicate request_size=255 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 82 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 62 02 00 35 04 06 00 27 [17:06:10]Write to MH i2c: E2 02 01 90 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 82 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 62 02 00 35 04 06 00 27 00 00 57 [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:11]Read from MH i2c: E2 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 03 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 03 00 90 19 00 90 00 1D [17:06:11]RAPDU: 90 00 [17:06:11]wFMCommunicate OK [17:06:11]wFMCommunicate request_size=10 [17:06:11]MH_SAM_APDU [17:06:11]CAPDU: 80 0D 02 02 05 E1 21 9A 01 CE [17:06:11]Write to MH i2c: E2 0D 00 91 19 80 0D 02 02 05 00 E1 21 9A 01 CE 00 00 99 [17:06:11]Write i2c OK [17:06:11]MH_I2C_Read... [17:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:11]Read from MH i2c: E2 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 03 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 03 00 91 19 00 90 00 1E [17:06:11]RAPDU: 90 00 [17:06:11]wFMCommunicate OK [17:06:11]wFMCommunicate request_size=4 [17:06:11]MH_SAM_APDU [17:06:11]CAPDU: 80 0D 03 02 [17:06:11]Write to MH i2c: E2 08 00 92 19 80 0D 03 02 00 00 00 00 26 [17:06:11]Write i2c OK [17:06:11]MH_I2C_Read... [17:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:11]Read from MH i2c: E2 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 0B 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 0B 00 92 19 00 57 3E 92 33 81 83 B5 37 90 00 71 [17:06:11]RAPDU: 57 3E 92 33 81 83 B5 37 90 00 [17:06:11]wFMCommunicate OK [17:06:11]SAM_PROTO_SignData done [17:06:11]FM_MakeSignedData done [17:06:11]CreateOFDProtocolMessage [17:06:11]wFMCommunicate request_size=4 [17:06:11]MH_SAM_APDU [17:06:11]CAPDU: 80 11 00 00 [17:06:11]Write to MH i2c: E2 08 00 93 19 80 11 00 00 00 00 00 00 26 [17:06:11]Write i2c OK [17:06:11]MH_I2C_Read... [17:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:11]Read from MH i2c: E2 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 17 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 17 00 93 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [17:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:06:11]wFMCommunicate OK [17:06:11]CreateOFDProtocolMessage done [17:06:11]OFDSenderStorePacket 156370 [17:06:11]StoreOFDPacket docnum=156370 [17:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 01 00 07 01 6F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 82 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 62 02 00 35 04 06 00 27 E1 21 9A 01 CE 57 3E 92 33 81 83 B5 37 [17:06:11]CheckFolder [17:06:11]dirname=/storage/ofd_packets [17:06:11]CheckFolder done [17:06:11]ProducePacketName [17:06:11]name=ofd_packets/00156370 [17:06:11]NVStorageSaveData ofd_packets/00156370 [17:06:11]File name is /storage/ofd_packets/00156370 [17:06:11]Write 301 bytes [17:06:11]NVStorageSaveData done [17:06:11]OFDSenderStorePacket done [17:06:11]KKMCreateOFDPacket done [17:06:11]NVStorageSaveData kkm_last_timestamp [17:06:11]File name is /storage/kkm_last_timestamp [17:06:11]Write 4 bytes [17:06:11]NVStorageSaveData done [17:06:11]ExternCall_PrintAddStr [17:06:11]wPrintStart [17:06:11]Write to MH i2c: 01 00 00 94 19 AD [17:06:11]Write i2c OK [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: 01 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: 01 07 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 FF 0F C2 [17:06:11]RasterBufferAndPrint [17:06:11]line Счет N : (1)99185 [17:06:11]line ИНН: 02508201610067 [17:06:11]line Контрольно-Кассовый Чек [17:06:11]line ПРОДАЖА [17:06:11]line ТРК (МРК, ГНК) : 11 [17:06:11]line Товар: 2710124130 [17:06:11]line Аи-92-К-5 [17:06:11]line 4.490 * 66.90 [17:06:11]line = 300.38 [17:06:11]line НДС 12% НСП 1% [17:06:11]line > о реализуемом товаре [17:06:11]line ОКРУГЛЕНИЕ: -0.38 [17:06:11]line ИТОГО: 300.00 [17:06:11]line Внесено: 300.00 [17:06:11]line СДАЧА: 0.00 [17:06:11]line НСП 1% : 2.66 [17:06:11]line НДС 12% : 31.90 [17:06:11]line Наличными: 300.00 [17:06:11]line Безнал.: 0.00 [17:06:11]line Место: АЗС № 143 "Партнер Нефть" [17:06:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:06:11]line СНО: Общий режим [17:06:11]line Чек 271 26.10.2024 17:06 [17:06:11]line Смена: 536 ФФД: 1.0 [17:06:11]line ЗНМ: 0300000096 [17:06:11]line РНМ: 0000000000091693 [17:06:11]line Версия ККМ: 001 [17:06:11]line ФМ: 0000000000871792 [17:06:11]line ФД: 156370 [17:06:11]line ФПД: 43847884865998 [17:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170610&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156370&fm=43847884865998&tin=02508201610067®Number=0000000000091693&sum=30000 [17:06:11]OFD Sender: Processing packet 156370 [packets to send 31, broken 30] [17:06:11]ProducePacketName [17:06:11]name=ofd_packets/00156370 [17:06:11]OFD Sender: To server: pG, [17:06:11]CommunicateWithHost lk.salyk.kg:30040 [17:06:11]ConnectInit lk.salyk.kg [17:06:11]written 0, free lines is 4095 [17:06:11]Connected sock=11 [17:06:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 01 00 07 01 6F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 82 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 62 02 00 35 04 06 00 27 E1 21 9A 01 CE 57 3E 92 33 81 83 B5 37 [17:06:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2B C4 47 00 A8 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 62 02 00 F4 03 04 00 F4 C6 1C 67 B6 04 01 00 00 D3 A9 1E 2D 10 56 0E 4C [17:06:11]CommunicateWithHost err = 0 [17:06:11]CheckOFDResponse [17:06:11]1017 (14) - 77093643461234 [17:06:11]1041 (16) - 0000000000871792 [17:06:11]1040 (4) - 156370 [17:06:11]1012 (4) - 26.10.2024 10:39 [17:06:11]1206 (1) - 0 [17:06:11]OFD Sender: Remove packet 156370 [17:06:11]ProducePacketName [17:06:11]name=ofd_packets/00156370 [17:06:11]NVStorageDeleteData [17:06:12]Write to MH i2c: 01 00 00 BF 19 D8 [17:06:12]Write i2c OK [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: 01 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: 01 07 00 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: 01 07 00 BF 19 00 00 00 00 00 E5 0C D0 [17:06:12]RasterBufferAndPrint [17:06:12]line [17:06:12]line [17:06:12]line [17:06:12]line [17:06:12]line [17:06:12]written 0, free lines is 3307 [17:06:12]process_action close_receipt done [17:06:12]requested_data is exist [17:06:12]produce_requested_data [17:06:12]requested_item fm.sn is exist - process it [17:06:12]wFMCommunicate request_size=4 [17:06:12]MH_SAM_APDU [17:06:12]CAPDU: 80 11 00 00 [17:06:12]Write to MH i2c: E2 08 00 C6 19 80 11 00 00 00 00 00 00 59 [17:06:12]Write i2c OK [17:06:12]MH_I2C_Read... [17:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:12]Read from MH i2c: E2 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 17 00 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 17 00 C6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [17:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:06:12]wFMCommunicate OK [17:06:12]requested_item fd.num is exist - process it [17:06:12]SAM_PROTO_GetFieldsCounters [17:06:12]wFMCommunicate request_size=4 [17:06:12]MH_SAM_APDU [17:06:12]CAPDU: 80 13 00 00 [17:06:12]Write to MH i2c: E2 08 00 C7 19 80 13 00 00 00 00 00 00 5C [17:06:12]Write i2c OK [17:06:12]MH_I2C_Read... [17:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:12]Read from MH i2c: E2 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 62 00 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 62 00 C7 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [17:06: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:12]wFMCommunicate OK [17:06:12]SAM_PROTO_GetFieldsCounters done [17:06:12]requested_item shift.num is exist - process it [17:06:12]requested_item shift.opened is exist - process it [17:06:12]req_shift_opened [17:06:12]FM_GetShiftState [17:06:12]SAM_PROTO_GetShiftState [17:06:12]wFMCommunicate request_size=4 [17:06:12]MH_SAM_APDU [17:06:12]CAPDU: 80 13 01 00 [17:06:12]Write to MH i2c: E2 08 00 C8 19 80 13 01 00 00 00 00 00 5E [17:06:12]Write i2c OK [17:06:12]MH_I2C_Read... [17:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:12]Read from MH i2c: E2 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 0E 00 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 0E 00 C8 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 93 [17:06:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:06:12]wFMCommunicate OK [17:06:12]SAM_PROTO_GetShiftState done [17:06:12]FM_GetShiftState done [17:06:12]req_shift_opened done [17:06:12]requested_item shift.open_date is exist - process it [17:06:12]req_shift_open_date [17:06:12]req_shift_open_date done [17:06:12]produce_requested_data done [17:06:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156370,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:06:12]process_action_free close_receipt [17:06:12]json_value_free [17:06:12]json_value_free done [17:06:12]process_json_proto returns [17:06:12]Send response to host [17:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156370,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:06:12]free response buf [17:06:12]execute_script done [17:06:12]execute_script returns [17:06:12]free content buf [17:06:12]Sock 10.Close socket [17:06:12]Sock 10.Thread stoped [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:50]accept exits with 8 [17:06:50]New connection [17:06:50]New thread 3066977636 created [17:06:50]Thread 3066834276 joined [17:06:50]Waiting for new connection... [17:06:50] Sock 8.Parse request [17:06:50]Sock 8.Check first char [17:06:50]Sock 8.First char is OK [17:06:50]request: POST /json_proto HTTP/1.0 [17:06:50]Method: POST [17:06:50]URL: /json_proto [17:06:50]Method is POST - this is cgi request [17:06:50]url: /json_proto [17:06:50]query_string will be loaded in cgi processing [17:06:50]execute_cgi json_proto POST (null) [17:06:50]execute_cgi path=json_proto method=POST [17:06:50]POST find Content-Length [17:06:50]Host: 172.17.63.3:8080 [17:06:50]Content-Length: 796 [17:06:50]Content-Type: application/json [17:06:50] [17:06:50]POST finish read [17:06:50]Found Content-Length = 796 [17:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466760", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:50]execute_script... [17:06:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466760", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:50]POST & json_proto [17:06:50]process_json_proto [17:06:50]json parsed OK: [17:06:50]protocol is kg_v1.0 [17:06:50]action value=close_receipt [17:06:50]process_action close_receipt [17:06:50]cmd_close_receipt [17:06:50]MH_GetDate [17:06:50]Write to MH i2c: F0 00 00 C9 19 D1 [17:06:50]Write i2c OK [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: F0 [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: F0 09 00 [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: F0 09 00 C9 19 00 AB 21 1D 67 50 D1 6C 64 1B [17:06:50]GetLastDocTimeStamp 1729962370 [17:06:50]current date 1729962411 [17:06:50]FM_GetShiftState [17:06:50]SAM_PROTO_GetShiftState [17:06:50]wFMCommunicate request_size=4 [17:06:50]MH_SAM_APDU [17:06:50]CAPDU: 80 13 01 00 [17:06:50]Write to MH i2c: E2 08 00 CA 19 80 13 01 00 00 00 00 00 60 [17:06:50]Write i2c OK [17:06:50]MH_I2C_Read... [17:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:50]Read from MH i2c: E2 [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: E2 0E 00 [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: E2 0E 00 CA 19 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 95 [17:06:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:06:50]wFMCommunicate OK [17:06:50]SAM_PROTO_GetShiftState done [17:06:50]FM_GetShiftState done [17:06:50]opened in 1729902702 [17:06:50]opened+sec_in_day 1729989102 [17:06:50]quantity*price = 0 [17:06:50]sum+1 = 1 [17:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 272 26.10.2024 17:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4466760 ФМ: 0000000000871792 ФД: 156371 ФПД: 83089609033218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170651&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156371&fm=83089609033218&tin=02508201610067®Number=0000000000091693&sum=0 [17:06:51]StoreToDocumentArchive [17:06:51]shift 536 fd 156371 [17:06:51]save to /storage/0536/doc_00156371 [17:06:51]save last doc name /storage/0536/doc_00156371 to /storage/kkm_last_doc_name [17:06:51]save OK [17:06:51]Clear old archive folders... [17:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:06:51]tlvbuf is B6F5EA10 [17:06:51]SAM_PROTO_ClearQueue [17:06:51]wFMCommunicate request_size=4 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 09 00 00 [17:06:51]Write to MH i2c: E2 08 00 D7 19 80 09 00 00 00 00 00 00 62 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 03 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [17:06:51]RAPDU: 90 00 [17:06:51]wFMCommunicate OK [17:06:51]SAM_PROTO_ClearQueue done [17:06:51]KKMCreateOFDPacket [17:06:51]OFDProtocolAddRootSTLVToBuf [17:06:51]FM_MakeSignedData [17:06:51]FM_MakeSignedData [17:06:51]SAM_PROTO_SignData [17:06:51]wFMCommunicate request_size=4 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 0D 01 02 [17:06:51]Write to MH i2c: E2 08 00 D8 19 80 0D 01 02 00 00 00 00 6A [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 03 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [17:06:51]RAPDU: 90 00 [17:06:51]wFMCommunicate OK [17:06:51]wFMCommunicate request_size=255 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 AB 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 62 02 00 35 04 06 00 4B 91 CE A1 [17:06:51]Write to MH i2c: E2 02 01 D9 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 AB 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 62 02 00 35 04 06 00 4B 91 CE A1 00 00 00 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:52]Read from MH i2c: E2 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: E2 03 00 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [17:06:52]RAPDU: 90 00 [17:06:52]wFMCommunicate OK [17:06:52]wFMCommunicate request_size=7 [17:06:52]MH_SAM_APDU [17:06:52]CAPDU: 80 0D 02 02 02 86 02 [17:06:52]Write to MH i2c: E2 0A 00 DA 19 80 0D 02 02 02 00 86 02 00 00 F9 [17:06:52]Write i2c OK [17:06:52]MH_I2C_Read... [17:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:52]Read from MH i2c: E2 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: E2 03 00 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [17:06:52]RAPDU: 90 00 [17:06:52]wFMCommunicate OK [17:06:52]wFMCommunicate request_size=4 [17:06:52]MH_SAM_APDU [17:06:52]CAPDU: 80 0D 03 02 [17:06:52]Write to MH i2c: E2 08 00 DB 19 80 0D 03 02 00 00 00 00 6F [17:06:52]Write i2c OK [17:06:52]MH_I2C_Read... [17:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:52]Read from MH i2c: E2 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: E2 0B 00 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: E2 0B 00 DB 19 00 E0 2F 12 75 C3 A7 69 26 90 00 FF [17:06:52]RAPDU: E0 2F 12 75 C3 A7 69 26 90 00 [17:06:52]wFMCommunicate OK [17:06:52]SAM_PROTO_SignData done [17:06:52]FM_MakeSignedData done [17:06:52]CreateOFDProtocolMessage [17:06:52]wFMCommunicate request_size=4 [17:06:52]MH_SAM_APDU [17:06:52]CAPDU: 80 11 00 00 [17:06:52]Write to MH i2c: E2 08 00 DC 19 80 11 00 00 00 00 00 00 6F [17:06:52]Write i2c OK [17:06:52]MH_I2C_Read... [17:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:52]Read from MH i2c: E2 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: E2 17 00 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: E2 17 00 DC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [17:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:06:52]wFMCommunicate OK [17:06:52]CreateOFDProtocolMessage done [17:06:52]OFDSenderStorePacket 156371 [17:06:52]StoreOFDPacket docnum=156371 [17:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D4 67 04 01 6F AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 AB 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 62 02 00 35 04 06 00 4B 91 CE A1 86 02 E0 2F 12 75 C3 A7 69 26 [17:06:52]CheckFolder [17:06:52]dirname=/storage/ofd_packets [17:06:52]CheckFolder done [17:06:52]ProducePacketName [17:06:52]name=ofd_packets/00156371 [17:06:52]NVStorageSaveData ofd_packets/00156371 [17:06:52]File name is /storage/ofd_packets/00156371 [17:06:52]Write 298 bytes [17:06:52]NVStorageSaveData done [17:06:52]OFDSenderStorePacket done [17:06:52]KKMCreateOFDPacket done [17:06:52]NVStorageSaveData kkm_last_timestamp [17:06:52]File name is /storage/kkm_last_timestamp [17:06:52]Write 4 bytes [17:06:52]NVStorageSaveData done [17:06:52]ExternCall_PrintAddStr [17:06:52]wPrintStart [17:06:52]Write to MH i2c: 01 00 00 DD 19 F6 [17:06:52]Write i2c OK [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 07 00 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 FF 0F 0B [17:06:52]RasterBufferAndPrint [17:06:52]line Счет N : (1)99186 [17:06:52]line ИНН: 02508201610067 [17:06:52]line Контрольно-Кассовый Чек [17:06:52]line ПРОДАЖА [17:06:52]line ТРК (МРК, ГНК) : 32 [17:06:52]line Товар: 2710194210 [17:06:52]line ДТ-К-5 [17:06:52]line 10.000 * 0.00 [17:06:52]line = 0.00 [17:06:52]line НДС 12% НСП 1% [17:06:52]line > о реализуемом товаре [17:06:52]line ИТОГО: 0.00 [17:06:52]line НСП 1% : 0.00 [17:06:52]line НДС 12% : 0.00 [17:06:52]line Наличными: 0.00 [17:06:52]line Безнал.: 0.00 [17:06:52]line Место: АЗС № 143 "Партнер Нефть" [17:06:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:06:52]line СНО: Общий режим [17:06:52]line Чек 272 26.10.2024 17:06 [17:06:52]line Смена: 536 ФФД: 1.0 [17:06:52]line ЗНМ: 0300000096 [17:06:52]line РНМ: 0000000000091693 [17:06:52]line Версия ККМ: 001 [17:06:52]line Талоны: Топливные Талоны [17:06:52]line 4466760 [17:06:52]line ФМ: 0000000000871792 [17:06:52]line ФД: 156371 [17:06:52]line ФПД: 83089609033218 [17:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170651&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156371&fm=83089609033218&tin=02508201610067®Number=0000000000091693&sum=0 [17:06:52]OFD Sender: Processing packet 156371 [packets to send 31, broken 30] [17:06:52]ProducePacketName [17:06:52]name=ofd_packets/00156371 [17:06:52]OFD Sender: To server: pG, [17:06:52]CommunicateWithHost lk.salyk.kg:30040 [17:06:52]ConnectInit lk.salyk.kg [17:06:52]written 0, free lines is 4095 [17:06:52]Connected sock=10 [17:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D4 67 04 01 6F AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 AB 21 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 62 02 00 35 04 06 00 4B 91 CE A1 86 02 E0 2F 12 75 C3 A7 69 26 [17:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 88 10 47 00 57 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 62 02 00 F4 03 04 00 1D C7 1C 67 B6 04 01 00 00 0D 04 2C DE 74 AA 43 A8 [17:06:52]CommunicateWithHost err = 0 [17:06:52]CheckOFDResponse [17:06:52]1017 (14) - 77093643461234 [17:06:52]1041 (16) - 0000000000871792 [17:06:52]1040 (4) - 156371 [17:06:52]1012 (4) - 26.10.2024 10:40 [17:06:52]1206 (1) - 0 [17:06:52]OFD Sender: Remove packet 156371 [17:06:52]ProducePacketName [17:06:52]name=ofd_packets/00156371 [17:06:52]NVStorageDeleteData [17:06:52]Write to MH i2c: 01 00 00 07 1A 21 [17:06:52]Write i2c OK [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 07 00 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 F7 0C 2B [17:06:52]RasterBufferAndPrint [17:06:52]line [17:06:52]line [17:06:52]line [17:06:52]line [17:06:52]line [17:06:52]written 0, free lines is 3326 [17:06:52]process_action close_receipt done [17:06:52]requested_data is exist [17:06:52]produce_requested_data [17:06:52]requested_item fm.sn is exist - process it [17:06:52]wFMCommunicate request_size=4 [17:06:52]MH_SAM_APDU [17:06:52]CAPDU: 80 11 00 00 [17:06:52]Write to MH i2c: E2 08 00 0E 1A 80 11 00 00 00 00 00 00 A2 [17:06:52]Write i2c OK [17:06:52]MH_I2C_Read... [17:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:53]Read from MH i2c: E2 [17:06:53]MH_I2C_Read... [17:06:53]Read from MH i2c: E2 17 00 [17:06:53]MH_I2C_Read... [17:06:53]Read from MH i2c: E2 17 00 0E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [17:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:06:53]wFMCommunicate OK [17:06:53]requested_item fd.num is exist - process it [17:06:53]SAM_PROTO_GetFieldsCounters [17:06:53]wFMCommunicate request_size=4 [17:06:53]MH_SAM_APDU [17:06:53]CAPDU: 80 13 00 00 [17:06:53]Write to MH i2c: E2 08 00 0F 1A 80 13 00 00 00 00 00 00 A5 [17:06:53]Write i2c OK [17:06:53]MH_I2C_Read... [17:06:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:53]Read from MH i2c: E2 [17:06:53]MH_I2C_Read... [17:06:53]Read from MH i2c: E2 62 00 [17:06:53]MH_I2C_Read... [17:06:53]Read from MH i2c: E2 62 00 0F 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [17:06: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:53]wFMCommunicate OK [17:06:53]SAM_PROTO_GetFieldsCounters done [17:06:53]requested_item shift.num is exist - process it [17:06:53]requested_item shift.opened is exist - process it [17:06:53]req_shift_opened [17:06:53]FM_GetShiftState [17:06:53]SAM_PROTO_GetShiftState [17:06:53]wFMCommunicate request_size=4 [17:06:53]MH_SAM_APDU [17:06:53]CAPDU: 80 13 01 00 [17:06:53]Write to MH i2c: E2 08 00 10 1A 80 13 01 00 00 00 00 00 A7 [17:06:53]Write i2c OK [17:06:53]MH_I2C_Read... [17:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:53]Read from MH i2c: E2 [17:06:53]MH_I2C_Read... [17:06:53]Read from MH i2c: E2 0E 00 [17:06:53]MH_I2C_Read... [17:06:53]Read from MH i2c: E2 0E 00 10 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DC [17:06:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:06:53]wFMCommunicate OK [17:06:53]SAM_PROTO_GetShiftState done [17:06:53]FM_GetShiftState done [17:06:53]req_shift_opened done [17:06:53]requested_item shift.open_date is exist - process it [17:06:53]req_shift_open_date [17:06:53]req_shift_open_date done [17:06:53]produce_requested_data done [17:06:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156371,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:06:53]process_action_free close_receipt [17:06:53]json_value_free [17:06:53]json_value_free done [17:06:53]process_json_proto returns [17:06:53]Send response to host [17:06:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156371,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:06:53]free response buf [17:06:53]execute_script done [17:06:53]execute_script returns [17:06:53]free content buf [17:06:53]Sock 8.Close socket [17:06:53]Sock 8.Thread stoped [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:14]int [17:07:14]Write to MH i2c: 01 00 00 11 1A 2B [17:07:14]*** FLAG_PRN_KEY set [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 07 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 07 00 11 1A 00 08 00 00 00 FF 0F 48 [17:07:14]state=0 [17:07:14]Key pressed [17:07:14]Feed [17:07:14]Write to MH i2c: D8 00 00 12 1A 03 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: D8 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: D8 01 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: D8 01 00 12 1A 00 04 [17:07:14]int [17:07:14]Write to MH i2c: 01 00 00 13 1A 2D [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 07 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 07 00 13 1A 00 48 00 00 00 3D 00 B9 [17:07:14]state=2 [17:07:14]Key pressed [17:07:14]int [17:07:14]Write to MH i2c: 01 00 00 14 1A 2E [17:07:14]*** FLAG_PRN_KEY reset [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 07 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 07 00 14 1A 00 00 00 00 00 F7 0F 3B [17:07:14]state=2 [17:07:14]Stop feed [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:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:11]accept exits with 9 [17:16:11]New connection [17:16:11]New thread 3066834276 created [17:16:11]Thread 3066977636 joined [17:16:11]Waiting for new connection... [17:16:11] Sock 9.Parse request [17:16:11]Sock 9.Check first char [17:16:11]Sock 9.First char is OK [17:16:11]request: POST /json_proto HTTP/1.0 [17:16:11]Method: POST [17:16:11]URL: /json_proto [17:16:11]Method is POST - this is cgi request [17:16:11]url: /json_proto [17:16:11]query_string will be loaded in cgi processing [17:16:11]execute_cgi json_proto POST (null) [17:16:11]execute_cgi path=json_proto method=POST [17:16:11]POST find Content-Length [17:16:11]Host: 172.17.63.3:8080 [17:16:11]Content-Length: 676 [17:16:11]Content-Type: application/json [17:16:11] [17:16:11]POST finish read [17:16:11]Found Content-Length = 676 [17:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:11]execute_script... [17:16:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:11]POST & json_proto [17:16:11]process_json_proto [17:16:11]json parsed OK: [17:16:11]protocol is kg_v1.0 [17:16:11]action value=close_receipt [17:16:11]process_action close_receipt [17:16:11]cmd_close_receipt [17:16:11]MH_GetDate [17:16:11]Write to MH i2c: F0 00 00 15 1A 1E [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: F0 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: F0 09 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: F0 09 00 15 1A 00 DD 23 1D 67 50 D1 6C 64 9C [17:16:11]GetLastDocTimeStamp 1729962411 [17:16:11]current date 1729962973 [17:16:11]FM_GetShiftState [17:16:11]SAM_PROTO_GetShiftState [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 13 01 00 [17:16:11]Write to MH i2c: E2 08 00 16 1A 80 13 01 00 00 00 00 00 AD [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 0E 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 0E 00 16 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E2 [17:16:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:16:11]wFMCommunicate OK [17:16:11]SAM_PROTO_GetShiftState done [17:16:11]FM_GetShiftState done [17:16:11]opened in 1729902702 [17:16:11]opened+sec_in_day 1729989102 [17:16:11]quantity*price = 50041 [17:16:11]sum+1 = 50042 [17:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 273 26.10.2024 17:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156372 ФПД: 8201624690459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171613&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156372&fm=8201624690459&tin=02508201610067®Number=0000000000091693&sum=50000 [17:16:12]StoreToDocumentArchive [17:16:12]shift 536 fd 156372 [17:16:12]save to /storage/0536/doc_00156372 [17:16:12]save last doc name /storage/0536/doc_00156372 to /storage/kkm_last_doc_name [17:16:12]save OK [17:16:12]Clear old archive folders... [17:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:12]tlvbuf is B6EAE380 [17:16:12]SAM_PROTO_ClearQueue [17:16:12]wFMCommunicate request_size=4 [17:16:12]MH_SAM_APDU [17:16:12]CAPDU: 80 09 00 00 [17:16:12]Write to MH i2c: E2 08 00 23 1A 80 09 00 00 00 00 00 00 AF [17:16:12]Write i2c OK [17:16:12]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 03 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [17:16:13]RAPDU: 90 00 [17:16:13]wFMCommunicate OK [17:16:13]SAM_PROTO_ClearQueue done [17:16:13]KKMCreateOFDPacket [17:16:13]OFDProtocolAddRootSTLVToBuf [17:16:13]FM_MakeSignedData [17:16:13]FM_MakeSignedData [17:16:13]SAM_PROTO_SignData [17:16:13]wFMCommunicate request_size=4 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 0D 01 02 [17:16:13]Write to MH i2c: E2 08 00 24 1A 80 0D 01 02 00 00 00 00 B7 [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 03 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 03 00 24 1A 00 90 00 B2 [17:16:13]RAPDU: 90 00 [17:16:13]wFMCommunicate OK [17:16:13]wFMCommunicate request_size=255 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 DD 23 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 62 02 00 35 04 06 00 07 [17:16:13]Write to MH i2c: E2 02 01 25 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 DD 23 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 62 02 00 35 04 06 00 07 00 00 3A [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 03 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 03 00 25 1A 00 90 00 B3 [17:16:13]RAPDU: 90 00 [17:16:13]wFMCommunicate OK [17:16:13]wFMCommunicate request_size=10 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 0D 02 02 05 75 96 ED 1F 1B [17:16:13]Write to MH i2c: E2 0D 00 26 1A 80 0D 02 02 05 00 75 96 ED 1F 1B 00 00 F6 [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 03 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 03 00 26 1A 00 90 00 B4 [17:16:13]RAPDU: 90 00 [17:16:13]wFMCommunicate OK [17:16:13]wFMCommunicate request_size=4 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 0D 03 02 [17:16:13]Write to MH i2c: E2 08 00 27 1A 80 0D 03 02 00 00 00 00 BC [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 0B 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 0B 00 27 1A 00 B6 55 91 91 AC D2 D1 31 90 00 6A [17:16:13]RAPDU: B6 55 91 91 AC D2 D1 31 90 00 [17:16:13]wFMCommunicate OK [17:16:13]SAM_PROTO_SignData done [17:16:13]FM_MakeSignedData done [17:16:13]CreateOFDProtocolMessage [17:16:13]wFMCommunicate request_size=4 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 11 00 00 [17:16:13]Write to MH i2c: E2 08 00 28 1A 80 11 00 00 00 00 00 00 BC [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 17 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 17 00 28 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 11 [17:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:16:13]wFMCommunicate OK [17:16:13]CreateOFDProtocolMessage done [17:16:13]OFDSenderStorePacket 156372 [17:16:13]StoreOFDPacket docnum=156372 [17:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E2 AE 07 01 82 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 DD 23 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 62 02 00 35 04 06 00 07 75 96 ED 1F 1B B6 55 91 91 AC D2 D1 31 [17:16:13]CheckFolder [17:16:13]dirname=/storage/ofd_packets [17:16:13]CheckFolder done [17:16:13]ProducePacketName [17:16:13]name=ofd_packets/00156372 [17:16:13]NVStorageSaveData ofd_packets/00156372 [17:16:13]File name is /storage/ofd_packets/00156372 [17:16:13]Write 301 bytes [17:16:13]NVStorageSaveData done [17:16:13]OFDSenderStorePacket done [17:16:13]KKMCreateOFDPacket done [17:16:13]NVStorageSaveData kkm_last_timestamp [17:16:13]File name is /storage/kkm_last_timestamp [17:16:13]Write 4 bytes [17:16:13]NVStorageSaveData done [17:16:13]ExternCall_PrintAddStr [17:16:13]wPrintStart [17:16:13]Write to MH i2c: 01 00 00 29 1A 43 [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: 01 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: 01 07 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: 01 07 00 29 1A 00 00 00 00 00 FF 0F 58 [17:16:13]RasterBufferAndPrint [17:16:13]line Счет N : (1)99187 [17:16:13]line ИНН: 02508201610067 [17:16:13]line Контрольно-Кассовый Чек [17:16:13]line ПРОДАЖА [17:16:13]line ТРК (МРК, ГНК) : 11 [17:16:13]line Товар: 2710124130 [17:16:13]line Аи-92-К-5 [17:16:13]line 7.480 * 66.90 [17:16:13]line = 500.41 [17:16:13]line НДС 12% НСП 1% [17:16:13]line > о реализуемом товаре [17:16:13]line ОКРУГЛЕНИЕ: -0.41 [17:16:13]line ИТОГО: 500.00 [17:16:13]line Внесено: 500.00 [17:16:13]line СДАЧА: 0.00 [17:16:13]line НСП 1% : 4.43 [17:16:13]line НДС 12% : 53.14 [17:16:13]line Наличными: 500.00 [17:16:13]line Безнал.: 0.00 [17:16:13]line Место: АЗС № 143 "Партнер Нефть" [17:16:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:16:13]line СНО: Общий режим [17:16:13]line Чек 273 26.10.2024 17:16 [17:16:13]line Смена: 536 ФФД: 1.0 [17:16:13]line ЗНМ: 0300000096 [17:16:13]line РНМ: 0000000000091693 [17:16:13]line Версия ККМ: 001 [17:16:13]line ФМ: 0000000000871792 [17:16:13]line ФД: 156372 [17:16:13]line ФПД: 8201624690459 [17:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171613&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156372&fm=8201624690459&tin=02508201610067®Number=0000000000091693&sum=50000 [17:16:13]OFD Sender: Processing packet 156372 [packets to send 31, broken 30] [17:16:13]ProducePacketName [17:16:13]name=ofd_packets/00156372 [17:16:13]OFD Sender: To server: pG, [17:16:13]CommunicateWithHost lk.salyk.kg:30040 [17:16:13]ConnectInit lk.salyk.kg [17:16:13]written 0, free lines is 4095 [17:16:13]Connected sock=10 [17:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E2 AE 07 01 82 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 DD 23 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 62 02 00 35 04 06 00 07 75 96 ED 1F 1B B6 55 91 91 AC D2 D1 31 [17:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 38 82 47 00 A0 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 62 02 00 F4 03 04 00 4F C9 1C 67 B6 04 01 00 00 41 23 01 2B 7E 8D 55 77 [17:16:14]CommunicateWithHost err = 0 [17:16:14]CheckOFDResponse [17:16:14]1017 (14) - 77093643461234 [17:16:14]1041 (16) - 0000000000871792 [17:16:14]1040 (4) - 156372 [17:16:14]1012 (4) - 26.10.2024 10:49 [17:16:14]1206 (1) - 0 [17:16:14]OFD Sender: Remove packet 156372 [17:16:14]ProducePacketName [17:16:14]name=ofd_packets/00156372 [17:16:14]NVStorageDeleteData [17:16:14]Write to MH i2c: 01 00 00 54 1A 6E [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: 01 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: 01 07 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: 01 07 00 54 1A 00 00 00 00 00 E6 0C 67 [17:16:14]RasterBufferAndPrint [17:16:14]line [17:16:14]line [17:16:14]line [17:16:14]line [17:16:14]line [17:16:14]written 0, free lines is 3308 [17:16:14]process_action close_receipt done [17:16:14]requested_data is exist [17:16:14]produce_requested_data [17:16:14]requested_item fm.sn is exist - process it [17:16:14]wFMCommunicate request_size=4 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 11 00 00 [17:16:14]Write to MH i2c: E2 08 00 5B 1A 80 11 00 00 00 00 00 00 EF [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:14]Read from MH i2c: E2 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 17 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 17 00 5B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [17:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:16:14]wFMCommunicate OK [17:16:14]requested_item fd.num is exist - process it [17:16:14]SAM_PROTO_GetFieldsCounters [17:16:14]wFMCommunicate request_size=4 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 13 00 00 [17:16:14]Write to MH i2c: E2 08 00 5C 1A 80 13 00 00 00 00 00 00 F2 [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:14]Read from MH i2c: E2 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 62 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 62 00 5C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [17:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:14]wFMCommunicate OK [17:16:14]SAM_PROTO_GetFieldsCounters done [17:16:14]requested_item shift.num is exist - process it [17:16:14]requested_item shift.opened is exist - process it [17:16:14]req_shift_opened [17:16:14]FM_GetShiftState [17:16:14]SAM_PROTO_GetShiftState [17:16:14]wFMCommunicate request_size=4 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 13 01 00 [17:16:14]Write to MH i2c: E2 08 00 5D 1A 80 13 01 00 00 00 00 00 F4 [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 [17:16:14]MH_I2C_Read... [17:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:14]Read from MH i2c: E2 0E 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 0E 00 5D 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 29 [17:16:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:16:14]wFMCommunicate OK [17:16:14]SAM_PROTO_GetShiftState done [17:16:14]FM_GetShiftState done [17:16:14]req_shift_opened done [17:16:14]requested_item shift.open_date is exist - process it [17:16:14]req_shift_open_date [17:16:14]req_shift_open_date done [17:16:14]produce_requested_data done [17:16:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156372,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:16:14]process_action_free close_receipt [17:16:14]json_value_free [17:16:14]json_value_free done [17:16:14]process_json_proto returns [17:16:14]Send response to host [17:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156372,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:16:14]free response buf [17:16:14]execute_script done [17:16:14]execute_script returns [17:16:14]free content buf [17:16:14]Sock 9.Close socket [17:16:14]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:46]accept exits with 8 [17:16:46]New connection [17:16:46]New thread 3066977636 created [17:16:46]Thread 3066834276 joined [17:16:46]Waiting for new connection... [17:16:46] Sock 8.Parse request [17:16:46]Sock 8.Check first char [17:16:46]Sock 8.First char is OK [17:16:46]request: POST /json_proto HTTP/1.0 [17:16:46]Method: POST [17:16:46]URL: /json_proto [17:16:46]Method is POST - this is cgi request [17:16:46]url: /json_proto [17:16:46]query_string will be loaded in cgi processing [17:16:46]execute_cgi json_proto POST (null) [17:16:46]execute_cgi path=json_proto method=POST [17:16:46]POST find Content-Length [17:16:46]Host: 172.17.63.3:8080 [17:16:46]Content-Length: 676 [17:16:46]Content-Type: application/json [17:16:46] [17:16:46]POST finish read [17:16:46]Found Content-Length = 676 [17:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:46]execute_script... [17:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:46]POST & json_proto [17:16:46]process_json_proto [17:16:46]json parsed OK: [17:16:46]protocol is kg_v1.0 [17:16:46]action value=close_receipt [17:16:46]process_action close_receipt [17:16:46]cmd_close_receipt [17:16:46]MH_GetDate [17:16:46]Write to MH i2c: F0 00 00 5E 1A 67 [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: F0 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: F0 09 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: F0 09 00 5E 1A 00 FF 23 1D 67 50 D1 6C 64 07 [17:16:46]GetLastDocTimeStamp 1729962973 [17:16:46]current date 1729963007 [17:16:46]FM_GetShiftState [17:16:46]SAM_PROTO_GetShiftState [17:16:46]wFMCommunicate request_size=4 [17:16:46]MH_SAM_APDU [17:16:46]CAPDU: 80 13 01 00 [17:16:46]Write to MH i2c: E2 08 00 5F 1A 80 13 01 00 00 00 00 00 F6 [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:46]Read from MH i2c: E2 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: E2 0E 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: E2 0E 00 5F 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2B [17:16:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:16:46]wFMCommunicate OK [17:16:46]SAM_PROTO_GetShiftState done [17:16:46]FM_GetShiftState done [17:16:46]opened in 1729902702 [17:16:46]opened+sec_in_day 1729989102 [17:16:46]quantity*price = 60009 [17:16:46]sum+1 = 60010 [17:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 274 26.10.2024 17:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156373 ФПД: 199942037260361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171647&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156373&fm=199942037260361&tin=02508201610067®Number=0000000000091693&sum=60000 [17:16:47]StoreToDocumentArchive [17:16:47]shift 536 fd 156373 [17:16:47]save to /storage/0536/doc_00156373 [17:16:47]save last doc name /storage/0536/doc_00156373 to /storage/kkm_last_doc_name [17:16:47]save OK [17:16:47]Clear old archive folders... [17:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:47]tlvbuf is 0167AA00 [17:16:47]SAM_PROTO_ClearQueue [17:16:47]wFMCommunicate request_size=4 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 09 00 00 [17:16:47]Write to MH i2c: E2 08 00 6C 1A 80 09 00 00 00 00 00 00 F8 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 03 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 03 00 6C 1A 00 90 00 FA [17:16:47]RAPDU: 90 00 [17:16:47]wFMCommunicate OK [17:16:47]SAM_PROTO_ClearQueue done [17:16:47]KKMCreateOFDPacket [17:16:47]OFDProtocolAddRootSTLVToBuf [17:16:47]FM_MakeSignedData [17:16:47]FM_MakeSignedData [17:16:47]SAM_PROTO_SignData [17:16:47]wFMCommunicate request_size=4 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 0D 01 02 [17:16:47]Write to MH i2c: E2 08 00 6D 1A 80 0D 01 02 00 00 00 00 00 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 03 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [17:16:47]RAPDU: 90 00 [17:16:47]wFMCommunicate OK [17:16:47]wFMCommunicate request_size=255 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FF 23 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 62 02 00 35 04 06 00 B5 [17:16:47]Write to MH i2c: E2 02 01 6E 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FF 23 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 62 02 00 35 04 06 00 B5 00 00 32 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 03 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [17:16:47]RAPDU: 90 00 [17:16:47]wFMCommunicate OK [17:16:47]wFMCommunicate request_size=10 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 0D 02 02 05 D8 A2 1B 48 49 [17:16:47]Write to MH i2c: E2 0D 00 6F 1A 80 0D 02 02 05 00 D8 A2 1B 48 49 00 00 33 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 03 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 03 00 6F 1A 00 90 00 FD [17:16:47]RAPDU: 90 00 [17:16:47]wFMCommunicate OK [17:16:47]wFMCommunicate request_size=4 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 0D 03 02 [17:16:47]Write to MH i2c: E2 08 00 70 1A 80 0D 03 02 00 00 00 00 05 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 0B 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 0B 00 70 1A 00 F2 9D 70 90 C8 62 C7 F0 90 00 76 [17:16:47]RAPDU: F2 9D 70 90 C8 62 C7 F0 90 00 [17:16:47]wFMCommunicate OK [17:16:47]SAM_PROTO_SignData done [17:16:47]FM_MakeSignedData done [17:16:47]CreateOFDProtocolMessage [17:16:47]wFMCommunicate request_size=4 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 11 00 00 [17:16:47]Write to MH i2c: E2 08 00 71 1A 80 11 00 00 00 00 00 00 05 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 17 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 17 00 71 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [17:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:16:47]wFMCommunicate OK [17:16:47]CreateOFDProtocolMessage done [17:16:47]OFDSenderStorePacket 156373 [17:16:47]StoreOFDPacket docnum=156373 [17:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9D 7B 07 01 52 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FF 23 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 62 02 00 35 04 06 00 B5 D8 A2 1B 48 49 F2 9D 70 90 C8 62 C7 F0 [17:16:47]CheckFolder [17:16:47]dirname=/storage/ofd_packets [17:16:47]CheckFolder done [17:16:47]ProducePacketName [17:16:47]name=ofd_packets/00156373 [17:16:47]NVStorageSaveData ofd_packets/00156373 [17:16:47]File name is /storage/ofd_packets/00156373 [17:16:47]Write 301 bytes [17:16:47]NVStorageSaveData done [17:16:47]OFDSenderStorePacket done [17:16:47]KKMCreateOFDPacket done [17:16:47]NVStorageSaveData kkm_last_timestamp [17:16:47]File name is /storage/kkm_last_timestamp [17:16:47]Write 4 bytes [17:16:47]NVStorageSaveData done [17:16:47]ExternCall_PrintAddStr [17:16:47]wPrintStart [17:16:47]Write to MH i2c: 01 00 00 72 1A 8C [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: 01 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: 01 07 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: 01 07 00 72 1A 00 00 00 00 00 FF 0F A1 [17:16:47]RasterBufferAndPrint [17:16:47]line Счет N : (1)99188 [17:16:47]line ИНН: 02508201610067 [17:16:47]line Контрольно-Кассовый Чек [17:16:47]line ПРОДАЖА [17:16:47]line ТРК (МРК, ГНК) : 21 [17:16:47]line Товар: 2710124130 [17:16:47]line Аи-92-К-5 [17:16:47]line 8.970 * 66.90 [17:16:47]line = 600.09 [17:16:47]line НДС 12% НСП 1% [17:16:47]line > о реализуемом товаре [17:16:47]line ОКРУГЛЕНИЕ: -0.09 [17:16:47]line ИТОГО: 600.00 [17:16:47]line Внесено: 600.00 [17:16:47]line СДАЧА: 0.00 [17:16:47]line НСП 1% : 5.31 [17:16:47]line НДС 12% : 63.73 [17:16:47]line Наличными: 600.00 [17:16:47]line Безнал.: 0.00 [17:16:47]line Место: АЗС № 143 "Партнер Нефть" [17:16:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:16:47]line СНО: Общий режим [17:16:47]line Чек 274 26.10.2024 17:16 [17:16:47]line Смена: 536 ФФД: 1.0 [17:16:47]line ЗНМ: 0300000096 [17:16:47]line РНМ: 0000000000091693 [17:16:47]line Версия ККМ: 001 [17:16:47]line ФМ: 0000000000871792 [17:16:47]line ФД: 156373 [17:16:47]line ФПД: 199942037260361 [17:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171647&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156373&fm=199942037260361&tin=02508201610067®Number=0000000000091693&sum=60000 [17:16:47]written 0, free lines is 4095 [17:16:47]OFD Sender: Processing packet 156373 [packets to send 31, broken 30] [17:16:47]ProducePacketName [17:16:47]name=ofd_packets/00156373 [17:16:47]OFD Sender: To server: pG, [17:16:47]CommunicateWithHost lk.salyk.kg:30040 [17:16:47]ConnectInit lk.salyk.kg [17:16:47]Connected sock=10 [17:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9D 7B 07 01 52 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FF 23 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 62 02 00 35 04 06 00 B5 D8 A2 1B 48 49 F2 9D 70 90 C8 62 C7 F0 [17:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 54 03 47 00 B9 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 62 02 00 F4 03 04 00 71 C9 1C 67 B6 04 01 00 00 88 55 4C E2 2E C4 3C 3F [17:16:48]CommunicateWithHost err = 0 [17:16:48]CheckOFDResponse [17:16:48]1017 (14) - 77093643461234 [17:16:48]1041 (16) - 0000000000871792 [17:16:48]1040 (4) - 156373 [17:16:48]1012 (4) - 26.10.2024 10:50 [17:16:48]1206 (1) - 0 [17:16:48]OFD Sender: Remove packet 156373 [17:16:48]ProducePacketName [17:16:48]name=ofd_packets/00156373 [17:16:48]NVStorageDeleteData [17:16:48]Write to MH i2c: 01 00 00 9D 1A B7 [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: 01 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: 01 07 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 EF 0C B9 [17:16:48]RasterBufferAndPrint [17:16:48]line [17:16:48]line [17:16:48]line [17:16:48]line [17:16:48]line [17:16:48]written 0, free lines is 3317 [17:16:48]process_action close_receipt done [17:16:48]requested_data is exist [17:16:48]produce_requested_data [17:16:48]requested_item fm.sn is exist - process it [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 11 00 00 [17:16:48]Write to MH i2c: E2 08 00 A4 1A 80 11 00 00 00 00 00 00 38 [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 17 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 17 00 A4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [17:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:16:48]wFMCommunicate OK [17:16:48]requested_item fd.num is exist - process it [17:16:48]SAM_PROTO_GetFieldsCounters [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 13 00 00 [17:16:48]Write to MH i2c: E2 08 00 A5 1A 80 13 00 00 00 00 00 00 3B [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 62 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 62 00 A5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:16: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:48]wFMCommunicate OK [17:16:48]SAM_PROTO_GetFieldsCounters done [17:16:48]requested_item shift.num is exist - process it [17:16:48]requested_item shift.opened is exist - process it [17:16:48]req_shift_opened [17:16:48]FM_GetShiftState [17:16:48]SAM_PROTO_GetShiftState [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 13 01 00 [17:16:48]Write to MH i2c: E2 08 00 A6 1A 80 13 01 00 00 00 00 00 3D [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0E 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0E 00 A6 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 72 [17:16:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:16:48]wFMCommunicate OK [17:16:48]SAM_PROTO_GetShiftState done [17:16:48]FM_GetShiftState done [17:16:48]req_shift_opened done [17:16:48]requested_item shift.open_date is exist - process it [17:16:48]req_shift_open_date [17:16:48]req_shift_open_date done [17:16:48]produce_requested_data done [17:16:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156373,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:16:48]process_action_free close_receipt [17:16:48]json_value_free [17:16:48]json_value_free done [17:16:48]process_json_proto returns [17:16:48]Send response to host [17:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156373,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:16:48]free response buf [17:16:48]execute_script done [17:16:48]execute_script returns [17:16:48]free content buf [17:16:48]Sock 8.Close socket [17:16:48]Sock 8.Thread stoped [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:39]accept exits with 9 [17:19:39]New connection [17:19:39]New thread 3066834276 created [17:19:39]Thread 3066977636 joined [17:19:39]Waiting for new connection... [17:19:39] Sock 9.Parse request [17:19:39]Sock 9.Check first char [17:19:39]Sock 9.First char is OK [17:19:39]request: POST /json_proto HTTP/1.0 [17:19:39]Method: POST [17:19:39]URL: /json_proto [17:19:39]Method is POST - this is cgi request [17:19:39]url: /json_proto [17:19:39]query_string will be loaded in cgi processing [17:19:39]execute_cgi json_proto POST (null) [17:19:39]execute_cgi path=json_proto method=POST [17:19:39]POST find Content-Length [17:19:39]Host: 172.17.63.3:8080 [17:19:39]Content-Length: 676 [17:19:39]Content-Type: application/json [17:19:39] [17:19:39]POST finish read [17:19:39]Found Content-Length = 676 [17:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:39]execute_script... [17: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 : (1)99189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:39]POST & json_proto [17:19:39]process_json_proto [17:19:39]json parsed OK: [17:19:39]protocol is kg_v1.0 [17:19:39]action value=close_receipt [17:19:39]process_action close_receipt [17:19:39]cmd_close_receipt [17:19:39]MH_GetDate [17:19:39]Write to MH i2c: F0 00 00 A7 1A B0 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 09 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 09 00 A7 1A 00 AD 24 1D 67 50 D1 6C 64 FF [17:19:39]GetLastDocTimeStamp 1729963007 [17:19:39]current date 1729963181 [17:19:39]FM_GetShiftState [17:19:39]SAM_PROTO_GetShiftState [17:19:39]wFMCommunicate request_size=4 [17:19:39]MH_SAM_APDU [17:19:39]CAPDU: 80 13 01 00 [17:19:39]Write to MH i2c: E2 08 00 A8 1A 80 13 01 00 00 00 00 00 3F [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:39]Read from MH i2c: E2 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 A8 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 74 [17:19:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:19:39]wFMCommunicate OK [17:19:39]SAM_PROTO_GetShiftState done [17:19:39]FM_GetShiftState done [17:19:39]opened in 1729902702 [17:19:39]opened+sec_in_day 1729989102 [17:19:39]quantity*price = 50041 [17:19:39]sum+1 = 50042 [17:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 275 26.10.2024 17:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156374 ФПД: 60972030233071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171941&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156374&fm=60972030233071&tin=02508201610067®Number=0000000000091693&sum=50000 [17:19:41]StoreToDocumentArchive [17:19:41]shift 536 fd 156374 [17:19:41]save to /storage/0536/doc_00156374 [17:19:41]save last doc name /storage/0536/doc_00156374 to /storage/kkm_last_doc_name [17:19:41]save OK [17:19:41]Clear old archive folders... [17:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:41]tlvbuf is 016729C0 [17:19:41]SAM_PROTO_ClearQueue [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 09 00 00 [17:19:41]Write to MH i2c: E2 08 00 B5 1A 80 09 00 00 00 00 00 00 41 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 B5 1A 00 90 00 43 [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]SAM_PROTO_ClearQueue done [17:19:41]KKMCreateOFDPacket [17:19:41]OFDProtocolAddRootSTLVToBuf [17:19:41]FM_MakeSignedData [17:19:41]FM_MakeSignedData [17:19:41]SAM_PROTO_SignData [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 01 02 [17:19:41]Write to MH i2c: E2 08 00 B6 1A 80 0D 01 02 00 00 00 00 49 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 B6 1A 00 90 00 44 [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]wFMCommunicate request_size=255 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 AD 24 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 62 02 00 35 04 06 00 37 [17:19:41]Write to MH i2c: E2 02 01 B7 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 AD 24 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 62 02 00 35 04 06 00 37 00 00 D1 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]wFMCommunicate request_size=10 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 02 02 05 74 28 34 09 EF [17:19:41]Write to MH i2c: E2 0D 00 B8 1A 80 0D 02 02 05 00 74 28 34 09 EF 00 00 1E [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 03 02 [17:19:41]Write to MH i2c: E2 08 00 B9 1A 80 0D 03 02 00 00 00 00 4E [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 0B 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 0B 00 B9 1A 00 A6 D7 2B 0A 2A 22 D0 F5 90 00 12 [17:19:41]RAPDU: A6 D7 2B 0A 2A 22 D0 F5 90 00 [17:19:41]wFMCommunicate OK [17:19:41]SAM_PROTO_SignData done [17:19:41]FM_MakeSignedData done [17:19:41]CreateOFDProtocolMessage [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 11 00 00 [17:19:41]Write to MH i2c: E2 08 00 BA 1A 80 11 00 00 00 00 00 00 4E [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 17 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 17 00 BA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [17:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:19:41]wFMCommunicate OK [17:19:41]CreateOFDProtocolMessage done [17:19:41]OFDSenderStorePacket 156374 [17:19:41]StoreOFDPacket docnum=156374 [17:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 15 07 01 7F 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 AD 24 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 62 02 00 35 04 06 00 37 74 28 34 09 EF A6 D7 2B 0A 2A 22 D0 F5 [17:19:41]CheckFolder [17:19:41]dirname=/storage/ofd_packets [17:19:41]CheckFolder done [17:19:41]ProducePacketName [17:19:41]name=ofd_packets/00156374 [17:19:41]NVStorageSaveData ofd_packets/00156374 [17:19:41]File name is /storage/ofd_packets/00156374 [17:19:41]Write 301 bytes [17:19:41]NVStorageSaveData done [17:19:41]OFDSenderStorePacket done [17:19:41]KKMCreateOFDPacket done [17:19:41]NVStorageSaveData kkm_last_timestamp [17:19:41]File name is /storage/kkm_last_timestamp [17:19:41]Write 4 bytes [17:19:41]NVStorageSaveData done [17:19:41]ExternCall_PrintAddStr [17:19:41]wPrintStart [17:19:41]Write to MH i2c: 01 00 00 BB 1A D5 [17:19:41]OFD Sender: Processing packet 156374 [packets to send 31, broken 30] [17:19:41]ProducePacketName [17:19:41]name=ofd_packets/00156374 [17:19:41]OFD Sender: To server: pG, [17:19:41]CommunicateWithHost lk.salyk.kg:30040 [17:19:41]ConnectInit lk.salyk.kg [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 07 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 07 00 BB 1A 00 00 00 00 00 FF 0F EA [17:19:41]RasterBufferAndPrint [17:19:41]line Счет N : (1)99189 [17:19:41]line ИНН: 02508201610067 [17:19:41]line Контрольно-Кассовый Чек [17:19:41]line ПРОДАЖА [17:19:41]line ТРК (МРК, ГНК) : 11 [17:19:41]line Товар: 2710124130 [17:19:41]line Аи-92-К-5 [17:19:41]line 7.480 * 66.90 [17:19:41]line = 500.41 [17:19:41]line НДС 12% НСП 1% [17:19:41]line > о реализуемом товаре [17:19:41]line ОКРУГЛЕНИЕ: -0.41 [17:19:41]line ИТОГО: 500.00 [17:19:41]line Внесено: 500.00 [17:19:41]line СДАЧА: 0.00 [17:19:41]line НСП 1% : 4.43 [17:19:41]line НДС 12% : 53.14 [17:19:41]line Наличными: 500.00 [17:19:41]line Безнал.: 0.00 [17:19:41]line Место: АЗС № 143 "Партнер Нефть" [17:19:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:19:41]line СНО: Общий режим [17:19:41]line Чек 275 26.10.2024 17:19 [17:19:41]line Смена: 536 ФФД: 1.0 [17:19:41]line ЗНМ: 0300000096 [17:19:41]line РНМ: 0000000000091693 [17:19:41]line Версия ККМ: 001 [17:19:41]line ФМ: 0000000000871792 [17:19:41]line ФД: 156374 [17:19:41]line ФПД: 60972030233071 [17:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171941&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156374&fm=60972030233071&tin=02508201610067®Number=0000000000091693&sum=50000 [17:19:41]Connected sock=10 [17: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 31 37 39 32 0F 01 00 00 C5 15 07 01 7F 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 AD 24 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 62 02 00 35 04 06 00 37 74 28 34 09 EF A6 D7 2B 0A 2A 22 D0 F5 [17:19:41]written 0, free lines is 4095 [17:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 80 1D 47 00 64 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 62 02 00 F4 03 04 00 1F CA 1C 67 B6 04 01 00 00 A3 83 9B 22 BB 07 8E 5C [17:19:42]CommunicateWithHost err = 0 [17:19:42]CheckOFDResponse [17:19:42]1017 (14) - 77093643461234 [17:19:42]1041 (16) - 0000000000871792 [17:19:42]1040 (4) - 156374 [17:19:42]1012 (4) - 26.10.2024 10:53 [17:19:42]1206 (1) - 0 [17:19:42]OFD Sender: Remove packet 156374 [17:19:42]ProducePacketName [17:19:42]name=ofd_packets/00156374 [17:19:42]NVStorageDeleteData [17:19:42]Write to MH i2c: 01 00 00 E6 1A 00 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 07 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 07 00 E6 1A 00 00 00 00 00 E4 0C F7 [17:19:42]RasterBufferAndPrint [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]written 0, free lines is 3306 [17:19:42]process_action close_receipt done [17:19:42]requested_data is exist [17:19:42]produce_requested_data [17:19:42]requested_item fm.sn is exist - process it [17:19:42]wFMCommunicate request_size=4 [17:19:42]MH_SAM_APDU [17:19:42]CAPDU: 80 11 00 00 [17:19:42]Write to MH i2c: E2 08 00 ED 1A 80 11 00 00 00 00 00 00 81 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:42]Read from MH i2c: E2 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: E2 17 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: E2 17 00 ED 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [17:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:19:42]wFMCommunicate OK [17:19:42]requested_item fd.num is exist - process it [17:19:42]SAM_PROTO_GetFieldsCounters [17:19:42]wFMCommunicate request_size=4 [17:19:42]MH_SAM_APDU [17:19:42]CAPDU: 80 13 00 00 [17:19:42]Write to MH i2c: E2 08 00 EE 1A 80 13 00 00 00 00 00 00 84 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:42]Read from MH i2c: E2 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: E2 62 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: E2 62 00 EE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [17:19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:42]wFMCommunicate OK [17:19:42]SAM_PROTO_GetFieldsCounters done [17:19:42]requested_item shift.num is exist - process it [17:19:42]requested_item shift.opened is exist - process it [17:19:42]req_shift_opened [17:19:42]FM_GetShiftState [17:19:42]SAM_PROTO_GetShiftState [17:19:42]wFMCommunicate request_size=4 [17:19:42]MH_SAM_APDU [17:19:42]CAPDU: 80 13 01 00 [17:19:42]Write to MH i2c: E2 08 00 EF 1A 80 13 01 00 00 00 00 00 86 [17:19:42]OFD Sender: No OFD packet to send [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:42]Read from MH i2c: E2 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: E2 0E 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: E2 0E 00 EF 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [17:19:42]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:19:42]wFMCommunicate OK [17:19:42]SAM_PROTO_GetShiftState done [17:19:42]FM_GetShiftState done [17:19:42]req_shift_opened done [17:19:42]requested_item shift.open_date is exist - process it [17:19:42]req_shift_open_date [17:19:42]req_shift_open_date done [17:19:42]produce_requested_data done [17:19:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156374,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:19:42]process_action_free close_receipt [17:19:42]json_value_free [17:19:42]json_value_free done [17:19:42]process_json_proto returns [17:19:42]Send response to host [17:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156374,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:19:42]free response buf [17:19:42]execute_script done [17:19:42]execute_script returns [17:19:42]free content buf [17:19:42]Sock 9.Close socket [17:19:42]Sock 9.Thread stoped [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:14]accept exits with 8 [17:22:14]New connection [17:22:14]New thread 3066977636 created [17:22:14]Thread 3066834276 joined [17:22:14]Waiting for new connection... [17:22:14] Sock 8.Parse request [17:22:14]Sock 8.Check first char [17:22:14]Sock 8.First char is OK [17:22:14]request: POST /json_proto HTTP/1.0 [17:22:14]Method: POST [17:22:14]URL: /json_proto [17:22:14]Method is POST - this is cgi request [17:22:14]url: /json_proto [17:22:14]query_string will be loaded in cgi processing [17:22:14]execute_cgi json_proto POST (null) [17:22:14]execute_cgi path=json_proto method=POST [17:22:14]POST find Content-Length [17:22:14]Host: 172.17.63.3:8080 [17:22:14]Content-Length: 678 [17:22:14]Content-Type: application/json [17:22:14] [17:22:14]POST finish read [17:22:14]Found Content-Length = 678 [17:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:14]execute_script... [17:22:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:14]POST & json_proto [17:22:14]process_json_proto [17:22:14]json parsed OK: [17:22:14]protocol is kg_v1.0 [17:22:14]action value=close_receipt [17:22:14]process_action close_receipt [17:22:14]cmd_close_receipt [17:22:14]MH_GetDate [17:22:14]Write to MH i2c: F0 00 00 F0 1A F9 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: F0 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: F0 09 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: F0 09 00 F0 1A 00 47 25 1D 67 50 D1 6C 64 E3 [17:22:14]GetLastDocTimeStamp 1729963181 [17:22:14]current date 1729963335 [17:22:14]FM_GetShiftState [17:22:14]SAM_PROTO_GetShiftState [17:22:14]wFMCommunicate request_size=4 [17:22:14]MH_SAM_APDU [17:22:14]CAPDU: 80 13 01 00 [17:22:14]Write to MH i2c: E2 08 00 F1 1A 80 13 01 00 00 00 00 00 88 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:14]Read from MH i2c: E2 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 0E 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 0E 00 F1 1A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BD [17:22:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:22:14]wFMCommunicate OK [17:22:14]SAM_PROTO_GetShiftState done [17:22:14]FM_GetShiftState done [17:22:14]opened in 1729902702 [17:22:14]opened+sec_in_day 1729989102 [17:22:14]quantity*price = 150037 [17:22:14]sum+1 = 150039 [17:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 276 26.10.2024 17:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156375 ФПД: 117049348825776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172215&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156375&fm=117049348825776&tin=02508201610067®Number=0000000000091693&sum=150000 [17:22:15]StoreToDocumentArchive [17:22:15]shift 536 fd 156375 [17:22:15]save to /storage/0536/doc_00156375 [17:22:15]save last doc name /storage/0536/doc_00156375 to /storage/kkm_last_doc_name [17:22:15]save OK [17:22:15]Clear old archive folders... [17:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:22:15]tlvbuf is 0167AA50 [17:22:15]SAM_PROTO_ClearQueue [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 09 00 00 [17:22:15]Write to MH i2c: E2 08 00 FE 1A 80 09 00 00 00 00 00 00 8A [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 FE 1A 00 90 00 8C [17:22:15]RAPDU: 90 00 [17:22:15]wFMCommunicate OK [17:22:15]SAM_PROTO_ClearQueue done [17:22:15]KKMCreateOFDPacket [17:22:15]OFDProtocolAddRootSTLVToBuf [17:22:15]FM_MakeSignedData [17:22:15]FM_MakeSignedData [17:22:15]SAM_PROTO_SignData [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 0D 01 02 [17:22:15]Write to MH i2c: E2 08 00 FF 1A 80 0D 01 02 00 00 00 00 92 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 FF 1A 00 90 00 8D [17:22:15]RAPDU: 90 00 [17:22:15]wFMCommunicate OK [17:22:15]wFMCommunicate request_size=255 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 47 25 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 62 02 00 35 04 06 00 6A 74 AC DB [17:22:15]Write to MH i2c: E2 02 01 00 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 47 25 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 62 02 00 35 04 06 00 6A 74 AC DB 00 00 53 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [17:22:15]RAPDU: 90 00 [17:22:15]wFMCommunicate OK [17:22:15]wFMCommunicate request_size=7 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 0D 02 02 02 A2 B0 [17:22:15]Write to MH i2c: E2 0A 00 01 1B 80 0D 02 02 02 00 A2 B0 00 00 EC [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 03 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [17:22:16]RAPDU: 90 00 [17:22:16]wFMCommunicate OK [17:22:16]wFMCommunicate request_size=4 [17:22:16]MH_SAM_APDU [17:22:16]CAPDU: 80 0D 03 02 [17:22:16]Write to MH i2c: E2 08 00 02 1B 80 0D 03 02 00 00 00 00 98 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 0B 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 0B 00 02 1B 00 31 ED 76 D8 AB A3 BC 3D 90 00 4C [17:22:16]RAPDU: 31 ED 76 D8 AB A3 BC 3D 90 00 [17:22:16]wFMCommunicate OK [17:22:16]SAM_PROTO_SignData done [17:22:16]FM_MakeSignedData done [17:22:16]CreateOFDProtocolMessage [17:22:16]wFMCommunicate request_size=4 [17:22:16]MH_SAM_APDU [17:22:16]CAPDU: 80 11 00 00 [17:22:16]Write to MH i2c: E2 08 00 03 1B 80 11 00 00 00 00 00 00 98 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 17 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 17 00 03 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [17:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:22:16]wFMCommunicate OK [17:22:16]CreateOFDProtocolMessage done [17:22:16]OFDSenderStorePacket 156375 [17:22:16]StoreOFDPacket docnum=156375 [17:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4D 46 04 01 29 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 47 25 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 62 02 00 35 04 06 00 6A 74 AC DB A2 B0 31 ED 76 D8 AB A3 BC 3D [17:22:16]CheckFolder [17:22:16]dirname=/storage/ofd_packets [17:22:16]CheckFolder done [17:22:16]ProducePacketName [17:22:16]name=ofd_packets/00156375 [17:22:16]NVStorageSaveData ofd_packets/00156375 [17:22:16]File name is /storage/ofd_packets/00156375 [17:22:16]Write 298 bytes [17:22:16]NVStorageSaveData done [17:22:16]OFDSenderStorePacket done [17:22:16]KKMCreateOFDPacket done [17:22:16]NVStorageSaveData kkm_last_timestamp [17:22:16]File name is /storage/kkm_last_timestamp [17:22:16]Write 4 bytes [17:22:16]NVStorageSaveData done [17:22:16]ExternCall_PrintAddStr [17:22:16]wPrintStart [17:22:16]Write to MH i2c: 01 00 00 04 1B 1F [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 04 1B 00 00 00 00 00 FF 0F 34 [17:22:16]RasterBufferAndPrint [17:22:16]line Счет N : (1)99190 [17:22:16]line ИНН: 02508201610067 [17:22:16]line Контрольно-Кассовый Чек [17:22:16]line ПРОДАЖА [17:22:16]line ТРК (МРК, ГНК) : 32 [17:22:16]line Товар: 2710194210 [17:22:16]line ДТ-К-5 [17:22:16]line 19.690 * 76.20 [17:22:16]line = 1500.38 [17:22:16]line НДС 12% НСП 1% [17:22:16]line > о реализуемом товаре [17:22:16]line ОКРУГЛЕНИЕ: -0.38 [17:22:16]line ИТОГО: 1500.00 [17:22:16]line Внесено: 1500.00 [17:22:16]line СДАЧА: 0.00 [17:22:16]line НСП 1% : 13.28 [17:22:16]line НДС 12% : 159.33 [17:22:16]line Наличными: 1500.00 [17:22:16]line Безнал.: 0.00 [17:22:16]line Место: АЗС № 143 "Партнер Нефть" [17:22:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:22:16]line СНО: Общий режим [17:22:16]line Чек 276 26.10.2024 17:22 [17:22:16]line Смена: 536 ФФД: 1.0 [17:22:16]line ЗНМ: 0300000096 [17:22:16]line РНМ: 0000000000091693 [17:22:16]line Версия ККМ: 001 [17:22:16]line ФМ: 0000000000871792 [17:22:16]line ФД: 156375 [17:22:16]line ФПД: 117049348825776 [17:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172215&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156375&fm=117049348825776&tin=02508201610067®Number=0000000000091693&sum=150000 [17:22:16]OFD Sender: Processing packet 156375 [packets to send 31, broken 30] [17:22:16]ProducePacketName [17:22:16]name=ofd_packets/00156375 [17:22:16]OFD Sender: To server: pG, [17:22:16]CommunicateWithHost lk.salyk.kg:30040 [17:22:16]ConnectInit lk.salyk.kg [17:22:16]written 0, free lines is 4095 [17:22:16]Connected sock=10 [17:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4D 46 04 01 29 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 47 25 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 62 02 00 35 04 06 00 6A 74 AC DB A2 B0 31 ED 76 D8 AB A3 BC 3D [17:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5F 52 47 00 E4 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 31 37 39 32 10 04 04 00 D7 62 02 00 F4 03 04 00 B9 CA 1C 67 B6 04 01 00 00 CE EE 29 9A 58 38 59 6C [17:22:16]CommunicateWithHost err = 0 [17:22:16]CheckOFDResponse [17:22:16]1017 (14) - 77093643461234 [17:22:16]1041 (16) - 0000000000871792 [17:22:16]1040 (4) - 156375 [17:22:16]1012 (4) - 26.10.2024 10:55 [17:22:16]1206 (1) - 0 [17:22:16]OFD Sender: Remove packet 156375 [17:22:16]ProducePacketName [17:22:16]name=ofd_packets/00156375 [17:22:16]NVStorageDeleteData [17:22:16]Write to MH i2c: 01 00 00 2F 1B 4A [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 ED 0C 4A [17:22:16]RasterBufferAndPrint [17:22:16]line [17:22:16]line [17:22:16]line [17:22:16]line [17:22:16]line [17:22:16]written 0, free lines is 3315 [17:22:16]process_action close_receipt done [17:22:16]requested_data is exist [17:22:16]produce_requested_data [17:22:16]requested_item fm.sn is exist - process it [17:22:16]wFMCommunicate request_size=4 [17:22:16]MH_SAM_APDU [17:22:16]CAPDU: 80 11 00 00 [17:22:16]Write to MH i2c: E2 08 00 36 1B 80 11 00 00 00 00 00 00 CB [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:17]Read from MH i2c: E2 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 17 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 17 00 36 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [17:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:22:17]wFMCommunicate OK [17:22:17]requested_item fd.num is exist - process it [17:22:17]SAM_PROTO_GetFieldsCounters [17:22:17]wFMCommunicate request_size=4 [17:22:17]MH_SAM_APDU [17:22:17]CAPDU: 80 13 00 00 [17:22:17]Write to MH i2c: E2 08 00 37 1B 80 13 00 00 00 00 00 00 CE [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:17]Read from MH i2c: E2 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 62 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 62 00 37 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [17:22: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:17]wFMCommunicate OK [17:22:17]SAM_PROTO_GetFieldsCounters done [17:22:17]requested_item shift.num is exist - process it [17:22:17]requested_item shift.opened is exist - process it [17:22:17]req_shift_opened [17:22:17]FM_GetShiftState [17:22:17]SAM_PROTO_GetShiftState [17:22:17]wFMCommunicate request_size=4 [17:22:17]MH_SAM_APDU [17:22:17]CAPDU: 80 13 01 00 [17:22:17]Write to MH i2c: E2 08 00 38 1B 80 13 01 00 00 00 00 00 D0 [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:17]Read from MH i2c: E2 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 0E 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 0E 00 38 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 05 [17:22:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:22:17]wFMCommunicate OK [17:22:17]SAM_PROTO_GetShiftState done [17:22:17]FM_GetShiftState done [17:22:17]req_shift_opened done [17:22:17]requested_item shift.open_date is exist - process it [17:22:17]req_shift_open_date [17:22:17]req_shift_open_date done [17:22:17]produce_requested_data done [17:22:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156375,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:22:17]process_action_free close_receipt [17:22:17]json_value_free [17:22:17]json_value_free done [17:22:17]process_json_proto returns [17:22:17]Send response to host [17:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156375,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:22:17]free response buf [17:22:17]execute_script done [17:22:17]execute_script returns [17:22:17]free content buf [17:22:17]Sock 8.Close socket [17:22:17]Sock 8.Thread stoped [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:28]accept exits with 9 [17:24:28]New connection [17:24:28]New thread 3066834276 created [17:24:28]Thread 3066977636 joined [17:24:28]Waiting for new connection... [17:24:28] Sock 9.Parse request [17:24:28]Sock 9.Check first char [17:24:28]Sock 9.First char is OK [17:24:28]request: POST /json_proto HTTP/1.0 [17:24:28]Method: POST [17:24:28]URL: /json_proto [17:24:28]Method is POST - this is cgi request [17:24:28]url: /json_proto [17:24:28]query_string will be loaded in cgi processing [17:24:28]execute_cgi json_proto POST (null) [17:24:28]execute_cgi path=json_proto method=POST [17:24:28]POST find Content-Length [17:24:28]Host: 172.17.63.3:8080 [17:24:28]Content-Length: 676 [17:24:28]Content-Type: application/json [17:24:28] [17:24:28]POST finish read [17:24:28]Found Content-Length = 676 [17:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:28]execute_script... [17:24: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)99191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:28]POST & json_proto [17:24:28]process_json_proto [17:24:28]json parsed OK: [17:24:28]protocol is kg_v1.0 [17:24:28]action value=close_receipt [17:24:28]process_action close_receipt [17:24:28]cmd_close_receipt [17:24:28]MH_GetDate [17:24:28]Write to MH i2c: F0 00 00 39 1B 43 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: F0 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: F0 09 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: F0 09 00 39 1B 00 CE 25 1D 67 50 D1 6C 64 B4 [17:24:28]GetLastDocTimeStamp 1729963335 [17:24:28]current date 1729963470 [17:24:28]FM_GetShiftState [17:24:28]SAM_PROTO_GetShiftState [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 13 01 00 [17:24:28]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 0E 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 07 [17:24:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:24:28]wFMCommunicate OK [17:24:28]SAM_PROTO_GetShiftState done [17:24:28]FM_GetShiftState done [17:24:28]opened in 1729902702 [17:24:28]opened+sec_in_day 1729989102 [17:24:28]quantity*price = 60009 [17:24:28]sum+1 = 60010 [17:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 277 26.10.2024 17:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156376 ФПД: 20146140957105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156376&fm=20146140957105&tin=02508201610067®Number=0000000000091693&sum=60000 [17:24:29]StoreToDocumentArchive [17:24:29]shift 536 fd 156376 [17:24:29]save to /storage/0536/doc_00156376 [17:24:29]save last doc name /storage/0536/doc_00156376 to /storage/kkm_last_doc_name [17:24:29]save OK [17:24:29]Clear old archive folders... [17:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:29]tlvbuf is 016BAFF0 [17:24:29]SAM_PROTO_ClearQueue [17:24:29]wFMCommunicate request_size=4 [17:24:29]MH_SAM_APDU [17:24:29]CAPDU: 80 09 00 00 [17:24:29]Write to MH i2c: E2 08 00 47 1B 80 09 00 00 00 00 00 00 D4 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 03 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 03 00 47 1B 00 90 00 D6 [17:24:30]RAPDU: 90 00 [17:24:30]wFMCommunicate OK [17:24:30]SAM_PROTO_ClearQueue done [17:24:30]KKMCreateOFDPacket [17:24:30]OFDProtocolAddRootSTLVToBuf [17:24:30]FM_MakeSignedData [17:24:30]FM_MakeSignedData [17:24:30]SAM_PROTO_SignData [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 0D 01 02 [17:24:30]Write to MH i2c: E2 08 00 48 1B 80 0D 01 02 00 00 00 00 DC [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 03 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 03 00 48 1B 00 90 00 D7 [17:24:30]RAPDU: 90 00 [17:24:30]wFMCommunicate OK [17:24:30]wFMCommunicate request_size=255 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 CE 25 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 62 02 00 35 04 06 00 12 [17:24:30]Write to MH i2c: E2 02 01 49 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 CE 25 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 62 02 00 35 04 06 00 12 00 00 42 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 03 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [17:24:30]RAPDU: 90 00 [17:24:30]wFMCommunicate OK [17:24:30]wFMCommunicate request_size=10 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 0D 02 02 05 52 A3 93 49 B1 [17:24:30]Write to MH i2c: E2 0D 00 4A 1B 80 0D 02 02 05 00 52 A3 93 49 B1 00 00 6B [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 03 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [17:24:30]RAPDU: 90 00 [17:24:30]wFMCommunicate OK [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 0D 03 02 [17:24:30]Write to MH i2c: E2 08 00 4B 1B 80 0D 03 02 00 00 00 00 E1 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 0B 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 0B 00 4B 1B 00 B2 98 B7 97 3C B1 83 10 90 00 FA [17:24:30]RAPDU: B2 98 B7 97 3C B1 83 10 90 00 [17:24:30]wFMCommunicate OK [17:24:30]SAM_PROTO_SignData done [17:24:30]FM_MakeSignedData done [17:24:30]CreateOFDProtocolMessage [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 11 00 00 [17:24:30]Write to MH i2c: E2 08 00 4C 1B 80 11 00 00 00 00 00 00 E1 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 17 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 17 00 4C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 36 [17:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:24:30]wFMCommunicate OK [17:24:30]CreateOFDProtocolMessage done [17:24:30]OFDSenderStorePacket 156376 [17:24:30]StoreOFDPacket docnum=156376 [17:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 31 E7 07 01 8B CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 CE 25 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 62 02 00 35 04 06 00 12 52 A3 93 49 B1 B2 98 B7 97 3C B1 83 10 [17:24:30]CheckFolder [17:24:30]dirname=/storage/ofd_packets [17:24:30]CheckFolder done [17:24:30]ProducePacketName [17:24:30]name=ofd_packets/00156376 [17:24:30]NVStorageSaveData ofd_packets/00156376 [17:24:30]File name is /storage/ofd_packets/00156376 [17:24:30]Write 301 bytes [17:24:30]NVStorageSaveData done [17:24:30]OFDSenderStorePacket done [17:24:30]KKMCreateOFDPacket done [17:24:30]NVStorageSaveData kkm_last_timestamp [17:24:30]File name is /storage/kkm_last_timestamp [17:24:30]Write 4 bytes [17:24:30]NVStorageSaveData done [17:24:30]ExternCall_PrintAddStr [17:24:30]wPrintStart [17:24:30]Write to MH i2c: 01 00 00 4D 1B 68 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: 01 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: 01 07 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: 01 07 00 4D 1B 00 00 00 00 00 FF 0F 7D [17:24:30]RasterBufferAndPrint [17:24:30]line Счет N : (1)99191 [17:24:30]line ИНН: 02508201610067 [17:24:30]line Контрольно-Кассовый Чек [17:24:30]line ПРОДАЖА [17:24:30]line ТРК (МРК, ГНК) : 11 [17:24:30]line Товар: 2710124130 [17:24:30]line Аи-92-К-5 [17:24:30]line 8.970 * 66.90 [17:24:30]line = 600.09 [17:24:30]line НДС 12% НСП 1% [17:24:30]line > о реализуемом товаре [17:24:30]line ОКРУГЛЕНИЕ: -0.09 [17:24:30]line ИТОГО: 600.00 [17:24:30]line Внесено: 600.00 [17:24:30]line СДАЧА: 0.00 [17:24:30]line НСП 1% : 5.31 [17:24:30]line НДС 12% : 63.73 [17:24:30]line Наличными: 600.00 [17:24:30]line Безнал.: 0.00 [17:24:30]line Место: АЗС № 143 "Партнер Нефть" [17:24:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:24:30]line СНО: Общий режим [17:24:30]line Чек 277 26.10.2024 17:24 [17:24:30]line Смена: 536 ФФД: 1.0 [17:24:30]line ЗНМ: 0300000096 [17:24:30]line РНМ: 0000000000091693 [17:24:30]line Версия ККМ: 001 [17:24:30]line ФМ: 0000000000871792 [17:24:30]line ФД: 156376 [17:24:30]line ФПД: 20146140957105 [17:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156376&fm=20146140957105&tin=02508201610067®Number=0000000000091693&sum=60000 [17:24:30]OFD Sender: Processing packet 156376 [packets to send 31, broken 30] [17:24:30]ProducePacketName [17:24:30]name=ofd_packets/00156376 [17:24:30]OFD Sender: To server: pG, [17:24:30]CommunicateWithHost lk.salyk.kg:30040 [17:24:30]ConnectInit lk.salyk.kg [17:24:30]written 0, free lines is 4095 [17:24:30]Connected sock=10 [17:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 31 E7 07 01 8B CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 CE 25 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 62 02 00 35 04 06 00 12 52 A3 93 49 B1 B2 98 B7 97 3C B1 83 10 [17:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C2 FF 47 00 CB 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 31 37 39 32 10 04 04 00 D8 62 02 00 F4 03 04 00 40 CB 1C 67 B6 04 01 00 00 F3 FD 81 34 6F F7 8A CE [17:24:31]CommunicateWithHost err = 0 [17:24:31]CheckOFDResponse [17:24:31]1017 (14) - 77093643461234 [17:24:31]1041 (16) - 0000000000871792 [17:24:31]1040 (4) - 156376 [17:24:31]1012 (4) - 26.10.2024 10:58 [17:24:31]1206 (1) - 0 [17:24:31]OFD Sender: Remove packet 156376 [17:24:31]ProducePacketName [17:24:31]name=ofd_packets/00156376 [17:24:31]NVStorageDeleteData [17:24:31]Write to MH i2c: 01 00 00 78 1B 93 [17:24:31]Write i2c OK [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: 01 [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: 01 07 00 [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: 01 07 00 78 1B 00 00 00 00 00 F2 0C 98 [17:24:31]RasterBufferAndPrint [17:24:31]line [17:24:31]line [17:24:31]line [17:24:31]line [17:24:31]line [17:24:31]written 0, free lines is 3320 [17:24:31]process_action close_receipt done [17:24:31]requested_data is exist [17:24:31]produce_requested_data [17:24:31]requested_item fm.sn is exist - process it [17:24:31]wFMCommunicate request_size=4 [17:24:31]MH_SAM_APDU [17:24:31]CAPDU: 80 11 00 00 [17:24:31]Write to MH i2c: E2 08 00 7F 1B 80 11 00 00 00 00 00 00 14 [17:24:31]Write i2c OK [17:24:31]MH_I2C_Read... [17:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:31]Read from MH i2c: E2 [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: E2 17 00 [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: E2 17 00 7F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [17:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:24:31]wFMCommunicate OK [17:24:31]requested_item fd.num is exist - process it [17:24:31]SAM_PROTO_GetFieldsCounters [17:24:31]wFMCommunicate request_size=4 [17:24:31]MH_SAM_APDU [17:24:31]CAPDU: 80 13 00 00 [17:24:31]Write to MH i2c: E2 08 00 80 1B 80 13 00 00 00 00 00 00 17 [17:24:31]Write i2c OK [17:24:31]MH_I2C_Read... [17:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:31]Read from MH i2c: E2 [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: E2 62 00 [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: E2 62 00 80 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [17:24: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:31]wFMCommunicate OK [17:24:31]SAM_PROTO_GetFieldsCounters done [17:24:31]requested_item shift.num is exist - process it [17:24:31]requested_item shift.opened is exist - process it [17:24:31]req_shift_opened [17:24:31]FM_GetShiftState [17:24:31]SAM_PROTO_GetShiftState [17:24:31]wFMCommunicate request_size=4 [17:24:31]MH_SAM_APDU [17:24:31]CAPDU: 80 13 01 00 [17:24:31]Write to MH i2c: E2 08 00 81 1B 80 13 01 00 00 00 00 00 19 [17:24:31]Write i2c OK [17:24:31]MH_I2C_Read... [17:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:31]Read from MH i2c: E2 [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: E2 0E 00 [17:24:31]MH_I2C_Read... [17:24:31]Read from MH i2c: E2 0E 00 81 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4E [17:24:31]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:24:31]wFMCommunicate OK [17:24:31]SAM_PROTO_GetShiftState done [17:24:31]FM_GetShiftState done [17:24:31]req_shift_opened done [17:24:31]requested_item shift.open_date is exist - process it [17:24:31]req_shift_open_date [17:24:31]req_shift_open_date done [17:24:31]produce_requested_data done [17:24:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156376,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:24:31]process_action_free close_receipt [17:24:31]json_value_free [17:24:31]json_value_free done [17:24:31]process_json_proto returns [17:24:31]Send response to host [17:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156376,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:24:31]free response buf [17:24:31]execute_script done [17:24:31]execute_script returns [17:24:31]free content buf [17:24:31]Sock 9.Close socket [17:24:31]Sock 9.Thread stoped [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:38]accept exits with 8 [17:25:38]New connection [17:25:38]New thread 3066977636 created [17:25:38]Thread 3066834276 joined [17:25:38]Waiting for new connection... [17:25:38] Sock 8.Parse request [17:25:38]Sock 8.Check first char [17:25:38]Sock 8.First char is OK [17:25:38]request: POST /json_proto HTTP/1.0 [17:25:38]Method: POST [17:25:38]URL: /json_proto [17:25:38]Method is POST - this is cgi request [17:25:38]url: /json_proto [17:25:38]query_string will be loaded in cgi processing [17:25:38]execute_cgi json_proto POST (null) [17:25:38]execute_cgi path=json_proto method=POST [17:25:38]POST find Content-Length [17:25:38]Host: 172.17.63.3:8080 [17:25:38]Content-Length: 676 [17:25:38]Content-Type: application/json [17:25:38] [17:25:38]POST finish read [17:25:38]Found Content-Length = 676 [17:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:38]execute_script... [17:25:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:38]POST & json_proto [17:25:38]process_json_proto [17:25:38]json parsed OK: [17:25:38]protocol is kg_v1.0 [17:25:38]action value=close_receipt [17:25:38]process_action close_receipt [17:25:38]cmd_close_receipt [17:25:38]MH_GetDate [17:25:38]Write to MH i2c: F0 00 00 82 1B 8C [17:25:38]Write i2c OK [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: F0 [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: F0 09 00 [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: F0 09 00 82 1B 00 13 26 1D 67 50 D1 6C 64 43 [17:25:38]GetLastDocTimeStamp 1729963470 [17:25:38]current date 1729963539 [17:25:38]FM_GetShiftState [17:25:38]SAM_PROTO_GetShiftState [17:25:38]wFMCommunicate request_size=4 [17:25:38]MH_SAM_APDU [17:25:38]CAPDU: 80 13 01 00 [17:25:38]Write to MH i2c: E2 08 00 83 1B 80 13 01 00 00 00 00 00 1B [17:25:38]Write i2c OK [17:25:38]MH_I2C_Read... [17:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:38]Read from MH i2c: E2 [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: E2 0E 00 [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: E2 0E 00 83 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [17:25:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:25:38]wFMCommunicate OK [17:25:38]SAM_PROTO_GetShiftState done [17:25:38]FM_GetShiftState done [17:25:38]opened in 1729902702 [17:25:38]opened+sec_in_day 1729989102 [17:25:38]quantity*price = 50041 [17:25:38]sum+1 = 50042 [17:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 278 26.10.2024 17:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156377 ФПД: 194679700799690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156377&fm=194679700799690&tin=02508201610067®Number=0000000000091693&sum=50000 [17:25:39]StoreToDocumentArchive [17:25:39]shift 536 fd 156377 [17:25:39]save to /storage/0536/doc_00156377 [17:25:39]save last doc name /storage/0536/doc_00156377 to /storage/kkm_last_doc_name [17:25:39]save OK [17:25:39]Clear old archive folders... [17:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:39]tlvbuf is B6EE0350 [17:25:39]SAM_PROTO_ClearQueue [17:25:39]wFMCommunicate request_size=4 [17:25:39]MH_SAM_APDU [17:25:39]CAPDU: 80 09 00 00 [17:25:39]Write to MH i2c: E2 08 00 90 1B 80 09 00 00 00 00 00 00 1D [17:25:39]Write i2c OK [17:25:39]MH_I2C_Read... [17:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:39]Read from MH i2c: E2 [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: E2 03 00 [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [17:25:39]RAPDU: 90 00 [17:25:39]wFMCommunicate OK [17:25:39]SAM_PROTO_ClearQueue done [17:25:39]KKMCreateOFDPacket [17:25:39]OFDProtocolAddRootSTLVToBuf [17:25:39]FM_MakeSignedData [17:25:39]FM_MakeSignedData [17:25:39]SAM_PROTO_SignData [17:25:39]wFMCommunicate request_size=4 [17:25:39]MH_SAM_APDU [17:25:39]CAPDU: 80 0D 01 02 [17:25:39]Write to MH i2c: E2 08 00 91 1B 80 0D 01 02 00 00 00 00 25 [17:25:39]Write i2c OK [17:25:39]MH_I2C_Read... [17:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:39]Read from MH i2c: E2 [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: E2 03 00 [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: E2 03 00 91 1B 00 90 00 20 [17:25:39]RAPDU: 90 00 [17:25:39]wFMCommunicate OK [17:25:39]wFMCommunicate request_size=255 [17:25:39]MH_SAM_APDU [17:25:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 13 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 62 02 00 35 04 06 00 B1 [17:25:39]Write to MH i2c: E2 02 01 92 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 13 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 62 02 00 35 04 06 00 B1 00 00 95 [17:25:39]Write i2c OK [17:25:39]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 92 1B 00 90 00 21 [17:25:40]RAPDU: 90 00 [17:25:40]wFMCommunicate OK [17:25:40]wFMCommunicate request_size=10 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 0D 02 02 05 0F 66 69 40 CA [17:25:40]Write to MH i2c: E2 0D 00 93 1B 80 0D 02 02 05 00 0F 66 69 40 CA 00 00 1A [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 93 1B 00 90 00 22 [17:25:40]RAPDU: 90 00 [17:25:40]wFMCommunicate OK [17:25:40]wFMCommunicate request_size=4 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 0D 03 02 [17:25:40]Write to MH i2c: E2 08 00 94 1B 80 0D 03 02 00 00 00 00 2A [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 0B 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 0B 00 94 1B 00 3F 82 78 37 91 13 11 0C 90 00 5C [17:25:40]RAPDU: 3F 82 78 37 91 13 11 0C 90 00 [17:25:40]wFMCommunicate OK [17:25:40]SAM_PROTO_SignData done [17:25:40]FM_MakeSignedData done [17:25:40]CreateOFDProtocolMessage [17:25:40]wFMCommunicate request_size=4 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 11 00 00 [17:25:40]Write to MH i2c: E2 08 00 95 1B 80 11 00 00 00 00 00 00 2A [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 17 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 17 00 95 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [17:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:25:40]wFMCommunicate OK [17:25:40]CreateOFDProtocolMessage done [17:25:40]OFDSenderStorePacket 156377 [17:25:40]StoreOFDPacket docnum=156377 [17:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 35 46 07 01 C8 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 13 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 62 02 00 35 04 06 00 B1 0F 66 69 40 CA 3F 82 78 37 91 13 11 0C [17:25:40]CheckFolder [17:25:40]dirname=/storage/ofd_packets [17:25:40]CheckFolder done [17:25:40]ProducePacketName [17:25:40]name=ofd_packets/00156377 [17:25:40]NVStorageSaveData ofd_packets/00156377 [17:25:40]File name is /storage/ofd_packets/00156377 [17:25:40]Write 301 bytes [17:25:40]NVStorageSaveData done [17:25:40]OFDSenderStorePacket done [17:25:40]KKMCreateOFDPacket done [17:25:40]NVStorageSaveData kkm_last_timestamp [17:25:40]File name is /storage/kkm_last_timestamp [17:25:40]Write 4 bytes [17:25:40]NVStorageSaveData done [17:25:40]ExternCall_PrintAddStr [17:25:40]wPrintStart [17:25:40]Write to MH i2c: 01 00 00 96 1B B1 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: 01 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: 01 07 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: 01 07 00 96 1B 00 00 00 00 00 FF 0F C6 [17:25:40]RasterBufferAndPrint [17:25:40]line Счет N : (1)99192 [17:25:40]line ИНН: 02508201610067 [17:25:40]line Контрольно-Кассовый Чек [17:25:40]line ПРОДАЖА [17:25:40]line ТРК (МРК, ГНК) : 31 [17:25:40]line Товар: 2710124130 [17:25:40]line Аи-92-К-5 [17:25:40]line 7.480 * 66.90 [17:25:40]line = 500.41 [17:25:40]line НДС 12% НСП 1% [17:25:40]line > о реализуемом товаре [17:25:40]line ОКРУГЛЕНИЕ: -0.41 [17:25:40]line ИТОГО: 500.00 [17:25:40]line Внесено: 500.00 [17:25:40]line СДАЧА: 0.00 [17:25:40]line НСП 1% : 4.43 [17:25:40]line НДС 12% : 53.14 [17:25:40]line Наличными: 500.00 [17:25:40]line Безнал.: 0.00 [17:25:40]line Место: АЗС № 143 "Партнер Нефть" [17:25:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:25:40]line СНО: Общий режим [17:25:40]line Чек 278 26.10.2024 17:25 [17:25:40]line Смена: 536 ФФД: 1.0 [17:25:40]line ЗНМ: 0300000096 [17:25:40]line РНМ: 0000000000091693 [17:25:40]line Версия ККМ: 001 [17:25:40]line ФМ: 0000000000871792 [17:25:40]line ФД: 156377 [17:25:40]line ФПД: 194679700799690 [17:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156377&fm=194679700799690&tin=02508201610067®Number=0000000000091693&sum=50000 [17:25:40]OFD Sender: Processing packet 156377 [packets to send 31, broken 30] [17:25:40]ProducePacketName [17:25:40]name=ofd_packets/00156377 [17:25:40]OFD Sender: To server: pG, [17:25:40]CommunicateWithHost lk.salyk.kg:30040 [17:25:40]ConnectInit lk.salyk.kg [17:25:40]written 0, free lines is 4095 [17:25:40]Connected sock=10 [17:25:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 35 46 07 01 C8 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 13 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 62 02 00 35 04 06 00 B1 0F 66 69 40 CA 3F 82 78 37 91 13 11 0C [17:25:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8C B1 47 00 E3 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 62 02 00 F4 03 04 00 85 CB 1C 67 B6 04 01 00 00 0C E1 57 49 52 53 D2 C7 [17:25:40]CommunicateWithHost err = 0 [17:25:40]CheckOFDResponse [17:25:40]1017 (14) - 77093643461234 [17:25:40]1041 (16) - 0000000000871792 [17:25:40]1040 (4) - 156377 [17:25:40]1012 (4) - 26.10.2024 10:59 [17:25:40]1206 (1) - 0 [17:25:40]OFD Sender: Remove packet 156377 [17:25:40]ProducePacketName [17:25:40]name=ofd_packets/00156377 [17:25:40]NVStorageDeleteData [17:25:41]Write to MH i2c: 01 00 00 C1 1B DC [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 07 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 07 00 C1 1B 00 00 00 00 00 FF 0C EE [17:25:41]RasterBufferAndPrint [17:25:41]line [17:25:41]line [17:25:41]line [17:25:41]line [17:25:41]line [17:25:41]written 0, free lines is 3333 [17:25:41]process_action close_receipt done [17:25:41]requested_data is exist [17:25:41]produce_requested_data [17:25:41]requested_item fm.sn is exist - process it [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 11 00 00 [17:25:41]Write to MH i2c: E2 08 00 C8 1B 80 11 00 00 00 00 00 00 5D [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 17 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 17 00 C8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B2 [17:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:25:41]wFMCommunicate OK [17:25:41]requested_item fd.num is exist - process it [17:25:41]SAM_PROTO_GetFieldsCounters [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 13 00 00 [17:25:41]Write to MH i2c: E2 08 00 C9 1B 80 13 00 00 00 00 00 00 60 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 62 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 62 00 C9 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [17:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:41]wFMCommunicate OK [17:25:41]SAM_PROTO_GetFieldsCounters done [17:25:41]requested_item shift.num is exist - process it [17:25:41]requested_item shift.opened is exist - process it [17:25:41]req_shift_opened [17:25:41]FM_GetShiftState [17:25:41]SAM_PROTO_GetShiftState [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 13 01 00 [17:25:41]Write to MH i2c: E2 08 00 CA 1B 80 13 01 00 00 00 00 00 62 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 0E 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 0E 00 CA 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 97 [17:25:41]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:25:41]wFMCommunicate OK [17:25:41]SAM_PROTO_GetShiftState done [17:25:41]FM_GetShiftState done [17:25:41]req_shift_opened done [17:25:41]requested_item shift.open_date is exist - process it [17:25:41]req_shift_open_date [17:25:41]req_shift_open_date done [17:25:41]produce_requested_data done [17:25:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156377,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:25:41]process_action_free close_receipt [17:25:41]json_value_free [17:25:41]json_value_free done [17:25:41]process_json_proto returns [17:25:41]Send response to host [17:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156377,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:25:41]free response buf [17:25:41]execute_script done [17:25:41]execute_script returns [17:25:41]free content buf [17:25:41]Sock 8.Close socket [17:25:41]Sock 8.Thread stoped [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]accept exits with 9 [17:26:11]New connection [17:26:11]New thread 3066834276 created [17:26:11]Thread 3066977636 joined [17:26:11]Waiting for new connection... [17:26:11] Sock 9.Parse request [17:26:11]Sock 9.Check first char [17:26:11]Sock 9.First char is OK [17:26:11]request: POST /json_proto HTTP/1.0 [17:26:11]Method: POST [17:26:11]URL: /json_proto [17:26:11]Method is POST - this is cgi request [17:26:11]url: /json_proto [17:26:11]query_string will be loaded in cgi processing [17:26:11]execute_cgi json_proto POST (null) [17:26:11]execute_cgi path=json_proto method=POST [17:26:11]POST find Content-Length [17:26:11]Host: 172.17.63.3:8080 [17:26:11]Content-Length: 676 [17:26:11]Content-Type: application/json [17:26:11] [17:26:11]POST finish read [17:26:11]Found Content-Length = 676 [17:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:11]execute_script... [17:26:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:11]POST & json_proto [17:26:11]process_json_proto [17:26:11]json parsed OK: [17:26:11]protocol is kg_v1.0 [17:26:11]action value=close_receipt [17:26:11]process_action close_receipt [17:26:11]cmd_close_receipt [17:26:11]MH_GetDate [17:26:11]Write to MH i2c: F0 00 00 CB 1B D5 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: F0 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: F0 09 00 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: F0 09 00 CB 1B 00 34 26 1D 67 50 D1 6C 64 AD [17:26:11]GetLastDocTimeStamp 1729963539 [17:26:11]current date 1729963572 [17:26:11]FM_GetShiftState [17:26:11]SAM_PROTO_GetShiftState [17:26:11]wFMCommunicate request_size=4 [17:26:11]MH_SAM_APDU [17:26:11]CAPDU: 80 13 01 00 [17:26:11]Write to MH i2c: E2 08 00 CC 1B 80 13 01 00 00 00 00 00 64 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:11]Read from MH i2c: E2 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: E2 0E 00 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: E2 0E 00 CC 1B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 99 [17:26:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:26:11]wFMCommunicate OK [17:26:11]SAM_PROTO_GetShiftState done [17:26:11]FM_GetShiftState done [17:26:11]opened in 1729902702 [17:26:11]opened+sec_in_day 1729989102 [17:26:11]quantity*price = 50041 [17:26:11]sum+1 = 50042 [17:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 279 26.10.2024 17:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156378 ФПД: 181551067018053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172612&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156378&fm=181551067018053&tin=02508201610067®Number=0000000000091693&sum=50000 [17:26:12]StoreToDocumentArchive [17:26:12]shift 536 fd 156378 [17:26:12]save to /storage/0536/doc_00156378 [17:26:12]save last doc name /storage/0536/doc_00156378 to /storage/kkm_last_doc_name [17:26:12]save OK [17:26:12]Clear old archive folders... [17:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:12]tlvbuf is 016733D0 [17:26:12]SAM_PROTO_ClearQueue [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 09 00 00 [17:26:12]Write to MH i2c: E2 08 00 D9 1B 80 09 00 00 00 00 00 00 66 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 D9 1B 00 90 00 68 [17:26:12]RAPDU: 90 00 [17:26:12]wFMCommunicate OK [17:26:12]SAM_PROTO_ClearQueue done [17:26:12]KKMCreateOFDPacket [17:26:12]OFDProtocolAddRootSTLVToBuf [17:26:12]FM_MakeSignedData [17:26:12]FM_MakeSignedData [17:26:12]SAM_PROTO_SignData [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 0D 01 02 [17:26:12]Write to MH i2c: E2 08 00 DA 1B 80 0D 01 02 00 00 00 00 6E [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [17:26:12]RAPDU: 90 00 [17:26:12]wFMCommunicate OK [17:26:12]wFMCommunicate request_size=255 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 34 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 62 02 00 35 04 06 00 A5 [17:26:12]Write to MH i2c: E2 02 01 DB 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 34 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 62 02 00 35 04 06 00 A5 00 00 F5 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 DB 1B 00 90 00 6A [17:26:12]RAPDU: 90 00 [17:26:12]wFMCommunicate OK [17:26:12]wFMCommunicate request_size=10 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 0D 02 02 05 1E A6 DB B3 45 [17:26:12]Write to MH i2c: E2 0D 00 DC 1B 80 0D 02 02 05 00 1E A6 DB B3 45 00 00 12 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 DC 1B 00 90 00 6B [17:26:12]RAPDU: 90 00 [17:26:12]wFMCommunicate OK [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 0D 03 02 [17:26:12]Write to MH i2c: E2 08 00 DD 1B 80 0D 03 02 00 00 00 00 73 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 0B 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 0B 00 DD 1B 00 53 05 C6 3D D7 BC C8 7F 90 00 A9 [17:26:12]RAPDU: 53 05 C6 3D D7 BC C8 7F 90 00 [17:26:12]wFMCommunicate OK [17:26:12]SAM_PROTO_SignData done [17:26:12]FM_MakeSignedData done [17:26:12]CreateOFDProtocolMessage [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 11 00 00 [17:26:12]Write to MH i2c: E2 08 00 DE 1B 80 11 00 00 00 00 00 00 73 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 17 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 17 00 DE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C8 [17:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:26:12]wFMCommunicate OK [17:26:12]CreateOFDProtocolMessage done [17:26:12]OFDSenderStorePacket 156378 [17:26:12]StoreOFDPacket docnum=156378 [17:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 35 80 07 01 C1 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 34 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 62 02 00 35 04 06 00 A5 1E A6 DB B3 45 53 05 C6 3D D7 BC C8 7F [17:26:12]CheckFolder [17:26:12]dirname=/storage/ofd_packets [17:26:12]CheckFolder done [17:26:12]ProducePacketName [17:26:12]name=ofd_packets/00156378 [17:26:12]NVStorageSaveData ofd_packets/00156378 [17:26:12]File name is /storage/ofd_packets/00156378 [17:26:12]Write 301 bytes [17:26:12]NVStorageSaveData done [17:26:12]OFDSenderStorePacket done [17:26:12]KKMCreateOFDPacket done [17:26:12]NVStorageSaveData kkm_last_timestamp [17:26:12]File name is /storage/kkm_last_timestamp [17:26:12]Write 4 bytes [17:26:12]NVStorageSaveData done [17:26:12]ExternCall_PrintAddStr [17:26:12]wPrintStart [17:26:12]Write to MH i2c: 01 00 00 DF 1B FA [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: 01 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: 01 07 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: 01 07 00 DF 1B 00 00 00 00 00 FF 0F 0F [17:26:12]RasterBufferAndPrint [17:26:12]line Счет N : (1)99193 [17:26:12]line ИНН: 02508201610067 [17:26:12]line Контрольно-Кассовый Чек [17:26:12]line ПРОДАЖА [17:26:12]line ТРК (МРК, ГНК) : 21 [17:26:12]line Товар: 2710124130 [17:26:12]line Аи-92-К-5 [17:26:12]line 7.480 * 66.90 [17:26:12]line = 500.41 [17:26:12]line НДС 12% НСП 1% [17:26:12]line > о реализуемом товаре [17:26:12]line ОКРУГЛЕНИЕ: -0.41 [17:26:12]line ИТОГО: 500.00 [17:26:12]line Внесено: 500.00 [17:26:12]line СДАЧА: 0.00 [17:26:12]line НСП 1% : 4.43 [17:26:12]line НДС 12% : 53.14 [17:26:12]line Наличными: 500.00 [17:26:12]line Безнал.: 0.00 [17:26:12]line Место: АЗС № 143 "Партнер Нефть" [17:26:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:26:12]line СНО: Общий режим [17:26:12]line Чек 279 26.10.2024 17:26 [17:26:12]line Смена: 536 ФФД: 1.0 [17:26:12]line ЗНМ: 0300000096 [17:26:12]line РНМ: 0000000000091693 [17:26:12]line Версия ККМ: 001 [17:26:12]line ФМ: 0000000000871792 [17:26:12]line ФД: 156378 [17:26:12]line ФПД: 181551067018053 [17:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172612&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156378&fm=181551067018053&tin=02508201610067®Number=0000000000091693&sum=50000 [17:26:13]OFD Sender: Processing packet 156378 [packets to send 31, broken 30] [17:26:13]ProducePacketName [17:26:13]name=ofd_packets/00156378 [17:26:13]OFD Sender: To server: pG, [17:26:13]CommunicateWithHost lk.salyk.kg:30040 [17:26:13]ConnectInit lk.salyk.kg [17:26:13]written 0, free lines is 4095 [17:26:13]Connected sock=10 [17:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 35 80 07 01 C1 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 34 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 62 02 00 35 04 06 00 A5 1E A6 DB B3 45 53 05 C6 3D D7 BC C8 7F [17:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B7 D5 47 00 F5 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 62 02 00 F4 03 04 00 A6 CB 1C 67 B6 04 01 00 00 DB 52 7C 42 F7 30 C4 06 [17:26:13]CommunicateWithHost err = 0 [17:26:13]CheckOFDResponse [17:26:13]1017 (14) - 77093643461234 [17:26:13]1041 (16) - 0000000000871792 [17:26:13]1040 (4) - 156378 [17:26:13]1012 (4) - 26.10.2024 10:59 [17:26:13]1206 (1) - 0 [17:26:13]OFD Sender: Remove packet 156378 [17:26:13]ProducePacketName [17:26:13]name=ofd_packets/00156378 [17:26:13]NVStorageDeleteData [17:26:13]Write to MH i2c: 01 00 00 0A 1C 26 [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 07 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 07 00 0A 1C 00 00 00 00 00 F3 0C 2C [17:26:13]RasterBufferAndPrint [17:26:13]line [17:26:13]line [17:26:13]line [17:26:13]line [17:26:13]line [17:26:13]written 0, free lines is 3321 [17:26:13]process_action close_receipt done [17:26:13]requested_data is exist [17:26:13]produce_requested_data [17:26:13]requested_item fm.sn is exist - process it [17:26:13]wFMCommunicate request_size=4 [17:26:13]MH_SAM_APDU [17:26:13]CAPDU: 80 11 00 00 [17:26:13]Write to MH i2c: E2 08 00 11 1C 80 11 00 00 00 00 00 00 A7 [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:13]Read from MH i2c: E2 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 17 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 17 00 11 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FC [17:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:26:13]wFMCommunicate OK [17:26:13]requested_item fd.num is exist - process it [17:26:13]SAM_PROTO_GetFieldsCounters [17:26:13]wFMCommunicate request_size=4 [17:26:13]MH_SAM_APDU [17:26:13]CAPDU: 80 13 00 00 [17:26:13]Write to MH i2c: E2 08 00 12 1C 80 13 00 00 00 00 00 00 AA [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:14]Read from MH i2c: E2 [17:26:14]MH_I2C_Read... [17:26:14]Read from MH i2c: E2 62 00 [17:26:14]MH_I2C_Read... [17:26:14]Read from MH i2c: E2 62 00 12 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [17:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:14]wFMCommunicate OK [17:26:14]SAM_PROTO_GetFieldsCounters done [17:26:14]requested_item shift.num is exist - process it [17:26:14]requested_item shift.opened is exist - process it [17:26:14]req_shift_opened [17:26:14]FM_GetShiftState [17:26:14]SAM_PROTO_GetShiftState [17:26:14]wFMCommunicate request_size=4 [17:26:14]MH_SAM_APDU [17:26:14]CAPDU: 80 13 01 00 [17:26:14]Write to MH i2c: E2 08 00 13 1C 80 13 01 00 00 00 00 00 AC [17:26:14]Write i2c OK [17:26:14]MH_I2C_Read... [17:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:14]Read from MH i2c: E2 [17:26:14]MH_I2C_Read... [17:26:14]Read from MH i2c: E2 0E 00 [17:26:14]MH_I2C_Read... [17:26:14]Read from MH i2c: E2 0E 00 13 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E1 [17:26:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:26:14]wFMCommunicate OK [17:26:14]SAM_PROTO_GetShiftState done [17:26:14]FM_GetShiftState done [17:26:14]req_shift_opened done [17:26:14]requested_item shift.open_date is exist - process it [17:26:14]req_shift_open_date [17:26:14]req_shift_open_date done [17:26:14]produce_requested_data done [17:26:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156378,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:26:14]process_action_free close_receipt [17:26:14]json_value_free [17:26:14]json_value_free done [17:26:14]process_json_proto returns [17:26:14]Send response to host [17:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156378,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:26:14]free response buf [17:26:14]execute_script done [17:26:14]execute_script returns [17:26:14]free content buf [17:26:14]Sock 9.Close socket [17:26:14]Sock 9.Thread stoped [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:22]accept exits with 8 [17:27:22]New connection [17:27:22]New thread 3066977636 created [17:27:22]Thread 3066834276 joined [17:27:22]Waiting for new connection... [17:27:22] Sock 8.Parse request [17:27:22]Sock 8.Check first char [17:27:22]Sock 8.First char is OK [17:27:22]request: POST /json_proto HTTP/1.0 [17:27:22]Method: POST [17:27:22]URL: /json_proto [17:27:22]Method is POST - this is cgi request [17:27:22]url: /json_proto [17:27:22]query_string will be loaded in cgi processing [17:27:22]execute_cgi json_proto POST (null) [17:27:22]execute_cgi path=json_proto method=POST [17:27:22]POST find Content-Length [17:27:22]Host: 172.17.63.3:8080 [17:27:22]Content-Length: 676 [17:27:22]Content-Type: application/json [17:27:22] [17:27:22]POST finish read [17:27:22]Found Content-Length = 676 [17:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:22]execute_script... [17:27:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:22]POST & json_proto [17:27:22]process_json_proto [17:27:22]json parsed OK: [17:27:22]protocol is kg_v1.0 [17:27:22]action value=close_receipt [17:27:22]process_action close_receipt [17:27:22]cmd_close_receipt [17:27:22]MH_GetDate [17:27:22]Write to MH i2c: F0 00 00 14 1C 1F [17:27:22]Write i2c OK [17:27:22]MH_I2C_Read... [17:27:22]Read from MH i2c: F0 [17:27:22]MH_I2C_Read... [17:27:22]Read from MH i2c: F0 09 00 [17:27:22]MH_I2C_Read... [17:27:22]Read from MH i2c: F0 09 00 14 1C 00 7C 26 1D 67 50 D1 6C 64 3F [17:27:22]GetLastDocTimeStamp 1729963572 [17:27:22]current date 1729963644 [17:27:22]FM_GetShiftState [17:27:22]SAM_PROTO_GetShiftState [17:27:22]wFMCommunicate request_size=4 [17:27:22]MH_SAM_APDU [17:27:22]CAPDU: 80 13 01 00 [17:27:22]Write to MH i2c: E2 08 00 15 1C 80 13 01 00 00 00 00 00 AE [17:27:22]Write i2c OK [17:27:22]MH_I2C_Read... [17:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:22]Read from MH i2c: E2 [17:27:22]MH_I2C_Read... [17:27:22]Read from MH i2c: E2 0E 00 [17:27:22]MH_I2C_Read... [17:27:22]Read from MH i2c: E2 0E 00 15 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E3 [17:27:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:27:22]wFMCommunicate OK [17:27:22]SAM_PROTO_GetShiftState done [17:27:22]FM_GetShiftState done [17:27:22]opened in 1729902702 [17:27:22]opened+sec_in_day 1729989102 [17:27:22]quantity*price = 20003 [17:27:22]sum+1 = 20004 [17:27:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 280 26.10.2024 17:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156379 ФПД: 53205630017360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172724&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156379&fm=53205630017360&tin=02508201610067®Number=0000000000091693&sum=20000 [17:27:24]StoreToDocumentArchive [17:27:24]shift 536 fd 156379 [17:27:24]save to /storage/0536/doc_00156379 [17:27:24]save last doc name /storage/0536/doc_00156379 to /storage/kkm_last_doc_name [17:27:24]save OK [17:27:24]Clear old archive folders... [17:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:24]tlvbuf is 016E3DD0 [17:27:24]SAM_PROTO_ClearQueue [17:27:24]wFMCommunicate request_size=4 [17:27:24]MH_SAM_APDU [17:27:24]CAPDU: 80 09 00 00 [17:27:24]Write to MH i2c: E2 08 00 22 1C 80 09 00 00 00 00 00 00 B0 [17:27:24]Write i2c OK [17:27:24]MH_I2C_Read... [17:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:24]Read from MH i2c: E2 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 03 00 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 03 00 22 1C 00 90 00 B2 [17:27:24]RAPDU: 90 00 [17:27:24]wFMCommunicate OK [17:27:24]SAM_PROTO_ClearQueue done [17:27:24]KKMCreateOFDPacket [17:27:24]OFDProtocolAddRootSTLVToBuf [17:27:24]FM_MakeSignedData [17:27:24]FM_MakeSignedData [17:27:24]SAM_PROTO_SignData [17:27:24]wFMCommunicate request_size=4 [17:27:24]MH_SAM_APDU [17:27:24]CAPDU: 80 0D 01 02 [17:27:24]Write to MH i2c: E2 08 00 23 1C 80 0D 01 02 00 00 00 00 B8 [17:27:24]Write i2c OK [17:27:24]MH_I2C_Read... [17:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:24]Read from MH i2c: E2 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 03 00 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [17:27:24]RAPDU: 90 00 [17:27:24]wFMCommunicate OK [17:27:24]wFMCommunicate request_size=255 [17:27:24]MH_SAM_APDU [17:27:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 7C 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 62 02 00 35 04 06 00 30 [17:27:24]Write to MH i2c: E2 02 01 24 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 7C 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 62 02 00 35 04 06 00 30 00 00 D6 [17:27:24]Write i2c OK [17:27:24]MH_I2C_Read... [17:27:24]OFD Sender: No OFD packet to send [17:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:24]Read from MH i2c: E2 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 03 00 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 03 00 24 1C 00 90 00 B4 [17:27:24]RAPDU: 90 00 [17:27:24]wFMCommunicate OK [17:27:24]wFMCommunicate request_size=10 [17:27:24]MH_SAM_APDU [17:27:24]CAPDU: 80 0D 02 02 05 63 E6 AD 5F 50 [17:27:24]Write to MH i2c: E2 0D 00 25 1C 80 0D 02 02 05 00 63 E6 AD 5F 50 00 00 6A [17:27:24]Write i2c OK [17:27:24]MH_I2C_Read... [17:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:24]Read from MH i2c: E2 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 03 00 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 03 00 25 1C 00 90 00 B5 [17:27:24]RAPDU: 90 00 [17:27:24]wFMCommunicate OK [17:27:24]wFMCommunicate request_size=4 [17:27:24]MH_SAM_APDU [17:27:24]CAPDU: 80 0D 03 02 [17:27:24]Write to MH i2c: E2 08 00 26 1C 80 0D 03 02 00 00 00 00 BD [17:27:24]Write i2c OK [17:27:24]MH_I2C_Read... [17:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:24]Read from MH i2c: E2 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 0B 00 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 0B 00 26 1C 00 B3 A2 68 84 68 2C 05 E6 90 00 7E [17:27:24]RAPDU: B3 A2 68 84 68 2C 05 E6 90 00 [17:27:24]wFMCommunicate OK [17:27:24]SAM_PROTO_SignData done [17:27:24]FM_MakeSignedData done [17:27:24]CreateOFDProtocolMessage [17:27:24]wFMCommunicate request_size=4 [17:27:24]MH_SAM_APDU [17:27:24]CAPDU: 80 11 00 00 [17:27:24]Write to MH i2c: E2 08 00 27 1C 80 11 00 00 00 00 00 00 BD [17:27:24]Write i2c OK [17:27:24]MH_I2C_Read... [17:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:24]Read from MH i2c: E2 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 17 00 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: E2 17 00 27 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 12 [17:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:27:24]wFMCommunicate OK [17:27:24]CreateOFDProtocolMessage done [17:27:24]OFDSenderStorePacket 156379 [17:27:24]StoreOFDPacket docnum=156379 [17:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 17 C2 07 01 0E 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 7C 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 62 02 00 35 04 06 00 30 63 E6 AD 5F 50 B3 A2 68 84 68 2C 05 E6 [17:27:24]CheckFolder [17:27:24]dirname=/storage/ofd_packets [17:27:24]CheckFolder done [17:27:24]ProducePacketName [17:27:24]name=ofd_packets/00156379 [17:27:24]NVStorageSaveData ofd_packets/00156379 [17:27:24]File name is /storage/ofd_packets/00156379 [17:27:24]Write 301 bytes [17:27:24]NVStorageSaveData done [17:27:24]OFDSenderStorePacket done [17:27:24]KKMCreateOFDPacket done [17:27:24]NVStorageSaveData kkm_last_timestamp [17:27:24]File name is /storage/kkm_last_timestamp [17:27:24]Write 4 bytes [17:27:24]NVStorageSaveData done [17:27:24]ExternCall_PrintAddStr [17:27:24]wPrintStart [17:27:24]Write to MH i2c: 01 00 00 28 1C 44 [17:27:24]Write i2c OK [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: 01 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: 01 07 00 [17:27:24]MH_I2C_Read... [17:27:24]Read from MH i2c: 01 07 00 28 1C 00 00 00 00 00 FF 0F 59 [17:27:24]RasterBufferAndPrint [17:27:24]line Счет N : (1)99194 [17:27:24]line ИНН: 02508201610067 [17:27:24]line Контрольно-Кассовый Чек [17:27:24]line ПРОДАЖА [17:27:24]line ТРК (МРК, ГНК) : 11 [17:27:24]line Товар: 2710124130 [17:27:24]line Аи-92-К-5 [17:27:24]line 2.990 * 66.90 [17:27:24]line = 200.03 [17:27:24]line НДС 12% НСП 1% [17:27:24]line > о реализуемом товаре [17:27:24]line ОКРУГЛЕНИЕ: -0.03 [17:27:24]line ИТОГО: 200.00 [17:27:24]line Внесено: 200.00 [17:27:24]line СДАЧА: 0.00 [17:27:24]line НСП 1% : 1.77 [17:27:24]line НДС 12% : 21.24 [17:27:24]line Наличными: 200.00 [17:27:24]line Безнал.: 0.00 [17:27:24]line Место: АЗС № 143 "Партнер Нефть" [17:27:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:27:24]line СНО: Общий режим [17:27:24]line Чек 280 26.10.2024 17:27 [17:27:24]line Смена: 536 ФФД: 1.0 [17:27:24]line ЗНМ: 0300000096 [17:27:24]line РНМ: 0000000000091693 [17:27:24]line Версия ККМ: 001 [17:27:24]line ФМ: 0000000000871792 [17:27:24]line ФД: 156379 [17:27:24]line ФПД: 53205630017360 [17:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172724&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156379&fm=53205630017360&tin=02508201610067®Number=0000000000091693&sum=20000 [17:27:24]OFD Sender: Processing packet 156379 [packets to send 31, broken 30] [17:27:24]ProducePacketName [17:27:24]name=ofd_packets/00156379 [17:27:24]OFD Sender: To server: pG, [17:27:24]CommunicateWithHost lk.salyk.kg:30040 [17:27:24]ConnectInit lk.salyk.kg [17:27:24]written 0, free lines is 4095 [17:27:25]Connected sock=11 [17:27:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 17 C2 07 01 0E 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 7C 26 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 62 02 00 35 04 06 00 30 63 E6 AD 5F 50 B3 A2 68 84 68 2C 05 E6 [17:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5F B3 47 00 2A 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 62 02 00 F4 03 04 00 EE CB 1C 67 B6 04 01 00 00 2A 57 40 FC 74 4D C3 FC [17:27:25]CommunicateWithHost err = 0 [17:27:25]CheckOFDResponse [17:27:25]1017 (14) - 77093643461234 [17:27:25]1041 (16) - 0000000000871792 [17:27:25]1040 (4) - 156379 [17:27:25]1012 (4) - 26.10.2024 11:01 [17:27:25]1206 (1) - 0 [17:27:25]OFD Sender: Remove packet 156379 [17:27:25]ProducePacketName [17:27:25]name=ofd_packets/00156379 [17:27:25]NVStorageDeleteData [17:27:25]Write to MH i2c: 01 00 00 53 1C 6F [17:27:25]Write i2c OK [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: 01 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: 01 07 00 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: 01 07 00 53 1C 00 00 00 00 00 E4 0C 66 [17:27:25]RasterBufferAndPrint [17:27:25]line [17:27:25]line [17:27:25]line [17:27:25]line [17:27:25]line [17:27:25]written 0, free lines is 3306 [17:27:25]process_action close_receipt done [17:27:25]requested_data is exist [17:27:25]produce_requested_data [17:27:25]requested_item fm.sn is exist - process it [17:27:25]wFMCommunicate request_size=4 [17:27:25]MH_SAM_APDU [17:27:25]CAPDU: 80 11 00 00 [17:27:25]Write to MH i2c: E2 08 00 5A 1C 80 11 00 00 00 00 00 00 F0 [17:27:25]Write i2c OK [17:27:25]MH_I2C_Read... [17:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:25]Read from MH i2c: E2 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: E2 17 00 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: E2 17 00 5A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 45 [17:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:27:25]wFMCommunicate OK [17:27:25]requested_item fd.num is exist - process it [17:27:25]SAM_PROTO_GetFieldsCounters [17:27:25]wFMCommunicate request_size=4 [17:27:25]MH_SAM_APDU [17:27:25]CAPDU: 80 13 00 00 [17:27:25]Write to MH i2c: E2 08 00 5B 1C 80 13 00 00 00 00 00 00 F3 [17:27:25]Write i2c OK [17:27:25]MH_I2C_Read... [17:27:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:25]Read from MH i2c: E2 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: E2 62 00 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: E2 62 00 5B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [17:27: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:25]wFMCommunicate OK [17:27:25]SAM_PROTO_GetFieldsCounters done [17:27:25]requested_item shift.num is exist - process it [17:27:25]requested_item shift.opened is exist - process it [17:27:25]req_shift_opened [17:27:25]FM_GetShiftState [17:27:25]SAM_PROTO_GetShiftState [17:27:25]wFMCommunicate request_size=4 [17:27:25]MH_SAM_APDU [17:27:25]CAPDU: 80 13 01 00 [17:27:25]Write to MH i2c: E2 08 00 5C 1C 80 13 01 00 00 00 00 00 F5 [17:27:25]Write i2c OK [17:27:25]MH_I2C_Read... [17:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:25]Read from MH i2c: E2 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: E2 0E 00 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: E2 0E 00 5C 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2A [17:27:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:27:25]wFMCommunicate OK [17:27:25]SAM_PROTO_GetShiftState done [17:27:25]FM_GetShiftState done [17:27:25]req_shift_opened done [17:27:25]requested_item shift.open_date is exist - process it [17:27:25]req_shift_open_date [17:27:25]req_shift_open_date done [17:27:25]produce_requested_data done [17:27:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156379,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:27:25]process_action_free close_receipt [17:27:25]json_value_free [17:27:25]json_value_free done [17:27:25]process_json_proto returns [17:27:25]Send response to host [17:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156379,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:27:25]free response buf [17:27:25]execute_script done [17:27:25]execute_script returns [17:27:25]free content buf [17:27:25]Sock 8.Close socket [17:27:25]Sock 8.Thread stoped [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:37]accept exits with 9 [17:31:37]New connection [17:31:37]New thread 3066834276 created [17:31:37]Thread 3066977636 joined [17:31:37]Waiting for new connection... [17:31:37] Sock 9.Parse request [17:31:37]Sock 9.Check first char [17:31:37]Sock 9.First char is OK [17:31:37]request: POST /json_proto HTTP/1.0 [17:31:37]Method: POST [17:31:37]URL: /json_proto [17:31:37]Method is POST - this is cgi request [17:31:37]url: /json_proto [17:31:37]query_string will be loaded in cgi processing [17:31:37]execute_cgi json_proto POST (null) [17:31:37]execute_cgi path=json_proto method=POST [17:31:37]POST find Content-Length [17:31:37]Host: 172.17.63.3:8080 [17:31:37]Content-Length: 677 [17:31:37]Content-Type: application/json [17:31:37] [17:31:37]POST finish read [17:31:37]Found Content-Length = 677 [17:31:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:37]execute_script... [17:31:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:37]POST & json_proto [17:31:37]process_json_proto [17:31:37]json parsed OK: [17:31:37]protocol is kg_v1.0 [17:31:37]action value=close_receipt [17:31:37]process_action close_receipt [17:31:37]cmd_close_receipt [17:31:37]MH_GetDate [17:31:37]Write to MH i2c: F0 00 00 5D 1C 68 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: F0 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: F0 09 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: F0 09 00 5D 1C 00 7A 27 1D 67 50 D1 6C 64 87 [17:31:37]GetLastDocTimeStamp 1729963644 [17:31:37]current date 1729963898 [17:31:37]FM_GetShiftState [17:31:37]SAM_PROTO_GetShiftState [17:31:37]wFMCommunicate request_size=4 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 13 01 00 [17:31:37]Write to MH i2c: E2 08 00 5E 1C 80 13 01 00 00 00 00 00 F7 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 0E 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 0E 00 5E 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2C [17:31:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:31:37]wFMCommunicate OK [17:31:37]SAM_PROTO_GetShiftState done [17:31:37]FM_GetShiftState done [17:31:37]opened in 1729902702 [17:31:37]opened+sec_in_day 1729989102 [17:31:37]quantity*price = 70044 [17:31:37]sum+1 = 70045 [17:31:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 281 26.10.2024 17:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156380 ФПД: 213492151953354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173138&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156380&fm=213492151953354&tin=02508201610067®Number=0000000000091693&sum=70000 [17:31:38]StoreToDocumentArchive [17:31:38]shift 536 fd 156380 [17:31:38]save to /storage/0536/doc_00156380 [17:31:38]save last doc name /storage/0536/doc_00156380 to /storage/kkm_last_doc_name [17:31:38]save OK [17:31:38]Clear old archive folders... [17:31:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:38]tlvbuf is 016E4440 [17:31:38]SAM_PROTO_ClearQueue [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 09 00 00 [17:31:38]Write to MH i2c: E2 08 00 6B 1C 80 09 00 00 00 00 00 00 F9 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [17:31:38]RAPDU: 90 00 [17:31:38]wFMCommunicate OK [17:31:38]SAM_PROTO_ClearQueue done [17:31:38]KKMCreateOFDPacket [17:31:38]OFDProtocolAddRootSTLVToBuf [17:31:38]FM_MakeSignedData [17:31:38]FM_MakeSignedData [17:31:38]SAM_PROTO_SignData [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 0D 01 02 [17:31:38]Write to MH i2c: E2 08 00 6C 1C 80 0D 01 02 00 00 00 00 01 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 6C 1C 00 90 00 FC [17:31:38]RAPDU: 90 00 [17:31:38]wFMCommunicate OK [17:31:38]wFMCommunicate request_size=255 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 7A 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 62 02 00 35 04 06 00 C2 [17:31:38]Write to MH i2c: E2 02 01 6D 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 7A 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 62 02 00 35 04 06 00 C2 00 00 00 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 6D 1C 00 90 00 FD [17:31:38]RAPDU: 90 00 [17:31:38]wFMCommunicate OK [17:31:38]wFMCommunicate request_size=10 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 0D 02 02 05 2B 83 E1 27 CA [17:31:38]Write to MH i2c: E2 0D 00 6E 1C 80 0D 02 02 05 00 2B 83 E1 27 CA 00 00 8E [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 6E 1C 00 90 00 FE [17:31:38]RAPDU: 90 00 [17:31:38]wFMCommunicate OK [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 0D 03 02 [17:31:38]Write to MH i2c: E2 08 00 6F 1C 80 0D 03 02 00 00 00 00 06 [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:39]Read from MH i2c: E2 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 0B 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 0B 00 6F 1C 00 7C DC BB 3B 8A E5 C1 B7 90 00 3C [17:31:39]RAPDU: 7C DC BB 3B 8A E5 C1 B7 90 00 [17:31:39]wFMCommunicate OK [17:31:39]SAM_PROTO_SignData done [17:31:39]FM_MakeSignedData done [17:31:39]CreateOFDProtocolMessage [17:31:39]wFMCommunicate request_size=4 [17:31:39]MH_SAM_APDU [17:31:39]CAPDU: 80 11 00 00 [17:31:39]Write to MH i2c: E2 08 00 70 1C 80 11 00 00 00 00 00 00 06 [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:39]Read from MH i2c: E2 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 17 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 17 00 70 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5B [17:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:31:39]wFMCommunicate OK [17:31:39]CreateOFDProtocolMessage done [17:31:39]OFDSenderStorePacket 156380 [17:31:39]StoreOFDPacket docnum=156380 [17:31:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 16 E2 07 01 98 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 7A 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 62 02 00 35 04 06 00 C2 2B 83 E1 27 CA 7C DC BB 3B 8A E5 C1 B7 [17:31:39]CheckFolder [17:31:39]dirname=/storage/ofd_packets [17:31:39]CheckFolder done [17:31:39]ProducePacketName [17:31:39]name=ofd_packets/00156380 [17:31:39]NVStorageSaveData ofd_packets/00156380 [17:31:39]File name is /storage/ofd_packets/00156380 [17:31:39]Write 301 bytes [17:31:39]NVStorageSaveData done [17:31:39]OFDSenderStorePacket done [17:31:39]KKMCreateOFDPacket done [17:31:39]NVStorageSaveData kkm_last_timestamp [17:31:39]File name is /storage/kkm_last_timestamp [17:31:39]Write 4 bytes [17:31:39]NVStorageSaveData done [17:31:39]ExternCall_PrintAddStr [17:31:39]wPrintStart [17:31:39]Write to MH i2c: 01 00 00 71 1C 8D [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 07 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 07 00 71 1C 00 00 00 00 00 FF 0F A2 [17:31:39]RasterBufferAndPrint [17:31:39]line Счет N : (1)99195 [17:31:39]line ИНН: 02508201610067 [17:31:39]line Контрольно-Кассовый Чек [17:31:39]line ПРОДАЖА [17:31:39]line ТРК (МРК, ГНК) : 11 [17:31:39]line Товар: 2710124130 [17:31:39]line Аи-92-К-5 [17:31:39]line 10.470 * 66.90 [17:31:39]line = 700.44 [17:31:39]line НДС 12% НСП 1% [17:31:39]line > о реализуемом товаре [17:31:39]line ОКРУГЛЕНИЕ: -0.44 [17:31:39]line ИТОГО: 700.00 [17:31:39]line Внесено: 700.00 [17:31:39]line СДАЧА: 0.00 [17:31:39]line НСП 1% : 6.20 [17:31:39]line НДС 12% : 74.38 [17:31:39]line Наличными: 700.00 [17:31:39]line Безнал.: 0.00 [17:31:39]line Место: АЗС № 143 "Партнер Нефть" [17:31:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:31:39]line СНО: Общий режим [17:31:39]line Чек 281 26.10.2024 17:31 [17:31:39]line Смена: 536 ФФД: 1.0 [17:31:39]line ЗНМ: 0300000096 [17:31:39]line РНМ: 0000000000091693 [17:31:39]line Версия ККМ: 001 [17:31:39]line ФМ: 0000000000871792 [17:31:39]line ФД: 156380 [17:31:39]line ФПД: 213492151953354 [17:31:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173138&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156380&fm=213492151953354&tin=02508201610067®Number=0000000000091693&sum=70000 [17:31:39]OFD Sender: Processing packet 156380 [packets to send 31, broken 30] [17:31:39]ProducePacketName [17:31:39]name=ofd_packets/00156380 [17:31:39]OFD Sender: To server: pG, [17:31:39]CommunicateWithHost lk.salyk.kg:30040 [17:31:39]ConnectInit lk.salyk.kg [17:31:39]written 0, free lines is 4095 [17:31:39]Connected sock=11 [17:31:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 16 E2 07 01 98 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 7A 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 62 02 00 35 04 06 00 C2 2B 83 E1 27 CA 7C DC BB 3B 8A E5 C1 B7 [17:31:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E9 27 47 00 18 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 62 02 00 F4 03 04 00 EC CC 1C 67 B6 04 01 00 00 02 CE 8B 94 2C C5 65 FC [17:31:39]CommunicateWithHost err = 0 [17:31:39]CheckOFDResponse [17:31:39]1017 (14) - 77093643461234 [17:31:39]1041 (16) - 0000000000871792 [17:31:39]1040 (4) - 156380 [17:31:39]1012 (4) - 26.10.2024 11:05 [17:31:39]1206 (1) - 0 [17:31:39]OFD Sender: Remove packet 156380 [17:31:39]ProducePacketName [17:31:39]name=ofd_packets/00156380 [17:31:39]NVStorageDeleteData [17:31:39]Write to MH i2c: 01 00 00 9C 1C B8 [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 07 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 07 00 9C 1C 00 00 00 00 00 E8 0C B3 [17:31:39]RasterBufferAndPrint [17:31:39]line [17:31:39]line [17:31:39]line [17:31:39]line [17:31:39]line [17:31:39]written 0, free lines is 3310 [17:31:39]process_action close_receipt done [17:31:39]requested_data is exist [17:31:39]produce_requested_data [17:31:39]requested_item fm.sn is exist - process it [17:31:39]wFMCommunicate request_size=4 [17:31:39]MH_SAM_APDU [17:31:39]CAPDU: 80 11 00 00 [17:31:39]Write to MH i2c: E2 08 00 A3 1C 80 11 00 00 00 00 00 00 39 [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:39]Read from MH i2c: E2 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 17 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 17 00 A3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8E [17:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:31:39]wFMCommunicate OK [17:31:39]requested_item fd.num is exist - process it [17:31:39]SAM_PROTO_GetFieldsCounters [17:31:39]wFMCommunicate request_size=4 [17:31:39]MH_SAM_APDU [17:31:39]CAPDU: 80 13 00 00 [17:31:39]Write to MH i2c: E2 08 00 A4 1C 80 13 00 00 00 00 00 00 3C [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:40]Read from MH i2c: E2 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 62 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 62 00 A4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [17:31: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:40]wFMCommunicate OK [17:31:40]SAM_PROTO_GetFieldsCounters done [17:31:40]requested_item shift.num is exist - process it [17:31:40]requested_item shift.opened is exist - process it [17:31:40]req_shift_opened [17:31:40]FM_GetShiftState [17:31:40]SAM_PROTO_GetShiftState [17:31:40]wFMCommunicate request_size=4 [17:31:40]MH_SAM_APDU [17:31:40]CAPDU: 80 13 01 00 [17:31:40]Write to MH i2c: E2 08 00 A5 1C 80 13 01 00 00 00 00 00 3E [17:31:40]Write i2c OK [17:31:40]MH_I2C_Read... [17:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:40]Read from MH i2c: E2 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 0E 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 0E 00 A5 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 73 [17:31:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:31:40]wFMCommunicate OK [17:31:40]SAM_PROTO_GetShiftState done [17:31:40]FM_GetShiftState done [17:31:40]req_shift_opened done [17:31:40]requested_item shift.open_date is exist - process it [17:31:40]req_shift_open_date [17:31:40]req_shift_open_date done [17:31:40]produce_requested_data done [17:31:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156380,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:31:40]process_action_free close_receipt [17:31:40]json_value_free [17:31:40]json_value_free done [17:31:40]process_json_proto returns [17:31:40]Send response to host [17:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156380,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:31:40]free response buf [17:31:40]execute_script done [17:31:40]execute_script returns [17:31:40]free content buf [17:31:40]Sock 9.Close socket [17:31:40]Sock 9.Thread stoped [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:14]accept exits with 8 [17:32:14]New connection [17:32:14]New thread 3066977636 created [17:32:14]Thread 3066834276 joined [17:32:14]Waiting for new connection... [17:32:14] Sock 8.Parse request [17:32:14]Sock 8.Check first char [17:32:14]Sock 8.First char is OK [17:32:14]request: POST /json_proto HTTP/1.0 [17:32:14]Method: POST [17:32:14]URL: /json_proto [17:32:14]Method is POST - this is cgi request [17:32:14]url: /json_proto [17:32:14]query_string will be loaded in cgi processing [17:32:14]execute_cgi json_proto POST (null) [17:32:14]execute_cgi path=json_proto method=POST [17:32:14]POST find Content-Length [17:32:14]Host: 172.17.63.3:8080 [17:32:14]Content-Length: 765 [17:32:14]Content-Type: application/json [17:32:14] [17:32:14]POST finish read [17:32:14]Found Content-Length = 765 [17:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:14]execute_script... [17:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:14]POST & json_proto [17:32:14]process_json_proto [17:32:14]json parsed OK: [17:32:14]protocol is kg_v1.0 [17:32:14]action value=close_receipt [17:32:14]process_action close_receipt [17:32:14]cmd_close_receipt [17:32:14]MH_GetDate [17:32:14]Write to MH i2c: F0 00 00 A6 1C B1 [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: F0 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: F0 09 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: F0 09 00 A6 1C 00 A0 27 1D 67 50 D1 6C 64 F6 [17:32:14]GetLastDocTimeStamp 1729963898 [17:32:14]current date 1729963936 [17:32:14]FM_GetShiftState [17:32:14]SAM_PROTO_GetShiftState [17:32:14]wFMCommunicate request_size=4 [17:32:14]MH_SAM_APDU [17:32:14]CAPDU: 80 13 01 00 [17:32:14]Write to MH i2c: E2 08 00 A7 1C 80 13 01 00 00 00 00 00 40 [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:14]Read from MH i2c: E2 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 0E 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 0E 00 A7 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 75 [17:32:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:32:14]wFMCommunicate OK [17:32:14]SAM_PROTO_GetShiftState done [17:32:14]FM_GetShiftState done [17:32:14]opened in 1729902702 [17:32:14]opened+sec_in_day 1729989102 [17:32:14]quantity*price = 50041 [17:32:14]sum+1 = 50042 [17:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 282 26.10.2024 17:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156381 ФПД: 106250447768340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173216&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156381&fm=106250447768340&tin=02508201610067®Number=0000000000091693&sum=50041 [17:32:15]StoreToDocumentArchive [17:32:15]shift 536 fd 156381 [17:32:15]save to /storage/0536/doc_00156381 [17:32:15]save last doc name /storage/0536/doc_00156381 to /storage/kkm_last_doc_name [17:32:15]save OK [17:32:15]Clear old archive folders... [17:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:15]tlvbuf is 01672CD0 [17:32:15]SAM_PROTO_ClearQueue [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 09 00 00 [17:32:15]Write to MH i2c: E2 08 00 B4 1C 80 09 00 00 00 00 00 00 42 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [17:32:15]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]SAM_PROTO_ClearQueue done [17:32:16]KKMCreateOFDPacket [17:32:16]OFDProtocolAddRootSTLVToBuf [17:32:16]FM_MakeSignedData [17:32:16]FM_MakeSignedData [17:32:16]SAM_PROTO_SignData [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 01 02 [17:32:16]Write to MH i2c: E2 08 00 B5 1C 80 0D 01 02 00 00 00 00 4A [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]wFMCommunicate request_size=255 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 A0 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 62 02 00 35 04 06 00 60 [17:32:16]Write to MH i2c: E2 02 01 B6 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 A0 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 62 02 00 35 04 06 00 60 00 00 51 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 B6 1C 00 90 00 46 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]wFMCommunicate request_size=10 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 02 02 05 A2 5C 32 4B 14 [17:32:16]Write to MH i2c: E2 0D 00 B7 1C 80 0D 02 02 05 00 A2 5C 32 4B 14 00 00 E6 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 B7 1C 00 90 00 47 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 03 02 [17:32:16]Write to MH i2c: E2 08 00 B8 1C 80 0D 03 02 00 00 00 00 4F [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 0B 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 0B 00 B8 1C 00 9B B0 88 A1 3F 93 E1 4D 90 00 C4 [17:32:16]RAPDU: 9B B0 88 A1 3F 93 E1 4D 90 00 [17:32:16]wFMCommunicate OK [17:32:16]SAM_PROTO_SignData done [17:32:16]FM_MakeSignedData done [17:32:16]CreateOFDProtocolMessage [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 11 00 00 [17:32:16]Write to MH i2c: E2 08 00 B9 1C 80 11 00 00 00 00 00 00 4F [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 17 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 17 00 B9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A4 [17:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:32:16]wFMCommunicate OK [17:32:16]CreateOFDProtocolMessage done [17:32:16]OFDSenderStorePacket 156381 [17:32:16]StoreOFDPacket docnum=156381 [17:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3B F6 07 01 D4 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 A0 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 62 02 00 35 04 06 00 60 A2 5C 32 4B 14 9B B0 88 A1 3F 93 E1 4D [17:32:16]CheckFolder [17:32:16]dirname=/storage/ofd_packets [17:32:16]CheckFolder done [17:32:16]ProducePacketName [17:32:16]name=ofd_packets/00156381 [17:32:16]NVStorageSaveData ofd_packets/00156381 [17:32:16]File name is /storage/ofd_packets/00156381 [17:32:16]Write 301 bytes [17:32:16]NVStorageSaveData done [17:32:16]OFDSenderStorePacket done [17:32:16]KKMCreateOFDPacket done [17:32:16]NVStorageSaveData kkm_last_timestamp [17:32:16]File name is /storage/kkm_last_timestamp [17:32:16]Write 4 bytes [17:32:16]NVStorageSaveData done [17:32:16]ExternCall_PrintAddStr [17:32:16]wPrintStart [17:32:16]Write to MH i2c: 01 00 00 BA 1C D6 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 07 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 07 00 BA 1C 00 00 00 00 00 FF 0F EB [17:32:16]RasterBufferAndPrint [17:32:16]line Счет N : (1)99196 [17:32:16]line ИНН: 02508201610067 [17:32:16]line Контрольно-Кассовый Чек [17:32:16]line ПРОДАЖА [17:32:16]line ТРК (МРК, ГНК) : 21 [17:32:16]line Товар: 2710124130 [17:32:16]line Аи-92-К-5 [17:32:16]line 7.480 * 66.90 [17:32:16]line = 500.41 [17:32:16]line НДС 12% НСП 1% [17:32:16]line > о реализуемом товаре [17:32:16]line ИТОГО: 500.41 [17:32:16]line НСП 1% : 4.43 [17:32:16]line НДС 12% : 53.14 [17:32:16]line Наличными: 0.00 [17:32:16]line Безнал.: 500.41 [17:32:16]line Место: АЗС № 143 "Партнер Нефть" [17:32:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:32:16]line СНО: Общий режим [17:32:16]line Чек 282 26.10.2024 17:32 [17:32:16]line Смена: 536 ФФД: 1.0 [17:32:16]line ЗНМ: 0300000096 [17:32:16]line РНМ: 0000000000091693 [17:32:16]line Версия ККМ: 001 [17:32:16]line Платежная система: Mbank [17:32:16]line ФМ: 0000000000871792 [17:32:16]line ФД: 156381 [17:32:16]line ФПД: 106250447768340 [17:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173216&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156381&fm=106250447768340&tin=02508201610067®Number=0000000000091693&sum=50041 [17:32:16]written 0, free lines is 4095 [17:32:16]OFD Sender: Processing packet 156381 [packets to send 31, broken 30] [17:32:16]ProducePacketName [17:32:16]name=ofd_packets/00156381 [17:32:16]OFD Sender: To server: pG, [17:32:16]CommunicateWithHost lk.salyk.kg:30040 [17:32:16]ConnectInit lk.salyk.kg [17:32:16]Connected sock=11 [17:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3B F6 07 01 D4 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 A0 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 62 02 00 35 04 06 00 60 A2 5C 32 4B 14 9B B0 88 A1 3F 93 E1 4D [17:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 10 36 47 00 52 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 62 02 00 F4 03 04 00 11 CD 1C 67 B6 04 01 00 00 FD 59 19 7F 9B 07 04 9B [17:32:16]CommunicateWithHost err = 0 [17:32:16]CheckOFDResponse [17:32:16]1017 (14) - 77093643461234 [17:32:16]1041 (16) - 0000000000871792 [17:32:16]1040 (4) - 156381 [17:32:16]1012 (4) - 26.10.2024 11:05 [17:32:16]1206 (1) - 0 [17:32:16]OFD Sender: Remove packet 156381 [17:32:16]ProducePacketName [17:32:16]name=ofd_packets/00156381 [17:32:16]NVStorageDeleteData [17:32:16]Write to MH i2c: 01 00 00 E3 1C FF [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 07 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 07 00 E3 1C 00 00 00 00 00 10 0D 23 [17:32:16]RasterBufferAndPrint [17:32:16]line [17:32:16]line [17:32:16]line [17:32:16]line [17:32:16]line [17:32:16]written 0, free lines is 3350 [17:32:16]process_action close_receipt done [17:32:16]requested_data is exist [17:32:16]produce_requested_data [17:32:16]requested_item fm.sn is exist - process it [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 11 00 00 [17:32:16]Write to MH i2c: E2 08 00 EA 1C 80 11 00 00 00 00 00 00 80 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 17 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 17 00 EA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [17:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:32:16]wFMCommunicate OK [17:32:16]requested_item fd.num is exist - process it [17:32:16]SAM_PROTO_GetFieldsCounters [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 13 00 00 [17:32:16]Write to MH i2c: E2 08 00 EB 1C 80 13 00 00 00 00 00 00 83 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 62 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 62 00 EB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [17:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:17]wFMCommunicate OK [17:32:17]SAM_PROTO_GetFieldsCounters done [17:32:17]requested_item shift.num is exist - process it [17:32:17]requested_item shift.opened is exist - process it [17:32:17]req_shift_opened [17:32:17]FM_GetShiftState [17:32:17]SAM_PROTO_GetShiftState [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 13 01 00 [17:32:17]Write to MH i2c: E2 08 00 EC 1C 80 13 01 00 00 00 00 00 85 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0E 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0E 00 EC 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BA [17:32:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:32:17]wFMCommunicate OK [17:32:17]SAM_PROTO_GetShiftState done [17:32:17]FM_GetShiftState done [17:32:17]req_shift_opened done [17:32:17]requested_item shift.open_date is exist - process it [17:32:17]req_shift_open_date [17:32:17]req_shift_open_date done [17:32:17]produce_requested_data done [17:32:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156381,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:32:17]process_action_free close_receipt [17:32:17]json_value_free [17:32:17]json_value_free done [17:32:17]process_json_proto returns [17:32:17]Send response to host [17:32:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156381,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:32:17]free response buf [17:32:17]execute_script done [17:32:17]execute_script returns [17:32:17]free content buf [17:32:17]Sock 8.Close socket [17:32:17]Sock 8.Thread stoped [17:32:17]OFD Sender: No OFD packet to send [17:32:17]accept exits with 9 [17:32:17]New connection [17:32:17]New thread 3066834276 created [17:32:17]Thread 3066977636 joined [17:32:17]Waiting for new connection... [17:32:17] Sock 9.Parse request [17:32:17]Sock 9.Check first char [17:32:17]Sock 9.First char is OK [17:32:17]request: POST /json_proto HTTP/1.0 [17:32:17]Method: POST [17:32:17]URL: /json_proto [17:32:17]Method is POST - this is cgi request [17:32:17]url: /json_proto [17:32:17]query_string will be loaded in cgi processing [17:32:17]execute_cgi json_proto POST (null) [17:32:17]execute_cgi path=json_proto method=POST [17:32:17]POST find Content-Length [17:32:17]Host: 172.17.63.3:8080 [17:32:17]Content-Length: 676 [17:32:17]Content-Type: application/json [17:32:17] [17:32:17]POST finish read [17:32:17]Found Content-Length = 676 [17:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:17]execute_script... [17:32:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:17]POST & json_proto [17:32:17]process_json_proto [17:32:17]json parsed OK: [17:32:17]protocol is kg_v1.0 [17:32:17]action value=close_receipt [17:32:17]process_action close_receipt [17:32:17]cmd_close_receipt [17:32:17]MH_GetDate [17:32:17]Write to MH i2c: F0 00 00 ED 1C F8 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: F0 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: F0 09 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: F0 09 00 ED 1C 00 A2 27 1D 67 50 D1 6C 64 3F [17:32:17]GetLastDocTimeStamp 1729963936 [17:32:17]current date 1729963938 [17:32:17]FM_GetShiftState [17:32:17]SAM_PROTO_GetShiftState [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 13 01 00 [17:32:17]Write to MH i2c: E2 08 00 EE 1C 80 13 01 00 00 00 00 00 87 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0E 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0E 00 EE 1C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BC [17:32:17]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:32:17]wFMCommunicate OK [17:32:17]SAM_PROTO_GetShiftState done [17:32:17]FM_GetShiftState done [17:32:17]opened in 1729902702 [17:32:17]opened+sec_in_day 1729989102 [17:32:17]quantity*price = 35055 [17:32:17]sum+1 = 35057 [17:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 283 26.10.2024 17:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156382 ФПД: 52098183980929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173218&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156382&fm=52098183980929&tin=02508201610067®Number=0000000000091693&sum=35000 [17:32:18]StoreToDocumentArchive [17:32:18]shift 536 fd 156382 [17:32:18]save to /storage/0536/doc_00156382 [17:32:18]save last doc name /storage/0536/doc_00156382 to /storage/kkm_last_doc_name [17:32:18]save OK [17:32:18]Clear old archive folders... [17:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:18]tlvbuf is 01731B80 [17:32:18]SAM_PROTO_ClearQueue [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 09 00 00 [17:32:18]Write to MH i2c: E2 08 00 FB 1C 80 09 00 00 00 00 00 00 89 [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 FB 1C 00 90 00 8B [17:32:18]RAPDU: 90 00 [17:32:18]wFMCommunicate OK [17:32:18]SAM_PROTO_ClearQueue done [17:32:18]KKMCreateOFDPacket [17:32:18]OFDProtocolAddRootSTLVToBuf [17:32:18]FM_MakeSignedData [17:32:18]FM_MakeSignedData [17:32:18]SAM_PROTO_SignData [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 0D 01 02 [17:32:18]Write to MH i2c: E2 08 00 FC 1C 80 0D 01 02 00 00 00 00 91 [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 FC 1C 00 90 00 8C [17:32:18]RAPDU: 90 00 [17:32:18]wFMCommunicate OK [17:32:18]wFMCommunicate request_size=255 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A2 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 62 02 00 35 04 06 00 2F [17:32:18]Write to MH i2c: E2 02 01 FD 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A2 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 62 02 00 35 04 06 00 2F 00 00 24 [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 03 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 03 00 FD 1C 00 90 00 8D [17:32:19]RAPDU: 90 00 [17:32:19]wFMCommunicate OK [17:32:19]wFMCommunicate request_size=10 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 0D 02 02 05 62 0D BF E7 81 [17:32:19]Write to MH i2c: E2 0D 00 FE 1C 80 0D 02 02 05 00 62 0D BF E7 81 00 00 34 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:19]Read from MH i2c: E2 03 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 03 00 FE 1C 00 90 00 8E [17:32:19]RAPDU: 90 00 [17:32:19]wFMCommunicate OK [17:32:19]wFMCommunicate request_size=4 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 0D 03 02 [17:32:19]Write to MH i2c: E2 08 00 FF 1C 80 0D 03 02 00 00 00 00 96 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 0B 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 0B 00 FF 1C 00 E3 70 38 24 6D 03 CF 1B 90 00 A0 [17:32:19]RAPDU: E3 70 38 24 6D 03 CF 1B 90 00 [17:32:19]wFMCommunicate OK [17:32:19]SAM_PROTO_SignData done [17:32:19]FM_MakeSignedData done [17:32:19]CreateOFDProtocolMessage [17:32:19]wFMCommunicate request_size=4 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 11 00 00 [17:32:19]Write to MH i2c: E2 08 00 00 1D 80 11 00 00 00 00 00 00 97 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 17 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 17 00 00 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [17:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:32:19]wFMCommunicate OK [17:32:19]CreateOFDProtocolMessage done [17:32:19]OFDSenderStorePacket 156382 [17:32:19]StoreOFDPacket docnum=156382 [17:32:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C8 39 07 01 43 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A2 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 62 02 00 35 04 06 00 2F 62 0D BF E7 81 E3 70 38 24 6D 03 CF 1B [17:32:19]CheckFolder [17:32:19]dirname=/storage/ofd_packets [17:32:19]CheckFolder done [17:32:19]ProducePacketName [17:32:19]name=ofd_packets/00156382 [17:32:19]NVStorageSaveData ofd_packets/00156382 [17:32:19]File name is /storage/ofd_packets/00156382 [17:32:19]Write 301 bytes [17:32:19]NVStorageSaveData done [17:32:19]OFDSenderStorePacket done [17:32:19]KKMCreateOFDPacket done [17:32:19]NVStorageSaveData kkm_last_timestamp [17:32:19]File name is /storage/kkm_last_timestamp [17:32:19]Write 4 bytes [17:32:19]NVStorageSaveData done [17:32:19]ExternCall_PrintAddStr [17:32:19]wPrintStart [17:32:19]Write to MH i2c: 01 00 00 01 1D 1E [17:32:19]OFD Sender: Processing packet 156382 [packets to send 31, broken 30] [17:32:19]ProducePacketName [17:32:19]name=ofd_packets/00156382 [17:32:19]OFD Sender: To server: pG, [17:32:19]CommunicateWithHost lk.salyk.kg:30040 [17:32:19]ConnectInit lk.salyk.kg [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 01 1D 00 00 00 00 00 FF 0F 33 [17:32:19]RasterBufferAndPrint [17:32:19]line Счет N : (1)99197 [17:32:19]line ИНН: 02508201610067 [17:32:19]line Контрольно-Кассовый Чек [17:32:19]line ПРОДАЖА [17:32:19]line ТРК (МРК, ГНК) : 31 [17:32:19]line Товар: 2710124130 [17:32:19]line Аи-92-К-5 [17:32:19]line 5.240 * 66.90 [17:32:19]line = 350.56 [17:32:19]line НДС 12% НСП 1% [17:32:19]line > о реализуемом товаре [17:32:19]line ОКРУГЛЕНИЕ: -0.56 [17:32:19]line ИТОГО: 350.00 [17:32:19]line Внесено: 350.00 [17:32:19]line СДАЧА: 0.00 [17:32:19]line НСП 1% : 3.10 [17:32:19]line НДС 12% : 37.23 [17:32:19]line Наличными: 350.00 [17:32:19]line Безнал.: 0.00 [17:32:19]line Место: АЗС № 143 "Партнер Нефть" [17:32:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:32:19]line СНО: Общий режим [17:32:19]line Чек 283 26.10.2024 17:32 [17:32:19]line Смена: 536 ФФД: 1.0 [17:32:19]line ЗНМ: 0300000096 [17:32:19]line РНМ: 0000000000091693 [17:32:19]line Версия ККМ: 001 [17:32:19]line ФМ: 0000000000871792 [17:32:19]line ФД: 156382 [17:32:19]line ФПД: 52098183980929 [17:32:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173218&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156382&fm=52098183980929&tin=02508201610067®Number=0000000000091693&sum=35000 [17:32:19]written 0, free lines is 4095 [17:32:19]Connected sock=10 [17:32:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C8 39 07 01 43 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A2 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 62 02 00 35 04 06 00 2F 62 0D BF E7 81 E3 70 38 24 6D 03 CF 1B [17:32:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1F 3F 47 00 26 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 31 37 39 32 10 04 04 00 DE 62 02 00 F4 03 04 00 15 CD 1C 67 B6 04 01 00 00 1A 21 5C 57 C0 A4 F8 B8 [17:32:20]CommunicateWithHost err = 0 [17:32:20]CheckOFDResponse [17:32:20]1017 (14) - 77093643461234 [17:32:20]1041 (16) - 0000000000871792 [17:32:20]1040 (4) - 156382 [17:32:20]1012 (4) - 26.10.2024 11:05 [17:32:20]1206 (1) - 0 [17:32:20]OFD Sender: Remove packet 156382 [17:32:20]ProducePacketName [17:32:20]name=ofd_packets/00156382 [17:32:20]NVStorageDeleteData [17:32:20]Write to MH i2c: 01 00 00 2C 1D 49 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: 01 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: 01 07 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: 01 07 00 2C 1D 00 00 00 00 00 FB 0C 57 [17:32:20]RasterBufferAndPrint [17:32:20]line [17:32:20]line [17:32:20]line [17:32:20]line [17:32:20]line [17:32:20]written 0, free lines is 3338 [17:32:20]process_action close_receipt done [17:32:20]requested_data is exist [17:32:20]produce_requested_data [17:32:20]requested_item fm.sn is exist - process it [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 11 00 00 [17:32:20]Write to MH i2c: E2 08 00 33 1D 80 11 00 00 00 00 00 00 CA [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 17 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 17 00 33 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [17:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:32:20]wFMCommunicate OK [17:32:20]requested_item fd.num is exist - process it [17:32:20]SAM_PROTO_GetFieldsCounters [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 13 00 00 [17:32:20]Write to MH i2c: E2 08 00 34 1D 80 13 00 00 00 00 00 00 CD [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 62 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 62 00 34 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [17:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:20]wFMCommunicate OK [17:32:20]SAM_PROTO_GetFieldsCounters done [17:32:20]requested_item shift.num is exist - process it [17:32:20]requested_item shift.opened is exist - process it [17:32:20]req_shift_opened [17:32:20]FM_GetShiftState [17:32:20]SAM_PROTO_GetShiftState [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 13 01 00 [17:32:20]Write to MH i2c: E2 08 00 35 1D 80 13 01 00 00 00 00 00 CF [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 0E 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 0E 00 35 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 04 [17:32:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:32:20]wFMCommunicate OK [17:32:20]SAM_PROTO_GetShiftState done [17:32:20]FM_GetShiftState done [17:32:20]req_shift_opened done [17:32:20]requested_item shift.open_date is exist - process it [17:32:20]req_shift_open_date [17:32:20]req_shift_open_date done [17:32:20]produce_requested_data done [17:32:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156382,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:32:20]process_action_free close_receipt [17:32:20]json_value_free [17:32:20]json_value_free done [17:32:20]process_json_proto returns [17:32:20]Send response to host [17:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156382,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:32:20]free response buf [17:32:20]execute_script done [17:32:20]execute_script returns [17:32:20]free content buf [17:32:20]Sock 9.Close socket [17:32:20]Sock 9.Thread stoped [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:33]accept exits with 8 [17:33:33]New connection [17:33:33]New thread 3066977636 created [17:33:33]Thread 3066834276 joined [17:33:33]Waiting for new connection... [17:33:33] Sock 8.Parse request [17:33:33]Sock 8.Check first char [17:33:33]Sock 8.First char is OK [17:33:33]request: POST /json_proto HTTP/1.0 [17:33:33]Method: POST [17:33:33]URL: /json_proto [17:33:33]Method is POST - this is cgi request [17:33:33]url: /json_proto [17:33:33]query_string will be loaded in cgi processing [17:33:33]execute_cgi json_proto POST (null) [17:33:33]execute_cgi path=json_proto method=POST [17:33:33]POST find Content-Length [17:33:33]Host: 172.17.63.3:8080 [17:33:33]Content-Length: 676 [17:33:33]Content-Type: application/json [17:33:33] [17:33:33]POST finish read [17:33:33]Found Content-Length = 676 [17:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:33]execute_script... [17:33: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)99198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:33]POST & json_proto [17:33:33]process_json_proto [17:33:33]json parsed OK: [17:33:33]protocol is kg_v1.0 [17:33:33]action value=close_receipt [17:33:33]process_action close_receipt [17:33:33]cmd_close_receipt [17:33:33]MH_GetDate [17:33:33]Write to MH i2c: F0 00 00 36 1D 42 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: F0 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: F0 09 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: F0 09 00 36 1D 00 EE 27 1D 67 50 D1 6C 64 D5 [17:33:33]GetLastDocTimeStamp 1729963938 [17:33:33]current date 1729964014 [17:33:33]FM_GetShiftState [17:33:33]SAM_PROTO_GetShiftState [17:33:33]wFMCommunicate request_size=4 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 13 01 00 [17:33:33]Write to MH i2c: E2 08 00 37 1D 80 13 01 00 00 00 00 00 D1 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 0E 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 0E 00 37 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 06 [17:33:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:33:33]wFMCommunicate OK [17:33:33]SAM_PROTO_GetShiftState done [17:33:33]FM_GetShiftState done [17:33:33]opened in 1729902702 [17:33:33]opened+sec_in_day 1729989102 [17:33:33]quantity*price = 50041 [17:33:33]sum+1 = 50042 [17:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 284 26.10.2024 17:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156383 ФПД: 191231419817107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173334&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156383&fm=191231419817107&tin=02508201610067®Number=0000000000091693&sum=50000 [17:33:34]StoreToDocumentArchive [17:33:34]shift 536 fd 156383 [17:33:34]save to /storage/0536/doc_00156383 [17:33:34]save last doc name /storage/0536/doc_00156383 to /storage/kkm_last_doc_name [17:33:34]save OK [17:33:34]Clear old archive folders... [17:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:34]tlvbuf is 016733D0 [17:33:34]SAM_PROTO_ClearQueue [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 09 00 00 [17:33:34]Write to MH i2c: E2 08 00 44 1D 80 09 00 00 00 00 00 00 D3 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 44 1D 00 90 00 D5 [17:33:34]RAPDU: 90 00 [17:33:34]wFMCommunicate OK [17:33:34]SAM_PROTO_ClearQueue done [17:33:34]KKMCreateOFDPacket [17:33:34]OFDProtocolAddRootSTLVToBuf [17:33:34]FM_MakeSignedData [17:33:34]FM_MakeSignedData [17:33:34]SAM_PROTO_SignData [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 0D 01 02 [17:33:34]Write to MH i2c: E2 08 00 45 1D 80 0D 01 02 00 00 00 00 DB [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 45 1D 00 90 00 D6 [17:33:34]RAPDU: 90 00 [17:33:34]wFMCommunicate OK [17:33:34]wFMCommunicate request_size=255 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 EE 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 62 02 00 35 04 06 00 AD [17:33:34]Write to MH i2c: E2 02 01 46 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 EE 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 62 02 00 35 04 06 00 AD 00 00 2F [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 03 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 03 00 46 1D 00 90 00 D7 [17:33:35]RAPDU: 90 00 [17:33:35]wFMCommunicate OK [17:33:35]wFMCommunicate request_size=10 [17:33:35]MH_SAM_APDU [17:33:35]CAPDU: 80 0D 02 02 05 EC 88 D9 1C 93 [17:33:35]Write to MH i2c: E2 0D 00 47 1D 80 0D 02 02 05 00 EC 88 D9 1C 93 00 00 E4 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 03 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 03 00 47 1D 00 90 00 D8 [17:33:35]RAPDU: 90 00 [17:33:35]wFMCommunicate OK [17:33:35]wFMCommunicate request_size=4 [17:33:35]MH_SAM_APDU [17:33:35]CAPDU: 80 0D 03 02 [17:33:35]Write to MH i2c: E2 08 00 48 1D 80 0D 03 02 00 00 00 00 E0 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 0B 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 0B 00 48 1D 00 8C F8 AE DB C5 EE 82 6E 90 00 91 [17:33:35]RAPDU: 8C F8 AE DB C5 EE 82 6E 90 00 [17:33:35]wFMCommunicate OK [17:33:35]SAM_PROTO_SignData done [17:33:35]FM_MakeSignedData done [17:33:35]CreateOFDProtocolMessage [17:33:35]wFMCommunicate request_size=4 [17:33:35]MH_SAM_APDU [17:33:35]CAPDU: 80 11 00 00 [17:33:35]Write to MH i2c: E2 08 00 49 1D 80 11 00 00 00 00 00 00 E0 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 17 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 17 00 49 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [17:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:33:35]wFMCommunicate OK [17:33:35]CreateOFDProtocolMessage done [17:33:35]OFDSenderStorePacket 156383 [17:33:35]StoreOFDPacket docnum=156383 [17:33:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EC 6C 07 01 11 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 EE 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 62 02 00 35 04 06 00 AD EC 88 D9 1C 93 8C F8 AE DB C5 EE 82 6E [17:33:35]CheckFolder [17:33:35]dirname=/storage/ofd_packets [17:33:35]CheckFolder done [17:33:35]ProducePacketName [17:33:35]name=ofd_packets/00156383 [17:33:35]NVStorageSaveData ofd_packets/00156383 [17:33:35]File name is /storage/ofd_packets/00156383 [17:33:35]Write 301 bytes [17:33:35]NVStorageSaveData done [17:33:35]OFDSenderStorePacket done [17:33:35]KKMCreateOFDPacket done [17:33:35]NVStorageSaveData kkm_last_timestamp [17:33:35]File name is /storage/kkm_last_timestamp [17:33:35]OFD Sender: Processing packet 156383 [packets to send 31, broken 30] [17:33:35]ProducePacketName [17:33:35]name=ofd_packets/00156383 [17:33:35]OFD Sender: To server: pG, [17:33:35]CommunicateWithHost lk.salyk.kg:30040 [17:33:35]ConnectInit lk.salyk.kg [17:33:35]Write 4 bytes [17:33:35]NVStorageSaveData done [17:33:35]ExternCall_PrintAddStr [17:33:35]wPrintStart [17:33:35]Write to MH i2c: 01 00 00 4A 1D 67 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 4A 1D 00 00 00 00 00 FF 0F 7C [17:33:35]RasterBufferAndPrint [17:33:35]line Счет N : (1)99198 [17:33:35]line ИНН: 02508201610067 [17:33:35]line Контрольно-Кассовый Чек [17:33:35]line ПРОДАЖА [17:33:35]line ТРК (МРК, ГНК) : 31 [17:33:35]line Товар: 2710124130 [17:33:35]line Аи-92-К-5 [17:33:35]line 7.480 * 66.90 [17:33:35]line = 500.41 [17:33:35]line НДС 12% НСП 1% [17:33:35]line > о реализуемом товаре [17:33:35]line ОКРУГЛЕНИЕ: -0.41 [17:33:35]line ИТОГО: 500.00 [17:33:35]line Внесено: 500.00 [17:33:35]line СДАЧА: 0.00 [17:33:35]line НСП 1% : 4.43 [17:33:35]line НДС 12% : 53.14 [17:33:35]line Наличными: 500.00 [17:33:35]line Безнал.: 0.00 [17:33:35]line Место: АЗС № 143 "Партнер Нефть" [17:33:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:33:35]line СНО: Общий режим [17:33:35]line Чек 284 26.10.2024 17:33 [17:33:35]line Смена: 536 ФФД: 1.0 [17:33:35]line ЗНМ: 0300000096 [17:33:35]line РНМ: 0000000000091693 [17:33:35]line Версия ККМ: 001 [17:33:35]line ФМ: 0000000000871792 [17:33:35]line ФД: 156383 [17:33:35]line ФПД: 191231419817107 [17:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173334&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156383&fm=191231419817107&tin=02508201610067®Number=0000000000091693&sum=50000 [17:33:35]Connected sock=11 [17: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 31 37 39 32 0F 01 00 00 EC 6C 07 01 11 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 EE 27 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 62 02 00 35 04 06 00 AD EC 88 D9 1C 93 8C F8 AE DB C5 EE 82 6E [17:33:35]written 0, free lines is 4095 [17:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6D A3 47 00 B4 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 62 02 00 F4 03 04 00 60 CD 1C 67 B6 04 01 00 00 45 AC 38 91 9A CB 2B 16 [17:33:35]CommunicateWithHost err = 0 [17:33:35]CheckOFDResponse [17:33:35]1017 (14) - 77093643461234 [17:33:35]1041 (16) - 0000000000871792 [17:33:35]1040 (4) - 156383 [17:33:35]1012 (4) - 26.10.2024 11:07 [17:33:35]1206 (1) - 0 [17:33:35]OFD Sender: Remove packet 156383 [17:33:35]ProducePacketName [17:33:35]name=ofd_packets/00156383 [17:33:35]NVStorageDeleteData [17:33:36]Write to MH i2c: 01 00 00 75 1D 92 [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: 01 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: 01 07 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 E5 0C 8A [17:33:36]RasterBufferAndPrint [17:33:36]line [17:33:36]line [17:33:36]line [17:33:36]line [17:33:36]line [17:33:36]written 0, free lines is 3307 [17:33:36]process_action close_receipt done [17:33:36]requested_data is exist [17:33:36]produce_requested_data [17:33:36]requested_item fm.sn is exist - process it [17:33:36]wFMCommunicate request_size=4 [17:33:36]MH_SAM_APDU [17:33:36]CAPDU: 80 11 00 00 [17:33:36]Write to MH i2c: E2 08 00 7C 1D 80 11 00 00 00 00 00 00 13 [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:36]Read from MH i2c: E2 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 17 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 17 00 7C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [17:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:33:36]wFMCommunicate OK [17:33:36]requested_item fd.num is exist - process it [17:33:36]SAM_PROTO_GetFieldsCounters [17:33:36]wFMCommunicate request_size=4 [17:33:36]MH_SAM_APDU [17:33:36]CAPDU: 80 13 00 00 [17:33:36]Write to MH i2c: E2 08 00 7D 1D 80 13 00 00 00 00 00 00 16 [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:36]Read from MH i2c: E2 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 62 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 62 00 7D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [17:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:36]wFMCommunicate OK [17:33:36]SAM_PROTO_GetFieldsCounters done [17:33:36]requested_item shift.num is exist - process it [17:33:36]requested_item shift.opened is exist - process it [17:33:36]req_shift_opened [17:33:36]FM_GetShiftState [17:33:36]SAM_PROTO_GetShiftState [17:33:36]wFMCommunicate request_size=4 [17:33:36]MH_SAM_APDU [17:33:36]CAPDU: 80 13 01 00 [17:33:36]Write to MH i2c: E2 08 00 7E 1D 80 13 01 00 00 00 00 00 18 [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]OFD Sender: No OFD packet to send [17:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:36]Read from MH i2c: E2 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 0E 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 0E 00 7E 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4D [17:33:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:33:36]wFMCommunicate OK [17:33:36]SAM_PROTO_GetShiftState done [17:33:36]FM_GetShiftState done [17:33:36]req_shift_opened done [17:33:36]requested_item shift.open_date is exist - process it [17:33:36]req_shift_open_date [17:33:36]req_shift_open_date done [17:33:36]produce_requested_data done [17:33:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156383,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:33:36]process_action_free close_receipt [17:33:36]json_value_free [17:33:36]json_value_free done [17:33:36]process_json_proto returns [17:33:36]Send response to host [17:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156383,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:33:36]free response buf [17:33:36]execute_script done [17:33:36]execute_script returns [17:33:36]free content buf [17:33:36]Sock 8.Close socket [17:33:36]Sock 8.Thread stoped [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:22]accept exits with 9 [17:34:22]New connection [17:34:22]New thread 3066834276 created [17:34:22]Thread 3066977636 joined [17:34:22]Waiting for new connection... [17:34:22] Sock 9.Parse request [17:34:22]Sock 9.Check first char [17:34:22]Sock 9.First char is OK [17:34:22]request: POST /json_proto HTTP/1.0 [17:34:22]Method: POST [17:34:22]URL: /json_proto [17:34:22]Method is POST - this is cgi request [17:34:22]url: /json_proto [17:34:22]query_string will be loaded in cgi processing [17:34:22]execute_cgi json_proto POST (null) [17:34:22]execute_cgi path=json_proto method=POST [17:34:22]POST find Content-Length [17:34:22]Host: 172.17.63.3:8080 [17:34:22]Content-Length: 681 [17:34:22]Content-Type: application/json [17:34:22] [17:34:22]POST finish read [17:34:22]Found Content-Length = 681 [17:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:22]execute_script... [17:34:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:22]POST & json_proto [17:34:22]process_json_proto [17:34:22]json parsed OK: [17:34:22]protocol is kg_v1.0 [17:34:22]action value=close_receipt [17:34:22]process_action close_receipt [17:34:22]cmd_close_receipt [17:34:22]MH_GetDate [17:34:22]Write to MH i2c: F0 00 00 7F 1D 8B [17:34:22]Write i2c OK [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: F0 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: F0 09 00 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: F0 09 00 7F 1D 00 1F 28 1D 67 50 D1 6C 64 50 [17:34:22]GetLastDocTimeStamp 1729964014 [17:34:22]current date 1729964063 [17:34:22]FM_GetShiftState [17:34:22]SAM_PROTO_GetShiftState [17:34:22]wFMCommunicate request_size=4 [17:34:22]MH_SAM_APDU [17:34:22]CAPDU: 80 13 01 00 [17:34:22]Write to MH i2c: E2 08 00 80 1D 80 13 01 00 00 00 00 00 1A [17:34:22]Write i2c OK [17:34:22]MH_I2C_Read... [17:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:22]Read from MH i2c: E2 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: E2 0E 00 [17:34:22]MH_I2C_Read... [17:34:22]Read from MH i2c: E2 0E 00 80 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4F [17:34:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:34:22]wFMCommunicate OK [17:34:22]SAM_PROTO_GetShiftState done [17:34:22]FM_GetShiftState done [17:34:22]opened in 1729902702 [17:34:22]opened+sec_in_day 1729989102 [17:34:22]quantity*price = 150056 [17:34:22]sum+1 = 150058 [17:34:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 285 26.10.2024 17:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156384 ФПД: 99391708877975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173423&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156384&fm=99391708877975&tin=02508201610067®Number=0000000000091693&sum=150000 [17:34:23]StoreToDocumentArchive [17:34:23]shift 536 fd 156384 [17:34:23]save to /storage/0536/doc_00156384 [17:34:23]save last doc name /storage/0536/doc_00156384 to /storage/kkm_last_doc_name [17:34:23]save OK [17:34:23]Clear old archive folders... [17:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:23]tlvbuf is 016C1940 [17:34:23]SAM_PROTO_ClearQueue [17:34:23]wFMCommunicate request_size=4 [17:34:23]MH_SAM_APDU [17:34:23]CAPDU: 80 09 00 00 [17:34:23]Write to MH i2c: E2 08 00 8D 1D 80 09 00 00 00 00 00 00 1C [17:34:23]Write i2c OK [17:34:23]MH_I2C_Read... [17:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:23]Read from MH i2c: E2 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 03 00 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 03 00 8D 1D 00 90 00 1E [17:34:23]RAPDU: 90 00 [17:34:23]wFMCommunicate OK [17:34:23]SAM_PROTO_ClearQueue done [17:34:23]KKMCreateOFDPacket [17:34:23]OFDProtocolAddRootSTLVToBuf [17:34:23]FM_MakeSignedData [17:34:23]FM_MakeSignedData [17:34:23]SAM_PROTO_SignData [17:34:23]wFMCommunicate request_size=4 [17:34:23]MH_SAM_APDU [17:34:23]CAPDU: 80 0D 01 02 [17:34:23]Write to MH i2c: E2 08 00 8E 1D 80 0D 01 02 00 00 00 00 24 [17:34:23]Write i2c OK [17:34:23]MH_I2C_Read... [17:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:23]Read from MH i2c: E2 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 03 00 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 03 00 8E 1D 00 90 00 1F [17:34:23]RAPDU: 90 00 [17:34:23]wFMCommunicate OK [17:34:23]wFMCommunicate request_size=255 [17:34:23]MH_SAM_APDU [17:34:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 1F 28 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 62 02 00 35 04 06 00 5A [17:34:23]Write to MH i2c: E2 02 01 8F 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 1F 28 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 62 02 00 35 04 06 00 5A 00 00 A2 [17:34:23]Write i2c OK [17:34:23]MH_I2C_Read... [17:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:23]Read from MH i2c: E2 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 03 00 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 03 00 8F 1D 00 90 00 20 [17:34:23]RAPDU: 90 00 [17:34:23]wFMCommunicate OK [17:34:23]wFMCommunicate request_size=10 [17:34:23]MH_SAM_APDU [17:34:23]CAPDU: 80 0D 02 02 05 65 6F 80 54 97 [17:34:23]Write to MH i2c: E2 0D 00 90 1D 80 0D 02 02 05 00 65 6F 80 54 97 00 00 70 [17:34:23]Write i2c OK [17:34:23]MH_I2C_Read... [17:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:23]Read from MH i2c: E2 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 03 00 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 03 00 90 1D 00 90 00 21 [17:34:23]RAPDU: 90 00 [17:34:23]wFMCommunicate OK [17:34:23]wFMCommunicate request_size=4 [17:34:23]MH_SAM_APDU [17:34:23]CAPDU: 80 0D 03 02 [17:34:23]Write to MH i2c: E2 08 00 91 1D 80 0D 03 02 00 00 00 00 29 [17:34:23]Write i2c OK [17:34:23]MH_I2C_Read... [17:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:23]Read from MH i2c: E2 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 0B 00 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 0B 00 91 1D 00 47 EC E7 49 54 6E C0 39 90 00 48 [17:34:23]RAPDU: 47 EC E7 49 54 6E C0 39 90 00 [17:34:23]wFMCommunicate OK [17:34:23]SAM_PROTO_SignData done [17:34:23]FM_MakeSignedData done [17:34:23]CreateOFDProtocolMessage [17:34:23]wFMCommunicate request_size=4 [17:34:23]MH_SAM_APDU [17:34:23]CAPDU: 80 11 00 00 [17:34:23]Write to MH i2c: E2 08 00 92 1D 80 11 00 00 00 00 00 00 29 [17:34:23]Write i2c OK [17:34:23]MH_I2C_Read... [17:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:23]Read from MH i2c: E2 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 17 00 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: E2 17 00 92 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [17:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:34:23]wFMCommunicate OK [17:34:23]CreateOFDProtocolMessage done [17:34:23]OFDSenderStorePacket 156384 [17:34:23]StoreOFDPacket docnum=156384 [17:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB 72 07 01 B4 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 1F 28 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 62 02 00 35 04 06 00 5A 65 6F 80 54 97 47 EC E7 49 54 6E C0 39 [17:34:23]CheckFolder [17:34:23]dirname=/storage/ofd_packets [17:34:23]CheckFolder done [17:34:23]ProducePacketName [17:34:23]name=ofd_packets/00156384 [17:34:23]NVStorageSaveData ofd_packets/00156384 [17:34:23]File name is /storage/ofd_packets/00156384 [17:34:23]Write 301 bytes [17:34:23]NVStorageSaveData done [17:34:23]OFDSenderStorePacket done [17:34:23]KKMCreateOFDPacket done [17:34:23]NVStorageSaveData kkm_last_timestamp [17:34:23]File name is /storage/kkm_last_timestamp [17:34:23]Write 4 bytes [17:34:23]NVStorageSaveData done [17:34:23]ExternCall_PrintAddStr [17:34:23]wPrintStart [17:34:23]Write to MH i2c: 01 00 00 93 1D B0 [17:34:23]Write i2c OK [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: 01 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: 01 07 00 [17:34:23]MH_I2C_Read... [17:34:23]Read from MH i2c: 01 07 00 93 1D 00 00 00 00 00 FF 0F C5 [17:34:23]RasterBufferAndPrint [17:34:23]line Счет N : (1)99199 [17:34:23]line ИНН: 02508201610067 [17:34:23]line Контрольно-Кассовый Чек [17:34:23]line ПРОДАЖА [17:34:23]line ТРК (МРК, ГНК) : 11 [17:34:23]line Товар: 2710124130 [17:34:23]line Аи-92-К-5 [17:34:23]line 22.430 * 66.90 [17:34:23]line = 1500.57 [17:34:23]line НДС 12% НСП 1% [17:34:23]line > о реализуемом товаре [17:34:23]line ОКРУГЛЕНИЕ: -0.57 [17:34:23]line ИТОГО: 1500.00 [17:34:23]line Внесено: 1500.00 [17:34:23]line СДАЧА: 0.00 [17:34:23]line НСП 1% : 13.28 [17:34:23]line НДС 12% : 159.35 [17:34:23]line Наличными: 1500.00 [17:34:23]line Безнал.: 0.00 [17:34:23]line Место: АЗС № 143 "Партнер Нефть" [17:34:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:34:23]line СНО: Общий режим [17:34:23]line Чек 285 26.10.2024 17:34 [17:34:23]line Смена: 536 ФФД: 1.0 [17:34:23]line ЗНМ: 0300000096 [17:34:23]line РНМ: 0000000000091693 [17:34:23]line Версия ККМ: 001 [17:34:23]line ФМ: 0000000000871792 [17:34:23]line ФД: 156384 [17:34:23]line ФПД: 99391708877975 [17:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173423&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156384&fm=99391708877975&tin=02508201610067®Number=0000000000091693&sum=150000 [17:34:24]OFD Sender: Processing packet 156384 [packets to send 31, broken 30] [17:34:24]ProducePacketName [17:34:24]name=ofd_packets/00156384 [17:34:24]OFD Sender: To server: pG, [17:34:24]CommunicateWithHost lk.salyk.kg:30040 [17:34:24]ConnectInit lk.salyk.kg [17:34:24]written 0, free lines is 4095 [17:34:24]Connected sock=10 [17:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB 72 07 01 B4 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 1F 28 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 62 02 00 35 04 06 00 5A 65 6F 80 54 97 47 EC E7 49 54 6E C0 39 [17:34:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DF AA 47 00 66 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 31 37 39 32 10 04 04 00 E0 62 02 00 F4 03 04 00 91 CD 1C 67 B6 04 01 00 00 4F 80 3F F2 96 31 00 5D [17:34:24]CommunicateWithHost err = 0 [17:34:24]CheckOFDResponse [17:34:24]1017 (14) - 77093643461234 [17:34:24]1041 (16) - 0000000000871792 [17:34:24]1040 (4) - 156384 [17:34:24]1012 (4) - 26.10.2024 11:08 [17:34:24]1206 (1) - 0 [17:34:24]OFD Sender: Remove packet 156384 [17:34:24]ProducePacketName [17:34:24]name=ofd_packets/00156384 [17:34:24]NVStorageDeleteData [17:34:24]Write to MH i2c: 01 00 00 BE 1D DB [17:34:24]Write i2c OK [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: 01 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: 01 07 00 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: 01 07 00 BE 1D 00 00 00 00 00 EE 0C DC [17:34:24]RasterBufferAndPrint [17:34:24]line [17:34:24]line [17:34:24]line [17:34:24]line [17:34:24]line [17:34:24]written 0, free lines is 3316 [17:34:24]process_action close_receipt done [17:34:24]requested_data is exist [17:34:24]produce_requested_data [17:34:24]requested_item fm.sn is exist - process it [17:34:24]wFMCommunicate request_size=4 [17:34:24]MH_SAM_APDU [17:34:24]CAPDU: 80 11 00 00 [17:34:24]Write to MH i2c: E2 08 00 C5 1D 80 11 00 00 00 00 00 00 5C [17:34:24]Write i2c OK [17:34:24]MH_I2C_Read... [17:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:24]Read from MH i2c: E2 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: E2 17 00 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: E2 17 00 C5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [17:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:34:24]wFMCommunicate OK [17:34:24]requested_item fd.num is exist - process it [17:34:24]SAM_PROTO_GetFieldsCounters [17:34:24]wFMCommunicate request_size=4 [17:34:24]MH_SAM_APDU [17:34:24]CAPDU: 80 13 00 00 [17:34:24]Write to MH i2c: E2 08 00 C6 1D 80 13 00 00 00 00 00 00 5F [17:34:24]Write i2c OK [17:34:24]MH_I2C_Read... [17:34:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:24]Read from MH i2c: E2 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: E2 62 00 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: E2 62 00 C6 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [17:34: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:24]wFMCommunicate OK [17:34:24]SAM_PROTO_GetFieldsCounters done [17:34:24]requested_item shift.num is exist - process it [17:34:24]requested_item shift.opened is exist - process it [17:34:24]req_shift_opened [17:34:24]FM_GetShiftState [17:34:24]SAM_PROTO_GetShiftState [17:34:24]wFMCommunicate request_size=4 [17:34:24]MH_SAM_APDU [17:34:24]CAPDU: 80 13 01 00 [17:34:24]Write to MH i2c: E2 08 00 C7 1D 80 13 01 00 00 00 00 00 61 [17:34:24]Write i2c OK [17:34:24]MH_I2C_Read... [17:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:24]Read from MH i2c: E2 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: E2 0E 00 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: E2 0E 00 C7 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 96 [17:34:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:34:24]wFMCommunicate OK [17:34:24]SAM_PROTO_GetShiftState done [17:34:24]FM_GetShiftState done [17:34:24]req_shift_opened done [17:34:24]requested_item shift.open_date is exist - process it [17:34:24]req_shift_open_date [17:34:24]req_shift_open_date done [17:34:24]produce_requested_data done [17:34:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156384,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:34:24]process_action_free close_receipt [17:34:24]json_value_free [17:34:24]json_value_free done [17:34:24]process_json_proto returns [17:34:24]Send response to host [17:34:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156384,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:34:24]free response buf [17:34:24]execute_script done [17:34:24]execute_script returns [17:34:24]free content buf [17:34:24]Sock 9.Close socket [17:34:24]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:48]accept exits with 8 [17:46:48]New connection [17:46:48]New thread 3066977636 created [17:46:48]Thread 3066834276 joined [17:46:48]Waiting for new connection... [17:46:48] Sock 8.Parse request [17:46:48]Sock 8.Check first char [17:46:48]Sock 8.First char is OK [17:46:48]request: POST /json_proto HTTP/1.0 [17:46:48]Method: POST [17:46:48]URL: /json_proto [17:46:48]Method is POST - this is cgi request [17:46:48]url: /json_proto [17:46:48]query_string will be loaded in cgi processing [17:46:48]execute_cgi json_proto POST (null) [17:46:48]execute_cgi path=json_proto method=POST [17:46:48]POST find Content-Length [17:46:48]Host: 172.17.63.3:8080 [17:46:48]Content-Length: 681 [17:46:48]Content-Type: application/json [17:46:48] [17:46:48]POST finish read [17:46:48]Found Content-Length = 681 [17:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:48]execute_script... [17:46:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:48]POST & json_proto [17:46:48]process_json_proto [17:46:48]json parsed OK: [17:46:48]protocol is kg_v1.0 [17:46:48]action value=close_receipt [17:46:48]process_action close_receipt [17:46:48]cmd_close_receipt [17:46:48]MH_GetDate [17:46:48]Write to MH i2c: F0 00 00 C8 1D D4 [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 09 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 09 00 C8 1D 00 09 2B 1D 67 50 D1 6C 64 86 [17:46:48]GetLastDocTimeStamp 1729964063 [17:46:48]current date 1729964809 [17:46:48]FM_GetShiftState [17:46:48]SAM_PROTO_GetShiftState [17:46:48]wFMCommunicate request_size=4 [17:46:48]MH_SAM_APDU [17:46:48]CAPDU: 80 13 01 00 [17:46:48]Write to MH i2c: E2 08 00 C9 1D 80 13 01 00 00 00 00 00 63 [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:48]Read from MH i2c: E2 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 0E 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 0E 00 C9 1D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 98 [17:46:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:46:48]wFMCommunicate OK [17:46:48]SAM_PROTO_GetShiftState done [17:46:48]FM_GetShiftState done [17:46:48]opened in 1729902702 [17:46:48]opened+sec_in_day 1729989102 [17:46:48]quantity*price = 100015 [17:46:48]sum+1 = 100017 [17:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 286 26.10.2024 17:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156385 ФПД: 65578769695689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174649&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156385&fm=65578769695689&tin=02508201610067®Number=0000000000091693&sum=100000 [17:46:49]StoreToDocumentArchive [17:46:49]shift 536 fd 156385 [17:46:49]save to /storage/0536/doc_00156385 [17:46:49]save last doc name /storage/0536/doc_00156385 to /storage/kkm_last_doc_name [17:46:49]save OK [17:46:49]Clear old archive folders... [17:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:49]tlvbuf is 01672B70 [17:46:49]SAM_PROTO_ClearQueue [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 09 00 00 [17:46:49]Write to MH i2c: E2 08 00 D6 1D 80 09 00 00 00 00 00 00 65 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 D6 1D 00 90 00 67 [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]SAM_PROTO_ClearQueue done [17:46:49]KKMCreateOFDPacket [17:46:49]OFDProtocolAddRootSTLVToBuf [17:46:49]FM_MakeSignedData [17:46:49]FM_MakeSignedData [17:46:49]SAM_PROTO_SignData [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 01 02 [17:46:49]Write to MH i2c: E2 08 00 D7 1D 80 0D 01 02 00 00 00 00 6D [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 D7 1D 00 90 00 68 [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=255 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 09 2B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 62 02 00 35 04 06 00 3B [17:46:49]Write to MH i2c: E2 02 01 D8 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 09 2B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 62 02 00 35 04 06 00 3B 00 00 6C [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 D8 1D 00 90 00 69 [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=10 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 02 02 05 A4 BF 45 C3 C9 [17:46:49]Write to MH i2c: E2 0D 00 D9 1D 80 0D 02 02 05 00 A4 BF 45 C3 C9 00 00 AE [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 D9 1D 00 90 00 6A [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 03 02 [17:46:49]Write to MH i2c: E2 08 00 DA 1D 80 0D 03 02 00 00 00 00 72 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 0B 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 0B 00 DA 1D 00 CA 41 F0 75 18 D5 47 5D 90 00 74 [17:46:49]RAPDU: CA 41 F0 75 18 D5 47 5D 90 00 [17:46:49]wFMCommunicate OK [17:46:49]SAM_PROTO_SignData done [17:46:49]FM_MakeSignedData done [17:46:49]CreateOFDProtocolMessage [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 11 00 00 [17:46:49]Write to MH i2c: E2 08 00 DB 1D 80 11 00 00 00 00 00 00 72 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 17 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 17 00 DB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C7 [17:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:46:49]wFMCommunicate OK [17:46:49]CreateOFDProtocolMessage done [17:46:49]OFDSenderStorePacket 156385 [17:46:49]StoreOFDPacket docnum=156385 [17:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 62 D1 07 01 56 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 09 2B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 62 02 00 35 04 06 00 3B A4 BF 45 C3 C9 CA 41 F0 75 18 D5 47 5D [17:46:49]CheckFolder [17:46:49]dirname=/storage/ofd_packets [17:46:49]CheckFolder done [17:46:49]ProducePacketName [17:46:49]name=ofd_packets/00156385 [17:46:49]NVStorageSaveData ofd_packets/00156385 [17:46:49]File name is /storage/ofd_packets/00156385 [17:46:49]Write 301 bytes [17:46:49]NVStorageSaveData done [17:46:49]OFDSenderStorePacket done [17:46:49]KKMCreateOFDPacket done [17:46:49]NVStorageSaveData kkm_last_timestamp [17:46:49]File name is /storage/kkm_last_timestamp [17:46:49]Write 4 bytes [17:46:49]NVStorageSaveData done [17:46:49]ExternCall_PrintAddStr [17:46:49]wPrintStart [17:46:49]Write to MH i2c: 01 00 00 DC 1D F9 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: 01 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: 01 07 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: 01 07 00 DC 1D 00 00 00 00 00 FF 0F 0E [17:46:49]RasterBufferAndPrint [17:46:49]line Счет N : (1)99200 [17:46:49]line ИНН: 02508201610067 [17:46:49]line Контрольно-Кассовый Чек [17:46:49]line ПРОДАЖА [17:46:49]line ТРК (МРК, ГНК) : 11 [17:46:49]line Товар: 2710124130 [17:46:49]line Аи-92-К-5 [17:46:49]line 14.950 * 66.90 [17:46:49]line = 1000.16 [17:46:49]line НДС 12% НСП 1% [17:46:49]line > о реализуемом товаре [17:46:49]line ОКРУГЛЕНИЕ: -0.16 [17:46:50]line ИТОГО: 1000.00 [17:46:50]line Внесено: 1000.00 [17:46:50]line СДАЧА: 0.00 [17:46:50]line НСП 1% : 8.85 [17:46:50]line НДС 12% : 106.21 [17:46:50]line Наличными: 1000.00 [17:46:50]line Безнал.: 0.00 [17:46:50]line Место: АЗС № 143 "Партнер Нефть" [17:46:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:46:50]line СНО: Общий режим [17:46:50]line Чек 286 26.10.2024 17:46 [17:46:50]line Смена: 536 ФФД: 1.0 [17:46:50]line ЗНМ: 0300000096 [17:46:50]line РНМ: 0000000000091693 [17:46:50]line Версия ККМ: 001 [17:46:50]line ФМ: 0000000000871792 [17:46:50]line ФД: 156385 [17:46:50]line ФПД: 65578769695689 [17:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174649&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156385&fm=65578769695689&tin=02508201610067®Number=0000000000091693&sum=100000 [17:46:50]OFD Sender: Processing packet 156385 [packets to send 31, broken 30] [17:46:50]ProducePacketName [17:46:50]name=ofd_packets/00156385 [17:46:50]OFD Sender: To server: pG, [17:46:50]CommunicateWithHost lk.salyk.kg:30040 [17:46:50]ConnectInit lk.salyk.kg [17:46:50]written 0, free lines is 4095 [17:46:50]Connected sock=10 [17:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 62 D1 07 01 56 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 09 2B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 62 02 00 35 04 06 00 3B A4 BF 45 C3 C9 CA 41 F0 75 18 D5 47 5D [17:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D5 63 47 00 6D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 62 02 00 F4 03 04 00 7B D0 1C 67 B6 04 01 00 00 AB 80 50 FB 29 D7 44 FE [17:46:50]CommunicateWithHost err = 0 [17:46:50]CheckOFDResponse [17:46:50]1017 (14) - 77093643461234 [17:46:50]1041 (16) - 0000000000871792 [17:46:50]1040 (4) - 156385 [17:46:50]1012 (4) - 26.10.2024 11:20 [17:46:50]1206 (1) - 0 [17:46:50]OFD Sender: Remove packet 156385 [17:46:50]ProducePacketName [17:46:50]name=ofd_packets/00156385 [17:46:50]NVStorageDeleteData [17:46:50]Write to MH i2c: 01 00 00 07 1E 25 [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 07 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 07 00 07 1E 00 00 00 00 00 E5 0C 1D [17:46:50]RasterBufferAndPrint [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]written 0, free lines is 3307 [17:46:50]process_action close_receipt done [17:46:50]requested_data is exist [17:46:50]produce_requested_data [17:46:50]requested_item fm.sn is exist - process it [17:46:50]wFMCommunicate request_size=4 [17:46:50]MH_SAM_APDU [17:46:50]CAPDU: 80 11 00 00 [17:46:50]Write to MH i2c: E2 08 00 0E 1E 80 11 00 00 00 00 00 00 A6 [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:50]Read from MH i2c: E2 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: E2 17 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: E2 17 00 0E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [17:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:46:50]wFMCommunicate OK [17:46:50]requested_item fd.num is exist - process it [17:46:50]SAM_PROTO_GetFieldsCounters [17:46:50]wFMCommunicate request_size=4 [17:46:50]MH_SAM_APDU [17:46:50]CAPDU: 80 13 00 00 [17:46:50]Write to MH i2c: E2 08 00 0F 1E 80 13 00 00 00 00 00 00 A9 [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:50]Read from MH i2c: E2 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: E2 62 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: E2 62 00 0F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [17:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:51]wFMCommunicate OK [17:46:51]SAM_PROTO_GetFieldsCounters done [17:46:51]requested_item shift.num is exist - process it [17:46:51]requested_item shift.opened is exist - process it [17:46:51]req_shift_opened [17:46:51]FM_GetShiftState [17:46:51]SAM_PROTO_GetShiftState [17:46:51]wFMCommunicate request_size=4 [17:46:51]MH_SAM_APDU [17:46:51]CAPDU: 80 13 01 00 [17:46:51]Write to MH i2c: E2 08 00 10 1E 80 13 01 00 00 00 00 00 AB [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:51]Read from MH i2c: E2 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 0E 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 0E 00 10 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E0 [17:46:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:46:51]wFMCommunicate OK [17:46:51]SAM_PROTO_GetShiftState done [17:46:51]FM_GetShiftState done [17:46:51]req_shift_opened done [17:46:51]requested_item shift.open_date is exist - process it [17:46:51]req_shift_open_date [17:46:51]req_shift_open_date done [17:46:51]produce_requested_data done [17:46:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156385,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:46:51]process_action_free close_receipt [17:46:51]json_value_free [17:46:51]json_value_free done [17:46:51]process_json_proto returns [17:46:51]Send response to host [17:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156385,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:46:51]free response buf [17:46:51]execute_script done [17:46:51]execute_script returns [17:46:51]free content buf [17:46:51]Sock 8.Close socket [17:46:51]Sock 8.Thread stoped [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:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:19]accept exits with 9 [17:54:19]New connection [17:54:19]New thread 3066834276 created [17:54:19]Thread 3066977636 joined [17:54:19]Waiting for new connection... [17:54:19] Sock 9.Parse request [17:54:19]Sock 9.Check first char [17:54:19]Sock 9.First char is OK [17:54:19]request: POST /json_proto HTTP/1.0 [17:54:19]Method: POST [17:54:19]URL: /json_proto [17:54:19]Method is POST - this is cgi request [17:54:19]url: /json_proto [17:54:19]query_string will be loaded in cgi processing [17:54:19]execute_cgi json_proto POST (null) [17:54:19]execute_cgi path=json_proto method=POST [17:54:19]POST find Content-Length [17:54:19]Host: 172.17.63.3:8080 [17:54:19]Content-Length: 676 [17:54:19]Content-Type: application/json [17:54:19] [17:54:19]POST finish read [17:54:19]Found Content-Length = 676 [17:54:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:19]execute_script... [17:54:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:19]POST & json_proto [17:54:19]process_json_proto [17:54:19]json parsed OK: [17:54:19]protocol is kg_v1.0 [17:54:19]action value=close_receipt [17:54:19]process_action close_receipt [17:54:19]cmd_close_receipt [17:54:19]MH_GetDate [17:54:19]Write to MH i2c: F0 00 00 11 1E 1E [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: F0 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: F0 09 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: F0 09 00 11 1E 00 CC 2C 1D 67 50 D1 6C 64 94 [17:54:19]GetLastDocTimeStamp 1729964809 [17:54:19]current date 1729965260 [17:54:19]FM_GetShiftState [17:54:19]SAM_PROTO_GetShiftState [17:54:19]wFMCommunicate request_size=4 [17:54:19]MH_SAM_APDU [17:54:19]CAPDU: 80 13 01 00 [17:54:19]Write to MH i2c: E2 08 00 12 1E 80 13 01 00 00 00 00 00 AD [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:19]Read from MH i2c: E2 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 0E 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 0E 00 12 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E2 [17:54:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:54:19]wFMCommunicate OK [17:54:19]SAM_PROTO_GetShiftState done [17:54:19]FM_GetShiftState done [17:54:19]opened in 1729902702 [17:54:19]opened+sec_in_day 1729989102 [17:54:19]quantity*price = 20003 [17:54:19]sum+1 = 20004 [17:54:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 287 26.10.2024 17:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156386 ФПД: 127739294042895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175420&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156386&fm=127739294042895&tin=02508201610067®Number=0000000000091693&sum=20000 [17:54:20]StoreToDocumentArchive [17:54:20]shift 536 fd 156386 [17:54:20]save to /storage/0536/doc_00156386 [17:54:20]save last doc name /storage/0536/doc_00156386 to /storage/kkm_last_doc_name [17:54:20]save OK [17:54:20]Clear old archive folders... [17:54:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:20]tlvbuf is 01672B60 [17:54:20]SAM_PROTO_ClearQueue [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 09 00 00 [17:54:20]Write to MH i2c: E2 08 00 1F 1E 80 09 00 00 00 00 00 00 AF [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_ClearQueue done [17:54:20]KKMCreateOFDPacket [17:54:20]OFDProtocolAddRootSTLVToBuf [17:54:20]FM_MakeSignedData [17:54:20]FM_MakeSignedData [17:54:20]SAM_PROTO_SignData [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 01 02 [17:54:20]Write to MH i2c: E2 08 00 20 1E 80 0D 01 02 00 00 00 00 B7 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 20 1E 00 90 00 B2 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]wFMCommunicate request_size=255 [17:54:20]MH_SAM_APDU [17:54: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 CC 2C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 62 02 00 35 04 06 00 74 [17:54:20]Write to MH i2c: E2 02 01 21 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 CC 2C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 62 02 00 35 04 06 00 74 00 00 7D [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 21 1E 00 90 00 B3 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]wFMCommunicate request_size=10 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 02 02 05 2D 9F 3E CB 0F [17:54:20]Write to MH i2c: E2 0D 00 22 1E 80 0D 02 02 05 00 2D 9F 3E CB 0F 00 00 A8 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 22 1E 00 90 00 B4 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 03 02 [17:54:20]Write to MH i2c: E2 08 00 23 1E 80 0D 03 02 00 00 00 00 BC [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0B 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0B 00 23 1E 00 F8 5F D4 2F 10 13 E2 E1 90 00 FD [17:54:20]RAPDU: F8 5F D4 2F 10 13 E2 E1 90 00 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_SignData done [17:54:20]FM_MakeSignedData done [17:54:20]CreateOFDProtocolMessage [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 11 00 00 [17:54:20]Write to MH i2c: E2 08 00 24 1E 80 11 00 00 00 00 00 00 BC [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:21]Read from MH i2c: E2 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: E2 17 00 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: E2 17 00 24 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 11 [17:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:54:21]wFMCommunicate OK [17:54:21]CreateOFDProtocolMessage done [17:54:21]OFDSenderStorePacket 156386 [17:54:21]StoreOFDPacket docnum=156386 [17:54:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 06 07 01 2C 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 CC 2C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 62 02 00 35 04 06 00 74 2D 9F 3E CB 0F F8 5F D4 2F 10 13 E2 E1 [17:54:21]CheckFolder [17:54:21]dirname=/storage/ofd_packets [17:54:21]CheckFolder done [17:54:21]ProducePacketName [17:54:21]name=ofd_packets/00156386 [17:54:21]NVStorageSaveData ofd_packets/00156386 [17:54:21]File name is /storage/ofd_packets/00156386 [17:54:21]Write 301 bytes [17:54:21]NVStorageSaveData done [17:54:21]OFDSenderStorePacket done [17:54:21]KKMCreateOFDPacket done [17:54:21]NVStorageSaveData kkm_last_timestamp [17:54:21]File name is /storage/kkm_last_timestamp [17:54:21]Write 4 bytes [17:54:21]NVStorageSaveData done [17:54:21]ExternCall_PrintAddStr [17:54:21]wPrintStart [17:54:21]Write to MH i2c: 01 00 00 25 1E 43 [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 07 00 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 07 00 25 1E 00 00 00 00 00 FF 0F 58 [17:54:21]RasterBufferAndPrint [17:54:21]line Счет N : (1)99201 [17:54:21]line ИНН: 02508201610067 [17:54:21]line Контрольно-Кассовый Чек [17:54:21]line ПРОДАЖА [17:54:21]line ТРК (МРК, ГНК) : 11 [17:54:21]line Товар: 2710124130 [17:54:21]line Аи-92-К-5 [17:54:21]line 2.990 * 66.90 [17:54:21]line = 200.03 [17:54:21]line НДС 12% НСП 1% [17:54:21]line > о реализуемом товаре [17:54:21]line ОКРУГЛЕНИЕ: -0.03 [17:54:21]line ИТОГО: 200.00 [17:54:21]line Внесено: 200.00 [17:54:21]line СДАЧА: 0.00 [17:54:21]line НСП 1% : 1.77 [17:54:21]line НДС 12% : 21.24 [17:54:21]line Наличными: 200.00 [17:54:21]line Безнал.: 0.00 [17:54:21]line Место: АЗС № 143 "Партнер Нефть" [17:54:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:54:21]line СНО: Общий режим [17:54:21]line Чек 287 26.10.2024 17:54 [17:54:21]line Смена: 536 ФФД: 1.0 [17:54:21]line ЗНМ: 0300000096 [17:54:21]line РНМ: 0000000000091693 [17:54:21]line Версия ККМ: 001 [17:54:21]line ФМ: 0000000000871792 [17:54:21]line ФД: 156386 [17:54:21]line ФПД: 127739294042895 [17:54:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175420&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156386&fm=127739294042895&tin=02508201610067®Number=0000000000091693&sum=20000 [17:54:21]OFD Sender: Processing packet 156386 [packets to send 31, broken 30] [17:54:21]ProducePacketName [17:54:21]name=ofd_packets/00156386 [17:54:21]OFD Sender: To server: pG, [17:54:21]CommunicateWithHost lk.salyk.kg:30040 [17:54:21]ConnectInit lk.salyk.kg [17:54:21]written 0, free lines is 4095 [17:54:21]Connected sock=10 [17:54:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 06 07 01 2C 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 CC 2C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 62 02 00 35 04 06 00 74 2D 9F 3E CB 0F F8 5F D4 2F 10 13 E2 E1 [17:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DB EA 47 00 79 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 62 02 00 F4 03 04 00 3E D2 1C 67 B6 04 01 00 00 F0 D8 65 72 D0 11 62 8B [17:54:21]CommunicateWithHost err = 0 [17:54:21]CheckOFDResponse [17:54:21]1017 (14) - 77093643461234 [17:54:21]1041 (16) - 0000000000871792 [17:54:21]1040 (4) - 156386 [17:54:21]1012 (4) - 26.10.2024 11:27 [17:54:21]1206 (1) - 0 [17:54:21]OFD Sender: Remove packet 156386 [17:54:21]ProducePacketName [17:54:21]name=ofd_packets/00156386 [17:54:21]NVStorageDeleteData [17:54:21]Write to MH i2c: 01 00 00 50 1E 6E [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 07 00 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 E4 0C 65 [17:54:21]RasterBufferAndPrint [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]written 0, free lines is 3306 [17:54:21]process_action close_receipt done [17:54:21]requested_data is exist [17:54:21]produce_requested_data [17:54:21]requested_item fm.sn is exist - process it [17:54:21]wFMCommunicate request_size=4 [17:54:21]MH_SAM_APDU [17:54:21]CAPDU: 80 11 00 00 [17:54:21]Write to MH i2c: E2 08 00 57 1E 80 11 00 00 00 00 00 00 EF [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:21]Read from MH i2c: E2 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: E2 17 00 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: E2 17 00 57 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [17:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:54:21]wFMCommunicate OK [17:54:21]requested_item fd.num is exist - process it [17:54:21]SAM_PROTO_GetFieldsCounters [17:54:21]wFMCommunicate request_size=4 [17:54:21]MH_SAM_APDU [17:54:21]CAPDU: 80 13 00 00 [17:54:21]Write to MH i2c: E2 08 00 58 1E 80 13 00 00 00 00 00 00 F2 [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:22]Read from MH i2c: E2 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 62 00 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 62 00 58 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [17:54: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:22]wFMCommunicate OK [17:54:22]SAM_PROTO_GetFieldsCounters done [17:54:22]requested_item shift.num is exist - process it [17:54:22]requested_item shift.opened is exist - process it [17:54:22]req_shift_opened [17:54:22]FM_GetShiftState [17:54:22]SAM_PROTO_GetShiftState [17:54:22]wFMCommunicate request_size=4 [17:54:22]MH_SAM_APDU [17:54:22]CAPDU: 80 13 01 00 [17:54:22]Write to MH i2c: E2 08 00 59 1E 80 13 01 00 00 00 00 00 F4 [17:54:22]Write i2c OK [17:54:22]MH_I2C_Read... [17:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:22]Read from MH i2c: E2 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 0E 00 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 0E 00 59 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 29 [17:54:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:54:22]wFMCommunicate OK [17:54:22]SAM_PROTO_GetShiftState done [17:54:22]FM_GetShiftState done [17:54:22]req_shift_opened done [17:54:22]requested_item shift.open_date is exist - process it [17:54:22]req_shift_open_date [17:54:22]req_shift_open_date done [17:54:22]produce_requested_data done [17:54:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156386,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:54:22]process_action_free close_receipt [17:54:22]json_value_free [17:54:22]json_value_free done [17:54:22]process_json_proto returns [17:54:22]Send response to host [17:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156386,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:54:22]free response buf [17:54:22]execute_script done [17:54:22]execute_script returns [17:54:22]free content buf [17:54:22]Sock 9.Close socket [17:54:22]Sock 9.Thread stoped [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:20]accept exits with 8 [17:56:20]New connection [17:56:20]New thread 3066977636 created [17:56:20]Thread 3066834276 joined [17:56:20]Waiting for new connection... [17:56:20] Sock 8.Parse request [17:56:20]Sock 8.Check first char [17:56:20]Sock 8.First char is OK [17:56:20]request: POST /json_proto HTTP/1.0 [17:56:20]Method: POST [17:56:20]URL: /json_proto [17:56:20]Method is POST - this is cgi request [17:56:20]url: /json_proto [17:56:20]query_string will be loaded in cgi processing [17:56:20]execute_cgi json_proto POST (null) [17:56:20]execute_cgi path=json_proto method=POST [17:56:20]POST find Content-Length [17:56:20]Host: 172.17.63.3:8080 [17:56:20]Content-Length: 676 [17:56:20]Content-Type: application/json [17:56:20] [17:56:20]POST finish read [17:56:20]Found Content-Length = 676 [17:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:20]execute_script... [17:56:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:20]POST & json_proto [17:56:20]process_json_proto [17:56:20]json parsed OK: [17:56:20]protocol is kg_v1.0 [17:56:20]action value=close_receipt [17:56:20]process_action close_receipt [17:56:20]cmd_close_receipt [17:56:20]MH_GetDate [17:56:20]Write to MH i2c: F0 00 00 5A 1E 67 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: F0 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: F0 09 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: F0 09 00 5A 1E 00 45 2D 1D 67 50 D1 6C 64 57 [17:56:20]GetLastDocTimeStamp 1729965260 [17:56:20]current date 1729965381 [17:56:20]FM_GetShiftState [17:56:20]SAM_PROTO_GetShiftState [17:56:20]wFMCommunicate request_size=4 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 13 01 00 [17:56:20]Write to MH i2c: E2 08 00 5B 1E 80 13 01 00 00 00 00 00 F6 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 0E 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 0E 00 5B 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2B [17:56:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:56:20]wFMCommunicate OK [17:56:20]SAM_PROTO_GetShiftState done [17:56:20]FM_GetShiftState done [17:56:20]opened in 1729902702 [17:56:20]opened+sec_in_day 1729989102 [17:56:20]quantity*price = 30038 [17:56:20]sum+1 = 30039 [17:56:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 288 26.10.2024 17:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156387 ФПД: 33977723613496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175621&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156387&fm=33977723613496&tin=02508201610067®Number=0000000000091693&sum=30000 [17:56:21]StoreToDocumentArchive [17:56:21]shift 536 fd 156387 [17:56:21]save to /storage/0536/doc_00156387 [17:56:21]save last doc name /storage/0536/doc_00156387 to /storage/kkm_last_doc_name [17:56:21]save OK [17:56:21]Clear old archive folders... [17:56:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:21]tlvbuf is 01672B70 [17:56:21]SAM_PROTO_ClearQueue [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 09 00 00 [17:56:21]Write to MH i2c: E2 08 00 68 1E 80 09 00 00 00 00 00 00 F8 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 03 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [17:56:21]RAPDU: 90 00 [17:56:21]wFMCommunicate OK [17:56:21]SAM_PROTO_ClearQueue done [17:56:21]KKMCreateOFDPacket [17:56:21]OFDProtocolAddRootSTLVToBuf [17:56:21]FM_MakeSignedData [17:56:21]FM_MakeSignedData [17:56:21]SAM_PROTO_SignData [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 0D 01 02 [17:56:21]Write to MH i2c: E2 08 00 69 1E 80 0D 01 02 00 00 00 00 00 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 03 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [17:56:21]RAPDU: 90 00 [17:56:21]wFMCommunicate OK [17:56:21]wFMCommunicate request_size=255 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 45 2D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 62 02 00 35 04 06 00 1E [17:56:21]Write to MH i2c: E2 02 01 6A 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 45 2D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 62 02 00 35 04 06 00 1E 00 00 1E [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 03 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [17:56:21]RAPDU: 90 00 [17:56:21]wFMCommunicate OK [17:56:21]wFMCommunicate request_size=10 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 0D 02 02 05 E7 0E 25 71 38 [17:56:21]Write to MH i2c: E2 0D 00 6B 1E 80 0D 02 02 05 00 E7 0E 25 71 38 00 00 D0 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 03 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [17:56:21]RAPDU: 90 00 [17:56:21]wFMCommunicate OK [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 0D 03 02 [17:56:21]Write to MH i2c: E2 08 00 6C 1E 80 0D 03 02 00 00 00 00 05 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 0B 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 0B 00 6C 1E 00 2F 8A 9A EA CE F1 D1 7C 90 00 4F [17:56:21]RAPDU: 2F 8A 9A EA CE F1 D1 7C 90 00 [17:56:21]wFMCommunicate OK [17:56:21]SAM_PROTO_SignData done [17:56:21]FM_MakeSignedData done [17:56:21]CreateOFDProtocolMessage [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 11 00 00 [17:56:21]Write to MH i2c: E2 08 00 6D 1E 80 11 00 00 00 00 00 00 05 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:22]Read from MH i2c: E2 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 17 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 17 00 6D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [17:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:56:22]wFMCommunicate OK [17:56:22]CreateOFDProtocolMessage done [17:56:22]OFDSenderStorePacket 156387 [17:56:22]StoreOFDPacket docnum=156387 [17:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BC 65 07 01 0F F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 45 2D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 62 02 00 35 04 06 00 1E E7 0E 25 71 38 2F 8A 9A EA CE F1 D1 7C [17:56:22]CheckFolder [17:56:22]dirname=/storage/ofd_packets [17:56:22]CheckFolder done [17:56:22]ProducePacketName [17:56:22]name=ofd_packets/00156387 [17:56:22]NVStorageSaveData ofd_packets/00156387 [17:56:22]File name is /storage/ofd_packets/00156387 [17:56:22]Write 301 bytes [17:56:22]NVStorageSaveData done [17:56:22]OFDSenderStorePacket done [17:56:22]KKMCreateOFDPacket done [17:56:22]NVStorageSaveData kkm_last_timestamp [17:56:22]File name is /storage/kkm_last_timestamp [17:56:22]Write 4 bytes [17:56:22]NVStorageSaveData done [17:56:22]ExternCall_PrintAddStr [17:56:22]wPrintStart [17:56:22]Write to MH i2c: 01 00 00 6E 1E 8C [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: 01 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: 01 07 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: 01 07 00 6E 1E 00 00 00 00 00 FF 0F A1 [17:56:22]RasterBufferAndPrint [17:56:22]line Счет N : (1)99202 [17:56:22]line ИНН: 02508201610067 [17:56:22]line Контрольно-Кассовый Чек [17:56:22]line ПРОДАЖА [17:56:22]line ТРК (МРК, ГНК) : 11 [17:56:22]line Товар: 2710124130 [17:56:22]line Аи-92-К-5 [17:56:22]line 4.490 * 66.90 [17:56:22]line = 300.38 [17:56:22]line НДС 12% НСП 1% [17:56:22]line > о реализуемом товаре [17:56:22]line ОКРУГЛЕНИЕ: -0.38 [17:56:22]line ИТОГО: 300.00 [17:56:22]line Внесено: 300.00 [17:56:22]line СДАЧА: 0.00 [17:56:22]line НСП 1% : 2.66 [17:56:22]line НДС 12% : 31.90 [17:56:22]line Наличными: 300.00 [17:56:22]line Безнал.: 0.00 [17:56:22]line Место: АЗС № 143 "Партнер Нефть" [17:56:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:56:22]line СНО: Общий режим [17:56:22]line Чек 288 26.10.2024 17:56 [17:56:22]line Смена: 536 ФФД: 1.0 [17:56:22]line ЗНМ: 0300000096 [17:56:22]line РНМ: 0000000000091693 [17:56:22]line Версия ККМ: 001 [17:56:22]line ФМ: 0000000000871792 [17:56:22]line ФД: 156387 [17:56:22]line ФПД: 33977723613496 [17:56:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175621&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156387&fm=33977723613496&tin=02508201610067®Number=0000000000091693&sum=30000 [17:56:22]OFD Sender: Processing packet 156387 [packets to send 31, broken 30] [17:56:22]ProducePacketName [17:56:22]name=ofd_packets/00156387 [17:56:22]OFD Sender: To server: pG, [17:56:22]CommunicateWithHost lk.salyk.kg:30040 [17:56:22]ConnectInit lk.salyk.kg [17:56:22]written 0, free lines is 4095 [17:56:22]Connected sock=6 [17:56:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BC 65 07 01 0F F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 45 2D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 62 02 00 35 04 06 00 1E E7 0E 25 71 38 2F 8A 9A EA CE F1 D1 7C [17:56:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 41 BA 47 00 CA 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 62 02 00 F4 03 04 00 B7 D2 1C 67 B6 04 01 00 00 15 2C 30 52 6B 9B EA CE [17:56:22]CommunicateWithHost err = 0 [17:56:22]CheckOFDResponse [17:56:22]1017 (14) - 77093643461234 [17:56:22]1041 (16) - 0000000000871792 [17:56:22]1040 (4) - 156387 [17:56:22]1012 (4) - 26.10.2024 11:29 [17:56:22]1206 (1) - 0 [17:56:22]OFD Sender: Remove packet 156387 [17:56:22]ProducePacketName [17:56:22]name=ofd_packets/00156387 [17:56:22]NVStorageDeleteData [17:56:22]Write to MH i2c: 01 00 00 99 1E B7 [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: 01 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: 01 07 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: 01 07 00 99 1E 00 00 00 00 00 E4 0C AE [17:56:22]RasterBufferAndPrint [17:56:22]line [17:56:22]line [17:56:22]line [17:56:22]line [17:56:22]line [17:56:22]written 0, free lines is 3306 [17:56:22]process_action close_receipt done [17:56:22]requested_data is exist [17:56:22]produce_requested_data [17:56:22]requested_item fm.sn is exist - process it [17:56:22]wFMCommunicate request_size=4 [17:56:22]MH_SAM_APDU [17:56:22]CAPDU: 80 11 00 00 [17:56:22]Write to MH i2c: E2 08 00 A0 1E 80 11 00 00 00 00 00 00 38 [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:22]Read from MH i2c: E2 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 17 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 17 00 A0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [17:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:56:22]wFMCommunicate OK [17:56:22]requested_item fd.num is exist - process it [17:56:22]SAM_PROTO_GetFieldsCounters [17:56:22]wFMCommunicate request_size=4 [17:56:22]MH_SAM_APDU [17:56:22]CAPDU: 80 13 00 00 [17:56:22]Write to MH i2c: E2 08 00 A1 1E 80 13 00 00 00 00 00 00 3B [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:23]Read from MH i2c: E2 [17:56:23]MH_I2C_Read... [17:56:23]Read from MH i2c: E2 62 00 [17:56:23]MH_I2C_Read... [17:56:23]Read from MH i2c: E2 62 00 A1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [17:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:23]wFMCommunicate OK [17:56:23]SAM_PROTO_GetFieldsCounters done [17:56:23]requested_item shift.num is exist - process it [17:56:23]requested_item shift.opened is exist - process it [17:56:23]req_shift_opened [17:56:23]FM_GetShiftState [17:56:23]SAM_PROTO_GetShiftState [17:56:23]wFMCommunicate request_size=4 [17:56:23]MH_SAM_APDU [17:56:23]CAPDU: 80 13 01 00 [17:56:23]Write to MH i2c: E2 08 00 A2 1E 80 13 01 00 00 00 00 00 3D [17:56:23]Write i2c OK [17:56:23]MH_I2C_Read... [17:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:23]Read from MH i2c: E2 [17:56:23]MH_I2C_Read... [17:56:23]Read from MH i2c: E2 0E 00 [17:56:23]MH_I2C_Read... [17:56:23]Read from MH i2c: E2 0E 00 A2 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 72 [17:56:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [17:56:23]wFMCommunicate OK [17:56:23]SAM_PROTO_GetShiftState done [17:56:23]FM_GetShiftState done [17:56:23]req_shift_opened done [17:56:23]requested_item shift.open_date is exist - process it [17:56:23]req_shift_open_date [17:56:23]req_shift_open_date done [17:56:23]produce_requested_data done [17:56:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156387,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [17:56:23]process_action_free close_receipt [17:56:23]json_value_free [17:56:23]json_value_free done [17:56:23]process_json_proto returns [17:56:23]Send response to host [17:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156387,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [17:56:23]free response buf [17:56:23]execute_script done [17:56:23]execute_script returns [17:56:23]free content buf [17:56:23]Sock 8.Close socket [17:56:23]Sock 8.Thread stoped [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send 02 00 0A 00 39 04 06 00 B0 86 01 00 00 00 00 00 D7 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 AB 1E 00 90 00 3D [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=11 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [18:01:51]Write to MH i2c: E2 0E 00 AC 1E 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 7C [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=13 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 15 02 00 08 F4 03 04 00 90 2E 1D 67 [18:01:51]Write to MH i2c: E2 10 00 AD 1E 80 15 02 00 08 00 F4 03 04 00 90 2E 1D 67 00 00 98 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 AD 1E 00 90 00 3F [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=25 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [18:01:51]Write to MH i2c: E2 1C 00 AE 1E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 B1 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 AE 1E 00 90 00 40 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 15 03 00 [18:01:51]Write to MH i2c: E2 08 00 AF 1E 80 15 03 00 00 00 00 00 4E [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 40 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 40 00 AF 1E 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 21 01 00 00 35 04 06 00 6B 5F 55 2B 79 C9 90 00 56 [18:01:51]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 21 01 00 00 35 04 06 00 6B 5F 55 2B 79 C9 90 00 [18:01:51]wFMCommunicate OK [18:01:51]SAM_PROTO_ProcessDocument answer len = 59 [18:01:51]SAM_PROTO_ProcessDocument done [18:01:51]SetTLVBufToDocument [18:01:51]Processing tag 1209 (04B9) [18:01:51]Malloc new data [18:01:51]Processing tag 1041 (0411) [18:01:51]Processing tag 1040 (0410) [18:01:51]Malloc new data [18:01:51]Processing tag 1038 (040E) [18:01:51]Malloc new data [18:01:51]Processing tag 1042 (0412) [18:01:51]Malloc new data [18:01:51]Processing tag 1077 (0435) [18:01:51]Malloc new data [18:01:51]SetTLVBufToDocument err=0 [18:01:51]KKMLoadAndSignReceiptData store KKM data [18:01:51]KKMLoadAndSignReceiptData err=0 [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 11 00 00 [18:01:51]Write to MH i2c: E2 08 00 B0 1E 80 11 00 00 00 00 00 00 48 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 17 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 17 00 B0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9D [18:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:01:51]wFMCommunicate OK [18:01:51]Счет N : (1)99203 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 11 Товар: 2710124130 Аи-92-К-5 14.950 * 66.90 = 1000.16 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 289 26.10.2024 18:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156388 ФПД: 118057194977737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180152&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156388&fm=118057194977737&tin=02508201610067®Number=0000000000091693&sum=100016 [18:01:51]StoreToDocumentArchive [18:01:51]shift 536 fd 156388 [18:01:51]save to /storage/0536/doc_00156388 [18:01:51]save last doc name /storage/0536/doc_00156388 to /storage/kkm_last_doc_name [18:01:51]save OK [18:01:51]Clear old archive folders... [18:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:51]tlvbuf is B6EC7A90 [18:01:51]SAM_PROTO_ClearQueue [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 09 00 00 [18:01:51]Write to MH i2c: E2 08 00 B1 1E 80 09 00 00 00 00 00 00 41 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]SAM_PROTO_ClearQueue done [18:01:51]KKMCreateOFDPacket [18:01:51]OFDProtocolAddRootSTLVToBuf [18:01:51]FM_MakeSignedData [18:01:51]FM_MakeSignedData [18:01:51]SAM_PROTO_SignData [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 01 02 [18:01:51]Write to MH i2c: E2 08 00 B2 1E 80 0D 01 02 00 00 00 00 49 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=255 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 90 2E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 62 02 00 35 04 06 00 6B [18:01:51]Write to MH i2c: E2 02 01 B3 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 90 2E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 62 02 00 35 04 06 00 6B 00 00 28 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [18:01:52]RAPDU: 90 00 [18:01:52]wFMCommunicate OK [18:01:52]wFMCommunicate request_size=10 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 0D 02 02 05 5F 55 2B 79 C9 [18:01:52]Write to MH i2c: E2 0D 00 B4 1E 80 0D 02 02 05 00 5F 55 2B 79 C9 00 00 77 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [18:01:52]RAPDU: 90 00 [18:01:52]wFMCommunicate OK [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 0D 03 02 [18:01:52]Write to MH i2c: E2 08 00 B5 1E 80 0D 03 02 00 00 00 00 4E [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0B 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0B 00 B5 1E 00 47 0A C7 EB 97 B2 67 7C 90 00 7E [18:01:52]RAPDU: 47 0A C7 EB 97 B2 67 7C 90 00 [18:01:52]wFMCommunicate OK [18:01:52]SAM_PROTO_SignData done [18:01:52]FM_MakeSignedData done [18:01:52]CreateOFDProtocolMessage [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 11 00 00 [18:01:52]Write to MH i2c: E2 08 00 B6 1E 80 11 00 00 00 00 00 00 4E [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 17 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 17 00 B6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [18:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:01:52]wFMCommunicate OK [18:01:52]CreateOFDProtocolMessage done [18:01:52]OFDSenderStorePacket 156388 [18:01:52]StoreOFDPacket docnum=156388 [18:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 70 7D 07 01 0B F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 90 2E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 62 02 00 35 04 06 00 6B 5F 55 2B 79 C9 47 0A C7 EB 97 B2 67 7C [18:01:52]CheckFolder [18:01:52]dirname=/storage/ofd_packets [18:01:52]CheckFolder done [18:01:52]ProducePacketName [18:01:52]name=ofd_packets/00156388 [18:01:52]NVStorageSaveData ofd_packets/00156388 [18:01:52]File name is /storage/ofd_packets/00156388 [18:01:52]Write 301 bytes [18:01:52]NVStorageSaveData done [18:01:52]OFDSenderStorePacket done [18:01:52]KKMCreateOFDPacket done [18:01:52]NVStorageSaveData kkm_last_timestamp [18:01:52]File name is /storage/kkm_last_timestamp [18:01:52]Write 4 bytes [18:01:52]NVStorageSaveData done [18:01:52]ExternCall_PrintAddStr [18:01:52]wPrintStart [18:01:52]Write to MH i2c: 01 00 00 B7 1E D5 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 B7 1E 00 00 00 00 00 FF 0F EA [18:01:52]RasterBufferAndPrint [18:01:52]line Счет N : (1)99203 [18:01:52]line ИНН: 02508201610067 [18:01:52]line Контрольно-Кассовый Чек [18:01:52]line ПРОДАЖА [18:01:52]line ТРК (МРК, ГНК) : 11 [18:01:52]line Товар: 2710124130 [18:01:52]line Аи-92-К-5 [18:01:52]line 14.950 * 66.90 [18:01:52]line = 1000.16 [18:01:52]line НДС 12% НСП 1% [18:01:52]line > о реализуемом товаре [18:01:52]line ИТОГО: 1000.16 [18:01:52]line НСП 1% : 8.85 [18:01:52]line НДС 12% : 106.21 [18:01:52]line Наличными: 0.00 [18:01:52]line Безнал.: 1000.16 [18:01:52]line Место: АЗС № 143 "Партнер Нефть" [18:01:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:01:52]line СНО: Общий режим [18:01:52]line Чек 289 26.10.2024 18:01 [18:01:52]line Смена: 536 ФФД: 1.0 [18:01:52]line ЗНМ: 0300000096 [18:01:52]line РНМ: 0000000000091693 [18:01:52]line Версия ККМ: 001 [18:01:52]line Платежная система: Mbank [18:01:52]line ФМ: 0000000000871792 [18:01:52]line ФД: 156388 [18:01:52]line ФПД: 118057194977737 [18:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180152&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156388&fm=118057194977737&tin=02508201610067®Number=0000000000091693&sum=100016 [18:01:52]written 0, free lines is 4095 [18:01:52]OFD Sender: Processing packet 156388 [packets to send 31, broken 30] [18:01:52]ProducePacketName [18:01:52]name=ofd_packets/00156388 [18:01:52]OFD Sender: To server: pG, [18:01:52]CommunicateWithHost lk.salyk.kg:30040 [18:01:52]ConnectInit lk.salyk.kg [18:01:52]Connected sock=11 [18:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 70 7D 07 01 0B F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 90 2E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 62 02 00 35 04 06 00 6B 5F 55 2B 79 C9 47 0A C7 EB 97 B2 67 7C [18:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AD BB 47 00 BF F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 62 02 00 F4 03 04 00 02 D4 1C 67 B6 04 01 00 00 7C 10 5A 51 1C 86 0C CD [18:01:52]CommunicateWithHost err = 0 [18:01:52]CheckOFDResponse [18:01:52]1017 (14) - 77093643461234 [18:01:52]1041 (16) - 0000000000871792 [18:01:52]1040 (4) - 156388 [18:01:52]1012 (4) - 26.10.2024 11:35 [18:01:52]1206 (1) - 0 [18:01:52]OFD Sender: Remove packet 156388 [18:01:52]ProducePacketName [18:01:52]name=ofd_packets/00156388 [18:01:52]NVStorageDeleteData [18:01:53]Write to MH i2c: 01 00 00 E0 1E FE [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: 01 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: 01 07 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: 01 07 00 E0 1E 00 00 00 00 00 FE 0C 0F [18:01:53]RasterBufferAndPrint [18:01:53]line [18:01:53]line [18:01:53]line [18:01:53]line [18:01:53]line [18:01:53]written 0, free lines is 3332 [18:01:53]process_action close_receipt done [18:01:53]requested_data is exist [18:01:53]produce_requested_data [18:01:53]requested_item fm.sn is exist - process it [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 11 00 00 [18:01:53]Write to MH i2c: E2 08 00 E7 1E 80 11 00 00 00 00 00 00 7F [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 17 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 17 00 E7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [18:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:01:53]wFMCommunicate OK [18:01:53]requested_item fd.num is exist - process it [18:01:53]SAM_PROTO_GetFieldsCounters [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 13 00 00 [18:01:53]Write to MH i2c: E2 08 00 E8 1E 80 13 00 00 00 00 00 00 82 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 62 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 62 00 E8 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [18:01: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:53]wFMCommunicate OK [18:01:53]SAM_PROTO_GetFieldsCounters done [18:01:53]requested_item shift.num is exist - process it [18:01:53]requested_item shift.opened is exist - process it [18:01:53]req_shift_opened [18:01:53]FM_GetShiftState [18:01:53]SAM_PROTO_GetShiftState [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 13 01 00 [18:01:53]Write to MH i2c: E2 08 00 E9 1E 80 13 01 00 00 00 00 00 84 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:53]Read from MH i2c: E2 0E 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0E 00 E9 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B9 [18:01:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:01:53]wFMCommunicate OK [18:01:53]SAM_PROTO_GetShiftState done [18:01:53]FM_GetShiftState done [18:01:53]req_shift_opened done [18:01:53]requested_item shift.open_date is exist - process it [18:01:53]req_shift_open_date [18:01:53]req_shift_open_date done [18:01:53]produce_requested_data done [18:01:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156388,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:01:53]process_action_free close_receipt [18:01:53]json_value_free [18:01:53]json_value_free done [18:01:53]process_json_proto returns [18:01:53]Send response to host [18:01:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156388,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:01:53]free response buf [18:01:53]execute_script done [18:01:53]execute_script returns [18:01:53]free content buf [18:01:53]Sock 9.Close socket [18:01:53]Sock 9.Thread stoped [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:11]ConnectInit Can't connect to host [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:32]accept exits with 10 [18:02:32]New connection [18:02:32]New thread 3066977636 created [18:02:32]Thread 3066834276 joined [18:02:32]Waiting for new connection... [18:02:32] Sock 10.Parse request [18:02:32]Sock 10.Check first char [18:02:32]Sock 10.First char is OK [18:02:32]request: POST /json_proto HTTP/1.0 [18:02:32]Method: POST [18:02:32]URL: /json_proto [18:02:32]Method is POST - this is cgi request [18:02:32]url: /json_proto [18:02:32]query_string will be loaded in cgi processing [18:02:32]execute_cgi json_proto POST (null) [18:02:32]execute_cgi path=json_proto method=POST [18:02:32]POST find Content-Length [18:02:32]Host: 172.17.63.3:8080 [18:02:32]Content-Length: 676 [18:02:32]Content-Type: application/json [18:02:32] [18:02:32]POST finish read [18:02:32]Found Content-Length = 676 [18:02:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:32]execute_script... [18:02:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:32]POST & json_proto [18:02:32]process_json_proto [18:02:32]json parsed OK: [18:02:32]protocol is kg_v1.0 [18:02:32]action value=close_receipt [18:02:32]process_action close_receipt [18:02:32]cmd_close_receipt [18:02:32]MH_GetDate [18:02:32]Write to MH i2c: F0 00 00 EA 1E F7 [18:02:32]Write i2c OK [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: F0 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: F0 09 00 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: F0 09 00 EA 1E 00 B9 2E 1D 67 50 D1 6C 64 5C [18:02:32]GetLastDocTimeStamp 1729965712 [18:02:32]current date 1729965753 [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 EB 1E 80 13 01 00 00 00 00 00 86 [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 EB 1E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [18:02:32]RAPDU: 09 00 01 6E 38 1C 67 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]opened in 1729902702 [18:02:32]opened+sec_in_day 1729989102 [18:02:32]quantity*price = 50041 [18:02:32]sum+1 = 50042 [18:02:32]Check (price>sum+1) || (price+1 о реализуемом товаре [18:02:34]line ОКРУГЛЕНИЕ: -0.41 [18:02:34]line ИТОГО: 500.00 [18:02:34]line Внесено: 500.00 [18:02:34]line СДАЧА: 0.00 [18:02:34]line НСП 1% : 4.43 [18:02:34]line НДС 12% : 53.14 [18:02:34]line Наличными: 500.00 [18:02:34]line Безнал.: 0.00 [18:02:34]line Место: АЗС № 143 "Партнер Нефть" [18:02:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:02:34]line СНО: Общий режим [18:02:34]line Чек 290 26.10.2024 18:02 [18:02:34]line Смена: 536 ФФД: 1.0 [18:02:34]line ЗНМ: 0300000096 [18:02:34]line РНМ: 0000000000091693 [18:02:34]line Версия ККМ: 001 [18:02:34]line ФМ: 0000000000871792 [18:02:34]line ФД: 156389 [18:02:34]line ФПД: 19058750824427 [18:02:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180233&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156389&fm=19058750824427&tin=02508201610067®Number=0000000000091693&sum=50000 [18:02:34]written 0, free lines is 4095 [18:02:34]OFD Sender: Processing packet 156389 [packets to send 31, broken 30] [18:02:34]ProducePacketName [18:02:34]name=ofd_packets/00156389 [18:02:34]OFD Sender: To server: pG, [18:02:34]CommunicateWithHost lk.salyk.kg:30040 [18:02:34]ConnectInit lk.salyk.kg [18:02:34]Connected sock=11 [18:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE 0A 07 01 79 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B9 2E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 62 02 00 35 04 06 00 11 55 76 12 9F EB C9 BD EA 19 AD 1E 71 39 [18:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F9 5D 47 00 C3 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 62 02 00 F4 03 04 00 2B D4 1C 67 B6 04 01 00 00 CF 29 E5 B8 D7 61 55 13 [18:02:34]CommunicateWithHost err = 0 [18:02:34]CheckOFDResponse [18:02:34]1017 (14) - 77093643461234 [18:02:34]1041 (16) - 0000000000871792 [18:02:34]1040 (4) - 156389 [18:02:34]1012 (4) - 26.10.2024 11:36 [18:02:34]1206 (1) - 0 [18:02:34]OFD Sender: Remove packet 156389 [18:02:34]ProducePacketName [18:02:34]name=ofd_packets/00156389 [18:02:34]NVStorageDeleteData [18:02:34]Write to MH i2c: 01 00 00 29 1F 48 [18:02:34]Write i2c OK [18:02:34]MH_I2C_Read... [18:02:34]Read from MH i2c: 01 [18:02:34]MH_I2C_Read... [18:02:34]Read from MH i2c: 01 07 00 [18:02:34]MH_I2C_Read... [18:02:34]Read from MH i2c: 01 07 00 29 1F 00 00 00 00 00 EE 0C 49 [18:02:34]RasterBufferAndPrint [18:02:34]line [18:02:34]line [18:02:34]line [18:02:34]line [18:02:34]line [18:02:34]written 0, free lines is 3323 [18:02:34]process_action close_receipt done [18:02:34]requested_data is exist [18:02:34]produce_requested_data [18:02:34]requested_item fm.sn is exist - process it [18:02:34]wFMCommunicate request_size=4 [18:02:34]MH_SAM_APDU [18:02:34]CAPDU: 80 11 00 00 [18:02:34]Write to MH i2c: E2 08 00 30 1F 80 11 00 00 00 00 00 00 C9 [18:02:34]Write i2c OK [18:02:34]MH_I2C_Read... [18:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:34]Read from MH i2c: E2 [18:02:34]MH_I2C_Read... [18:02:34]Read from MH i2c: E2 17 00 [18:02:34]MH_I2C_Read... [18:02:34]Read from MH i2c: E2 17 00 30 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [18:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:02:34]wFMCommunicate OK [18:02:34]requested_item fd.num is exist - process it [18:02:34]SAM_PROTO_GetFieldsCounters [18:02:34]wFMCommunicate request_size=4 [18:02:34]MH_SAM_APDU [18:02:34]CAPDU: 80 13 00 00 [18:02:34]Write to MH i2c: E2 08 00 31 1F 80 13 00 00 00 00 00 00 CC [18:02:34]Write i2c OK [18:02:34]MH_I2C_Read... [18:02:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:34]Read from MH i2c: E2 [18:02:34]MH_I2C_Read... [18:02:34]Read from MH i2c: E2 62 00 [18:02:34]MH_I2C_Read... [18:02:34]Read from MH i2c: E2 62 00 31 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [18:02:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:34]wFMCommunicate OK [18:02:34]SAM_PROTO_GetFieldsCounters done [18:02:34]requested_item shift.num is exist - process it [18:02:34]requested_item shift.opened is exist - process it [18:02:34]req_shift_opened [18:02:34]FM_GetShiftState [18:02:34]SAM_PROTO_GetShiftState [18:02:34]wFMCommunicate request_size=4 [18:02:34]MH_SAM_APDU [18:02:34]CAPDU: 80 13 01 00 [18:02:34]Write to MH i2c: E2 08 00 32 1F 80 13 01 00 00 00 00 00 CE [18:02:35]Write i2c OK [18:02:35]MH_I2C_Read... [18:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:35]Read from MH i2c: E2 [18:02:35]MH_I2C_Read... [18:02:35]Read from MH i2c: E2 0E 00 [18:02:35]MH_I2C_Read... [18:02:35]Read from MH i2c: E2 0E 00 32 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 03 [18:02:35]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:02:35]wFMCommunicate OK [18:02:35]SAM_PROTO_GetShiftState done [18:02:35]FM_GetShiftState done [18:02:35]req_shift_opened done [18:02:35]requested_item shift.open_date is exist - process it [18:02:35]req_shift_open_date [18:02:35]req_shift_open_date done [18:02:35]produce_requested_data done [18:02:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156389,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:02:35]process_action_free close_receipt [18:02:35]json_value_free [18:02:35]json_value_free done [18:02:35]process_json_proto returns [18:02:35]Send response to host [18:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156389,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:02:35]free response buf [18:02:35]execute_script done [18:02:35]execute_script returns [18:02:35]free content buf [18:02:35]Sock 10.Close socket [18:02:35]Sock 10.Thread stoped [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:29]ConnectInit Can't connect to host [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:03]ConnectInit Can't connect to host [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:09:59]accept exits with 9 [18:09:59]New connection [18:09:59]New thread 3066834276 created [18:09:59]Thread 3066977636 joined [18:09:59]Waiting for new connection... [18:09:59] Sock 9.Parse request [18:09:59]Sock 9.Check first char [18:09:59]Sock 9.First char is OK [18:09:59]request: POST /json_proto HTTP/1.0 [18:09:59]Method: POST [18:09:59]URL: /json_proto [18:09:59]Method is POST - this is cgi request [18:09:59]url: /json_proto [18:09:59]query_string will be loaded in cgi processing [18:09:59]execute_cgi json_proto POST (null) [18:09:59]execute_cgi path=json_proto method=POST [18:09:59]POST find Content-Length [18:09:59]Host: 172.17.63.3:8080 [18:09:59]Content-Length: 676 [18:09:59]Content-Type: application/json [18:09:59] [18:09:59]POST finish read [18:09:59]Found Content-Length = 676 [18:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:59]execute_script... [18:09:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:59]POST & json_proto [18:09:59]process_json_proto [18:09:59]json parsed OK: [18:09:59]protocol is kg_v1.0 [18:09:59]action value=close_receipt [18:09:59]process_action close_receipt [18:09:59]cmd_close_receipt [18:09:59]MH_GetDate [18:09:59]Write to MH i2c: F0 00 00 33 1F 41 [18:09:59]Write i2c OK [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 09 00 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 09 00 33 1F 00 78 30 1D 67 50 D1 6C 64 67 [18:09:59]GetLastDocTimeStamp 1729965753 [18:09:59]current date 1729966200 [18:09:59]FM_GetShiftState [18:09:59]SAM_PROTO_GetShiftState [18:09:59]wFMCommunicate request_size=4 [18:09:59]MH_SAM_APDU [18:09:59]CAPDU: 80 13 01 00 [18:09:59]Write to MH i2c: E2 08 00 34 1F 80 13 01 00 00 00 00 00 D0 [18:09:59]Write i2c OK [18:09:59]MH_I2C_Read... [18:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:59]Read from MH i2c: E2 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: E2 0E 00 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: E2 0E 00 34 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 05 [18:09:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:09:59]wFMCommunicate OK [18:09:59]SAM_PROTO_GetShiftState done [18:09:59]FM_GetShiftState done [18:09:59]opened in 1729902702 [18:09:59]opened+sec_in_day 1729989102 [18:09:59]quantity*price = 50041 [18:09:59]sum+1 = 50042 [18:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 291 26.10.2024 18:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156390 ФПД: 54914321679263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181000&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156390&fm=54914321679263&tin=02508201610067®Number=0000000000091693&sum=50000 [18:10:00]StoreToDocumentArchive [18:10:00]shift 536 fd 156390 [18:10:00]save to /storage/0536/doc_00156390 [18:10:00]save last doc name /storage/0536/doc_00156390 to /storage/kkm_last_doc_name [18:10:00]save OK [18:10:00]Clear old archive folders... [18:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:00]tlvbuf is 0171E530 [18:10:00]SAM_PROTO_ClearQueue [18:10:00]wFMCommunicate request_size=4 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 09 00 00 [18:10:00]Write to MH i2c: E2 08 00 41 1F 80 09 00 00 00 00 00 00 D2 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:00]Read from MH i2c: E2 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 41 1F 00 90 00 D4 [18:10:00]RAPDU: 90 00 [18:10:00]wFMCommunicate OK [18:10:00]SAM_PROTO_ClearQueue done [18:10:00]KKMCreateOFDPacket [18:10:00]OFDProtocolAddRootSTLVToBuf [18:10:00]FM_MakeSignedData [18:10:00]FM_MakeSignedData [18:10:00]SAM_PROTO_SignData [18:10:00]wFMCommunicate request_size=4 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 0D 01 02 [18:10:00]Write to MH i2c: E2 08 00 42 1F 80 0D 01 02 00 00 00 00 DA [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:00]Read from MH i2c: E2 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 42 1F 00 90 00 D5 [18:10:00]RAPDU: 90 00 [18:10:00]wFMCommunicate OK [18:10:00]wFMCommunicate request_size=255 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 78 30 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 62 02 00 35 04 06 00 31 [18:10:00]Write to MH i2c: E2 02 01 43 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 78 30 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 62 02 00 35 04 06 00 31 00 00 53 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [18:10:01]RAPDU: 90 00 [18:10:01]wFMCommunicate OK [18:10:01]wFMCommunicate request_size=10 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 0D 02 02 05 F1 BC A3 03 9F [18:10:01]Write to MH i2c: E2 0D 00 44 1F 80 0D 02 02 05 00 F1 BC A3 03 9F 00 00 D9 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 44 1F 00 90 00 D7 [18:10:01]RAPDU: 90 00 [18:10:01]wFMCommunicate OK [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 0D 03 02 [18:10:01]Write to MH i2c: E2 08 00 45 1F 80 0D 03 02 00 00 00 00 DF [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0B 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0B 00 45 1F 00 0C 17 53 E6 CA 50 8B DF 90 00 C0 [18:10:01]RAPDU: 0C 17 53 E6 CA 50 8B DF 90 00 [18:10:01]wFMCommunicate OK [18:10:01]SAM_PROTO_SignData done [18:10:01]FM_MakeSignedData done [18:10:01]CreateOFDProtocolMessage [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 11 00 00 [18:10:01]Write to MH i2c: E2 08 00 46 1F 80 11 00 00 00 00 00 00 DF [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 17 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 17 00 46 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [18:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:10:01]wFMCommunicate OK [18:10:01]CreateOFDProtocolMessage done [18:10:01]OFDSenderStorePacket 156390 [18:10:01]StoreOFDPacket docnum=156390 [18:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 2B 07 01 E5 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 78 30 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 62 02 00 35 04 06 00 31 F1 BC A3 03 9F 0C 17 53 E6 CA 50 8B DF [18:10:01]CheckFolder [18:10:01]dirname=/storage/ofd_packets [18:10:01]CheckFolder done [18:10:01]ProducePacketName [18:10:01]name=ofd_packets/00156390 [18:10:01]NVStorageSaveData ofd_packets/00156390 [18:10:01]File name is /storage/ofd_packets/00156390 [18:10:01]Write 301 bytes [18:10:01]NVStorageSaveData done [18:10:01]OFDSenderStorePacket done [18:10:01]KKMCreateOFDPacket done [18:10:01]NVStorageSaveData kkm_last_timestamp [18:10:01]File name is /storage/kkm_last_timestamp [18:10:01]Write 4 bytes [18:10:01]NVStorageSaveData done [18:10:01]ExternCall_PrintAddStr [18:10:01]wPrintStart [18:10:01]Write to MH i2c: 01 00 00 47 1F 66 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 47 1F 00 00 00 00 00 FF 0F 7B [18:10:01]RasterBufferAndPrint [18:10:01]line Счет N : (1)99206 [18:10:01]line ИНН: 02508201610067 [18:10:01]line Контрольно-Кассовый Чек [18:10:01]line ПРОДАЖА [18:10:01]line ТРК (МРК, ГНК) : 21 [18:10:01]line Товар: 2710124130 [18:10:01]line Аи-92-К-5 [18:10:01]line 7.480 * 66.90 [18:10:01]line = 500.41 [18:10:01]line НДС 12% НСП 1% [18:10:01]line > о реализуемом товаре [18:10:01]line ОКРУГЛЕНИЕ: -0.41 [18:10:01]line ИТОГО: 500.00 [18:10:01]line Внесено: 500.00 [18:10:01]line СДАЧА: 0.00 [18:10:01]line НСП 1% : 4.43 [18:10:01]line НДС 12% : 53.14 [18:10:01]line Наличными: 500.00 [18:10:01]line Безнал.: 0.00 [18:10:01]line Место: АЗС № 143 "Партнер Нефть" [18:10:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:10:01]line СНО: Общий режим [18:10:01]line Чек 291 26.10.2024 18:10 [18:10:01]line Смена: 536 ФФД: 1.0 [18:10:01]line ЗНМ: 0300000096 [18:10:01]line РНМ: 0000000000091693 [18:10:01]line Версия ККМ: 001 [18:10:01]line ФМ: 0000000000871792 [18:10:01]line ФД: 156390 [18:10:01]line ФПД: 54914321679263 [18:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181000&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156390&fm=54914321679263&tin=02508201610067®Number=0000000000091693&sum=50000 [18:10:01]OFD Sender: Processing packet 156390 [packets to send 31, broken 30] [18:10:01]ProducePacketName [18:10:01]name=ofd_packets/00156390 [18:10:01]OFD Sender: To server: pG, [18:10:01]CommunicateWithHost lk.salyk.kg:30040 [18:10:01]ConnectInit lk.salyk.kg [18:10:01]written 0, free lines is 4095 [18:10:01]Connected sock=11 [18:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 2B 07 01 E5 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 78 30 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 62 02 00 35 04 06 00 31 F1 BC A3 03 9F 0C 17 53 E6 CA 50 8B DF [18:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 94 E2 47 00 2F 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 62 02 00 F4 03 04 00 EA D5 1C 67 B6 04 01 00 00 8C 02 B0 6F F7 DC 06 1A [18:10:01]CommunicateWithHost err = 0 [18:10:01]CheckOFDResponse [18:10:01]1017 (14) - 77093643461234 [18:10:01]1041 (16) - 0000000000871792 [18:10:01]1040 (4) - 156390 [18:10:01]1012 (4) - 26.10.2024 11:43 [18:10:01]1206 (1) - 0 [18:10:01]OFD Sender: Remove packet 156390 [18:10:01]ProducePacketName [18:10:01]name=ofd_packets/00156390 [18:10:01]NVStorageDeleteData [18:10:01]Write to MH i2c: 01 00 00 72 1F 91 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 72 1F 00 00 00 00 00 D8 0C 7C [18:10:01]RasterBufferAndPrint [18:10:01]line [18:10:01]line [18:10:01]line [18:10:01]line [18:10:01]line [18:10:01]written 0, free lines is 3295 [18:10:01]process_action close_receipt done [18:10:01]requested_data is exist [18:10:01]produce_requested_data [18:10:01]requested_item fm.sn is exist - process it [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 11 00 00 [18:10:01]Write to MH i2c: E2 08 00 79 1F 80 11 00 00 00 00 00 00 12 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 17 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 17 00 79 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 67 [18:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:10:02]wFMCommunicate OK [18:10:02]requested_item fd.num is exist - process it [18:10:02]SAM_PROTO_GetFieldsCounters [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 13 00 00 [18:10:02]Write to MH i2c: E2 08 00 7A 1F 80 13 00 00 00 00 00 00 15 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 62 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 62 00 7A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:10:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:02]wFMCommunicate OK [18:10:02]SAM_PROTO_GetFieldsCounters done [18:10:02]requested_item shift.num is exist - process it [18:10:02]requested_item shift.opened is exist - process it [18:10:02]req_shift_opened [18:10:02]FM_GetShiftState [18:10:02]SAM_PROTO_GetShiftState [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 13 01 00 [18:10:02]Write to MH i2c: E2 08 00 7B 1F 80 13 01 00 00 00 00 00 17 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 0E 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 0E 00 7B 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4C [18:10:02]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:10:02]wFMCommunicate OK [18:10:02]SAM_PROTO_GetShiftState done [18:10:02]FM_GetShiftState done [18:10:02]req_shift_opened done [18:10:02]requested_item shift.open_date is exist - process it [18:10:02]req_shift_open_date [18:10:02]req_shift_open_date done [18:10:02]produce_requested_data done [18:10:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156390,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:10:02]process_action_free close_receipt [18:10:02]json_value_free [18:10:02]json_value_free done [18:10:02]process_json_proto returns [18:10:02]Send response to host [18:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156390,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:10:02]free response buf [18:10:02]execute_script done [18:10:02]execute_script returns [18:10:02]free content buf [18:10:02]Sock 9.Close socket [18:10:02]Sock 9.Thread stoped [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]accept exits with 8 [18:12:27]New connection [18:12:27]New thread 3066977636 created [18:12:27]Thread 3066834276 joined [18:12:27]Waiting for new connection... [18:12:27] Sock 8.Parse request [18:12:27]Sock 8.Check first char [18:12:27]Sock 8.First char is OK [18:12:27]request: POST /json_proto HTTP/1.0 [18:12:27]Method: POST [18:12:27]URL: /json_proto [18:12:27]Method is POST - this is cgi request [18:12:27]url: /json_proto [18:12:27]query_string will be loaded in cgi processing [18:12:27]execute_cgi json_proto POST (null) [18:12:27]execute_cgi path=json_proto method=POST [18:12:27]POST find Content-Length [18:12:27]Host: 172.17.63.3:8080 [18:12:27]Content-Length: 677 [18:12:27]Content-Type: application/json [18:12:27] [18:12:27]POST finish read [18:12:27]Found Content-Length = 677 [18:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:27]execute_script... [18:12: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)99207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:27]POST & json_proto [18:12:27]process_json_proto [18:12:27]json parsed OK: [18:12:27]protocol is kg_v1.0 [18:12:27]action value=close_receipt [18:12:27]process_action close_receipt [18:12:27]cmd_close_receipt [18:12:27]MH_GetDate [18:12:27]Write to MH i2c: F0 00 00 7C 1F 8A [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: F0 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: F0 09 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: F0 09 00 7C 1F 00 0C 31 1D 67 50 D1 6C 64 45 [18:12:27]GetLastDocTimeStamp 1729966200 [18:12:27]current date 1729966348 [18:12:27]FM_GetShiftState [18:12:27]SAM_PROTO_GetShiftState [18:12:27]wFMCommunicate request_size=4 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 13 01 00 [18:12:27]Write to MH i2c: E2 08 00 7D 1F 80 13 01 00 00 00 00 00 19 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 0E 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 0E 00 7D 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4E [18:12:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:12:27]wFMCommunicate OK [18:12:27]SAM_PROTO_GetShiftState done [18:12:27]FM_GetShiftState done [18:12:27]opened in 1729902702 [18:12:27]opened+sec_in_day 1729989102 [18:12:27]quantity*price = 90047 [18:12:27]sum+1 = 90048 [18:12:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 292 26.10.2024 18:12 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156391 ФПД: 219564668277757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181228&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156391&fm=219564668277757&tin=02508201610067®Number=0000000000091693&sum=90000 [18:12:28]StoreToDocumentArchive [18:12:28]shift 536 fd 156391 [18:12:28]save to /storage/0536/doc_00156391 [18:12:28]save last doc name /storage/0536/doc_00156391 to /storage/kkm_last_doc_name [18:12:28]save OK [18:12:28]Clear old archive folders... [18:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:28]tlvbuf is 016BD670 [18:12:28]SAM_PROTO_ClearQueue [18:12:28]wFMCommunicate request_size=4 [18:12:28]MH_SAM_APDU [18:12:28]CAPDU: 80 09 00 00 [18:12:28]Write to MH i2c: E2 08 00 8A 1F 80 09 00 00 00 00 00 00 1B [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:28]Read from MH i2c: E2 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 03 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [18:12:28]RAPDU: 90 00 [18:12:28]wFMCommunicate OK [18:12:28]SAM_PROTO_ClearQueue done [18:12:28]KKMCreateOFDPacket [18:12:28]OFDProtocolAddRootSTLVToBuf [18:12:28]FM_MakeSignedData [18:12:28]FM_MakeSignedData [18:12:28]SAM_PROTO_SignData [18:12:28]wFMCommunicate request_size=4 [18:12:28]MH_SAM_APDU [18:12:28]CAPDU: 80 0D 01 02 [18:12:28]Write to MH i2c: E2 08 00 8B 1F 80 0D 01 02 00 00 00 00 23 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:28]Read from MH i2c: E2 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 03 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 03 00 8B 1F 00 90 00 1E [18:12:28]RAPDU: 90 00 [18:12:28]wFMCommunicate OK [18:12:28]wFMCommunicate request_size=255 [18:12:28]MH_SAM_APDU [18:12: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 0C 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 62 02 00 35 04 06 00 C7 [18:12:28]Write to MH i2c: E2 02 01 8C 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 0C 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 62 02 00 35 04 06 00 C7 00 00 E6 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:28]Read from MH i2c: E2 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 03 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 03 00 8C 1F 00 90 00 1F [18:12:28]RAPDU: 90 00 [18:12:28]wFMCommunicate OK [18:12:28]wFMCommunicate request_size=10 [18:12:28]MH_SAM_APDU [18:12:28]CAPDU: 80 0D 02 02 05 B1 62 0E D3 FD [18:12:28]Write to MH i2c: E2 0D 00 8D 1F 80 0D 02 02 05 00 B1 62 0E D3 FD 00 00 21 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:28]Read from MH i2c: E2 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 03 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 03 00 8D 1F 00 90 00 20 [18:12:28]RAPDU: 90 00 [18:12:28]wFMCommunicate OK [18:12:28]wFMCommunicate request_size=4 [18:12:28]MH_SAM_APDU [18:12:28]CAPDU: 80 0D 03 02 [18:12:28]Write to MH i2c: E2 08 00 8E 1F 80 0D 03 02 00 00 00 00 28 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:28]Read from MH i2c: E2 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 0B 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 0B 00 8E 1F 00 6D 12 60 E9 5C 30 DA B6 90 00 0D [18:12:28]RAPDU: 6D 12 60 E9 5C 30 DA B6 90 00 [18:12:28]wFMCommunicate OK [18:12:28]SAM_PROTO_SignData done [18:12:28]FM_MakeSignedData done [18:12:28]CreateOFDProtocolMessage [18:12:28]wFMCommunicate request_size=4 [18:12:28]MH_SAM_APDU [18:12:28]CAPDU: 80 11 00 00 [18:12:28]Write to MH i2c: E2 08 00 8F 1F 80 11 00 00 00 00 00 00 28 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:28]Read from MH i2c: E2 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 17 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 17 00 8F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7D [18:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:12:28]wFMCommunicate OK [18:12:28]CreateOFDProtocolMessage done [18:12:28]OFDSenderStorePacket 156391 [18:12:28]StoreOFDPacket docnum=156391 [18:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4F 4E 07 01 23 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 0C 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 62 02 00 35 04 06 00 C7 B1 62 0E D3 FD 6D 12 60 E9 5C 30 DA B6 [18:12:28]CheckFolder [18:12:28]dirname=/storage/ofd_packets [18:12:28]CheckFolder done [18:12:28]ProducePacketName [18:12:28]name=ofd_packets/00156391 [18:12:28]NVStorageSaveData ofd_packets/00156391 [18:12:28]File name is /storage/ofd_packets/00156391 [18:12:28]Write 301 bytes [18:12:28]NVStorageSaveData done [18:12:28]OFDSenderStorePacket done [18:12:28]KKMCreateOFDPacket done [18:12:28]NVStorageSaveData kkm_last_timestamp [18:12:28]File name is /storage/kkm_last_timestamp [18:12:28]Write 4 bytes [18:12:28]NVStorageSaveData done [18:12:28]ExternCall_PrintAddStr [18:12:28]wPrintStart [18:12:28]Write to MH i2c: 01 00 00 90 1F AF [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 07 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 07 00 90 1F 00 00 00 00 00 FF 0F C4 [18:12:28]RasterBufferAndPrint [18:12:28]line Счет N : (1)99207 [18:12:28]line ИНН: 02508201610067 [18:12:28]line Контрольно-Кассовый Чек [18:12:28]line ПРОДАЖА [18:12:28]line ТРК (МРК, ГНК) : 21 [18:12:28]line Товар: 2710124130 [18:12:28]line Аи-92-К-5 [18:12:28]line 13.460 * 66.90 [18:12:28]line = 900.47 [18:12:28]line НДС 12% НСП 1% [18:12:28]line > о реализуемом товаре [18:12:28]line ОКРУГЛЕНИЕ: -0.47 [18:12:28]line ИТОГО: 900.00 [18:12:28]line Внесено: 900.00 [18:12:28]line СДАЧА: 0.00 [18:12:28]line НСП 1% : 7.97 [18:12:28]line НДС 12% : 95.62 [18:12:28]line Наличными: 900.00 [18:12:28]line Безнал.: 0.00 [18:12:28]line Место: АЗС № 143 "Партнер Нефть" [18:12:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:12:28]line СНО: Общий режим [18:12:28]line Чек 292 26.10.2024 18:12 [18:12:28]line Смена: 536 ФФД: 1.0 [18:12:28]line ЗНМ: 0300000096 [18:12:28]line РНМ: 0000000000091693 [18:12:28]line Версия ККМ: 001 [18:12:28]line ФМ: 0000000000871792 [18:12:28]line ФД: 156391 [18:12:28]line ФПД: 219564668277757 [18:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181228&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156391&fm=219564668277757&tin=02508201610067®Number=0000000000091693&sum=90000 [18:12:28]written 0, free lines is 4095 [18:12:28]OFD Sender: Processing packet 156391 [packets to send 31, broken 30] [18:12:28]ProducePacketName [18:12:28]name=ofd_packets/00156391 [18:12:28]OFD Sender: To server: pG, [18:12:28]CommunicateWithHost lk.salyk.kg:30040 [18:12:28]ConnectInit lk.salyk.kg [18:12:28]Connected sock=10 [18:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4F 4E 07 01 23 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 0C 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 62 02 00 35 04 06 00 C7 B1 62 0E D3 FD 6D 12 60 E9 5C 30 DA B6 [18:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C1 12 47 00 FC 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 62 02 00 F4 03 04 00 7E D6 1C 67 B6 04 01 00 00 9E 6E C4 00 6D DB E6 1C [18:12:29]CommunicateWithHost err = 0 [18:12:29]CheckOFDResponse [18:12:29]1017 (14) - 77093643461234 [18:12:29]1041 (16) - 0000000000871792 [18:12:29]1040 (4) - 156391 [18:12:29]1012 (4) - 26.10.2024 11:46 [18:12:29]1206 (1) - 0 [18:12:29]OFD Sender: Remove packet 156391 [18:12:29]ProducePacketName [18:12:29]name=ofd_packets/00156391 [18:12:29]NVStorageDeleteData [18:12:29]Write to MH i2c: 01 00 00 BB 1F DA [18:12:29]Write i2c OK [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: 01 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: 01 07 00 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: 01 07 00 BB 1F 00 00 00 00 00 E9 0C D6 [18:12:29]RasterBufferAndPrint [18:12:29]line [18:12:29]line [18:12:29]line [18:12:29]line [18:12:29]line [18:12:29]written 0, free lines is 3311 [18:12:29]process_action close_receipt done [18:12:29]requested_data is exist [18:12:29]produce_requested_data [18:12:29]requested_item fm.sn is exist - process it [18:12:29]wFMCommunicate request_size=4 [18:12:29]MH_SAM_APDU [18:12:29]CAPDU: 80 11 00 00 [18:12:29]Write to MH i2c: E2 08 00 C2 1F 80 11 00 00 00 00 00 00 5B [18:12:29]Write i2c OK [18:12:29]MH_I2C_Read... [18:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:29]Read from MH i2c: E2 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 17 00 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 17 00 C2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [18:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:12:29]wFMCommunicate OK [18:12:29]requested_item fd.num is exist - process it [18:12:29]SAM_PROTO_GetFieldsCounters [18:12:29]wFMCommunicate request_size=4 [18:12:29]MH_SAM_APDU [18:12:29]CAPDU: 80 13 00 00 [18:12:29]Write to MH i2c: E2 08 00 C3 1F 80 13 00 00 00 00 00 00 5E [18:12:29]Write i2c OK [18:12:29]MH_I2C_Read... [18:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:29]Read from MH i2c: E2 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 62 00 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 62 00 C3 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [18:12: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:29]wFMCommunicate OK [18:12:29]SAM_PROTO_GetFieldsCounters done [18:12:29]requested_item shift.num is exist - process it [18:12:29]requested_item shift.opened is exist - process it [18:12:29]req_shift_opened [18:12:29]FM_GetShiftState [18:12:29]SAM_PROTO_GetShiftState [18:12:29]wFMCommunicate request_size=4 [18:12:29]MH_SAM_APDU [18:12:29]CAPDU: 80 13 01 00 [18:12:29]Write to MH i2c: E2 08 00 C4 1F 80 13 01 00 00 00 00 00 60 [18:12:29]Write i2c OK [18:12:29]MH_I2C_Read... [18:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:29]Read from MH i2c: E2 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 0E 00 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 0E 00 C4 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 95 [18:12:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:12:29]wFMCommunicate OK [18:12:29]SAM_PROTO_GetShiftState done [18:12:29]FM_GetShiftState done [18:12:29]req_shift_opened done [18:12:29]requested_item shift.open_date is exist - process it [18:12:29]req_shift_open_date [18:12:29]req_shift_open_date done [18:12:29]produce_requested_data done [18:12:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156391,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:12:29]process_action_free close_receipt [18:12:29]json_value_free [18:12:29]json_value_free done [18:12:29]process_json_proto returns [18:12:29]Send response to host [18:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156391,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:12:29]free response buf [18:12:29]execute_script done [18:12:29]execute_script returns [18:12:29]free content buf [18:12:29]Sock 8.Close socket [18:12:29]Sock 8.Thread stoped [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:13]accept exits with 9 [18:13:13]New connection [18:13:13]New thread 3066834276 created [18:13:13]Thread 3066977636 joined [18:13:13]Waiting for new connection... [18:13:13] Sock 9.Parse request [18:13:13]Sock 9.Check first char [18:13:13]Sock 9.First char is OK [18:13:13]request: POST /json_proto HTTP/1.0 [18:13:13]Method: POST [18:13:13]URL: /json_proto [18:13:13]Method is POST - this is cgi request [18:13:13]url: /json_proto [18:13:13]query_string will be loaded in cgi processing [18:13:13]execute_cgi json_proto POST (null) [18:13:13]execute_cgi path=json_proto method=POST [18:13:13]POST find Content-Length [18:13:13]Host: 172.17.63.3:8080 [18:13:13]Content-Length: 789 [18:13:13]Content-Type: application/json [18:13:13] [18:13:13]POST finish read [18:13:13]Found Content-Length = 789 [18:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 181.720, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A83333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:13]execute_script... [18:13:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 181.720, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A83333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:13]POST & json_proto [18:13:13]process_json_proto [18:13:13]json parsed OK: [18:13:13]protocol is kg_v1.0 [18:13:13]action value=close_receipt [18:13:13]process_action close_receipt [18:13:13]cmd_close_receipt [18:13:13]MH_GetDate [18:13:13]Write to MH i2c: F0 00 00 C5 1F D3 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 09 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 09 00 C5 1F 00 3A 31 1D 67 50 D1 6C 64 BC [18:13:13]GetLastDocTimeStamp 1729966348 [18:13:13]current date 1729966394 [18:13:13]FM_GetShiftState [18:13:13]SAM_PROTO_GetShiftState [18:13:13]wFMCommunicate request_size=4 [18:13:13]MH_SAM_APDU [18:13:13]CAPDU: 80 13 01 00 [18:13:13]Write to MH i2c: E2 08 00 C6 1F 80 13 01 00 00 00 00 00 62 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:13]Read from MH i2c: E2 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 0E 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 0E 00 C6 1F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 97 [18:13:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:13:13]wFMCommunicate OK [18:13:13]SAM_PROTO_GetShiftState done [18:13:13]FM_GetShiftState done [18:13:13]opened in 1729902702 [18:13:13]opened+sec_in_day 1729989102 [18:13:13]quantity*price = 0 [18:13:13]sum+1 = 1 [18:13:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 293 26.10.2024 18:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 83333 ФМ: 0000000000871792 ФД: 156392 ФПД: 167557189433833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181314&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156392&fm=167557189433833&tin=02508201610067®Number=0000000000091693&sum=0 [18:13:14]StoreToDocumentArchive [18:13:14]shift 536 fd 156392 [18:13:14]save to /storage/0536/doc_00156392 [18:13:14]save last doc name /storage/0536/doc_00156392 to /storage/kkm_last_doc_name [18:13:14]save OK [18:13:14]Clear old archive folders... [18:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:13:14]tlvbuf is B6F5EC40 [18:13:14]SAM_PROTO_ClearQueue [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 09 00 00 [18:13:14]Write to MH i2c: E2 08 00 D3 1F 80 09 00 00 00 00 00 00 64 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 D3 1F 00 90 00 66 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]SAM_PROTO_ClearQueue done [18:13:14]KKMCreateOFDPacket [18:13:14]OFDProtocolAddRootSTLVToBuf [18:13:14]FM_MakeSignedData [18:13:14]FM_MakeSignedData [18:13:14]SAM_PROTO_SignData [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 01 02 [18:13:14]Write to MH i2c: E2 08 00 D4 1F 80 0D 01 02 00 00 00 00 6C [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=255 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 C5 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 3A 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 62 02 00 35 04 06 00 98 64 72 C1 [18:13:14]Write to MH i2c: E2 02 01 D5 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 C5 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 3A 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 62 02 00 35 04 06 00 98 64 72 C1 00 00 17 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 D5 1F 00 90 00 68 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=7 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 02 02 02 79 E9 [18:13:14]Write to MH i2c: E2 0A 00 D6 1F 80 0D 02 02 02 00 79 E9 00 00 D5 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 D6 1F 00 90 00 69 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 03 02 [18:13:14]Write to MH i2c: E2 08 00 D7 1F 80 0D 03 02 00 00 00 00 71 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 0B 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 0B 00 D7 1F 00 06 E6 A7 1A 53 5B 85 00 90 00 52 [18:13:14]RAPDU: 06 E6 A7 1A 53 5B 85 00 90 00 [18:13:14]wFMCommunicate OK [18:13:14]SAM_PROTO_SignData done [18:13:14]FM_MakeSignedData done [18:13:14]CreateOFDProtocolMessage [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 11 00 00 [18:13:14]Write to MH i2c: E2 08 00 D8 1F 80 11 00 00 00 00 00 00 71 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]OFD Sender: No OFD packet to send [18:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 17 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 17 00 D8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [18:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:13:14]wFMCommunicate OK [18:13:14]CreateOFDProtocolMessage done [18:13:14]OFDSenderStorePacket 156392 [18:13:14]StoreOFDPacket docnum=156392 [18:13:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8A 7E 04 01 F9 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 C5 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 3A 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 62 02 00 35 04 06 00 98 64 72 C1 79 E9 06 E6 A7 1A 53 5B 85 00 [18:13:14]CheckFolder [18:13:14]dirname=/storage/ofd_packets [18:13:14]CheckFolder done [18:13:14]ProducePacketName [18:13:14]name=ofd_packets/00156392 [18:13:14]NVStorageSaveData ofd_packets/00156392 [18:13:14]File name is /storage/ofd_packets/00156392 [18:13:14]Write 298 bytes [18:13:14]NVStorageSaveData done [18:13:14]OFDSenderStorePacket done [18:13:14]KKMCreateOFDPacket done [18:13:14]NVStorageSaveData kkm_last_timestamp [18:13:14]File name is /storage/kkm_last_timestamp [18:13:14]Write 4 bytes [18:13:14]NVStorageSaveData done [18:13:14]ExternCall_PrintAddStr [18:13:14]wPrintStart [18:13:14]Write to MH i2c: 01 00 00 D9 1F F8 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 07 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 07 00 D9 1F 00 00 00 00 00 FF 0F 0D [18:13:14]RasterBufferAndPrint [18:13:14]line Счет N : (1)99205 [18:13:14]line ИНН: 02508201610067 [18:13:14]line Контрольно-Кассовый Чек [18:13:14]line ПРОДАЖА [18:13:14]line ТРК (МРК, ГНК) : 32 [18:13:14]line Товар: 2710194210 [18:13:14]line ДТ-К-5 [18:13:14]line 181.720 * 0.00 [18:13:14]line = 0.00 [18:13:14]line НДС 12% НСП 1% [18:13:14]line > о реализуемом товаре [18:13:14]line ИТОГО: 0.00 [18:13:14]line НСП 1% : 0.00 [18:13:14]line НДС 12% : 0.00 [18:13:14]line Наличными: 0.00 [18:13:14]line Безнал.: 0.00 [18:13:14]line Место: АЗС № 143 "Партнер Нефть" [18:13:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:13:14]line СНО: Общий режим [18:13:14]line Чек 293 26.10.2024 18:13 [18:13:14]line Смена: 536 ФФД: 1.0 [18:13:14]line ЗНМ: 0300000096 [18:13:14]line РНМ: 0000000000091693 [18:13:14]line Версия ККМ: 001 [18:13:14]line Талоны: Топливная Карта [18:13:14]line 83333 [18:13:14]line ФМ: 0000000000871792 [18:13:14]line ФД: 156392 [18:13:14]line ФПД: 167557189433833 [18:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181314&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156392&fm=167557189433833&tin=02508201610067®Number=0000000000091693&sum=0 [18:13:15]OFD Sender: Processing packet 156392 [packets to send 31, broken 30] [18:13:15]ProducePacketName [18:13:15]name=ofd_packets/00156392 [18:13:15]OFD Sender: To server: pG, [18:13:15]CommunicateWithHost lk.salyk.kg:30040 [18:13:15]ConnectInit lk.salyk.kg [18:13:15]written 0, free lines is 4095 [18:13:15]Connected sock=10 [18:13:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8A 7E 04 01 F9 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 C5 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 3A 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 62 02 00 35 04 06 00 98 64 72 C1 79 E9 06 E6 A7 1A 53 5B 85 00 [18:13:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2B 83 47 00 A0 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 62 02 00 F4 03 04 00 AC D6 1C 67 B6 04 01 00 00 D3 D0 53 56 21 4A B9 B0 [18:13:15]CommunicateWithHost err = 0 [18:13:15]CheckOFDResponse [18:13:15]1017 (14) - 77093643461234 [18:13:15]1041 (16) - 0000000000871792 [18:13:15]1040 (4) - 156392 [18:13:15]1012 (4) - 26.10.2024 11:46 [18:13:15]1206 (1) - 0 [18:13:15]OFD Sender: Remove packet 156392 [18:13:15]ProducePacketName [18:13:15]name=ofd_packets/00156392 [18:13:15]NVStorageDeleteData [18:13:15]Write to MH i2c: 01 00 00 03 20 23 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 07 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 07 00 03 20 00 00 00 00 00 E6 0C 1C [18:13:15]RasterBufferAndPrint [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]written 0, free lines is 3309 [18:13:15]process_action close_receipt done [18:13:15]requested_data is exist [18:13:15]produce_requested_data [18:13:15]requested_item fm.sn is exist - process it [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 11 00 00 [18:13:15]Write to MH i2c: E2 08 00 0A 20 80 11 00 00 00 00 00 00 A4 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 17 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 17 00 0A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [18:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:13:15]wFMCommunicate OK [18:13:15]requested_item fd.num is exist - process it [18:13:15]SAM_PROTO_GetFieldsCounters [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 13 00 00 [18:13:15]Write to MH i2c: E2 08 00 0B 20 80 13 00 00 00 00 00 00 A7 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 62 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 62 00 0B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [18:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:15]wFMCommunicate OK [18:13:15]SAM_PROTO_GetFieldsCounters done [18:13:15]requested_item shift.num is exist - process it [18:13:15]requested_item shift.opened is exist - process it [18:13:15]req_shift_opened [18:13:15]FM_GetShiftState [18:13:15]SAM_PROTO_GetShiftState [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 13 01 00 [18:13:15]Write to MH i2c: E2 08 00 0C 20 80 13 01 00 00 00 00 00 A9 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:15]Read from MH i2c: E2 0E 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 0E 00 0C 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DE [18:13:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:13:15]wFMCommunicate OK [18:13:15]SAM_PROTO_GetShiftState done [18:13:15]FM_GetShiftState done [18:13:15]req_shift_opened done [18:13:15]requested_item shift.open_date is exist - process it [18:13:15]req_shift_open_date [18:13:15]req_shift_open_date done [18:13:15]produce_requested_data done [18:13:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156392,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:13:15]process_action_free close_receipt [18:13:15]json_value_free [18:13:15]json_value_free done [18:13:15]process_json_proto returns [18:13:15]Send response to host [18:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156392,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:13:15]free response buf [18:13:15]execute_script done [18:13:15]execute_script returns [18:13:15]free content buf [18:13:15]Sock 9.Close socket [18:13:15]Sock 9.Thread stoped [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:51]accept exits with 8 [18:13:51]New connection [18:13:51]New thread 3066977636 created [18:13:51]Thread 3066834276 joined [18:13:51]Waiting for new connection... [18:13:51] Sock 8.Parse request [18:13:51]Sock 8.Check first char [18:13:51]Sock 8.First char is OK [18:13:51]request: POST /json_proto HTTP/1.0 [18:13:51]Method: POST [18:13:51]URL: /json_proto [18:13:51]Method is POST - this is cgi request [18:13:51]url: /json_proto [18:13:51]query_string will be loaded in cgi processing [18:13:51]execute_cgi json_proto POST (null) [18:13:51]execute_cgi path=json_proto method=POST [18:13:51]POST find Content-Length [18:13:51]Host: 172.17.63.3:8080 [18:13:51]Content-Length: 677 [18:13:51]Content-Type: application/json [18:13:51] [18:13:51]POST finish read [18:13:51]Found Content-Length = 677 [18:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:51]execute_script... [18:13:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:51]POST & json_proto [18:13:51]process_json_proto [18:13:51]json parsed OK: [18:13:51]protocol is kg_v1.0 [18:13:51]action value=close_receipt [18:13:51]process_action close_receipt [18:13:51]cmd_close_receipt [18:13:51]MH_GetDate [18:13:51]Write to MH i2c: F0 00 00 0D 20 1C [18:13:51]Write i2c OK [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: F0 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: F0 09 00 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: F0 09 00 0D 20 00 61 31 1D 67 50 D1 6C 64 2C [18:13:51]GetLastDocTimeStamp 1729966394 [18:13:51]current date 1729966433 [18:13:51]FM_GetShiftState [18:13:51]SAM_PROTO_GetShiftState [18:13:51]wFMCommunicate request_size=4 [18:13:51]MH_SAM_APDU [18:13:51]CAPDU: 80 13 01 00 [18:13:51]Write to MH i2c: E2 08 00 0E 20 80 13 01 00 00 00 00 00 AB [18:13:51]Write i2c OK [18:13:51]MH_I2C_Read... [18:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:51]Read from MH i2c: E2 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: E2 0E 00 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: E2 0E 00 0E 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E0 [18:13:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:13:51]wFMCommunicate OK [18:13:51]SAM_PROTO_GetShiftState done [18:13:51]FM_GetShiftState done [18:13:51]opened in 1729902702 [18:13:51]opened+sec_in_day 1729989102 [18:13:51]quantity*price = 70044 [18:13:51]sum+1 = 70045 [18:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 294 26.10.2024 18:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156393 ФПД: 115139410029621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181353&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156393&fm=115139410029621&tin=02508201610067®Number=0000000000091693&sum=70000 [18:13:52]StoreToDocumentArchive [18:13:52]shift 536 fd 156393 [18:13:52]save to /storage/0536/doc_00156393 [18:13:52]save last doc name /storage/0536/doc_00156393 to /storage/kkm_last_doc_name [18:13:52]save OK [18:13:52]Clear old archive folders... [18:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:52]tlvbuf is B6EC7AA0 [18:13:52]SAM_PROTO_ClearQueue [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 09 00 00 [18:13:52]Write to MH i2c: E2 08 00 1B 20 80 09 00 00 00 00 00 00 AD [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 1B 20 00 90 00 AF [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]SAM_PROTO_ClearQueue done [18:13:52]KKMCreateOFDPacket [18:13:52]OFDProtocolAddRootSTLVToBuf [18:13:52]FM_MakeSignedData [18:13:52]FM_MakeSignedData [18:13:52]SAM_PROTO_SignData [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 01 02 [18:13:52]Write to MH i2c: E2 08 00 1C 20 80 0D 01 02 00 00 00 00 B5 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 1C 20 00 90 00 B0 [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]wFMCommunicate request_size=255 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 61 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 62 02 00 35 04 06 00 68 [18:13:52]Write to MH i2c: E2 02 01 1D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 61 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 62 02 00 35 04 06 00 68 00 00 65 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:53]Read from MH i2c: E2 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 03 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 03 00 1D 20 00 90 00 B1 [18:13:53]RAPDU: 90 00 [18:13:53]wFMCommunicate OK [18:13:53]wFMCommunicate request_size=10 [18:13:53]MH_SAM_APDU [18:13:53]CAPDU: 80 0D 02 02 05 B7 FB A2 6C 35 [18:13:53]Write to MH i2c: E2 0D 00 1E 20 80 0D 02 02 05 00 B7 FB A2 6C 35 00 00 B7 [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:53]Read from MH i2c: E2 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 03 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [18:13:53]RAPDU: 90 00 [18:13:53]wFMCommunicate OK [18:13:53]wFMCommunicate request_size=4 [18:13:53]MH_SAM_APDU [18:13:53]CAPDU: 80 0D 03 02 [18:13:53]Write to MH i2c: E2 08 00 1F 20 80 0D 03 02 00 00 00 00 BA [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:53]Read from MH i2c: E2 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 0B 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 0B 00 1F 20 00 2E 79 60 53 67 CD 38 D2 90 00 53 [18:13:53]RAPDU: 2E 79 60 53 67 CD 38 D2 90 00 [18:13:53]wFMCommunicate OK [18:13:53]SAM_PROTO_SignData done [18:13:53]FM_MakeSignedData done [18:13:53]CreateOFDProtocolMessage [18:13:53]wFMCommunicate request_size=4 [18:13:53]MH_SAM_APDU [18:13:53]CAPDU: 80 11 00 00 [18:13:53]Write to MH i2c: E2 08 00 20 20 80 11 00 00 00 00 00 00 BA [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:53]Read from MH i2c: E2 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 17 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 17 00 20 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [18:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:13:53]wFMCommunicate OK [18:13:53]CreateOFDProtocolMessage done [18:13:53]OFDSenderStorePacket 156393 [18:13:53]StoreOFDPacket docnum=156393 [18:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7B 3D 07 01 D4 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 61 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 62 02 00 35 04 06 00 68 B7 FB A2 6C 35 2E 79 60 53 67 CD 38 D2 [18:13:53]CheckFolder [18:13:53]dirname=/storage/ofd_packets [18:13:53]CheckFolder done [18:13:53]ProducePacketName [18:13:53]name=ofd_packets/00156393 [18:13:53]NVStorageSaveData ofd_packets/00156393 [18:13:53]File name is /storage/ofd_packets/00156393 [18:13:53]Write 301 bytes [18:13:53]NVStorageSaveData done [18:13:53]OFDSenderStorePacket done [18:13:53]KKMCreateOFDPacket done [18:13:53]NVStorageSaveData kkm_last_timestamp [18:13:53]File name is /storage/kkm_last_timestamp [18:13:53]Write 4 bytes [18:13:53]NVStorageSaveData done [18:13:53]OFD Sender: Processing packet 156393 [packets to send 31, broken 30] [18:13:53]ProducePacketName [18:13:53]name=ofd_packets/00156393 [18:13:53]OFD Sender: To server: pG, [18:13:53]CommunicateWithHost lk.salyk.kg:30040 [18:13:53]ConnectInit lk.salyk.kg [18:13:53]ExternCall_PrintAddStr [18:13:53]wPrintStart [18:13:53]Write to MH i2c: 01 00 00 21 20 41 [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 07 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [18:13:53]RasterBufferAndPrint [18:13:53]line Счет N : (1)99208 [18:13:53]line ИНН: 02508201610067 [18:13:53]line Контрольно-Кассовый Чек [18:13:53]line ПРОДАЖА [18:13:53]line ТРК (МРК, ГНК) : 21 [18:13:53]line Товар: 2710124130 [18:13:53]line Аи-92-К-5 [18:13:53]line 10.470 * 66.90 [18:13:53]line = 700.44 [18:13:53]line НДС 12% НСП 1% [18:13:53]line > о реализуемом товаре [18:13:53]line ОКРУГЛЕНИЕ: -0.44 [18:13:53]line ИТОГО: 700.00 [18:13:53]line Внесено: 700.00 [18:13:53]line СДАЧА: 0.00 [18:13:53]line НСП 1% : 6.20 [18:13:53]line НДС 12% : 74.38 [18:13:53]line Наличными: 700.00 [18:13:53]line Безнал.: 0.00 [18:13:53]line Место: АЗС № 143 "Партнер Нефть" [18:13:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:13:53]line СНО: Общий режим [18:13:53]line Чек 294 26.10.2024 18:13 [18:13:53]line Смена: 536 ФФД: 1.0 [18:13:53]line ЗНМ: 0300000096 [18:13:53]line РНМ: 0000000000091693 [18:13:53]line Версия ККМ: 001 [18:13:53]line ФМ: 0000000000871792 [18:13:53]line ФД: 156393 [18:13:53]line ФПД: 115139410029621 [18:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181353&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156393&fm=115139410029621&tin=02508201610067®Number=0000000000091693&sum=70000 [18:13:53]Connected sock=11 [18:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7B 3D 07 01 D4 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 61 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 62 02 00 35 04 06 00 68 B7 FB A2 6C 35 2E 79 60 53 67 CD 38 D2 [18:13:53]written 0, free lines is 4095 [18:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 46 E1 47 00 D6 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 62 02 00 F4 03 04 00 D3 D6 1C 67 B6 04 01 00 00 52 EA 0B 1F 2D 5E 91 85 [18:13:53]CommunicateWithHost err = 0 [18:13:53]CheckOFDResponse [18:13:53]1017 (14) - 77093643461234 [18:13:53]1041 (16) - 0000000000871792 [18:13:53]1040 (4) - 156393 [18:13:53]1012 (4) - 26.10.2024 11:47 [18:13:53]1206 (1) - 0 [18:13:53]OFD Sender: Remove packet 156393 [18:13:53]ProducePacketName [18:13:53]name=ofd_packets/00156393 [18:13:53]NVStorageDeleteData [18:13:54]Write to MH i2c: 01 00 00 4C 20 6C [18:13:54]Write i2c OK [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: 01 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: 01 07 00 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: 01 07 00 4C 20 00 00 00 00 00 E4 0C 63 [18:13:54]RasterBufferAndPrint [18:13:54]line [18:13:54]line [18:13:54]line [18:13:54]line [18:13:54]line [18:13:54]written 0, free lines is 3306 [18:13:54]process_action close_receipt done [18:13:54]requested_data is exist [18:13:54]produce_requested_data [18:13:54]requested_item fm.sn is exist - process it [18:13:54]wFMCommunicate request_size=4 [18:13:54]MH_SAM_APDU [18:13:54]CAPDU: 80 11 00 00 [18:13:54]Write to MH i2c: E2 08 00 53 20 80 11 00 00 00 00 00 00 ED [18:13:54]Write i2c OK [18:13:54]MH_I2C_Read... [18:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:54]Read from MH i2c: E2 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 17 00 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 17 00 53 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [18:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:13:54]wFMCommunicate OK [18:13:54]requested_item fd.num is exist - process it [18:13:54]SAM_PROTO_GetFieldsCounters [18:13:54]wFMCommunicate request_size=4 [18:13:54]MH_SAM_APDU [18:13:54]CAPDU: 80 13 00 00 [18:13:54]Write to MH i2c: E2 08 00 54 20 80 13 00 00 00 00 00 00 F0 [18:13:54]Write i2c OK [18:13:54]MH_I2C_Read... [18:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:54]Read from MH i2c: E2 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 62 00 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 62 00 54 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [18:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:54]wFMCommunicate OK [18:13:54]SAM_PROTO_GetFieldsCounters done [18:13:54]requested_item shift.num is exist - process it [18:13:54]requested_item shift.opened is exist - process it [18:13:54]req_shift_opened [18:13:54]FM_GetShiftState [18:13:54]SAM_PROTO_GetShiftState [18:13:54]wFMCommunicate request_size=4 [18:13:54]MH_SAM_APDU [18:13:54]CAPDU: 80 13 01 00 [18:13:54]Write to MH i2c: E2 08 00 55 20 80 13 01 00 00 00 00 00 F2 [18:13:54]Write i2c OK [18:13:54]MH_I2C_Read... [18:13:54]OFD Sender: No OFD packet to send [18:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:54]Read from MH i2c: E2 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 0E 00 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 0E 00 55 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 27 [18:13:54]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:13:54]wFMCommunicate OK [18:13:54]SAM_PROTO_GetShiftState done [18:13:54]FM_GetShiftState done [18:13:54]req_shift_opened done [18:13:54]requested_item shift.open_date is exist - process it [18:13:54]req_shift_open_date [18:13:54]req_shift_open_date done [18:13:54]produce_requested_data done [18:13:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156393,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:13:54]process_action_free close_receipt [18:13:54]json_value_free [18:13:54]json_value_free done [18:13:54]process_json_proto returns [18:13:54]Send response to host [18:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156393,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:13:54]free response buf [18:13:54]execute_script done [18:13:54]execute_script returns [18:13:54]free content buf [18:13:54]Sock 8.Close socket [18:13:54]Sock 8.Thread stoped [18:13:59]OFD Sender: No OFD packet to send [18:14:02]int [18:14:02]Write to MH i2c: 01 00 00 56 20 76 [18:14:02]*** FLAG_PRN_KEY set [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: 01 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: 01 07 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: 01 07 00 56 20 00 08 00 00 00 FF 0F 93 [18:14:02]state=0 [18:14:02]Key pressed [18:14:02]Feed [18:14:02]Write to MH i2c: D8 00 00 57 20 4E [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: D8 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: D8 01 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: D8 01 00 57 20 00 4F [18:14:02]int [18:14:02]Write to MH i2c: 01 00 00 58 20 78 [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: 01 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: 01 07 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: 01 07 00 58 20 00 48 00 00 00 3D 00 04 [18:14:02]state=2 [18:14:02]Key pressed [18:14:03]int [18:14:03]Write to MH i2c: 01 00 00 59 20 79 [18:14:03]*** FLAG_PRN_KEY reset [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: 01 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: 01 07 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: 01 07 00 59 20 00 00 00 00 00 FF 0F 8E [18:14:03]state=2 [18:14:03]Stop feed [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:23]accept exits with 9 [18:15:23]New connection [18:15:23]New thread 3066834276 created [18:15:23]Thread 3066977636 joined [18:15:23]Waiting for new connection... [18:15:23] Sock 9.Parse request [18:15:23]Sock 9.Check first char [18:15:23]Sock 9.First char is OK [18:15:23]request: POST /json_proto HTTP/1.0 [18:15:23]Method: POST [18:15:23]URL: /json_proto [18:15:23]Method is POST - this is cgi request [18:15:23]url: /json_proto [18:15:23]query_string will be loaded in cgi processing [18:15:23]execute_cgi json_proto POST (null) [18:15:23]execute_cgi path=json_proto method=POST [18:15:23]POST find Content-Length [18:15:23]Host: 172.17.63.3:8080 [18:15:23]Content-Length: 676 [18:15:23]Content-Type: application/json [18:15:23] [18:15:23]POST finish read [18:15:23]Found Content-Length = 676 [18:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:23]execute_script... [18:15: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)99209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:23]POST & json_proto [18:15:23]process_json_proto [18:15:23]json parsed OK: [18:15:23]protocol is kg_v1.0 [18:15:23]action value=close_receipt [18:15:23]process_action close_receipt [18:15:23]cmd_close_receipt [18:15:23]MH_GetDate [18:15:23]Write to MH i2c: F0 00 00 5A 20 69 [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: F0 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: F0 09 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: F0 09 00 5A 20 00 BD 31 1D 67 50 D1 6C 64 D5 [18:15:23]GetLastDocTimeStamp 1729966433 [18:15:23]current date 1729966525 [18:15:23]FM_GetShiftState [18:15:23]SAM_PROTO_GetShiftState [18:15:23]wFMCommunicate request_size=4 [18:15:23]MH_SAM_APDU [18:15:23]CAPDU: 80 13 01 00 [18:15:23]Write to MH i2c: E2 08 00 5B 20 80 13 01 00 00 00 00 00 F8 [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:23]Read from MH i2c: E2 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 0E 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 0E 00 5B 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2D [18:15:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:15:23]wFMCommunicate OK [18:15:23]SAM_PROTO_GetShiftState done [18:15:23]FM_GetShiftState done [18:15:23]opened in 1729902702 [18:15:23]opened+sec_in_day 1729989102 [18:15:23]quantity*price = 50041 [18:15:23]sum+1 = 50042 [18:15:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 295 26.10.2024 18:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156394 ФПД: 45199585549047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181525&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156394&fm=45199585549047&tin=02508201610067®Number=0000000000091693&sum=50000 [18:15:25]StoreToDocumentArchive [18:15:25]shift 536 fd 156394 [18:15:25]save to /storage/0536/doc_00156394 [18:15:25]save last doc name /storage/0536/doc_00156394 to /storage/kkm_last_doc_name [18:15:25]save OK [18:15:25]Clear old archive folders... [18:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:25]tlvbuf is 016E4220 [18:15:25]SAM_PROTO_ClearQueue [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 09 00 00 [18:15:25]Write to MH i2c: E2 08 00 68 20 80 09 00 00 00 00 00 00 FA [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 68 20 00 90 00 FC [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]SAM_PROTO_ClearQueue done [18:15:25]KKMCreateOFDPacket [18:15:25]OFDProtocolAddRootSTLVToBuf [18:15:25]FM_MakeSignedData [18:15:25]FM_MakeSignedData [18:15:25]SAM_PROTO_SignData [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 01 02 [18:15:25]Write to MH i2c: E2 08 00 69 20 80 0D 01 02 00 00 00 00 02 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 69 20 00 90 00 FD [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=255 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BD 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 62 02 00 35 04 06 00 29 [18:15:25]Write to MH i2c: E2 02 01 6A 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BD 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 62 02 00 35 04 06 00 29 00 00 C1 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 6A 20 00 90 00 FE [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=10 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 02 02 05 1B D9 3D 9A F7 [18:15:25]Write to MH i2c: E2 0D 00 6B 20 80 0D 02 02 05 00 1B D9 3D 9A F7 00 00 D1 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 6B 20 00 90 00 FF [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 03 02 [18:15:25]Write to MH i2c: E2 08 00 6C 20 80 0D 03 02 00 00 00 00 07 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 0B 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 0B 00 6C 20 00 45 04 84 D1 36 76 19 35 90 00 A0 [18:15:25]RAPDU: 45 04 84 D1 36 76 19 35 90 00 [18:15:25]wFMCommunicate OK [18:15:25]SAM_PROTO_SignData done [18:15:25]FM_MakeSignedData done [18:15:25]CreateOFDProtocolMessage [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 11 00 00 [18:15:25]Write to MH i2c: E2 08 00 6D 20 80 11 00 00 00 00 00 00 07 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 17 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 17 00 6D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5C [18:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:15:25]wFMCommunicate OK [18:15:25]CreateOFDProtocolMessage done [18:15:25]OFDSenderStorePacket 156394 [18:15:25]StoreOFDPacket docnum=156394 [18:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 A1 07 01 E1 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BD 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 62 02 00 35 04 06 00 29 1B D9 3D 9A F7 45 04 84 D1 36 76 19 35 [18:15:25]CheckFolder [18:15:25]dirname=/storage/ofd_packets [18:15:25]CheckFolder done [18:15:25]ProducePacketName [18:15:25]name=ofd_packets/00156394 [18:15:25]NVStorageSaveData ofd_packets/00156394 [18:15:25]File name is /storage/ofd_packets/00156394 [18:15:25]Write 301 bytes [18:15:25]NVStorageSaveData done [18:15:25]OFDSenderStorePacket done [18:15:25]KKMCreateOFDPacket done [18:15:25]NVStorageSaveData kkm_last_timestamp [18:15:25]File name is /storage/kkm_last_timestamp [18:15:25]Write 4 bytes [18:15:25]NVStorageSaveData done [18:15:25]ExternCall_PrintAddStr [18:15:25]wPrintStart [18:15:25]Write to MH i2c: 01 00 00 6E 20 8E [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 07 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 07 00 6E 20 00 00 00 00 00 FF 0F A3 [18:15:25]RasterBufferAndPrint [18:15:25]line Счет N : (1)99209 [18:15:25]line ИНН: 02508201610067 [18:15:25]line Контрольно-Кассовый Чек [18:15:25]line ПРОДАЖА [18:15:25]line ТРК (МРК, ГНК) : 21 [18:15:25]line Товар: 2710124130 [18:15:25]line Аи-92-К-5 [18:15:25]line 7.480 * 66.90 [18:15:25]line = 500.41 [18:15:25]line НДС 12% НСП 1% [18:15:25]line > о реализуемом товаре [18:15:25]line ОКРУГЛЕНИЕ: -0.41 [18:15:25]line ИТОГО: 500.00 [18:15:25]line Внесено: 500.00 [18:15:25]line СДАЧА: 0.00 [18:15:25]line НСП 1% : 4.43 [18:15:25]line НДС 12% : 53.14 [18:15:25]line Наличными: 500.00 [18:15:25]line Безнал.: 0.00 [18:15:25]line Место: АЗС № 143 "Партнер Нефть" [18:15:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:15:25]line СНО: Общий режим [18:15:25]line Чек 295 26.10.2024 18:15 [18:15:25]line Смена: 536 ФФД: 1.0 [18:15:25]line ЗНМ: 0300000096 [18:15:25]line РНМ: 0000000000091693 [18:15:25]line Версия ККМ: 001 [18:15:25]line ФМ: 0000000000871792 [18:15:25]line ФД: 156394 [18:15:25]line ФПД: 45199585549047 [18:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181525&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156394&fm=45199585549047&tin=02508201610067®Number=0000000000091693&sum=50000 [18:15:25]OFD Sender: Processing packet 156394 [packets to send 31, broken 30] [18:15:25]ProducePacketName [18:15:25]name=ofd_packets/00156394 [18:15:25]OFD Sender: To server: pG, [18:15:25]CommunicateWithHost lk.salyk.kg:30040 [18:15:25]ConnectInit lk.salyk.kg [18:15:25]written 0, free lines is 4095 [18:15:25]Connected sock=10 [18:15:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 A1 07 01 E1 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BD 31 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 62 02 00 35 04 06 00 29 1B D9 3D 9A F7 45 04 84 D1 36 76 19 35 [18:15:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8A 65 47 00 70 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 62 02 00 F4 03 04 00 2F D7 1C 67 B6 04 01 00 00 F6 4C 28 59 C0 AA 48 C2 [18:15:26]CommunicateWithHost err = 0 [18:15:26]CheckOFDResponse [18:15:26]1017 (14) - 77093643461234 [18:15:26]1041 (16) - 0000000000871792 [18:15:26]1040 (4) - 156394 [18:15:26]1012 (4) - 26.10.2024 11:49 [18:15:26]1206 (1) - 0 [18:15:26]OFD Sender: Remove packet 156394 [18:15:26]ProducePacketName [18:15:26]name=ofd_packets/00156394 [18:15:26]NVStorageDeleteData [18:15:26]Write to MH i2c: 01 00 00 99 20 B9 [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 07 00 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 07 00 99 20 00 00 00 00 00 E5 0C B1 [18:15:26]RasterBufferAndPrint [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]written 0, free lines is 3307 [18:15:26]process_action close_receipt done [18:15:26]requested_data is exist [18:15:26]produce_requested_data [18:15:26]requested_item fm.sn is exist - process it [18:15:26]wFMCommunicate request_size=4 [18:15:26]MH_SAM_APDU [18:15:26]CAPDU: 80 11 00 00 [18:15:26]Write to MH i2c: E2 08 00 A0 20 80 11 00 00 00 00 00 00 3A [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:26]Read from MH i2c: E2 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: E2 17 00 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: E2 17 00 A0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8F [18:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:15:26]wFMCommunicate OK [18:15:26]requested_item fd.num is exist - process it [18:15:26]SAM_PROTO_GetFieldsCounters [18:15:26]wFMCommunicate request_size=4 [18:15:26]MH_SAM_APDU [18:15:26]CAPDU: 80 13 00 00 [18:15:26]Write to MH i2c: E2 08 00 A1 20 80 13 00 00 00 00 00 00 3D [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:26]Read from MH i2c: E2 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: E2 62 00 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: E2 62 00 A1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [18:15: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:26]wFMCommunicate OK [18:15:26]SAM_PROTO_GetFieldsCounters done [18:15:26]requested_item shift.num is exist - process it [18:15:26]requested_item shift.opened is exist - process it [18:15:26]req_shift_opened [18:15:26]FM_GetShiftState [18:15:26]SAM_PROTO_GetShiftState [18:15:26]wFMCommunicate request_size=4 [18:15:26]MH_SAM_APDU [18:15:26]CAPDU: 80 13 01 00 [18:15:26]Write to MH i2c: E2 08 00 A2 20 80 13 01 00 00 00 00 00 3F [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:26]Read from MH i2c: E2 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: E2 0E 00 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: E2 0E 00 A2 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 74 [18:15:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:15:26]wFMCommunicate OK [18:15:26]SAM_PROTO_GetShiftState done [18:15:26]FM_GetShiftState done [18:15:26]req_shift_opened done [18:15:26]requested_item shift.open_date is exist - process it [18:15:26]req_shift_open_date [18:15:26]req_shift_open_date done [18:15:26]produce_requested_data done [18:15:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156394,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:15:26]process_action_free close_receipt [18:15:26]json_value_free [18:15:26]json_value_free done [18:15:26]process_json_proto returns [18:15:26]Send response to host [18:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156394,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:15:26]free response buf [18:15:26]execute_script done [18:15:26]execute_script returns [18:15:26]free content buf [18:15:26]Sock 9.Close socket [18:15:26]Sock 9.Thread stoped [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:16:58]accept exits with 8 [18:16:58]New connection [18:16:58]New thread 3066977636 created [18:16:58]Thread 3066834276 joined [18:16:58]Waiting for new connection... [18:16:58] Sock 8.Parse request [18:16:58]Sock 8.Check first char [18:16:58]Sock 8.First char is OK [18:16:58]request: POST /json_proto HTTP/1.0 [18:16:58]Method: POST [18:16:58]URL: /json_proto [18:16:58]Method is POST - this is cgi request [18:16:58]url: /json_proto [18:16:58]query_string will be loaded in cgi processing [18:16:58]execute_cgi json_proto POST (null) [18:16:58]execute_cgi path=json_proto method=POST [18:16:58]POST find Content-Length [18:16:58]Host: 172.17.63.3:8080 [18:16:58]Content-Length: 765 [18:16:58]Content-Type: application/json [18:16:58] [18:16:58]POST finish read [18:16:58]Found Content-Length = 765 [18:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 230.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:58]execute_script... [18:16:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 230.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:58]POST & json_proto [18:16:58]process_json_proto [18:16:58]json parsed OK: [18:16:58]protocol is kg_v1.0 [18:16:58]action value=close_receipt [18:16:58]process_action close_receipt [18:16:58]cmd_close_receipt [18:16:58]MH_GetDate [18:16:58]Write to MH i2c: F0 00 00 A3 20 B2 [18:16:58]Write i2c OK [18:16:58]MH_I2C_Read... [18:16:58]Read from MH i2c: F0 [18:16:58]MH_I2C_Read... [18:16:58]Read from MH i2c: F0 09 00 [18:16:58]MH_I2C_Read... [18:16:58]Read from MH i2c: F0 09 00 A3 20 00 1C 32 1D 67 50 D1 6C 64 7E [18:16:58]GetLastDocTimeStamp 1729966525 [18:16:58]current date 1729966620 [18:16:58]FM_GetShiftState [18:16:58]SAM_PROTO_GetShiftState [18:16:58]wFMCommunicate request_size=4 [18:16:58]MH_SAM_APDU [18:16:58]CAPDU: 80 13 01 00 [18:16:58]Write to MH i2c: E2 08 00 A4 20 80 13 01 00 00 00 00 00 41 [18:16:58]Write i2c OK [18:16:58]MH_I2C_Read... [18:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:58]Read from MH i2c: E2 [18:16:58]MH_I2C_Read... [18:16:58]Read from MH i2c: E2 0E 00 [18:16:58]MH_I2C_Read... [18:16:58]Read from MH i2c: E2 0E 00 A4 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 76 [18:16:58]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:16:58]wFMCommunicate OK [18:16:58]SAM_PROTO_GetShiftState done [18:16:58]FM_GetShiftState done [18:16:58]opened in 1729902702 [18:16:58]opened+sec_in_day 1729989102 [18:16:58]quantity*price = 23013 [18:16:58]sum+1 = 23015 [18:16:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.14 НСП 1% : 2.04 НДС 12% : 24.44 Наличными: 0.00 Безнал.: 230.14 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 296 26.10.2024 18:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156395 ФПД: 248391788712539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181700&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156395&fm=248391788712539&tin=02508201610067®Number=0000000000091693&sum=23014 [18:16:59]StoreToDocumentArchive [18:16:59]shift 536 fd 156395 [18:16:59]save to /storage/0536/doc_00156395 [18:16:59]save last doc name /storage/0536/doc_00156395 to /storage/kkm_last_doc_name [18:16:59]save OK [18:16:59]Clear old archive folders... [18:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:59]tlvbuf is 01673510 [18:16:59]SAM_PROTO_ClearQueue [18:16:59]wFMCommunicate request_size=4 [18:16:59]MH_SAM_APDU [18:16:59]CAPDU: 80 09 00 00 [18:16:59]Write to MH i2c: E2 08 00 B1 20 80 09 00 00 00 00 00 00 43 [18:16:59]Write i2c OK [18:16:59]MH_I2C_Read... [18:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:00]Read from MH i2c: E2 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 03 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 03 00 B1 20 00 90 00 45 [18:17:00]RAPDU: 90 00 [18:17:00]wFMCommunicate OK [18:17:00]SAM_PROTO_ClearQueue done [18:17:00]KKMCreateOFDPacket [18:17:00]OFDProtocolAddRootSTLVToBuf [18:17:00]FM_MakeSignedData [18:17:00]FM_MakeSignedData [18:17:00]SAM_PROTO_SignData [18:17:00]wFMCommunicate request_size=4 [18:17:00]MH_SAM_APDU [18:17:00]CAPDU: 80 0D 01 02 [18:17:00]Write to MH i2c: E2 08 00 B2 20 80 0D 01 02 00 00 00 00 4B [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:00]Read from MH i2c: E2 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 03 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 03 00 B2 20 00 90 00 46 [18:17:00]RAPDU: 90 00 [18:17:00]wFMCommunicate OK [18:17:00]wFMCommunicate request_size=255 [18:17:00]MH_SAM_APDU [18:17:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 1C 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 62 02 00 35 04 06 00 E1 [18:17:00]Write to MH i2c: E2 02 01 B3 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 1C 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 62 02 00 35 04 06 00 E1 00 00 76 [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:00]Read from MH i2c: E2 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 03 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 03 00 B3 20 00 90 00 47 [18:17:00]RAPDU: 90 00 [18:17:00]wFMCommunicate OK [18:17:00]wFMCommunicate request_size=10 [18:17:00]MH_SAM_APDU [18:17:00]CAPDU: 80 0D 02 02 05 E9 38 54 D2 5B [18:17:00]Write to MH i2c: E2 0D 00 B4 20 80 0D 02 02 05 00 E9 38 54 D2 5B 00 00 FA [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 [18:17:00]MH_I2C_Read... [18:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:00]Read from MH i2c: E2 03 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 03 00 B4 20 00 90 00 48 [18:17:00]RAPDU: 90 00 [18:17:00]wFMCommunicate OK [18:17:00]wFMCommunicate request_size=4 [18:17:00]MH_SAM_APDU [18:17:00]CAPDU: 80 0D 03 02 [18:17:00]Write to MH i2c: E2 08 00 B5 20 80 0D 03 02 00 00 00 00 50 [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:00]Read from MH i2c: E2 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 0B 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 0B 00 B5 20 00 E0 BE 40 80 4C B0 FA DB 90 00 80 [18:17:00]RAPDU: E0 BE 40 80 4C B0 FA DB 90 00 [18:17:00]wFMCommunicate OK [18:17:00]SAM_PROTO_SignData done [18:17:00]FM_MakeSignedData done [18:17:00]CreateOFDProtocolMessage [18:17:00]wFMCommunicate request_size=4 [18:17:00]MH_SAM_APDU [18:17:00]CAPDU: 80 11 00 00 [18:17:00]Write to MH i2c: E2 08 00 B6 20 80 11 00 00 00 00 00 00 50 [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:00]Read from MH i2c: E2 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 17 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 17 00 B6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [18:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:17:00]wFMCommunicate OK [18:17:00]CreateOFDProtocolMessage done [18:17:00]OFDSenderStorePacket 156395 [18:17:00]StoreOFDPacket docnum=156395 [18:17:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 65 07 01 86 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 1C 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 62 02 00 35 04 06 00 E1 E9 38 54 D2 5B E0 BE 40 80 4C B0 FA DB [18:17:00]CheckFolder [18:17:00]dirname=/storage/ofd_packets [18:17:00]CheckFolder done [18:17:00]ProducePacketName [18:17:00]name=ofd_packets/00156395 [18:17:00]NVStorageSaveData ofd_packets/00156395 [18:17:00]File name is /storage/ofd_packets/00156395 [18:17:00]Write 301 bytes [18:17:00]NVStorageSaveData done [18:17:00]OFDSenderStorePacket done [18:17:00]KKMCreateOFDPacket done [18:17:00]NVStorageSaveData kkm_last_timestamp [18:17:00]File name is /storage/kkm_last_timestamp [18:17:00]Write 4 bytes [18:17:00]NVStorageSaveData done [18:17:00]ExternCall_PrintAddStr [18:17:00]wPrintStart [18:17:00]Write to MH i2c: 01 00 00 B7 20 D7 [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: 01 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: 01 07 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: 01 07 00 B7 20 00 00 00 00 00 FF 0F EC [18:17:00]RasterBufferAndPrint [18:17:00]line Счет N : (1)99210 [18:17:00]line ИНН: 02508201610067 [18:17:00]line Контрольно-Кассовый Чек [18:17:00]line ПРОДАЖА [18:17:00]line ТРК (МРК, ГНК) : 31 [18:17:00]line Товар: 2710124130 [18:17:00]line Аи-92-К-5 [18:17:00]line 3.440 * 66.90 [18:17:00]line = 230.14 [18:17:00]line НДС 12% НСП 1% [18:17:00]line > о реализуемом товаре [18:17:00]line ИТОГО: 230.14 [18:17:00]line НСП 1% : 2.04 [18:17:00]line НДС 12% : 24.44 [18:17:00]line Наличными: 0.00 [18:17:00]line Безнал.: 230.14 [18:17:00]line Место: АЗС № 143 "Партнер Нефть" [18:17:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:17:00]line СНО: Общий режим [18:17:00]line Чек 296 26.10.2024 18:17 [18:17:00]line Смена: 536 ФФД: 1.0 [18:17:00]line ЗНМ: 0300000096 [18:17:00]line РНМ: 0000000000091693 [18:17:00]line Версия ККМ: 001 [18:17:00]line Платежная система: Mbank [18:17:00]line ФМ: 0000000000871792 [18:17:00]line ФД: 156395 [18:17:00]line ФПД: 248391788712539 [18:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181700&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156395&fm=248391788712539&tin=02508201610067®Number=0000000000091693&sum=23014 [18:17:00]OFD Sender: Processing packet 156395 [packets to send 31, broken 30] [18:17:00]ProducePacketName [18:17:00]name=ofd_packets/00156395 [18:17:00]OFD Sender: To server: pG, [18:17:00]CommunicateWithHost lk.salyk.kg:30040 [18:17:00]ConnectInit lk.salyk.kg [18:17:00]written 0, free lines is 4095 [18:17:00]Connected sock=10 [18:17:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 65 07 01 86 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 1C 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 62 02 00 35 04 06 00 E1 E9 38 54 D2 5B E0 BE 40 80 4C B0 FA DB [18:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0A 43 47 00 F9 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 62 02 00 F4 03 04 00 8E D7 1C 67 B6 04 01 00 00 CA C8 78 7B 35 DF 84 41 [18:17:01]CommunicateWithHost err = 0 [18:17:01]CheckOFDResponse [18:17:01]1017 (14) - 77093643461234 [18:17:01]1041 (16) - 0000000000871792 [18:17:01]1040 (4) - 156395 [18:17:01]1012 (4) - 26.10.2024 11:50 [18:17:01]1206 (1) - 0 [18:17:01]OFD Sender: Remove packet 156395 [18:17:01]ProducePacketName [18:17:01]name=ofd_packets/00156395 [18:17:01]NVStorageDeleteData [18:17:01]Write to MH i2c: 01 00 00 E0 20 00 [18:17:01]Write i2c OK [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: 01 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: 01 07 00 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: 01 07 00 E0 20 00 00 00 00 00 05 0D 19 [18:17:01]RasterBufferAndPrint [18:17:01]line [18:17:01]line [18:17:01]line [18:17:01]line [18:17:01]line [18:17:01]written 0, free lines is 3340 [18:17:01]process_action close_receipt done [18:17:01]requested_data is exist [18:17:01]produce_requested_data [18:17:01]requested_item fm.sn is exist - process it [18:17:01]wFMCommunicate request_size=4 [18:17:01]MH_SAM_APDU [18:17:01]CAPDU: 80 11 00 00 [18:17:01]Write to MH i2c: E2 08 00 E7 20 80 11 00 00 00 00 00 00 81 [18:17:01]Write i2c OK [18:17:01]MH_I2C_Read... [18:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:01]Read from MH i2c: E2 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 17 00 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 17 00 E7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [18:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:17:01]wFMCommunicate OK [18:17:01]requested_item fd.num is exist - process it [18:17:01]SAM_PROTO_GetFieldsCounters [18:17:01]wFMCommunicate request_size=4 [18:17:01]MH_SAM_APDU [18:17:01]CAPDU: 80 13 00 00 [18:17:01]Write to MH i2c: E2 08 00 E8 20 80 13 00 00 00 00 00 00 84 [18:17:01]Write i2c OK [18:17:01]MH_I2C_Read... [18:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:01]Read from MH i2c: E2 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 62 00 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 62 00 E8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [18:17: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:01]wFMCommunicate OK [18:17:01]SAM_PROTO_GetFieldsCounters done [18:17:01]requested_item shift.num is exist - process it [18:17:01]requested_item shift.opened is exist - process it [18:17:01]req_shift_opened [18:17:01]FM_GetShiftState [18:17:01]SAM_PROTO_GetShiftState [18:17:01]wFMCommunicate request_size=4 [18:17:01]MH_SAM_APDU [18:17:01]CAPDU: 80 13 01 00 [18:17:01]Write to MH i2c: E2 08 00 E9 20 80 13 01 00 00 00 00 00 86 [18:17:01]Write i2c OK [18:17:01]MH_I2C_Read... [18:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:01]Read from MH i2c: E2 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 0E 00 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 0E 00 E9 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [18:17:01]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:17:01]wFMCommunicate OK [18:17:01]SAM_PROTO_GetShiftState done [18:17:01]FM_GetShiftState done [18:17:01]req_shift_opened done [18:17:01]requested_item shift.open_date is exist - process it [18:17:01]req_shift_open_date [18:17:01]req_shift_open_date done [18:17:01]produce_requested_data done [18:17:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156395,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:17:01]process_action_free close_receipt [18:17:01]json_value_free [18:17:01]json_value_free done [18:17:01]process_json_proto returns [18:17:01]Send response to host [18:17:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156395,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:17:01]free response buf [18:17:01]execute_script done [18:17:01]execute_script returns [18:17:01]free content buf [18:17:01]Sock 8.Close socket [18:17:01]Sock 8.Thread stoped [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:10]accept exits with 9 [18:20:10]New connection [18:20:10]New thread 3066834276 created [18:20:10]Thread 3066977636 joined [18:20:10]Waiting for new connection... [18:20:10] Sock 9.Parse request [18:20:10]Sock 9.Check first char [18:20:10]Sock 9.First char is OK [18:20:10]request: POST /json_proto HTTP/1.0 [18:20:10]Method: POST [18:20:10]URL: /json_proto [18:20:10]Method is POST - this is cgi request [18:20:10]url: /json_proto [18:20:10]query_string will be loaded in cgi processing [18:20:10]execute_cgi json_proto POST (null) [18:20:10]execute_cgi path=json_proto method=POST [18:20:10]POST find Content-Length [18:20:10]Host: 172.17.63.3:8080 [18:20:10]Content-Length: 677 [18:20:10]Content-Type: application/json [18:20:10] [18:20:10]POST finish read [18:20:10]Found Content-Length = 677 [18:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:10]execute_script... [18:20:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:10]POST & json_proto [18:20:10]process_json_proto [18:20:10]json parsed OK: [18:20:10]protocol is kg_v1.0 [18:20:10]action value=close_receipt [18:20:10]process_action close_receipt [18:20:10]cmd_close_receipt [18:20:10]MH_GetDate [18:20:10]Write to MH i2c: F0 00 00 EA 20 F9 [18:20:10]Write i2c OK [18:20:10]MH_I2C_Read... [18:20:10]Read from MH i2c: F0 [18:20:10]MH_I2C_Read... [18:20:10]Read from MH i2c: F0 09 00 [18:20:10]MH_I2C_Read... [18:20:10]Read from MH i2c: F0 09 00 EA 20 00 DB 32 1D 67 50 D1 6C 64 84 [18:20:10]GetLastDocTimeStamp 1729966620 [18:20:10]current date 1729966811 [18:20:10]FM_GetShiftState [18:20:10]SAM_PROTO_GetShiftState [18:20:10]wFMCommunicate request_size=4 [18:20:10]MH_SAM_APDU [18:20:10]CAPDU: 80 13 01 00 [18:20:10]Write to MH i2c: E2 08 00 EB 20 80 13 01 00 00 00 00 00 88 [18:20:10]Write i2c OK [18:20:10]MH_I2C_Read... [18:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:10]Read from MH i2c: E2 [18:20:10]MH_I2C_Read... [18:20:10]Read from MH i2c: E2 0E 00 [18:20:10]MH_I2C_Read... [18:20:10]Read from MH i2c: E2 0E 00 EB 20 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BD [18:20:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:20:10]wFMCommunicate OK [18:20:10]SAM_PROTO_GetShiftState done [18:20:10]FM_GetShiftState done [18:20:10]opened in 1729902702 [18:20:10]opened+sec_in_day 1729989102 [18:20:10]quantity*price = 70044 [18:20:10]sum+1 = 70045 [18:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 297 26.10.2024 18:20 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156396 ФПД: 208778288181361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182011&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156396&fm=208778288181361&tin=02508201610067®Number=0000000000091693&sum=70000 [18:20:11]StoreToDocumentArchive [18:20:11]shift 536 fd 156396 [18:20:11]save to /storage/0536/doc_00156396 [18:20:11]save last doc name /storage/0536/doc_00156396 to /storage/kkm_last_doc_name [18:20:11]save OK [18:20:11]Clear old archive folders... [18:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:11]tlvbuf is 01726D20 [18:20:11]SAM_PROTO_ClearQueue [18:20:11]wFMCommunicate request_size=4 [18:20:11]MH_SAM_APDU [18:20:11]CAPDU: 80 09 00 00 [18:20:11]Write to MH i2c: E2 08 00 F8 20 80 09 00 00 00 00 00 00 8A [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:11]Read from MH i2c: E2 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 03 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 03 00 F8 20 00 90 00 8C [18:20:11]RAPDU: 90 00 [18:20:11]wFMCommunicate OK [18:20:11]SAM_PROTO_ClearQueue done [18:20:11]KKMCreateOFDPacket [18:20:11]OFDProtocolAddRootSTLVToBuf [18:20:11]FM_MakeSignedData [18:20:11]FM_MakeSignedData [18:20:11]SAM_PROTO_SignData [18:20:11]wFMCommunicate request_size=4 [18:20:11]MH_SAM_APDU [18:20:11]CAPDU: 80 0D 01 02 [18:20:11]Write to MH i2c: E2 08 00 F9 20 80 0D 01 02 00 00 00 00 92 [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:11]Read from MH i2c: E2 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 03 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 03 00 F9 20 00 90 00 8D [18:20:11]RAPDU: 90 00 [18:20:11]wFMCommunicate OK [18:20:11]wFMCommunicate request_size=255 [18:20:11]MH_SAM_APDU [18:20:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 DB 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 62 02 00 35 04 06 00 BD [18:20:11]Write to MH i2c: E2 02 01 FA 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 DB 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 62 02 00 35 04 06 00 BD 00 00 18 [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:11]Read from MH i2c: E2 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 03 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 03 00 FA 20 00 90 00 8E [18:20:11]RAPDU: 90 00 [18:20:11]wFMCommunicate OK [18:20:11]wFMCommunicate request_size=10 [18:20:11]MH_SAM_APDU [18:20:11]CAPDU: 80 0D 02 02 05 E1 FB B4 30 71 [18:20:11]Write to MH i2c: E2 0D 00 FB 20 80 0D 02 02 05 00 E1 FB B4 30 71 00 00 D0 [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:11]Read from MH i2c: E2 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 03 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 03 00 FB 20 00 90 00 8F [18:20:11]RAPDU: 90 00 [18:20:11]wFMCommunicate OK [18:20:11]wFMCommunicate request_size=4 [18:20:11]MH_SAM_APDU [18:20:11]CAPDU: 80 0D 03 02 [18:20:11]Write to MH i2c: E2 08 00 FC 20 80 0D 03 02 00 00 00 00 97 [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:11]Read from MH i2c: E2 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 0B 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 0B 00 FC 20 00 1C FA 5F 8A 14 7E 33 1A 90 00 76 [18:20:11]RAPDU: 1C FA 5F 8A 14 7E 33 1A 90 00 [18:20:11]wFMCommunicate OK [18:20:11]SAM_PROTO_SignData done [18:20:11]FM_MakeSignedData done [18:20:11]CreateOFDProtocolMessage [18:20:11]wFMCommunicate request_size=4 [18:20:11]MH_SAM_APDU [18:20:11]CAPDU: 80 11 00 00 [18:20:11]Write to MH i2c: E2 08 00 FD 20 80 11 00 00 00 00 00 00 97 [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:11]Read from MH i2c: E2 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 17 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 17 00 FD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [18:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:20:11]wFMCommunicate OK [18:20:11]CreateOFDProtocolMessage done [18:20:11]OFDSenderStorePacket 156396 [18:20:11]StoreOFDPacket docnum=156396 [18:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 B2 07 01 9B 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 DB 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 62 02 00 35 04 06 00 BD E1 FB B4 30 71 1C FA 5F 8A 14 7E 33 1A [18:20:11]CheckFolder [18:20:11]dirname=/storage/ofd_packets [18:20:11]CheckFolder done [18:20:11]ProducePacketName [18:20:11]name=ofd_packets/00156396 [18:20:11]NVStorageSaveData ofd_packets/00156396 [18:20:11]File name is /storage/ofd_packets/00156396 [18:20:11]Write 301 bytes [18:20:11]NVStorageSaveData done [18:20:11]OFDSenderStorePacket done [18:20:11]KKMCreateOFDPacket done [18:20:11]NVStorageSaveData kkm_last_timestamp [18:20:11]File name is /storage/kkm_last_timestamp [18:20:11]Write 4 bytes [18:20:11]NVStorageSaveData done [18:20:11]ExternCall_PrintAddStr [18:20:11]wPrintStart [18:20:11]Write to MH i2c: 01 00 00 FE 20 1E [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: 01 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: 01 07 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: 01 07 00 FE 20 00 00 00 00 00 FF 0F 33 [18:20:11]RasterBufferAndPrint [18:20:11]line Счет N : (1)99211 [18:20:11]line ИНН: 02508201610067 [18:20:11]line Контрольно-Кассовый Чек [18:20:11]line ПРОДАЖА [18:20:11]line ТРК (МРК, ГНК) : 11 [18:20:11]line Товар: 2710124130 [18:20:11]line Аи-92-К-5 [18:20:11]line 10.470 * 66.90 [18:20:11]line = 700.44 [18:20:11]line НДС 12% НСП 1% [18:20:11]line > о реализуемом товаре [18:20:11]line ОКРУГЛЕНИЕ: -0.44 [18:20:11]line ИТОГО: 700.00 [18:20:11]line Внесено: 700.00 [18:20:11]line СДАЧА: 0.00 [18:20:11]line НСП 1% : 6.20 [18:20:11]line НДС 12% : 74.38 [18:20:11]line Наличными: 700.00 [18:20:11]line Безнал.: 0.00 [18:20:11]line Место: АЗС № 143 "Партнер Нефть" [18:20:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:20:11]line СНО: Общий режим [18:20:11]line Чек 297 26.10.2024 18:20 [18:20:11]line Смена: 536 ФФД: 1.0 [18:20:11]line ЗНМ: 0300000096 [18:20:11]line РНМ: 0000000000091693 [18:20:11]line Версия ККМ: 001 [18:20:11]line ФМ: 0000000000871792 [18:20:11]line ФД: 156396 [18:20:11]line ФПД: 208778288181361 [18:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182011&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156396&fm=208778288181361&tin=02508201610067®Number=0000000000091693&sum=70000 [18:20:12]OFD Sender: Processing packet 156396 [packets to send 31, broken 30] [18:20:12]ProducePacketName [18:20:12]name=ofd_packets/00156396 [18:20:12]OFD Sender: To server: pG, [18:20:12]CommunicateWithHost lk.salyk.kg:30040 [18:20:12]ConnectInit lk.salyk.kg [18:20:12]written 0, free lines is 4095 [18:20:12]Connected sock=10 [18:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 B2 07 01 9B 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 DB 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 62 02 00 35 04 06 00 BD E1 FB B4 30 71 1C FA 5F 8A 14 7E 33 1A [18:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 24 1F 47 00 EF 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 62 02 00 F4 03 04 00 4D D8 1C 67 B6 04 01 00 00 23 B6 21 9A BA B1 A9 5F [18:20:12]CommunicateWithHost err = 0 [18:20:12]CheckOFDResponse [18:20:12]1017 (14) - 77093643461234 [18:20:12]1041 (16) - 0000000000871792 [18:20:12]1040 (4) - 156396 [18:20:12]1012 (4) - 26.10.2024 11:53 [18:20:12]1206 (1) - 0 [18:20:12]OFD Sender: Remove packet 156396 [18:20:12]ProducePacketName [18:20:12]name=ofd_packets/00156396 [18:20:12]NVStorageDeleteData [18:20:12]Write to MH i2c: 01 00 00 29 21 4A [18:20:12]Write i2c OK [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: 01 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: 01 07 00 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: 01 07 00 29 21 00 00 00 00 00 E9 0C 46 [18:20:12]RasterBufferAndPrint [18:20:12]line [18:20:12]line [18:20:12]line [18:20:12]line [18:20:12]line [18:20:12]written 0, free lines is 3311 [18:20:12]process_action close_receipt done [18:20:12]requested_data is exist [18:20:12]produce_requested_data [18:20:12]requested_item fm.sn is exist - process it [18:20:12]wFMCommunicate request_size=4 [18:20:12]MH_SAM_APDU [18:20:12]CAPDU: 80 11 00 00 [18:20:12]Write to MH i2c: E2 08 00 30 21 80 11 00 00 00 00 00 00 CB [18:20:12]Write i2c OK [18:20:12]MH_I2C_Read... [18:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:12]Read from MH i2c: E2 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 17 00 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 17 00 30 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [18:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:20:12]wFMCommunicate OK [18:20:12]requested_item fd.num is exist - process it [18:20:12]SAM_PROTO_GetFieldsCounters [18:20:12]wFMCommunicate request_size=4 [18:20:12]MH_SAM_APDU [18:20:12]CAPDU: 80 13 00 00 [18:20:12]Write to MH i2c: E2 08 00 31 21 80 13 00 00 00 00 00 00 CE [18:20:12]Write i2c OK [18:20:12]MH_I2C_Read... [18:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:12]Read from MH i2c: E2 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 62 00 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 62 00 31 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:20: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:12]wFMCommunicate OK [18:20:12]SAM_PROTO_GetFieldsCounters done [18:20:12]requested_item shift.num is exist - process it [18:20:12]requested_item shift.opened is exist - process it [18:20:12]req_shift_opened [18:20:12]FM_GetShiftState [18:20:12]SAM_PROTO_GetShiftState [18:20:12]wFMCommunicate request_size=4 [18:20:12]MH_SAM_APDU [18:20:12]CAPDU: 80 13 01 00 [18:20:12]Write to MH i2c: E2 08 00 32 21 80 13 01 00 00 00 00 00 D0 [18:20:12]Write i2c OK [18:20:12]MH_I2C_Read... [18:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:12]Read from MH i2c: E2 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 0E 00 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 0E 00 32 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 05 [18:20:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:20:12]wFMCommunicate OK [18:20:12]SAM_PROTO_GetShiftState done [18:20:12]FM_GetShiftState done [18:20:12]req_shift_opened done [18:20:12]requested_item shift.open_date is exist - process it [18:20:12]req_shift_open_date [18:20:12]req_shift_open_date done [18:20:12]produce_requested_data done [18:20:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156396,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:20:12]process_action_free close_receipt [18:20:12]json_value_free [18:20:12]json_value_free done [18:20:12]process_json_proto returns [18:20:12]Send response to host [18:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156396,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:20:12]free response buf [18:20:12]execute_script done [18:20:12]execute_script returns [18:20:12]free content buf [18:20:12]Sock 9.Close socket [18:20:12]Sock 9.Thread stoped [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:45]accept exits with 8 [18:20:45]New connection [18:20:45]New thread 3066977636 created [18:20:45]Thread 3066834276 joined [18:20:45]Waiting for new connection... [18:20:45] Sock 8.Parse request [18:20:45]Sock 8.Check first char [18:20:45]Sock 8.First char is OK [18:20:45]request: POST /json_proto HTTP/1.0 [18:20:45]Method: POST [18:20:45]URL: /json_proto [18:20:45]Method is POST - this is cgi request [18:20:45]url: /json_proto [18:20:45]query_string will be loaded in cgi processing [18:20:45]execute_cgi json_proto POST (null) [18:20:45]execute_cgi path=json_proto method=POST [18:20:45]POST find Content-Length [18:20:45]Host: 172.17.63.3:8080 [18:20:45]Content-Length: 799 [18:20:45]Content-Type: application/json [18:20:45] [18:20:45]POST finish read [18:20:45]Found Content-Length = 799 [18:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3945280", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:45]execute_script... [18:20:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3945280", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:45]POST & json_proto [18:20:45]process_json_proto [18:20:45]json parsed OK: [18:20:45]protocol is kg_v1.0 [18:20:45]action value=close_receipt [18:20:45]process_action close_receipt [18:20:45]cmd_close_receipt [18:20:45]MH_GetDate [18:20:45]Write to MH i2c: F0 00 00 33 21 43 [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: F0 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: F0 09 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: F0 09 00 33 21 00 FF 32 1D 67 50 D1 6C 64 F2 [18:20:45]GetLastDocTimeStamp 1729966811 [18:20:45]current date 1729966847 [18:20:45]FM_GetShiftState [18:20:45]SAM_PROTO_GetShiftState [18:20:45]wFMCommunicate request_size=4 [18:20:45]MH_SAM_APDU [18:20:45]CAPDU: 80 13 01 00 [18:20:45]Write to MH i2c: E2 08 00 34 21 80 13 01 00 00 00 00 00 D2 [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:45]Read from MH i2c: E2 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 0E 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 0E 00 34 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 07 [18:20:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:20:45]wFMCommunicate OK [18:20:45]SAM_PROTO_GetShiftState done [18:20:45]FM_GetShiftState done [18:20:45]opened in 1729902702 [18:20:45]opened+sec_in_day 1729989102 [18:20:45]quantity*price = 0 [18:20:45]sum+1 = 1 [18:20:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 298 26.10.2024 18:20 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 3945280 ФМ: 0000000000871792 ФД: 156397 ФПД: 90555609033412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182047&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156397&fm=90555609033412&tin=02508201610067®Number=0000000000091693&sum=0 [18:20:46]StoreToDocumentArchive [18:20:46]shift 536 fd 156397 [18:20:46]save to /storage/0536/doc_00156397 [18:20:46]save last doc name /storage/0536/doc_00156397 to /storage/kkm_last_doc_name [18:20:46]save OK [18:20:46]Clear old archive folders... [18:20:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:46]tlvbuf is B6EAE140 [18:20:46]SAM_PROTO_ClearQueue [18:20:46]wFMCommunicate request_size=4 [18:20:46]MH_SAM_APDU [18:20:46]CAPDU: 80 09 00 00 [18:20:46]Write to MH i2c: E2 08 00 41 21 80 09 00 00 00 00 00 00 D4 [18:20:46]Write i2c OK [18:20:46]MH_I2C_Read... [18:20:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:46]Read from MH i2c: E2 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 03 00 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 03 00 41 21 00 90 00 D6 [18:20:46]RAPDU: 90 00 [18:20:46]wFMCommunicate OK [18:20:46]SAM_PROTO_ClearQueue done [18:20:46]KKMCreateOFDPacket [18:20:46]OFDProtocolAddRootSTLVToBuf [18:20:46]FM_MakeSignedData [18:20:46]FM_MakeSignedData [18:20:46]SAM_PROTO_SignData [18:20:46]wFMCommunicate request_size=4 [18:20:46]MH_SAM_APDU [18:20:46]CAPDU: 80 0D 01 02 [18:20:46]Write to MH i2c: E2 08 00 42 21 80 0D 01 02 00 00 00 00 DC [18:20:46]Write i2c OK [18:20:46]MH_I2C_Read... [18:20:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:46]Read from MH i2c: E2 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 03 00 [18:20:46]MH_I2C_Read... [18:20:46]Read from MH i2c: E2 03 00 42 21 00 90 00 D7 [18:20:46]RAPDU: 90 00 [18:20:46]wFMCommunicate OK [18:20:46]wFMCommunicate request_size=255 [18:20:46]MH_SAM_APDU [18:20:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 FF 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 62 02 00 35 04 06 00 52 [18:20:46]Write to MH i2c: E2 02 01 43 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 FF 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 62 02 00 35 04 06 00 52 00 00 F6 [18:20:46]Write i2c OK [18:20:46]MH_I2C_Read... [18:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:47]Read from MH i2c: E2 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 03 00 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 03 00 43 21 00 90 00 D8 [18:20:47]RAPDU: 90 00 [18:20:47]wFMCommunicate OK [18:20:47]wFMCommunicate request_size=10 [18:20:47]MH_SAM_APDU [18:20:47]CAPDU: 80 0D 02 02 05 5C 1E E8 AA C4 [18:20:47]Write to MH i2c: E2 0D 00 44 21 80 0D 02 02 05 00 5C 1E E8 AA C4 00 00 B9 [18:20:47]Write i2c OK [18:20:47]MH_I2C_Read... [18:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:47]Read from MH i2c: E2 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 03 00 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 03 00 44 21 00 90 00 D9 [18:20:47]RAPDU: 90 00 [18:20:47]wFMCommunicate OK [18:20:47]wFMCommunicate request_size=4 [18:20:47]MH_SAM_APDU [18:20:47]CAPDU: 80 0D 03 02 [18:20:47]Write to MH i2c: E2 08 00 45 21 80 0D 03 02 00 00 00 00 E1 [18:20:47]Write i2c OK [18:20:47]MH_I2C_Read... [18:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:47]Read from MH i2c: E2 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 0B 00 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 0B 00 45 21 00 8E 54 24 00 ED E4 00 8F 90 00 48 [18:20:47]RAPDU: 8E 54 24 00 ED E4 00 8F 90 00 [18:20:47]wFMCommunicate OK [18:20:47]SAM_PROTO_SignData done [18:20:47]FM_MakeSignedData done [18:20:47]CreateOFDProtocolMessage [18:20:47]wFMCommunicate request_size=4 [18:20:47]MH_SAM_APDU [18:20:47]CAPDU: 80 11 00 00 [18:20:47]Write to MH i2c: E2 08 00 46 21 80 11 00 00 00 00 00 00 E1 [18:20:47]Write i2c OK [18:20:47]MH_I2C_Read... [18:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:47]Read from MH i2c: E2 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 17 00 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 17 00 46 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 36 [18:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:20:47]wFMCommunicate OK [18:20:47]CreateOFDProtocolMessage done [18:20:47]OFDSenderStorePacket 156397 [18:20:47]StoreOFDPacket docnum=156397 [18:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7E FD 07 01 E2 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 FF 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 62 02 00 35 04 06 00 52 5C 1E E8 AA C4 8E 54 24 00 ED E4 00 8F [18:20:47]CheckFolder [18:20:47]dirname=/storage/ofd_packets [18:20:47]CheckFolder done [18:20:47]ProducePacketName [18:20:47]name=ofd_packets/00156397 [18:20:47]NVStorageSaveData ofd_packets/00156397 [18:20:47]File name is /storage/ofd_packets/00156397 [18:20:47]Write 301 bytes [18:20:47]NVStorageSaveData done [18:20:47]OFDSenderStorePacket done [18:20:47]KKMCreateOFDPacket done [18:20:47]NVStorageSaveData kkm_last_timestamp [18:20:47]File name is /storage/kkm_last_timestamp [18:20:47]Write 4 bytes [18:20:47]NVStorageSaveData done [18:20:47]ExternCall_PrintAddStr [18:20:47]wPrintStart [18:20:47]Write to MH i2c: 01 00 00 47 21 68 [18:20:47]Write i2c OK [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: 01 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: 01 07 00 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: 01 07 00 47 21 00 00 00 00 00 FF 0F 7D [18:20:47]RasterBufferAndPrint [18:20:47]line Счет N : (1)99212 [18:20:47]line ИНН: 02508201610067 [18:20:47]line Контрольно-Кассовый Чек [18:20:47]line ПРОДАЖА [18:20:47]line ТРК (МРК, ГНК) : 21 [18:20:47]line Товар: 2710124130 [18:20:47]line Аи-92-К-5 [18:20:47]line 20.000 * 0.00 [18:20:47]line = 0.00 [18:20:47]line НДС 12% НСП 1% [18:20:47]line > о реализуемом товаре [18:20:47]line ИТОГО: 0.00 [18:20:47]line НСП 1% : 0.00 [18:20:47]line НДС 12% : 0.00 [18:20:47]line Наличными: 0.00 [18:20:47]line Безнал.: 0.00 [18:20:47]line Место: АЗС № 143 "Партнер Нефть" [18:20:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:20:47]line СНО: Общий режим [18:20:47]line Чек 298 26.10.2024 18:20 [18:20:47]line Смена: 536 ФФД: 1.0 [18:20:47]line ЗНМ: 0300000096 [18:20:47]line РНМ: 0000000000091693 [18:20:47]line Версия ККМ: 001 [18:20:47]line Талоны: Топливные Талоны [18:20:47]line 3945280 [18:20:47]line ФМ: 0000000000871792 [18:20:47]line ФД: 156397 [18:20:47]line ФПД: 90555609033412 [18:20:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182047&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156397&fm=90555609033412&tin=02508201610067®Number=0000000000091693&sum=0 [18:20:47]written 0, free lines is 4095 [18:20:47]OFD Sender: Processing packet 156397 [packets to send 31, broken 30] [18:20:47]ProducePacketName [18:20:47]name=ofd_packets/00156397 [18:20:47]OFD Sender: To server: pG, [18:20:47]CommunicateWithHost lk.salyk.kg:30040 [18:20:47]ConnectInit lk.salyk.kg [18:20:47]Connected sock=10 [18:20:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7E FD 07 01 E2 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 FF 32 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 62 02 00 35 04 06 00 52 5C 1E E8 AA C4 8E 54 24 00 ED E4 00 8F [18:20:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 78 1A 47 00 81 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 62 02 00 F4 03 04 00 71 D8 1C 67 B6 04 01 00 00 1D DD 7F AB 2B D6 91 25 [18:20:47]CommunicateWithHost err = 0 [18:20:47]CheckOFDResponse [18:20:47]1017 (14) - 77093643461234 [18:20:47]1041 (16) - 0000000000871792 [18:20:47]1040 (4) - 156397 [18:20:47]1012 (4) - 26.10.2024 11:54 [18:20:47]1206 (1) - 0 [18:20:47]OFD Sender: Remove packet 156397 [18:20:47]ProducePacketName [18:20:47]name=ofd_packets/00156397 [18:20:47]NVStorageDeleteData [18:20:48]Write to MH i2c: 01 00 00 71 21 92 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: 01 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: 01 07 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: 01 07 00 71 21 00 00 00 00 00 F6 0C 9B [18:20:48]RasterBufferAndPrint [18:20:48]line [18:20:48]line [18:20:48]line [18:20:48]line [18:20:48]line [18:20:48]written 0, free lines is 3324 [18:20:48]process_action close_receipt done [18:20:48]requested_data is exist [18:20:48]produce_requested_data [18:20:48]requested_item fm.sn is exist - process it [18:20:48]wFMCommunicate request_size=4 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 11 00 00 [18:20:48]Write to MH i2c: E2 08 00 78 21 80 11 00 00 00 00 00 00 13 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 17 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 17 00 78 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [18:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:20:48]wFMCommunicate OK [18:20:48]requested_item fd.num is exist - process it [18:20:48]SAM_PROTO_GetFieldsCounters [18:20:48]wFMCommunicate request_size=4 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 13 00 00 [18:20:48]Write to MH i2c: E2 08 00 79 21 80 13 00 00 00 00 00 00 16 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 62 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 62 00 79 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [18:20: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:48]wFMCommunicate OK [18:20:48]SAM_PROTO_GetFieldsCounters done [18:20:48]requested_item shift.num is exist - process it [18:20:48]requested_item shift.opened is exist - process it [18:20:48]req_shift_opened [18:20:48]FM_GetShiftState [18:20:48]SAM_PROTO_GetShiftState [18:20:48]wFMCommunicate request_size=4 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 13 01 00 [18:20:48]Write to MH i2c: E2 08 00 7A 21 80 13 01 00 00 00 00 00 18 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 0E 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 0E 00 7A 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4D [18:20:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:20:48]wFMCommunicate OK [18:20:48]SAM_PROTO_GetShiftState done [18:20:48]FM_GetShiftState done [18:20:48]req_shift_opened done [18:20:48]requested_item shift.open_date is exist - process it [18:20:48]req_shift_open_date [18:20:48]req_shift_open_date done [18:20:48]produce_requested_data done [18:20:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156397,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:20:48]process_action_free close_receipt [18:20:48]json_value_free [18:20:48]json_value_free done [18:20:48]process_json_proto returns [18:20:48]Send response to host [18:20:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156397,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:20:48]free response buf [18:20:48]execute_script done [18:20:48]execute_script returns [18:20:48]free content buf [18:20:48]Sock 8.Close socket [18:20:48]Sock 8.Thread stoped [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:13]int [18:21:13]Write to MH i2c: 01 00 00 7B 21 9C [18:21:13]*** FLAG_PRN_KEY set [18:21:13]Write i2c OK [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: 01 [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: 01 07 00 [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: 01 07 00 7B 21 00 08 00 00 00 FF 0F B9 [18:21:13]state=0 [18:21:13]Key pressed [18:21:13]Feed [18:21:13]Write to MH i2c: D8 00 00 7C 21 74 [18:21:13]Write i2c OK [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: D8 [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: D8 01 00 [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: D8 01 00 7C 21 00 75 [18:21:13]int [18:21:13]Write to MH i2c: 01 00 00 7D 21 9E [18:21:13]Write i2c OK [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: 01 [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: 01 07 00 [18:21:13]MH_I2C_Read... [18:21:13]Read from MH i2c: 01 07 00 7D 21 00 48 00 00 00 3D 00 2A [18:21:13]state=2 [18:21:13]Key pressed [18:21:14]int [18:21:14]Write to MH i2c: 01 00 00 7E 21 9F [18:21:14]*** FLAG_PRN_KEY reset [18:21:14]Write i2c OK [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: 01 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: 01 07 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: 01 07 00 7E 21 00 00 00 00 00 F6 0F AB [18:21:14]state=2 [18:21:14]Stop feed [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:57]accept exits with 9 [18:22:57]New connection [18:22:57]New thread 3066834276 created [18:22:57]Thread 3066977636 joined [18:22:57]Waiting for new connection... [18:22:57] Sock 9.Parse request [18:22:57]Sock 9.Check first char [18:22:57]Sock 9.First char is OK [18:22:57]request: POST /json_proto HTTP/1.0 [18:22:57]Method: POST [18:22:57]URL: /json_proto [18:22:57]Method is POST - this is cgi request [18:22:57]url: /json_proto [18:22:57]query_string will be loaded in cgi processing [18:22:57]execute_cgi json_proto POST (null) [18:22:57]execute_cgi path=json_proto method=POST [18:22:57]POST find Content-Length [18:22:57]Host: 172.17.63.3:8080 [18:22:57]Content-Length: 676 [18:22:57]Content-Type: application/json [18:22:57] [18:22:57]POST finish read [18:22:57]Found Content-Length = 676 [18:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:57]execute_script... [18:22:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:57]POST & json_proto [18:22:57]process_json_proto [18:22:57]json parsed OK: [18:22:57]protocol is kg_v1.0 [18:22:57]action value=close_receipt [18:22:57]process_action close_receipt [18:22:57]cmd_close_receipt [18:22:57]MH_GetDate [18:22:57]Write to MH i2c: F0 00 00 7F 21 8F [18:22:57]Write i2c OK [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: F0 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: F0 09 00 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: F0 09 00 7F 21 00 83 33 1D 67 50 D1 6C 64 C3 [18:22:57]GetLastDocTimeStamp 1729966847 [18:22:57]current date 1729966979 [18:22:57]FM_GetShiftState [18:22:57]SAM_PROTO_GetShiftState [18:22:57]wFMCommunicate request_size=4 [18:22:57]MH_SAM_APDU [18:22:57]CAPDU: 80 13 01 00 [18:22:57]Write to MH i2c: E2 08 00 80 21 80 13 01 00 00 00 00 00 1E [18:22:57]Write i2c OK [18:22:57]MH_I2C_Read... [18:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:57]Read from MH i2c: E2 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 0E 00 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 0E 00 80 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 53 [18:22:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:22:57]wFMCommunicate OK [18:22:57]SAM_PROTO_GetShiftState done [18:22:57]FM_GetShiftState done [18:22:57]opened in 1729902702 [18:22:57]opened+sec_in_day 1729989102 [18:22:57]quantity*price = 60009 [18:22:57]sum+1 = 60010 [18:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 299 26.10.2024 18:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156398 ФПД: 268397466895316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182259&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156398&fm=268397466895316&tin=02508201610067®Number=0000000000091693&sum=60000 [18:22:58]StoreToDocumentArchive [18:22:58]shift 536 fd 156398 [18:22:58]save to /storage/0536/doc_00156398 [18:22:58]save last doc name /storage/0536/doc_00156398 to /storage/kkm_last_doc_name [18:22:58]save OK [18:22:58]Clear old archive folders... [18:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:58]tlvbuf is 01765DF0 [18:22:58]SAM_PROTO_ClearQueue [18:22:58]wFMCommunicate request_size=4 [18:22:58]MH_SAM_APDU [18:22:58]CAPDU: 80 09 00 00 [18:22:58]Write to MH i2c: E2 08 00 8D 21 80 09 00 00 00 00 00 00 20 [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:58]Read from MH i2c: E2 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 8D 21 00 90 00 22 [18:22:58]RAPDU: 90 00 [18:22:58]wFMCommunicate OK [18:22:58]SAM_PROTO_ClearQueue done [18:22:58]KKMCreateOFDPacket [18:22:58]OFDProtocolAddRootSTLVToBuf [18:22:58]FM_MakeSignedData [18:22:58]FM_MakeSignedData [18:22:58]SAM_PROTO_SignData [18:22:58]wFMCommunicate request_size=4 [18:22:58]MH_SAM_APDU [18:22:58]CAPDU: 80 0D 01 02 [18:22:58]Write to MH i2c: E2 08 00 8E 21 80 0D 01 02 00 00 00 00 28 [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:58]Read from MH i2c: E2 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 8E 21 00 90 00 23 [18:22:58]RAPDU: 90 00 [18:22:58]wFMCommunicate OK [18:22:58]wFMCommunicate request_size=255 [18:22:58]MH_SAM_APDU [18:22:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 83 33 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 62 02 00 35 04 06 00 F4 [18:22:58]Write to MH i2c: E2 02 01 8F 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 83 33 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 62 02 00 35 04 06 00 F4 00 00 5F [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:59]Read from MH i2c: E2 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 03 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 03 00 8F 21 00 90 00 24 [18:22:59]RAPDU: 90 00 [18:22:59]wFMCommunicate OK [18:22:59]wFMCommunicate request_size=10 [18:22:59]MH_SAM_APDU [18:22:59]CAPDU: 80 0D 02 02 05 1B 27 AC 43 D4 [18:22:59]Write to MH i2c: E2 0D 00 90 21 80 0D 02 02 05 00 1B 27 AC 43 D4 00 00 3A [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:59]Read from MH i2c: E2 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 03 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 03 00 90 21 00 90 00 25 [18:22:59]RAPDU: 90 00 [18:22:59]wFMCommunicate OK [18:22:59]wFMCommunicate request_size=4 [18:22:59]MH_SAM_APDU [18:22:59]CAPDU: 80 0D 03 02 [18:22:59]Write to MH i2c: E2 08 00 91 21 80 0D 03 02 00 00 00 00 2D [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:59]Read from MH i2c: E2 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 0B 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 0B 00 91 21 00 03 13 B2 7A A6 53 E6 64 90 00 B3 [18:22:59]RAPDU: 03 13 B2 7A A6 53 E6 64 90 00 [18:22:59]wFMCommunicate OK [18:22:59]SAM_PROTO_SignData done [18:22:59]FM_MakeSignedData done [18:22:59]CreateOFDProtocolMessage [18:22:59]wFMCommunicate request_size=4 [18:22:59]MH_SAM_APDU [18:22:59]CAPDU: 80 11 00 00 [18:22:59]Write to MH i2c: E2 08 00 92 21 80 11 00 00 00 00 00 00 2D [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:59]Read from MH i2c: E2 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 17 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 17 00 92 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 82 [18:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:22:59]wFMCommunicate OK [18:22:59]CreateOFDProtocolMessage done [18:22:59]OFDSenderStorePacket 156398 [18:22:59]StoreOFDPacket docnum=156398 [18:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 18 DA 07 01 A3 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 83 33 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 62 02 00 35 04 06 00 F4 1B 27 AC 43 D4 03 13 B2 7A A6 53 E6 64 [18:22:59]CheckFolder [18:22:59]dirname=/storage/ofd_packets [18:22:59]CheckFolder done [18:22:59]ProducePacketName [18:22:59]name=ofd_packets/00156398 [18:22:59]NVStorageSaveData ofd_packets/00156398 [18:22:59]File name is /storage/ofd_packets/00156398 [18:22:59]Write 301 bytes [18:22:59]NVStorageSaveData done [18:22:59]OFDSenderStorePacket done [18:22:59]KKMCreateOFDPacket done [18:22:59]NVStorageSaveData kkm_last_timestamp [18:22:59]File name is /storage/kkm_last_timestamp [18:22:59]Write 4 bytes [18:22:59]NVStorageSaveData done [18:22:59]ExternCall_PrintAddStr [18:22:59]wPrintStart [18:22:59]Write to MH i2c: 01 00 00 93 21 B4 [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: 01 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: 01 07 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: 01 07 00 93 21 00 00 00 00 00 FF 0F C9 [18:22:59]RasterBufferAndPrint [18:22:59]line Счет N : (1)99213 [18:22:59]line ИНН: 02508201610067 [18:22:59]line Контрольно-Кассовый Чек [18:22:59]line ПРОДАЖА [18:22:59]line ТРК (МРК, ГНК) : 31 [18:22:59]line Товар: 2710124130 [18:22:59]line Аи-92-К-5 [18:22:59]line 8.970 * 66.90 [18:22:59]line = 600.09 [18:22:59]line НДС 12% НСП 1% [18:22:59]line > о реализуемом товаре [18:22:59]line ОКРУГЛЕНИЕ: -0.09 [18:22:59]line ИТОГО: 600.00 [18:22:59]line Внесено: 600.00 [18:22:59]line СДАЧА: 0.00 [18:22:59]line НСП 1% : 5.31 [18:22:59]line НДС 12% : 63.73 [18:22:59]line Наличными: 600.00 [18:22:59]line Безнал.: 0.00 [18:22:59]line Место: АЗС № 143 "Партнер Нефть" [18:22:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:22:59]line СНО: Общий режим [18:22:59]line Чек 299 26.10.2024 18:22 [18:22:59]line Смена: 536 ФФД: 1.0 [18:22:59]line ЗНМ: 0300000096 [18:22:59]line РНМ: 0000000000091693 [18:22:59]line Версия ККМ: 001 [18:22:59]line ФМ: 0000000000871792 [18:22:59]line ФД: 156398 [18:22:59]line ФПД: 268397466895316 [18:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182259&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156398&fm=268397466895316&tin=02508201610067®Number=0000000000091693&sum=60000 [18:22:59]OFD Sender: Processing packet 156398 [packets to send 31, broken 30] [18:22:59]ProducePacketName [18:22:59]name=ofd_packets/00156398 [18:22:59]OFD Sender: To server: pG, [18:22:59]CommunicateWithHost lk.salyk.kg:30040 [18:22:59]ConnectInit lk.salyk.kg [18:22:59]written 0, free lines is 4095 [18:22:59]Connected sock=10 [18: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 31 37 39 32 0F 01 00 00 18 DA 07 01 A3 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 83 33 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 62 02 00 35 04 06 00 F4 1B 27 AC 43 D4 03 13 B2 7A A6 53 E6 64 [18:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 90 10 47 00 DB 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 62 02 00 F4 03 04 00 F5 D8 1C 67 B6 04 01 00 00 A5 62 8B 63 F7 97 90 0E [18:23:00]CommunicateWithHost err = 0 [18:23:00]CheckOFDResponse [18:23:00]1017 (14) - 77093643461234 [18:23:00]1041 (16) - 0000000000871792 [18:23:00]1040 (4) - 156398 [18:23:00]1012 (4) - 26.10.2024 11:56 [18:23:00]1206 (1) - 0 [18:23:00]OFD Sender: Remove packet 156398 [18:23:00]ProducePacketName [18:23:00]name=ofd_packets/00156398 [18:23:00]NVStorageDeleteData [18:23:00]Write to MH i2c: 01 00 00 BE 21 DF [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: 01 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: 01 07 00 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: 01 07 00 BE 21 00 00 00 00 00 E5 0C D7 [18:23:00]RasterBufferAndPrint [18:23:00]line [18:23:00]line [18:23:00]line [18:23:00]line [18:23:00]line [18:23:00]written 0, free lines is 3307 [18:23:00]process_action close_receipt done [18:23:00]requested_data is exist [18:23:00]produce_requested_data [18:23:00]requested_item fm.sn is exist - process it [18:23:00]wFMCommunicate request_size=4 [18:23:00]MH_SAM_APDU [18:23:00]CAPDU: 80 11 00 00 [18:23:00]Write to MH i2c: E2 08 00 C5 21 80 11 00 00 00 00 00 00 60 [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:00]Read from MH i2c: E2 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 17 00 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 17 00 C5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B5 [18:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:23:00]wFMCommunicate OK [18:23:00]requested_item fd.num is exist - process it [18:23:00]SAM_PROTO_GetFieldsCounters [18:23:00]wFMCommunicate request_size=4 [18:23:00]MH_SAM_APDU [18:23:00]CAPDU: 80 13 00 00 [18:23:00]Write to MH i2c: E2 08 00 C6 21 80 13 00 00 00 00 00 00 63 [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:00]Read from MH i2c: E2 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 62 00 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 62 00 C6 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [18:23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:00]wFMCommunicate OK [18:23:00]SAM_PROTO_GetFieldsCounters done [18:23:00]requested_item shift.num is exist - process it [18:23:00]requested_item shift.opened is exist - process it [18:23:00]req_shift_opened [18:23:00]FM_GetShiftState [18:23:00]SAM_PROTO_GetShiftState [18:23:00]wFMCommunicate request_size=4 [18:23:00]MH_SAM_APDU [18:23:00]CAPDU: 80 13 01 00 [18:23:00]Write to MH i2c: E2 08 00 C7 21 80 13 01 00 00 00 00 00 65 [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:00]Read from MH i2c: E2 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 0E 00 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 0E 00 C7 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9A [18:23:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:23:00]wFMCommunicate OK [18:23:00]SAM_PROTO_GetShiftState done [18:23:00]FM_GetShiftState done [18:23:00]req_shift_opened done [18:23:00]requested_item shift.open_date is exist - process it [18:23:00]req_shift_open_date [18:23:00]req_shift_open_date done [18:23:00]produce_requested_data done [18:23:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156398,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:23:00]process_action_free close_receipt [18:23:00]json_value_free [18:23:00]json_value_free done [18:23:00]process_json_proto returns [18:23:00]Send response to host [18:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156398,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:23:00]free response buf [18:23:00]execute_script done [18:23:00]execute_script returns [18:23:00]free content buf [18:23:00]Sock 9.Close socket [18:23:00]Sock 9.Thread stoped [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:25]accept exits with 8 [18:24:25]New connection [18:24:25]New thread 3066977636 created [18:24:25]Thread 3066834276 joined [18:24:25]Waiting for new connection... [18:24:25] Sock 8.Parse request [18:24:25]Sock 8.Check first char [18:24:25]Sock 8.First char is OK [18:24:25]request: POST /json_proto HTTP/1.0 [18:24:25]Method: POST [18:24:25]URL: /json_proto [18:24:25]Method is POST - this is cgi request [18:24:25]url: /json_proto [18:24:25]query_string will be loaded in cgi processing [18:24:25]execute_cgi json_proto POST (null) [18:24:25]execute_cgi path=json_proto method=POST [18:24:25]POST find Content-Length [18:24:25]Host: 172.17.63.3:8080 [18:24:25]Content-Length: 676 [18:24:25]Content-Type: application/json [18:24:25] [18:24:25]POST finish read [18:24:25]Found Content-Length = 676 [18:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:25]execute_script... [18:24:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:25]POST & json_proto [18:24:25]process_json_proto [18:24:25]json parsed OK: [18:24:25]protocol is kg_v1.0 [18:24:25]action value=close_receipt [18:24:25]process_action close_receipt [18:24:25]cmd_close_receipt [18:24:25]MH_GetDate [18:24:25]Write to MH i2c: F0 00 00 C8 21 D8 [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: F0 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: F0 09 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: F0 09 00 C8 21 00 DB 33 1D 67 50 D1 6C 64 64 [18:24:25]GetLastDocTimeStamp 1729966979 [18:24:25]current date 1729967067 [18:24:25]FM_GetShiftState [18:24:25]SAM_PROTO_GetShiftState [18:24:25]wFMCommunicate request_size=4 [18:24:25]MH_SAM_APDU [18:24:25]CAPDU: 80 13 01 00 [18:24:25]Write to MH i2c: E2 08 00 C9 21 80 13 01 00 00 00 00 00 67 [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:25]Read from MH i2c: E2 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 0E 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 0E 00 C9 21 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9C [18:24:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:24:25]wFMCommunicate OK [18:24:25]SAM_PROTO_GetShiftState done [18:24:25]FM_GetShiftState done [18:24:25]opened in 1729902702 [18:24:25]opened+sec_in_day 1729989102 [18:24:25]quantity*price = 24017 [18:24:25]sum+1 = 24018 [18:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 300 26.10.2024 18:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156399 ФПД: 168482538164628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182427&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156399&fm=168482538164628&tin=02508201610067®Number=0000000000091693&sum=24000 [18:24:26]StoreToDocumentArchive [18:24:26]shift 536 fd 156399 [18:24:26]save to /storage/0536/doc_00156399 [18:24:26]save last doc name /storage/0536/doc_00156399 to /storage/kkm_last_doc_name [18:24:26]save OK [18:24:26]Clear old archive folders... [18:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:26]tlvbuf is 0167F170 [18:24:26]SAM_PROTO_ClearQueue [18:24:26]wFMCommunicate request_size=4 [18:24:26]MH_SAM_APDU [18:24:26]CAPDU: 80 09 00 00 [18:24:26]Write to MH i2c: E2 08 00 D6 21 80 09 00 00 00 00 00 00 69 [18:24:26]Write i2c OK [18:24:26]MH_I2C_Read... [18:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:26]Read from MH i2c: E2 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 03 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 03 00 D6 21 00 90 00 6B [18:24:26]RAPDU: 90 00 [18:24:26]wFMCommunicate OK [18:24:26]SAM_PROTO_ClearQueue done [18:24:26]KKMCreateOFDPacket [18:24:26]OFDProtocolAddRootSTLVToBuf [18:24:26]FM_MakeSignedData [18:24:26]FM_MakeSignedData [18:24:26]SAM_PROTO_SignData [18:24:26]wFMCommunicate request_size=4 [18:24:26]MH_SAM_APDU [18:24:26]CAPDU: 80 0D 01 02 [18:24:26]Write to MH i2c: E2 08 00 D7 21 80 0D 01 02 00 00 00 00 71 [18:24:26]Write i2c OK [18:24:26]MH_I2C_Read... [18:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:26]Read from MH i2c: E2 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 03 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 03 00 D7 21 00 90 00 6C [18:24:26]RAPDU: 90 00 [18:24:26]wFMCommunicate OK [18:24:26]wFMCommunicate request_size=255 [18:24:26]MH_SAM_APDU [18:24:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DB 33 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 62 02 00 35 04 06 00 99 [18:24:26]Write to MH i2c: E2 02 01 D8 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DB 33 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 62 02 00 35 04 06 00 99 00 00 D0 [18:24:26]Write i2c OK [18:24:26]MH_I2C_Read... [18:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:27]Read from MH i2c: E2 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 03 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 03 00 D8 21 00 90 00 6D [18:24:27]RAPDU: 90 00 [18:24:27]wFMCommunicate OK [18:24:27]wFMCommunicate request_size=10 [18:24:27]MH_SAM_APDU [18:24:27]CAPDU: 80 0D 02 02 05 3B E5 D6 91 94 [18:24:27]Write to MH i2c: E2 0D 00 D9 21 80 0D 02 02 05 00 3B E5 D6 91 94 00 00 99 [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:27]Read from MH i2c: E2 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 03 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 03 00 D9 21 00 90 00 6E [18:24:27]RAPDU: 90 00 [18:24:27]wFMCommunicate OK [18:24:27]wFMCommunicate request_size=4 [18:24:27]MH_SAM_APDU [18:24:27]CAPDU: 80 0D 03 02 [18:24:27]Write to MH i2c: E2 08 00 DA 21 80 0D 03 02 00 00 00 00 76 [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:27]Read from MH i2c: E2 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 0B 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 0B 00 DA 21 00 09 72 96 4E E8 A1 68 F7 90 00 BE [18:24:27]RAPDU: 09 72 96 4E E8 A1 68 F7 90 00 [18:24:27]wFMCommunicate OK [18:24:27]SAM_PROTO_SignData done [18:24:27]FM_MakeSignedData done [18:24:27]CreateOFDProtocolMessage [18:24:27]wFMCommunicate request_size=4 [18:24:27]MH_SAM_APDU [18:24:27]CAPDU: 80 11 00 00 [18:24:27]Write to MH i2c: E2 08 00 DB 21 80 11 00 00 00 00 00 00 76 [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:27]Read from MH i2c: E2 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 17 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 17 00 DB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [18:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:24:27]wFMCommunicate OK [18:24:27]CreateOFDProtocolMessage done [18:24:27]OFDSenderStorePacket 156399 [18:24:27]StoreOFDPacket docnum=156399 [18:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5B 0C 07 01 D2 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DB 33 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 62 02 00 35 04 06 00 99 3B E5 D6 91 94 09 72 96 4E E8 A1 68 F7 [18:24:27]CheckFolder [18:24:27]dirname=/storage/ofd_packets [18:24:27]CheckFolder done [18:24:27]ProducePacketName [18:24:27]name=ofd_packets/00156399 [18:24:27]NVStorageSaveData ofd_packets/00156399 [18:24:27]File name is /storage/ofd_packets/00156399 [18:24:27]Write 301 bytes [18:24:27]NVStorageSaveData done [18:24:27]OFDSenderStorePacket done [18:24:27]KKMCreateOFDPacket done [18:24:27]NVStorageSaveData kkm_last_timestamp [18:24:27]File name is /storage/kkm_last_timestamp [18:24:27]Write 4 bytes [18:24:27]NVStorageSaveData done [18:24:27]ExternCall_PrintAddStr [18:24:27]wPrintStart [18:24:27]Write to MH i2c: 01 00 00 DC 21 FD [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 07 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 07 00 DC 21 00 00 00 00 00 FF 0F 12 [18:24:27]RasterBufferAndPrint [18:24:27]line Счет N : (1)99214 [18:24:27]line ИНН: 02508201610067 [18:24:27]line Контрольно-Кассовый Чек [18:24:27]line ПРОДАЖА [18:24:27]line ТРК (МРК, ГНК) : 21 [18:24:27]line Товар: 2710124130 [18:24:27]line Аи-92-К-5 [18:24:27]line 3.590 * 66.90 [18:24:27]line = 240.17 [18:24:27]line НДС 12% НСП 1% [18:24:27]line > о реализуемом товаре [18:24:27]line ОКРУГЛЕНИЕ: -0.17 [18:24:27]line ИТОГО: 240.00 [18:24:27]line Внесено: 240.00 [18:24:27]line СДАЧА: 0.00 [18:24:27]line НСП 1% : 2.12 [18:24:27]line НДС 12% : 25.50 [18:24:27]line Наличными: 240.00 [18:24:27]line Безнал.: 0.00 [18:24:27]line Место: АЗС № 143 "Партнер Нефть" [18:24:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:24:27]line СНО: Общий режим [18:24:27]line Чек 300 26.10.2024 18:24 [18:24:27]line Смена: 536 ФФД: 1.0 [18:24:27]line ЗНМ: 0300000096 [18:24:27]line РНМ: 0000000000091693 [18:24:27]line Версия ККМ: 001 [18:24:27]line ФМ: 0000000000871792 [18:24:27]line ФД: 156399 [18:24:27]line ФПД: 168482538164628 [18:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182427&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156399&fm=168482538164628&tin=02508201610067®Number=0000000000091693&sum=24000 [18:24:27]OFD Sender: Processing packet 156399 [packets to send 31, broken 30] [18:24:27]ProducePacketName [18:24:27]name=ofd_packets/00156399 [18:24:27]OFD Sender: To server: pG, [18:24:27]CommunicateWithHost lk.salyk.kg:30040 [18:24:27]ConnectInit lk.salyk.kg [18:24:27]written 0, free lines is 4095 [18:24:27]Connected sock=10 [18:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5B 0C 07 01 D2 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DB 33 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 62 02 00 35 04 06 00 99 3B E5 D6 91 94 09 72 96 4E E8 A1 68 F7 [18:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 67 FF 47 00 A7 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 62 02 00 F4 03 04 00 4D D9 1C 67 B6 04 01 00 00 3B 55 F6 24 7D 38 0E C1 [18:24:27]CommunicateWithHost err = 0 [18:24:27]CheckOFDResponse [18:24:27]1017 (14) - 77093643461234 [18:24:27]1041 (16) - 0000000000871792 [18:24:27]1040 (4) - 156399 [18:24:27]1012 (4) - 26.10.2024 11:58 [18:24:27]1206 (1) - 0 [18:24:27]OFD Sender: Remove packet 156399 [18:24:27]ProducePacketName [18:24:27]name=ofd_packets/00156399 [18:24:27]NVStorageDeleteData [18:24:28]Write to MH i2c: 01 00 00 07 22 29 [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: 01 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: 01 07 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: 01 07 00 07 22 00 00 00 00 00 E1 0C 1D [18:24:28]RasterBufferAndPrint [18:24:28]line [18:24:28]line [18:24:28]line [18:24:28]line [18:24:28]line [18:24:28]written 0, free lines is 3303 [18:24:28]process_action close_receipt done [18:24:28]requested_data is exist [18:24:28]produce_requested_data [18:24:28]requested_item fm.sn is exist - process it [18:24:28]wFMCommunicate request_size=4 [18:24:28]MH_SAM_APDU [18:24:28]CAPDU: 80 11 00 00 [18:24:28]Write to MH i2c: E2 08 00 0E 22 80 11 00 00 00 00 00 00 AA [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:28]Read from MH i2c: E2 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 17 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 17 00 0E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [18:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:24:28]wFMCommunicate OK [18:24:28]requested_item fd.num is exist - process it [18:24:28]SAM_PROTO_GetFieldsCounters [18:24:28]wFMCommunicate request_size=4 [18:24:28]MH_SAM_APDU [18:24:28]CAPDU: 80 13 00 00 [18:24:28]Write to MH i2c: E2 08 00 0F 22 80 13 00 00 00 00 00 00 AD [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:28]Read from MH i2c: E2 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 62 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 62 00 0F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [18:24: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:28]wFMCommunicate OK [18:24:28]SAM_PROTO_GetFieldsCounters done [18:24:28]requested_item shift.num is exist - process it [18:24:28]requested_item shift.opened is exist - process it [18:24:28]req_shift_opened [18:24:28]FM_GetShiftState [18:24:28]SAM_PROTO_GetShiftState [18:24:28]wFMCommunicate request_size=4 [18:24:28]MH_SAM_APDU [18:24:28]CAPDU: 80 13 01 00 [18:24:28]Write to MH i2c: E2 08 00 10 22 80 13 01 00 00 00 00 00 AF [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:28]Read from MH i2c: E2 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 0E 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 0E 00 10 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E4 [18:24:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:24:28]wFMCommunicate OK [18:24:28]SAM_PROTO_GetShiftState done [18:24:28]FM_GetShiftState done [18:24:28]req_shift_opened done [18:24:28]requested_item shift.open_date is exist - process it [18:24:28]req_shift_open_date [18:24:28]req_shift_open_date done [18:24:28]produce_requested_data done [18:24:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156399,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:24:28]process_action_free close_receipt [18:24:28]json_value_free [18:24:28]json_value_free done [18:24:28]process_json_proto returns [18:24:28]Send response to host [18:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156399,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:24:28]free response buf [18:24:28]execute_script done [18:24:28]execute_script returns [18:24:28]free content buf [18:24:28]Sock 8.Close socket [18:24:28]Sock 8.Thread stoped [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:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]accept exits with 9 [18:27:23]New connection [18:27:23]New thread 3066834276 created [18:27:23]Thread 3066977636 joined [18:27:23]Waiting for new connection... [18:27:23] Sock 9.Parse request [18:27:23]Sock 9.Check first char [18:27:23]Sock 9.First char is OK [18:27:23]request: POST /json_proto HTTP/1.0 [18:27:23]Method: POST [18:27:23]URL: /json_proto [18:27:23]Method is POST - this is cgi request [18:27:23]url: /json_proto [18:27:23]query_string will be loaded in cgi processing [18:27:23]execute_cgi json_proto POST (null) [18:27:23]execute_cgi path=json_proto method=POST [18:27:23]POST find Content-Length [18:27:23]Host: 172.17.63.3:8080 [18:27:23]Content-Length: 676 [18:27:23]Content-Type: application/json [18:27:23] [18:27:23]POST finish read [18:27:23]Found Content-Length = 676 [18:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:23]execute_script... [18:27: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)99215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:23]POST & json_proto [18:27:23]process_json_proto [18:27:23]json parsed OK: [18:27:23]protocol is kg_v1.0 [18:27:23]action value=close_receipt [18:27:23]process_action close_receipt [18:27:23]cmd_close_receipt [18:27:23]MH_GetDate [18:27:23]Write to MH i2c: F0 00 00 11 22 22 [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 09 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 09 00 11 22 00 8C 34 1D 67 50 D1 6C 64 60 [18:27:23]GetLastDocTimeStamp 1729967067 [18:27:23]current date 1729967244 [18:27:23]FM_GetShiftState [18:27:23]SAM_PROTO_GetShiftState [18:27:23]wFMCommunicate request_size=4 [18:27:23]MH_SAM_APDU [18:27:23]CAPDU: 80 13 01 00 [18:27:23]Write to MH i2c: E2 08 00 12 22 80 13 01 00 00 00 00 00 B1 [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:23]Read from MH i2c: E2 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: E2 0E 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: E2 0E 00 12 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E6 [18:27:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:27:23]wFMCommunicate OK [18:27:23]SAM_PROTO_GetShiftState done [18:27:23]FM_GetShiftState done [18:27:23]opened in 1729902702 [18:27:23]opened+sec_in_day 1729989102 [18:27:23]quantity*price = 50041 [18:27:23]sum+1 = 50042 [18:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 301 26.10.2024 18:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156400 ФПД: 4706439369077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182725&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156400&fm=4706439369077&tin=02508201610067®Number=0000000000091693&sum=50000 [18:27:24]StoreToDocumentArchive [18:27:24]shift 536 fd 156400 [18:27:24]save to /storage/0536/doc_00156400 [18:27:24]save last doc name /storage/0536/doc_00156400 to /storage/kkm_last_doc_name [18:27:24]save OK [18:27:24]Clear old archive folders... [18:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:24]tlvbuf is 0167EF30 [18:27:24]SAM_PROTO_ClearQueue [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 09 00 00 [18:27:24]Write to MH i2c: E2 08 00 1F 22 80 09 00 00 00 00 00 00 B3 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 1F 22 00 90 00 B5 [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_ClearQueue done [18:27:24]KKMCreateOFDPacket [18:27:24]OFDProtocolAddRootSTLVToBuf [18:27:24]FM_MakeSignedData [18:27:24]FM_MakeSignedData [18:27:24]SAM_PROTO_SignData [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 01 02 [18:27:24]Write to MH i2c: E2 08 00 20 22 80 0D 01 02 00 00 00 00 BB [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 20 22 00 90 00 B6 [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]wFMCommunicate request_size=255 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 8D 34 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 62 02 00 35 04 06 00 04 [18:27:24]Write to MH i2c: E2 02 01 21 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 8D 34 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 62 02 00 35 04 06 00 04 00 00 34 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 21 22 00 90 00 B7 [18:27:25]RAPDU: 90 00 [18:27:25]wFMCommunicate OK [18:27:25]wFMCommunicate request_size=10 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 0D 02 02 05 47 CD A5 91 75 [18:27:25]Write to MH i2c: E2 0D 00 22 22 80 0D 02 02 05 00 47 CD A5 91 75 00 00 87 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 22 22 00 90 00 B8 [18:27:25]RAPDU: 90 00 [18:27:25]wFMCommunicate OK [18:27:25]wFMCommunicate request_size=4 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 0D 03 02 [18:27:25]Write to MH i2c: E2 08 00 23 22 80 0D 03 02 00 00 00 00 C0 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 0B 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 0B 00 23 22 00 95 DE DA 04 4E 09 05 3D 90 00 AB [18:27:25]RAPDU: 95 DE DA 04 4E 09 05 3D 90 00 [18:27:25]wFMCommunicate OK [18:27:25]SAM_PROTO_SignData done [18:27:25]FM_MakeSignedData done [18:27:25]CreateOFDProtocolMessage [18:27:25]wFMCommunicate request_size=4 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 11 00 00 [18:27:25]Write to MH i2c: E2 08 00 24 22 80 11 00 00 00 00 00 00 C0 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 17 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 17 00 24 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [18:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:27:25]wFMCommunicate OK [18:27:25]CreateOFDProtocolMessage done [18:27:25]OFDSenderStorePacket 156400 [18:27:25]StoreOFDPacket docnum=156400 [18:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA F0 07 01 32 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 8D 34 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 62 02 00 35 04 06 00 04 47 CD A5 91 75 95 DE DA 04 4E 09 05 3D [18:27:25]CheckFolder [18:27:25]dirname=/storage/ofd_packets [18:27:25]CheckFolder done [18:27:25]ProducePacketName [18:27:25]name=ofd_packets/00156400 [18:27:25]NVStorageSaveData ofd_packets/00156400 [18:27:25]File name is /storage/ofd_packets/00156400 [18:27:25]Write 301 bytes [18:27:25]NVStorageSaveData done [18:27:25]OFDSenderStorePacket done [18:27:25]KKMCreateOFDPacket done [18:27:25]NVStorageSaveData kkm_last_timestamp [18:27:25]File name is /storage/kkm_last_timestamp [18:27:25]Write 4 bytes [18:27:25]NVStorageSaveData done [18:27:25]ExternCall_PrintAddStr [18:27:25]wPrintStart [18:27:25]Write to MH i2c: 01 00 00 25 22 47 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 25 22 00 00 00 00 00 FF 0F 5C [18:27:25]RasterBufferAndPrint [18:27:25]line Счет N : (1)99215 [18:27:25]line ИНН: 02508201610067 [18:27:25]line Контрольно-Кассовый Чек [18:27:25]line ПРОДАЖА [18:27:25]line ТРК (МРК, ГНК) : 21 [18:27:25]line Товар: 2710124130 [18:27:25]line Аи-92-К-5 [18:27:25]line 7.480 * 66.90 [18:27:25]line = 500.41 [18:27:25]line НДС 12% НСП 1% [18:27:25]line > о реализуемом товаре [18:27:25]line ОКРУГЛЕНИЕ: -0.41 [18:27:25]line ИТОГО: 500.00 [18:27:25]line Внесено: 500.00 [18:27:25]line СДАЧА: 0.00 [18:27:25]line НСП 1% : 4.43 [18:27:25]line НДС 12% : 53.14 [18:27:25]line Наличными: 500.00 [18:27:25]line Безнал.: 0.00 [18:27:25]line Место: АЗС № 143 "Партнер Нефть" [18:27:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:27:25]line СНО: Общий режим [18:27:25]line Чек 301 26.10.2024 18:27 [18:27:25]line Смена: 536 ФФД: 1.0 [18:27:25]line ЗНМ: 0300000096 [18:27:25]line РНМ: 0000000000091693 [18:27:25]line Версия ККМ: 001 [18:27:25]line ФМ: 0000000000871792 [18:27:25]line ФД: 156400 [18:27:25]line ФПД: 4706439369077 [18:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182725&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156400&fm=4706439369077&tin=02508201610067®Number=0000000000091693&sum=50000 [18:27:25]OFD Sender: Processing packet 156400 [packets to send 31, broken 30] [18:27:25]ProducePacketName [18:27:25]name=ofd_packets/00156400 [18:27:25]OFD Sender: To server: pG, [18:27:25]CommunicateWithHost lk.salyk.kg:30040 [18:27:25]ConnectInit lk.salyk.kg [18:27:25]written 0, free lines is 4095 [18:27:25]Connected sock=10 [18:27:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA F0 07 01 32 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 8D 34 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 62 02 00 35 04 06 00 04 47 CD A5 91 75 95 DE DA 04 4E 09 05 3D [18:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 38 D2 47 00 14 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 31 37 39 32 10 04 04 00 F0 62 02 00 F4 03 04 00 FE D9 1C 67 B6 04 01 00 00 30 C1 27 D7 F1 67 B2 DB [18:27:25]CommunicateWithHost err = 0 [18:27:25]CheckOFDResponse [18:27:25]1017 (14) - 77093643461234 [18:27:25]1041 (16) - 0000000000871792 [18:27:25]1040 (4) - 156400 [18:27:25]1012 (4) - 26.10.2024 12:01 [18:27:25]1206 (1) - 0 [18:27:25]OFD Sender: Remove packet 156400 [18:27:25]ProducePacketName [18:27:25]name=ofd_packets/00156400 [18:27:25]NVStorageDeleteData [18:27:25]Write to MH i2c: 01 00 00 50 22 72 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 50 22 00 00 00 00 00 D4 0C 59 [18:27:25]RasterBufferAndPrint [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]written 0, free lines is 3292 [18:27:25]process_action close_receipt done [18:27:25]requested_data is exist [18:27:25]produce_requested_data [18:27:25]requested_item fm.sn is exist - process it [18:27:25]wFMCommunicate request_size=4 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 11 00 00 [18:27:25]Write to MH i2c: E2 08 00 57 22 80 11 00 00 00 00 00 00 F3 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:26]Read from MH i2c: E2 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 17 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 17 00 57 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [18:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:27:26]wFMCommunicate OK [18:27:26]requested_item fd.num is exist - process it [18:27:26]SAM_PROTO_GetFieldsCounters [18:27:26]wFMCommunicate request_size=4 [18:27:26]MH_SAM_APDU [18:27:26]CAPDU: 80 13 00 00 [18:27:26]Write to MH i2c: E2 08 00 58 22 80 13 00 00 00 00 00 00 F6 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:26]Read from MH i2c: E2 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 62 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 62 00 58 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [18:27:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:26]wFMCommunicate OK [18:27:26]SAM_PROTO_GetFieldsCounters done [18:27:26]requested_item shift.num is exist - process it [18:27:26]requested_item shift.opened is exist - process it [18:27:26]req_shift_opened [18:27:26]FM_GetShiftState [18:27:26]SAM_PROTO_GetShiftState [18:27:26]wFMCommunicate request_size=4 [18:27:26]MH_SAM_APDU [18:27:26]CAPDU: 80 13 01 00 [18:27:26]Write to MH i2c: E2 08 00 59 22 80 13 01 00 00 00 00 00 F8 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:26]Read from MH i2c: E2 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 0E 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 0E 00 59 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2D [18:27:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:27:26]wFMCommunicate OK [18:27:26]SAM_PROTO_GetShiftState done [18:27:26]FM_GetShiftState done [18:27:26]req_shift_opened done [18:27:26]requested_item shift.open_date is exist - process it [18:27:26]req_shift_open_date [18:27:26]req_shift_open_date done [18:27:26]produce_requested_data done [18:27:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156400,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:27:26]process_action_free close_receipt [18:27:26]json_value_free [18:27:26]json_value_free done [18:27:26]process_json_proto returns [18:27:26]Send response to host [18:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156400,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:27:26]free response buf [18:27:26]execute_script done [18:27:26]execute_script returns [18:27:26]free content buf [18:27:26]Sock 9.Close socket [18:27:26]Sock 9.Thread stoped [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:05]accept exits with 8 [18:28:05]New connection [18:28:05]New thread 3066977636 created [18:28:05]Thread 3066834276 joined [18:28:05]Waiting for new connection... [18:28:05] Sock 8.Parse request [18:28:05]Sock 8.Check first char [18:28:05]Sock 8.First char is OK [18:28:05]request: POST /json_proto HTTP/1.0 [18:28:05]Method: POST [18:28:05]URL: /json_proto [18:28:05]Method is POST - this is cgi request [18:28:05]url: /json_proto [18:28:05]query_string will be loaded in cgi processing [18:28:05]execute_cgi json_proto POST (null) [18:28:05]execute_cgi path=json_proto method=POST [18:28:05]POST find Content-Length [18:28:05]Host: 172.17.63.3:8080 [18:28:05]Content-Length: 676 [18:28:05]Content-Type: application/json [18:28:05] [18:28:05]POST finish read [18:28:05]Found Content-Length = 676 [18:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:05]execute_script... [18:28:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:05]POST & json_proto [18:28:05]process_json_proto [18:28:05]json parsed OK: [18:28:05]protocol is kg_v1.0 [18:28:05]action value=close_receipt [18:28:05]process_action close_receipt [18:28:05]cmd_close_receipt [18:28:05]MH_GetDate [18:28:05]Write to MH i2c: F0 00 00 5A 22 6B [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: F0 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: F0 09 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: F0 09 00 5A 22 00 B7 34 1D 67 50 D1 6C 64 D4 [18:28:05]GetLastDocTimeStamp 1729967245 [18:28:05]current date 1729967287 [18:28:05]FM_GetShiftState [18:28:05]SAM_PROTO_GetShiftState [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 13 01 00 [18:28:05]Write to MH i2c: E2 08 00 5B 22 80 13 01 00 00 00 00 00 FA [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 0E 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 0E 00 5B 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2F [18:28:05]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:28:05]wFMCommunicate OK [18:28:05]SAM_PROTO_GetShiftState done [18:28:05]FM_GetShiftState done [18:28:05]opened in 1729902702 [18:28:05]opened+sec_in_day 1729989102 [18:28:05]quantity*price = 50041 [18:28:05]sum+1 = 50042 [18:28:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 302 26.10.2024 18:28 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156401 ФПД: 265669310684382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156401&fm=265669310684382&tin=02508201610067®Number=0000000000091693&sum=50000 [18:28:06]StoreToDocumentArchive [18:28:06]shift 536 fd 156401 [18:28:06]save to /storage/0536/doc_00156401 [18:28:06]save last doc name /storage/0536/doc_00156401 to /storage/kkm_last_doc_name [18:28:06]save OK [18:28:06]Clear old archive folders... [18:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:06]tlvbuf is 016BADD0 [18:28:06]SAM_PROTO_ClearQueue [18:28:06]wFMCommunicate request_size=4 [18:28:06]MH_SAM_APDU [18:28:06]CAPDU: 80 09 00 00 [18:28:06]Write to MH i2c: E2 08 00 68 22 80 09 00 00 00 00 00 00 FC [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:06]Read from MH i2c: E2 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: E2 03 00 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: E2 03 00 68 22 00 90 00 FE [18:28:06]RAPDU: 90 00 [18:28:06]wFMCommunicate OK [18:28:06]SAM_PROTO_ClearQueue done [18:28:06]KKMCreateOFDPacket [18:28:06]OFDProtocolAddRootSTLVToBuf [18:28:06]FM_MakeSignedData [18:28:06]FM_MakeSignedData [18:28:06]SAM_PROTO_SignData [18:28:06]wFMCommunicate request_size=4 [18:28:06]MH_SAM_APDU [18:28:06]CAPDU: 80 0D 01 02 [18:28:06]Write to MH i2c: E2 08 00 69 22 80 0D 01 02 00 00 00 00 04 [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:06]Read from MH i2c: E2 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: E2 03 00 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: E2 03 00 69 22 00 90 00 FF [18:28:06]RAPDU: 90 00 [18:28:06]wFMCommunicate OK [18:28:06]wFMCommunicate request_size=255 [18:28:06]MH_SAM_APDU [18:28: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 B7 34 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 62 02 00 35 04 06 00 F1 [18:28:06]Write to MH i2c: E2 02 01 6A 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 B7 34 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 62 02 00 35 04 06 00 F1 00 00 96 [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 03 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 03 00 6A 22 00 90 00 00 [18:28:07]RAPDU: 90 00 [18:28:07]wFMCommunicate OK [18:28:07]wFMCommunicate request_size=10 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 0D 02 02 05 9F F4 E4 1C DE [18:28:07]Write to MH i2c: E2 0D 00 6B 22 80 0D 02 02 05 00 9F F4 E4 1C DE 00 00 82 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 03 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 03 00 6B 22 00 90 00 01 [18:28:07]RAPDU: 90 00 [18:28:07]wFMCommunicate OK [18:28:07]wFMCommunicate request_size=4 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 0D 03 02 [18:28:07]Write to MH i2c: E2 08 00 6C 22 80 0D 03 02 00 00 00 00 09 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 0B 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 0B 00 6C 22 00 B5 28 87 F9 A0 DE 22 40 90 00 47 [18:28:07]RAPDU: B5 28 87 F9 A0 DE 22 40 90 00 [18:28:07]wFMCommunicate OK [18:28:07]SAM_PROTO_SignData done [18:28:07]FM_MakeSignedData done [18:28:07]CreateOFDProtocolMessage [18:28:07]wFMCommunicate request_size=4 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 11 00 00 [18:28:07]Write to MH i2c: E2 08 00 6D 22 80 11 00 00 00 00 00 00 09 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 17 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 17 00 6D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [18:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:28:07]wFMCommunicate OK [18:28:07]CreateOFDProtocolMessage done [18:28:07]OFDSenderStorePacket 156401 [18:28:07]StoreOFDPacket docnum=156401 [18:28:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 95 E3 07 01 EB 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 B7 34 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 62 02 00 35 04 06 00 F1 9F F4 E4 1C DE B5 28 87 F9 A0 DE 22 40 [18:28:07]CheckFolder [18:28:07]dirname=/storage/ofd_packets [18:28:07]CheckFolder done [18:28:07]ProducePacketName [18:28:07]name=ofd_packets/00156401 [18:28:07]NVStorageSaveData ofd_packets/00156401 [18:28:07]File name is /storage/ofd_packets/00156401 [18:28:07]Write 301 bytes [18:28:07]NVStorageSaveData done [18:28:07]OFDSenderStorePacket done [18:28:07]KKMCreateOFDPacket done [18:28:07]NVStorageSaveData kkm_last_timestamp [18:28:07]File name is /storage/kkm_last_timestamp [18:28:07]Write 4 bytes [18:28:07]NVStorageSaveData done [18:28:07]ExternCall_PrintAddStr [18:28:07]wPrintStart [18:28:07]Write to MH i2c: 01 00 00 6E 22 90 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 6E 22 00 00 00 00 00 FF 0F A5 [18:28:07]RasterBufferAndPrint [18:28:07]line Счет N : (1)99216 [18:28:07]line ИНН: 02508201610067 [18:28:07]line Контрольно-Кассовый Чек [18:28:07]line ПРОДАЖА [18:28:07]line ТРК (МРК, ГНК) : 31 [18:28:07]line Товар: 2710124130 [18:28:07]line Аи-92-К-5 [18:28:07]line 7.480 * 66.90 [18:28:07]line = 500.41 [18:28:07]line НДС 12% НСП 1% [18:28:07]line > о реализуемом товаре [18:28:07]line ОКРУГЛЕНИЕ: -0.41 [18:28:07]line ИТОГО: 500.00 [18:28:07]line Внесено: 500.00 [18:28:07]line СДАЧА: 0.00 [18:28:07]line НСП 1% : 4.43 [18:28:07]line НДС 12% : 53.14 [18:28:07]line Наличными: 500.00 [18:28:07]line Безнал.: 0.00 [18:28:07]line Место: АЗС № 143 "Партнер Нефть" [18:28:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:28:07]line СНО: Общий режим [18:28:07]line Чек 302 26.10.2024 18:28 [18:28:07]line Смена: 536 ФФД: 1.0 [18:28:07]line ЗНМ: 0300000096 [18:28:07]line РНМ: 0000000000091693 [18:28:07]line Версия ККМ: 001 [18:28:07]line ФМ: 0000000000871792 [18:28:07]line ФД: 156401 [18:28:07]line ФПД: 265669310684382 [18:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156401&fm=265669310684382&tin=02508201610067®Number=0000000000091693&sum=50000 [18:28:07]OFD Sender: Processing packet 156401 [packets to send 31, broken 30] [18:28:07]ProducePacketName [18:28:07]name=ofd_packets/00156401 [18:28:07]OFD Sender: To server: pG, [18:28:07]CommunicateWithHost lk.salyk.kg:30040 [18:28:07]ConnectInit lk.salyk.kg [18:28:07]written 0, free lines is 4095 [18:28:07]Connected sock=10 [18:28:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 95 E3 07 01 EB 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 B7 34 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 62 02 00 35 04 06 00 F1 9F F4 E4 1C DE B5 28 87 F9 A0 DE 22 40 [18:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6E D8 47 00 6F 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 31 37 39 32 10 04 04 00 F1 62 02 00 F4 03 04 00 29 DA 1C 67 B6 04 01 00 00 71 23 A9 38 F8 5E BF F2 [18:28:08]CommunicateWithHost err = 0 [18:28:08]CheckOFDResponse [18:28:08]1017 (14) - 77093643461234 [18:28:08]1041 (16) - 0000000000871792 [18:28:08]1040 (4) - 156401 [18:28:08]1012 (4) - 26.10.2024 12:01 [18:28:08]1206 (1) - 0 [18:28:08]OFD Sender: Remove packet 156401 [18:28:08]ProducePacketName [18:28:08]name=ofd_packets/00156401 [18:28:08]NVStorageDeleteData [18:28:08]Write to MH i2c: 01 00 00 99 22 BB [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 07 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 07 00 99 22 00 00 00 00 00 F4 0C C2 [18:28:08]RasterBufferAndPrint [18:28:08]line [18:28:08]line [18:28:08]line [18:28:08]line [18:28:08]line [18:28:08]written 0, free lines is 3322 [18:28:08]process_action close_receipt done [18:28:08]requested_data is exist [18:28:08]produce_requested_data [18:28:08]requested_item fm.sn is exist - process it [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 11 00 00 [18:28:08]Write to MH i2c: E2 08 00 A0 22 80 11 00 00 00 00 00 00 3C [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:08]Read from MH i2c: E2 17 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 17 00 A0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 91 [18:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:28:08]wFMCommunicate OK [18:28:08]requested_item fd.num is exist - process it [18:28:08]SAM_PROTO_GetFieldsCounters [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 00 00 [18:28:08]Write to MH i2c: E2 08 00 A1 22 80 13 00 00 00 00 00 00 3F [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 62 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 62 00 A1 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [18:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetFieldsCounters done [18:28:08]requested_item shift.num is exist - process it [18:28:08]requested_item shift.opened is exist - process it [18:28:08]req_shift_opened [18:28:08]FM_GetShiftState [18:28:08]SAM_PROTO_GetShiftState [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 01 00 [18:28:08]Write to MH i2c: E2 08 00 A2 22 80 13 01 00 00 00 00 00 41 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 A2 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 76 [18:28:08]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetShiftState done [18:28:08]FM_GetShiftState done [18:28:08]req_shift_opened done [18:28:08]requested_item shift.open_date is exist - process it [18:28:08]req_shift_open_date [18:28:08]req_shift_open_date done [18:28:08]produce_requested_data done [18:28:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156401,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:28:08]process_action_free close_receipt [18:28:08]json_value_free [18:28:08]json_value_free done [18:28:08]process_json_proto returns [18:28:08]Send response to host [18:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156401,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:28:08]free response buf [18:28:08]execute_script done [18:28:08]execute_script returns [18:28:08]free content buf [18:28:08]Sock 8.Close socket [18:28:08]Sock 8.Thread stoped [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:04]accept exits with 9 [18:31:04]New connection [18:31:04]New thread 3066834276 created [18:31:04]Thread 3066977636 joined [18:31:04]Waiting for new connection... [18:31:04] Sock 9.Parse request [18:31:04]Sock 9.Check first char [18:31:04]Sock 9.First char is OK [18:31:04]request: POST /json_proto HTTP/1.0 [18:31:04]Method: POST [18:31:04]URL: /json_proto [18:31:04]Method is POST - this is cgi request [18:31:04]url: /json_proto [18:31:04]query_string will be loaded in cgi processing [18:31:04]execute_cgi json_proto POST (null) [18:31:04]execute_cgi path=json_proto method=POST [18:31:04]POST find Content-Length [18:31:04]Host: 172.17.63.3:8080 [18:31:04]Content-Length: 681 [18:31:04]Content-Type: application/json [18:31:04] [18:31:04]POST finish read [18:31:04]Found Content-Length = 681 [18:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.030, "sum" : 1005.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:04]execute_script... [18:31: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)99217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.030, "sum" : 1005.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:04]POST & json_proto [18:31:04]process_json_proto [18:31:04]json parsed OK: [18:31:04]protocol is kg_v1.0 [18:31:04]action value=close_receipt [18:31:04]process_action close_receipt [18:31:04]cmd_close_receipt [18:31:04]MH_GetDate [18:31:04]Write to MH i2c: F0 00 00 A3 22 B4 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: F0 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: F0 09 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: F0 09 00 A3 22 00 69 35 1D 67 50 D1 6C 64 D0 [18:31:04]GetLastDocTimeStamp 1729967287 [18:31:04]current date 1729967465 [18:31:04]FM_GetShiftState [18:31:04]SAM_PROTO_GetShiftState [18:31:04]wFMCommunicate request_size=4 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 13 01 00 [18:31:04]Write to MH i2c: E2 08 00 A4 22 80 13 01 00 00 00 00 00 43 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 0E 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 0E 00 A4 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 78 [18:31:04]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:31:04]wFMCommunicate OK [18:31:04]SAM_PROTO_GetShiftState done [18:31:04]FM_GetShiftState done [18:31:04]opened in 1729902702 [18:31:04]opened+sec_in_day 1729989102 [18:31:04]quantity*price = 100550 [18:31:04]sum+1 = 100552 [18:31:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.78 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 303 26.10.2024 18:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156402 ФПД: 88856911207023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183105&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156402&fm=88856911207023&tin=02508201610067®Number=0000000000091693&sum=100500 [18:31:05]StoreToDocumentArchive [18:31:05]shift 536 fd 156402 [18:31:05]save to /storage/0536/doc_00156402 [18:31:05]save last doc name /storage/0536/doc_00156402 to /storage/kkm_last_doc_name [18:31:05]save OK [18:31:05]Clear old archive folders... [18:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:05]tlvbuf is B6F5B780 [18:31:05]SAM_PROTO_ClearQueue [18:31:05]wFMCommunicate request_size=4 [18:31:05]MH_SAM_APDU [18:31:05]CAPDU: 80 09 00 00 [18:31:05]Write to MH i2c: E2 08 00 B1 22 80 09 00 00 00 00 00 00 45 [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:05]Read from MH i2c: E2 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 03 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 03 00 B1 22 00 90 00 47 [18:31:05]RAPDU: 90 00 [18:31:05]wFMCommunicate OK [18:31:05]SAM_PROTO_ClearQueue done [18:31:05]KKMCreateOFDPacket [18:31:05]OFDProtocolAddRootSTLVToBuf [18:31:05]FM_MakeSignedData [18:31:05]FM_MakeSignedData [18:31:05]SAM_PROTO_SignData [18:31:05]wFMCommunicate request_size=4 [18:31:05]MH_SAM_APDU [18:31:05]CAPDU: 80 0D 01 02 [18:31:05]Write to MH i2c: E2 08 00 B2 22 80 0D 01 02 00 00 00 00 4D [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:05]Read from MH i2c: E2 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 03 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 03 00 B2 22 00 90 00 48 [18:31:05]RAPDU: 90 00 [18:31:05]wFMCommunicate OK [18:31:05]wFMCommunicate request_size=255 [18:31:05]MH_SAM_APDU [18:31:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 69 35 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 62 02 00 35 04 06 00 50 [18:31:05]Write to MH i2c: E2 02 01 B3 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 69 35 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 62 02 00 35 04 06 00 50 00 00 80 [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:05]Read from MH i2c: E2 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 03 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 03 00 B3 22 00 90 00 49 [18:31:05]RAPDU: 90 00 [18:31:05]wFMCommunicate OK [18:31:05]wFMCommunicate request_size=10 [18:31:05]MH_SAM_APDU [18:31:05]CAPDU: 80 0D 02 02 05 D0 9C A0 DA 6F [18:31:05]Write to MH i2c: E2 0D 00 B4 22 80 0D 02 02 05 00 D0 9C A0 DA 6F 00 00 AF [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:05]Read from MH i2c: E2 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 03 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 03 00 B4 22 00 90 00 4A [18:31:05]RAPDU: 90 00 [18:31:05]wFMCommunicate OK [18:31:05]wFMCommunicate request_size=4 [18:31:05]MH_SAM_APDU [18:31:05]CAPDU: 80 0D 03 02 [18:31:05]Write to MH i2c: E2 08 00 B5 22 80 0D 03 02 00 00 00 00 52 [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 0B 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 0B 00 B5 22 00 87 0D CD 04 12 D3 88 19 90 00 3E [18:31:06]RAPDU: 87 0D CD 04 12 D3 88 19 90 00 [18:31:06]wFMCommunicate OK [18:31:06]SAM_PROTO_SignData done [18:31:06]FM_MakeSignedData done [18:31:06]CreateOFDProtocolMessage [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 11 00 00 [18:31:06]Write to MH i2c: E2 08 00 B6 22 80 11 00 00 00 00 00 00 52 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 B6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [18:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:31:06]wFMCommunicate OK [18:31:06]CreateOFDProtocolMessage done [18:31:06]OFDSenderStorePacket 156402 [18:31:06]StoreOFDPacket docnum=156402 [18:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 01 07 01 48 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 69 35 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 62 02 00 35 04 06 00 50 D0 9C A0 DA 6F 87 0D CD 04 12 D3 88 19 [18:31:06]CheckFolder [18:31:06]dirname=/storage/ofd_packets [18:31:06]CheckFolder done [18:31:06]ProducePacketName [18:31:06]name=ofd_packets/00156402 [18:31:06]NVStorageSaveData ofd_packets/00156402 [18:31:06]File name is /storage/ofd_packets/00156402 [18:31:06]Write 301 bytes [18:31:06]NVStorageSaveData done [18:31:06]OFDSenderStorePacket done [18:31:06]KKMCreateOFDPacket done [18:31:06]NVStorageSaveData kkm_last_timestamp [18:31:06]File name is /storage/kkm_last_timestamp [18:31:06]Write 4 bytes [18:31:06]NVStorageSaveData done [18:31:06]ExternCall_PrintAddStr [18:31:06]wPrintStart [18:31:06]Write to MH i2c: 01 00 00 B7 22 D9 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 07 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 07 00 B7 22 00 00 00 00 00 FF 0F EE [18:31:06]RasterBufferAndPrint [18:31:06]line Счет N : (1)99217 [18:31:06]line ИНН: 02508201610067 [18:31:06]line Контрольно-Кассовый Чек [18:31:06]line ПРОДАЖА [18:31:06]line ТРК (МРК, ГНК) : 31 [18:31:06]line Товар: 2710124130 [18:31:06]line Аи-92-К-5 [18:31:06]line 15.030 * 66.90 [18:31:06]line = 1005.51 [18:31:06]line НДС 12% НСП 1% [18:31:06]line > о реализуемом товаре [18:31:06]line ОКРУГЛЕНИЕ: -0.51 [18:31:06]line ИТОГО: 1005.00 [18:31:06]line Внесено: 1005.00 [18:31:06]line СДАЧА: 0.00 [18:31:06]line НСП 1% : 8.90 [18:31:06]line НДС 12% : 106.78 [18:31:06]line Наличными: 1005.00 [18:31:06]line Безнал.: 0.00 [18:31:06]line Место: АЗС № 143 "Партнер Нефть" [18:31:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:31:06]line СНО: Общий режим [18:31:06]line Чек 303 26.10.2024 18:31 [18:31:06]line Смена: 536 ФФД: 1.0 [18:31:06]line ЗНМ: 0300000096 [18:31:06]line РНМ: 0000000000091693 [18:31:06]line Версия ККМ: 001 [18:31:06]line ФМ: 0000000000871792 [18:31:06]line ФД: 156402 [18:31:06]line ФПД: 88856911207023 [18:31:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183105&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156402&fm=88856911207023&tin=02508201610067®Number=0000000000091693&sum=100500 [18:31:06]OFD Sender: Processing packet 156402 [packets to send 31, broken 30] [18:31:06]ProducePacketName [18:31:06]name=ofd_packets/00156402 [18:31:06]OFD Sender: To server: pG, [18:31:06]CommunicateWithHost lk.salyk.kg:30040 [18:31:06]ConnectInit lk.salyk.kg [18:31:06]written 0, free lines is 4095 [18:31:06]Connected sock=10 [18:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 01 07 01 48 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 69 35 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 62 02 00 35 04 06 00 50 D0 9C A0 DA 6F 87 0D CD 04 12 D3 88 19 [18:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 42 1F 47 00 1A 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 31 37 39 32 10 04 04 00 F2 62 02 00 F4 03 04 00 DB DA 1C 67 B6 04 01 00 00 4E 4D 35 BE B6 D9 D2 B0 [18:31:06]CommunicateWithHost err = 0 [18:31:06]CheckOFDResponse [18:31:06]1017 (14) - 77093643461234 [18:31:06]1041 (16) - 0000000000871792 [18:31:06]1040 (4) - 156402 [18:31:06]1012 (4) - 26.10.2024 12:04 [18:31:06]1206 (1) - 0 [18:31:06]OFD Sender: Remove packet 156402 [18:31:06]ProducePacketName [18:31:06]name=ofd_packets/00156402 [18:31:06]NVStorageDeleteData [18:31:06]Write to MH i2c: 01 00 00 E2 22 04 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 07 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 07 00 E2 22 00 00 00 00 00 E4 0C FB [18:31:06]RasterBufferAndPrint [18:31:06]line [18:31:06]line [18:31:06]line [18:31:06]line [18:31:06]line [18:31:06]written 0, free lines is 3306 [18:31:06]process_action close_receipt done [18:31:06]requested_data is exist [18:31:06]produce_requested_data [18:31:06]requested_item fm.sn is exist - process it [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 11 00 00 [18:31:06]Write to MH i2c: E2 08 00 E9 22 80 11 00 00 00 00 00 00 85 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:06]Read from MH i2c: E2 17 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 E9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DA [18:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:31:06]wFMCommunicate OK [18:31:06]requested_item fd.num is exist - process it [18:31:06]SAM_PROTO_GetFieldsCounters [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 13 00 00 [18:31:06]Write to MH i2c: E2 08 00 EA 22 80 13 00 00 00 00 00 00 88 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:07]Read from MH i2c: E2 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 62 00 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 62 00 EA 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [18:31: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:07]wFMCommunicate OK [18:31:07]SAM_PROTO_GetFieldsCounters done [18:31:07]requested_item shift.num is exist - process it [18:31:07]requested_item shift.opened is exist - process it [18:31:07]req_shift_opened [18:31:07]FM_GetShiftState [18:31:07]SAM_PROTO_GetShiftState [18:31:07]wFMCommunicate request_size=4 [18:31:07]MH_SAM_APDU [18:31:07]CAPDU: 80 13 01 00 [18:31:07]Write to MH i2c: E2 08 00 EB 22 80 13 01 00 00 00 00 00 8A [18:31:07]Write i2c OK [18:31:07]MH_I2C_Read... [18:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:07]Read from MH i2c: E2 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 0E 00 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 0E 00 EB 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BF [18:31:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:31:07]wFMCommunicate OK [18:31:07]SAM_PROTO_GetShiftState done [18:31:07]FM_GetShiftState done [18:31:07]req_shift_opened done [18:31:07]requested_item shift.open_date is exist - process it [18:31:07]req_shift_open_date [18:31:07]req_shift_open_date done [18:31:07]produce_requested_data done [18:31:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156402,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:31:07]process_action_free close_receipt [18:31:07]json_value_free [18:31:07]json_value_free done [18:31:07]process_json_proto returns [18:31:07]Send response to host [18:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156402,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:31:07]free response buf [18:31:07]execute_script done [18:31:07]execute_script returns [18:31:07]free content buf [18:31:07]Sock 9.Close socket [18:31:07]Sock 9.Thread stoped [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:25]accept exits with 8 [18:32:25]New connection [18:32:25]New thread 3066977636 created [18:32:25]Thread 3066834276 joined [18:32:25]Waiting for new connection... [18:32:25] Sock 8.Parse request [18:32:25]Sock 8.Check first char [18:32:25]Sock 8.First char is OK [18:32:25]request: POST /json_proto HTTP/1.0 [18:32:25]Method: POST [18:32:25]URL: /json_proto [18:32:25]Method is POST - this is cgi request [18:32:25]url: /json_proto [18:32:25]query_string will be loaded in cgi processing [18:32:25]execute_cgi json_proto POST (null) [18:32:25]execute_cgi path=json_proto method=POST [18:32:25]POST find Content-Length [18:32:25]Host: 172.17.63.3:8080 [18:32:25]Content-Length: 673 [18:32:25]Content-Type: application/json [18:32:25] [18:32:25]POST finish read [18:32:25]Found Content-Length = 673 [18:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:32:25]execute_script... [18:32:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:32:25]POST & json_proto [18:32:25]process_json_proto [18:32:25]json parsed OK: [18:32:25]protocol is kg_v1.0 [18:32:25]action value=close_receipt [18:32:25]process_action close_receipt [18:32:25]cmd_close_receipt [18:32:25]MH_GetDate [18:32:25]Write to MH i2c: F0 00 00 EC 22 FD [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 09 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 09 00 EC 22 00 BA 35 1D 67 50 D1 6C 64 6A [18:32:25]GetLastDocTimeStamp 1729967465 [18:32:25]current date 1729967546 [18:32:25]FM_GetShiftState [18:32:25]SAM_PROTO_GetShiftState [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 13 01 00 [18:32:25]Write to MH i2c: E2 08 00 ED 22 80 13 01 00 00 00 00 00 8C [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0E 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0E 00 ED 22 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C1 [18:32:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:32:25]wFMCommunicate OK [18:32:25]SAM_PROTO_GetShiftState done [18:32:25]FM_GetShiftState done [18:32:25]opened in 1729902702 [18:32:25]opened+sec_in_day 1729989102 [18:32:25]quantity*price = 60045 [18:32:25]sum+1 = 60047 [18:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 304 26.10.2024 18:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156403 ФПД: 193079402731183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183226&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156403&fm=193079402731183&tin=02508201610067®Number=0000000000091693&sum=60000 [18:32:26]StoreToDocumentArchive [18:32:26]shift 536 fd 156403 [18:32:26]save to /storage/0536/doc_00156403 [18:32:26]save last doc name /storage/0536/doc_00156403 to /storage/kkm_last_doc_name [18:32:26]save OK [18:32:26]Clear old archive folders... [18:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:32:26]tlvbuf is B6EE07B0 [18:32:26]SAM_PROTO_ClearQueue [18:32:26]wFMCommunicate request_size=4 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 09 00 00 [18:32:26]Write to MH i2c: E2 08 00 FA 22 80 09 00 00 00 00 00 00 8E [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 FA 22 00 90 00 90 [18:32:26]RAPDU: 90 00 [18:32:26]wFMCommunicate OK [18:32:26]SAM_PROTO_ClearQueue done [18:32:26]KKMCreateOFDPacket [18:32:26]OFDProtocolAddRootSTLVToBuf [18:32:26]FM_MakeSignedData [18:32:26]FM_MakeSignedData [18:32:26]SAM_PROTO_SignData [18:32:26]wFMCommunicate request_size=4 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 0D 01 02 [18:32:26]Write to MH i2c: E2 08 00 FB 22 80 0D 01 02 00 00 00 00 96 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 FB 22 00 90 00 91 [18:32:26]RAPDU: 90 00 [18:32:26]wFMCommunicate OK [18:32:26]wFMCommunicate request_size=255 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 30 01 00 00 F4 03 04 00 BA 35 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 62 02 00 35 04 06 00 AF 9A CD 36 [18:32:26]Write to MH i2c: E2 02 01 FC 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 30 01 00 00 F4 03 04 00 BA 35 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 62 02 00 35 04 06 00 AF 9A CD 36 00 00 42 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 FC 22 00 90 00 92 [18:32:26]RAPDU: 90 00 [18:32:26]wFMCommunicate OK [18:32:26]wFMCommunicate request_size=7 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 0D 02 02 02 96 AF [18:32:26]Write to MH i2c: E2 0A 00 FD 22 80 0D 02 02 02 00 96 AF 00 00 E2 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 FD 22 00 90 00 93 [18:32:26]RAPDU: 90 00 [18:32:26]wFMCommunicate OK [18:32:26]wFMCommunicate request_size=4 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 0D 03 02 [18:32:26]Write to MH i2c: E2 08 00 FE 22 80 0D 03 02 00 00 00 00 9B [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 0B 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 0B 00 FE 22 00 57 FD C5 82 8F 5F 43 62 90 00 CA [18:32:26]RAPDU: 57 FD C5 82 8F 5F 43 62 90 00 [18:32:26]wFMCommunicate OK [18:32:26]SAM_PROTO_SignData done [18:32:26]FM_MakeSignedData done [18:32:26]CreateOFDProtocolMessage [18:32:26]wFMCommunicate request_size=4 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 11 00 00 [18:32:26]Write to MH i2c: E2 08 00 FF 22 80 11 00 00 00 00 00 00 9B [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 17 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 17 00 FF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F0 [18:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:32:26]wFMCommunicate OK [18:32:26]CreateOFDProtocolMessage done [18:32:26]OFDSenderStorePacket 156403 [18:32:26]StoreOFDPacket docnum=156403 [18:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F7 1E 04 01 A4 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 30 01 00 00 F4 03 04 00 BA 35 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 62 02 00 35 04 06 00 AF 9A CD 36 96 AF 57 FD C5 82 8F 5F 43 62 [18:32:26]CheckFolder [18:32:26]dirname=/storage/ofd_packets [18:32:26]CheckFolder done [18:32:26]ProducePacketName [18:32:26]name=ofd_packets/00156403 [18:32:26]NVStorageSaveData ofd_packets/00156403 [18:32:26]File name is /storage/ofd_packets/00156403 [18:32:26]Write 298 bytes [18:32:26]NVStorageSaveData done [18:32:26]OFDSenderStorePacket done [18:32:26]KKMCreateOFDPacket done [18:32:26]NVStorageSaveData kkm_last_timestamp [18:32:26]File name is /storage/kkm_last_timestamp [18:32:26]Write 4 bytes [18:32:26]NVStorageSaveData done [18:32:26]ExternCall_PrintAddStr [18:32:26]wPrintStart [18:32:26]Write to MH i2c: 01 00 00 00 23 23 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: 01 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: 01 07 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: 01 07 00 00 23 00 00 00 00 00 FF 0F 38 [18:32:26]RasterBufferAndPrint [18:32:26]line Счет N : (1)99218 [18:32:26]line ИНН: 02508201610067 [18:32:26]line Контрольно-Кассовый Чек [18:32:26]line ПРОДАЖА [18:32:26]line ТРК (МРК, ГНК) : 32 [18:32:26]line Товар: 2710194210 [18:32:26]line ДТ-К-5 [18:32:26]line 7.880 * 76.20 [18:32:26]line = 600.46 [18:32:26]line НДС 12% НСП 1% [18:32:26]line > о реализуемом товаре [18:32:26]line ОКРУГЛЕНИЕ: -0.46 [18:32:26]line ИТОГО: 600.00 [18:32:26]line Внесено: 600.00 [18:32:26]line СДАЧА: 0.00 [18:32:26]line НСП 1% : 5.31 [18:32:26]line НДС 12% : 63.77 [18:32:26]line Наличными: 600.00 [18:32:26]line Безнал.: 0.00 [18:32:26]line Место: АЗС № 143 "Партнер Нефть" [18:32:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:32:26]line СНО: Общий режим [18:32:26]line Чек 304 26.10.2024 18:32 [18:32:26]line Смена: 536 ФФД: 1.0 [18:32:26]line ЗНМ: 0300000096 [18:32:26]line РНМ: 0000000000091693 [18:32:26]line Версия ККМ: 001 [18:32:26]line ФМ: 0000000000871792 [18:32:26]line ФД: 156403 [18:32:26]line ФПД: 193079402731183 [18:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183226&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156403&fm=193079402731183&tin=02508201610067®Number=0000000000091693&sum=60000 [18:32:27]OFD Sender: Processing packet 156403 [packets to send 31, broken 30] [18:32:27]ProducePacketName [18:32:27]name=ofd_packets/00156403 [18:32:27]OFD Sender: To server: pG, [18:32:27]CommunicateWithHost lk.salyk.kg:30040 [18:32:27]ConnectInit lk.salyk.kg [18:32:27]written 0, free lines is 4095 [18:32:27]Connected sock=10 [18:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F7 1E 04 01 A4 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 30 01 00 00 F4 03 04 00 BA 35 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 62 02 00 35 04 06 00 AF 9A CD 36 96 AF 57 FD C5 82 8F 5F 43 62 [18:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 91 90 47 00 FD 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 62 02 00 F4 03 04 00 2C DB 1C 67 B6 04 01 00 00 49 AC DA 49 69 62 CE B8 [18:32:27]CommunicateWithHost err = 0 [18:32:27]CheckOFDResponse [18:32:27]1017 (14) - 77093643461234 [18:32:27]1041 (16) - 0000000000871792 [18:32:27]1040 (4) - 156403 [18:32:27]1012 (4) - 26.10.2024 12:06 [18:32:27]1206 (1) - 0 [18:32:27]OFD Sender: Remove packet 156403 [18:32:27]ProducePacketName [18:32:27]name=ofd_packets/00156403 [18:32:27]NVStorageDeleteData [18:32:27]Write to MH i2c: 01 00 00 2B 23 4E [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 07 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 07 00 2B 23 00 00 00 00 00 D8 0C 39 [18:32:27]RasterBufferAndPrint [18:32:27]line [18:32:27]line [18:32:27]line [18:32:27]line [18:32:27]line [18:32:27]written 0, free lines is 3295 [18:32:27]process_action close_receipt done [18:32:27]requested_data is exist [18:32:27]produce_requested_data [18:32:27]requested_item fm.sn is exist - process it [18:32:27]wFMCommunicate request_size=4 [18:32:27]MH_SAM_APDU [18:32:27]CAPDU: 80 11 00 00 [18:32:27]Write to MH i2c: E2 08 00 32 23 80 11 00 00 00 00 00 00 CF [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 17 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 17 00 32 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [18:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:32:27]wFMCommunicate OK [18:32:27]requested_item fd.num is exist - process it [18:32:27]SAM_PROTO_GetFieldsCounters [18:32:27]wFMCommunicate request_size=4 [18:32:27]MH_SAM_APDU [18:32:27]CAPDU: 80 13 00 00 [18:32:27]Write to MH i2c: E2 08 00 33 23 80 13 00 00 00 00 00 00 D2 [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 62 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 62 00 33 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [18:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:27]wFMCommunicate OK [18:32:27]SAM_PROTO_GetFieldsCounters done [18:32:27]requested_item shift.num is exist - process it [18:32:27]requested_item shift.opened is exist - process it [18:32:27]req_shift_opened [18:32:27]FM_GetShiftState [18:32:27]SAM_PROTO_GetShiftState [18:32:27]wFMCommunicate request_size=4 [18:32:27]MH_SAM_APDU [18:32:27]CAPDU: 80 13 01 00 [18:32:27]Write to MH i2c: E2 08 00 34 23 80 13 01 00 00 00 00 00 D4 [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 0E 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 0E 00 34 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 09 [18:32:27]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:32:27]wFMCommunicate OK [18:32:27]SAM_PROTO_GetShiftState done [18:32:27]FM_GetShiftState done [18:32:27]req_shift_opened done [18:32:27]requested_item shift.open_date is exist - process it [18:32:27]req_shift_open_date [18:32:27]req_shift_open_date done [18:32:27]produce_requested_data done [18:32:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156403,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:32:27]process_action_free close_receipt [18:32:27]json_value_free [18:32:27]json_value_free done [18:32:27]process_json_proto returns [18:32:27]Send response to host [18:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156403,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:32:27]free response buf [18:32:27]execute_script done [18:32:27]execute_script returns [18:32:27]free content buf [18:32:27]Sock 8.Close socket [18:32:27]Sock 8.Thread stoped [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:21]accept exits with 9 [18:34:21]New connection [18:34:21]New thread 3066834276 created [18:34:21]Thread 3066977636 joined [18:34:21]Waiting for new connection... [18:34:21] Sock 9.Parse request [18:34:21]Sock 9.Check first char [18:34:21]Sock 9.First char is OK [18:34:21]request: POST /json_proto HTTP/1.0 [18:34:21]Method: POST [18:34:21]URL: /json_proto [18:34:21]Method is POST - this is cgi request [18:34:21]url: /json_proto [18:34:21]query_string will be loaded in cgi processing [18:34:21]execute_cgi json_proto POST (null) [18:34:21]execute_cgi path=json_proto method=POST [18:34:21]POST find Content-Length [18:34:21]Host: 172.17.63.3:8080 [18:34:21]Content-Length: 768 [18:34:21]Content-Type: application/json [18:34:21] [18:34:21]POST finish read [18:34:21]Found Content-Length = 768 [18:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.050, "sum" : 1140.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1140.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:21]execute_script... [18:34: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)99219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.050, "sum" : 1140.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1140.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:21]POST & json_proto [18:34:21]process_json_proto [18:34:21]json parsed OK: [18:34:21]protocol is kg_v1.0 [18:34:21]action value=close_receipt [18:34:21]process_action close_receipt [18:34:21]cmd_close_receipt [18:34:21]MH_GetDate [18:34:21]Write to MH i2c: F0 00 00 35 23 47 [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 09 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 09 00 35 23 00 2E 36 1D 67 50 D1 6C 64 29 [18:34:21]GetLastDocTimeStamp 1729967546 [18:34:21]current date 1729967662 [18:34:21]FM_GetShiftState [18:34:21]SAM_PROTO_GetShiftState [18:34:21]wFMCommunicate request_size=4 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 13 01 00 [18:34:21]Write to MH i2c: E2 08 00 36 23 80 13 01 00 00 00 00 00 D6 [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 0E 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 0E 00 36 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 0B [18:34:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:34:21]wFMCommunicate OK [18:34:21]SAM_PROTO_GetShiftState done [18:34:21]FM_GetShiftState done [18:34:21]opened in 1729902702 [18:34:21]opened+sec_in_day 1729989102 [18:34:21]quantity*price = 114064 [18:34:21]sum+1 = 114066 [18:34:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1140.65 НСП 1% : 10.09 НДС 12% : 121.13 Наличными: 0.00 Безнал.: 1140.65 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 305 26.10.2024 18:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156404 ФПД: 219597985880906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183422&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156404&fm=219597985880906&tin=02508201610067®Number=0000000000091693&sum=114065 [18:34:22]StoreToDocumentArchive [18:34:22]shift 536 fd 156404 [18:34:22]save to /storage/0536/doc_00156404 [18:34:22]save last doc name /storage/0536/doc_00156404 to /storage/kkm_last_doc_name [18:34:22]save OK [18:34:22]Clear old archive folders... [18:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:22]tlvbuf is 01712550 [18:34:22]SAM_PROTO_ClearQueue [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 09 00 00 [18:34:22]Write to MH i2c: E2 08 00 43 23 80 09 00 00 00 00 00 00 D8 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 43 23 00 90 00 DA [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]SAM_PROTO_ClearQueue done [18:34:22]KKMCreateOFDPacket [18:34:22]OFDProtocolAddRootSTLVToBuf [18:34:22]FM_MakeSignedData [18:34:22]FM_MakeSignedData [18:34:22]SAM_PROTO_SignData [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 01 02 [18:34:22]Write to MH i2c: E2 08 00 44 23 80 0D 01 02 00 00 00 00 E0 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]wFMCommunicate request_size=255 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 42 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 91 BD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 BD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 BD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 2E 36 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 62 02 00 35 04 06 00 C7 [18:34:22]Write to MH i2c: E2 02 01 45 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 42 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 91 BD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 BD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 BD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 2E 36 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 62 02 00 35 04 06 00 C7 00 00 BB [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 45 23 00 90 00 DC [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]wFMCommunicate request_size=10 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 02 02 05 B9 23 F1 1B 4A [18:34:22]Write to MH i2c: E2 0D 00 46 23 80 0D 02 02 05 00 B9 23 F1 1B 4A 00 00 1F [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 46 23 00 90 00 DD [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 03 02 [18:34:22]Write to MH i2c: E2 08 00 47 23 80 0D 03 02 00 00 00 00 E5 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 0B 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 0B 00 47 23 00 E7 00 92 EF 63 4F C1 39 90 00 FA [18:34:22]RAPDU: E7 00 92 EF 63 4F C1 39 90 00 [18:34:22]wFMCommunicate OK [18:34:22]SAM_PROTO_SignData done [18:34:22]FM_MakeSignedData done [18:34:22]CreateOFDProtocolMessage [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 11 00 00 [18:34:22]Write to MH i2c: E2 08 00 48 23 80 11 00 00 00 00 00 00 E5 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 17 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 17 00 48 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [18:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:34:22]wFMCommunicate OK [18:34:22]CreateOFDProtocolMessage done [18:34:22]OFDSenderStorePacket 156404 [18:34:22]StoreOFDPacket docnum=156404 [18:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C7 30 07 01 30 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 42 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 91 BD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 BD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 BD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 2E 36 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 62 02 00 35 04 06 00 C7 B9 23 F1 1B 4A E7 00 92 EF 63 4F C1 39 [18:34:22]CheckFolder [18:34:22]dirname=/storage/ofd_packets [18:34:22]CheckFolder done [18:34:22]ProducePacketName [18:34:22]name=ofd_packets/00156404 [18:34:22]NVStorageSaveData ofd_packets/00156404 [18:34:22]File name is /storage/ofd_packets/00156404 [18:34:22]Write 301 bytes [18:34:22]NVStorageSaveData done [18:34:22]OFDSenderStorePacket done [18:34:22]KKMCreateOFDPacket done [18:34:22]NVStorageSaveData kkm_last_timestamp [18:34:22]File name is /storage/kkm_last_timestamp [18:34:22]Write 4 bytes [18:34:22]NVStorageSaveData done [18:34:22]ExternCall_PrintAddStr [18:34:22]wPrintStart [18:34:22]Write to MH i2c: 01 00 00 49 23 6C [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 07 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 07 00 49 23 00 00 00 00 00 FF 0F 81 [18:34:22]RasterBufferAndPrint [18:34:22]line Счет N : (1)99219 [18:34:22]line ИНН: 02508201610067 [18:34:22]line Контрольно-Кассовый Чек [18:34:22]line ПРОДАЖА [18:34:22]line ТРК (МРК, ГНК) : 21 [18:34:22]line Товар: 2710124130 [18:34:22]line Аи-92-К-5 [18:34:22]line 17.050 * 66.90 [18:34:22]line = 1140.65 [18:34:22]line НДС 12% НСП 1% [18:34:22]line > о реализуемом товаре [18:34:22]line ИТОГО: 1140.65 [18:34:22]line НСП 1% : 10.09 [18:34:22]line НДС 12% : 121.13 [18:34:22]line Наличными: 0.00 [18:34:22]line Безнал.: 1140.65 [18:34:22]line Место: АЗС № 143 "Партнер Нефть" [18:34:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:34:22]line СНО: Общий режим [18:34:22]line Чек 305 26.10.2024 18:34 [18:34:22]line Смена: 536 ФФД: 1.0 [18:34:22]line ЗНМ: 0300000096 [18:34:22]line РНМ: 0000000000091693 [18:34:22]line Версия ККМ: 001 [18:34:22]line Платежная система: Mbank [18:34:22]line ФМ: 0000000000871792 [18:34:22]line ФД: 156404 [18:34:22]line ФПД: 219597985880906 [18:34:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183422&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156404&fm=219597985880906&tin=02508201610067®Number=0000000000091693&sum=114065 [18:34:23]written 0, free lines is 4095 [18:34:23]OFD Sender: Processing packet 156404 [packets to send 31, broken 30] [18:34:23]ProducePacketName [18:34:23]name=ofd_packets/00156404 [18:34:23]OFD Sender: To server: pG, [18:34:23]CommunicateWithHost lk.salyk.kg:30040 [18:34:23]ConnectInit lk.salyk.kg [18:34:23]Connected sock=10 [18:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C7 30 07 01 30 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 42 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 91 BD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 BD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 BD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 2E 36 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 62 02 00 35 04 06 00 C7 B9 23 F1 1B 4A E7 00 92 EF 63 4F C1 39 [18:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B7 E9 47 00 C4 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 62 02 00 F4 03 04 00 A0 DB 1C 67 B6 04 01 00 00 8D 42 53 52 B0 D0 61 48 [18:34:23]CommunicateWithHost err = 0 [18:34:23]CheckOFDResponse [18:34:23]1017 (14) - 77093643461234 [18:34:23]1041 (16) - 0000000000871792 [18:34:23]1040 (4) - 156404 [18:34:23]1012 (4) - 26.10.2024 12:08 [18:34:23]1206 (1) - 0 [18:34:23]OFD Sender: Remove packet 156404 [18:34:23]ProducePacketName [18:34:23]name=ofd_packets/00156404 [18:34:23]NVStorageDeleteData [18:34:23]Write to MH i2c: 01 00 00 72 23 95 [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 07 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 07 00 72 23 00 00 00 00 00 08 0D B1 [18:34:23]RasterBufferAndPrint [18:34:23]line [18:34:23]line [18:34:23]line [18:34:23]line [18:34:23]line [18:34:23]written 0, free lines is 3342 [18:34:23]process_action close_receipt done [18:34:23]requested_data is exist [18:34:23]produce_requested_data [18:34:23]requested_item fm.sn is exist - process it [18:34:23]wFMCommunicate request_size=4 [18:34:23]MH_SAM_APDU [18:34:23]CAPDU: 80 11 00 00 [18:34:23]Write to MH i2c: E2 08 00 79 23 80 11 00 00 00 00 00 00 16 [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:23]Read from MH i2c: E2 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 17 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 17 00 79 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6B [18:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:34:23]wFMCommunicate OK [18:34:23]requested_item fd.num is exist - process it [18:34:23]SAM_PROTO_GetFieldsCounters [18:34:23]wFMCommunicate request_size=4 [18:34:23]MH_SAM_APDU [18:34:23]CAPDU: 80 13 00 00 [18:34:23]Write to MH i2c: E2 08 00 7A 23 80 13 00 00 00 00 00 00 19 [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:23]Read from MH i2c: E2 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 62 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 62 00 7A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [18:34:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:23]wFMCommunicate OK [18:34:23]SAM_PROTO_GetFieldsCounters done [18:34:23]requested_item shift.num is exist - process it [18:34:23]requested_item shift.opened is exist - process it [18:34:23]req_shift_opened [18:34:23]FM_GetShiftState [18:34:23]SAM_PROTO_GetShiftState [18:34:23]wFMCommunicate request_size=4 [18:34:23]MH_SAM_APDU [18:34:23]CAPDU: 80 13 01 00 [18:34:23]Write to MH i2c: E2 08 00 7B 23 80 13 01 00 00 00 00 00 1B [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:23]Read from MH i2c: E2 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 0E 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: E2 0E 00 7B 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [18:34:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:34:23]wFMCommunicate OK [18:34:23]SAM_PROTO_GetShiftState done [18:34:23]FM_GetShiftState done [18:34:23]req_shift_opened done [18:34:23]requested_item shift.open_date is exist - process it [18:34:23]req_shift_open_date [18:34:23]req_shift_open_date done [18:34:23]produce_requested_data done [18:34:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156404,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:34:23]process_action_free close_receipt [18:34:23]json_value_free [18:34:23]json_value_free done [18:34:23]process_json_proto returns [18:34:23]Send response to host [18:34:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156404,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:34:23]free response buf [18:34:23]execute_script done [18:34:23]execute_script returns [18:34:23]free content buf [18:34:23]Sock 9.Close socket [18:34:23]Sock 9.Thread stoped [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [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:19]accept exits with 8 [18:38:19]New connection [18:38:19]New thread 3066977636 created [18:38:19]Thread 3066834276 joined [18:38:19]Waiting for new connection... [18:38:19] Sock 8.Parse request [18:38:19]Sock 8.Check first char [18:38:19]Sock 8.First char is OK [18:38:19]request: POST /json_proto HTTP/1.0 [18:38:19]Method: POST [18:38:19]URL: /json_proto [18:38:19]Method is POST - this is cgi request [18:38:19]url: /json_proto [18:38:19]query_string will be loaded in cgi processing [18:38:19]execute_cgi json_proto POST (null) [18:38:19]execute_cgi path=json_proto method=POST [18:38:19]POST find Content-Length [18:38:19]Host: 172.17.63.3:8080 [18:38:19]Content-Length: 676 [18:38:19]Content-Type: application/json [18:38:19] [18:38:19]POST finish read [18:38:19]Found Content-Length = 676 [18:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:19]execute_script... [18:38:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:19]POST & json_proto [18:38:19]process_json_proto [18:38:19]json parsed OK: [18:38:19]protocol is kg_v1.0 [18:38:19]action value=close_receipt [18:38:19]process_action close_receipt [18:38:19]cmd_close_receipt [18:38:19]MH_GetDate [18:38:19]Write to MH i2c: F0 00 00 7C 23 8E [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: F0 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: F0 09 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: F0 09 00 7C 23 00 1D 37 1D 67 50 D1 6C 64 60 [18:38:19]GetLastDocTimeStamp 1729967662 [18:38:19]current date 1729967901 [18:38:19]FM_GetShiftState [18:38:19]SAM_PROTO_GetShiftState [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 13 01 00 [18:38:19]Write to MH i2c: E2 08 00 7D 23 80 13 01 00 00 00 00 00 1D [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 0E 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 0E 00 7D 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 52 [18:38:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:38:19]wFMCommunicate OK [18:38:19]SAM_PROTO_GetShiftState done [18:38:19]FM_GetShiftState done [18:38:19]opened in 1729902702 [18:38:19]opened+sec_in_day 1729989102 [18:38:19]quantity*price = 35055 [18:38:19]sum+1 = 35057 [18:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 306 26.10.2024 18:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156405 ФПД: 173412021185781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183821&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156405&fm=173412021185781&tin=02508201610067®Number=0000000000091693&sum=35000 [18:38:21]StoreToDocumentArchive [18:38:21]shift 536 fd 156405 [18:38:21]save to /storage/0536/doc_00156405 [18:38:21]save last doc name /storage/0536/doc_00156405 to /storage/kkm_last_doc_name [18:38:21]save OK [18:38:21]Clear old archive folders... [18:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:21]tlvbuf is B6EAE810 [18:38:21]SAM_PROTO_ClearQueue [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 09 00 00 [18:38:21]Write to MH i2c: E2 08 00 8A 23 80 09 00 00 00 00 00 00 1F [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 8A 23 00 90 00 21 [18:38:21]RAPDU: 90 00 [18:38:21]wFMCommunicate OK [18:38:21]SAM_PROTO_ClearQueue done [18:38:21]KKMCreateOFDPacket [18:38:21]OFDProtocolAddRootSTLVToBuf [18:38:21]FM_MakeSignedData [18:38:21]FM_MakeSignedData [18:38:21]SAM_PROTO_SignData [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 0D 01 02 [18:38:21]Write to MH i2c: E2 08 00 8B 23 80 0D 01 02 00 00 00 00 27 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 8B 23 00 90 00 22 [18:38:21]RAPDU: 90 00 [18:38:21]wFMCommunicate OK [18:38:21]wFMCommunicate request_size=255 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 1D 37 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 62 02 00 35 04 06 00 9D [18:38:21]Write to MH i2c: E2 02 01 8C 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 1D 37 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 62 02 00 35 04 06 00 9D 00 00 E1 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 8C 23 00 90 00 23 [18:38:21]RAPDU: 90 00 [18:38:21]wFMCommunicate OK [18:38:21]wFMCommunicate request_size=10 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 0D 02 02 05 B7 A1 EC 2C F5 [18:38:21]Write to MH i2c: E2 0D 00 8D 23 80 0D 02 02 05 00 B7 A1 EC 2C F5 00 00 99 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 8D 23 00 90 00 24 [18:38:21]RAPDU: 90 00 [18:38:21]wFMCommunicate OK [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 0D 03 02 [18:38:21]Write to MH i2c: E2 08 00 8E 23 80 0D 03 02 00 00 00 00 2C [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 0B 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 0B 00 8E 23 00 18 D6 86 5D DC 6A 26 47 90 00 B1 [18:38:21]RAPDU: 18 D6 86 5D DC 6A 26 47 90 00 [18:38:21]wFMCommunicate OK [18:38:21]SAM_PROTO_SignData done [18:38:21]FM_MakeSignedData done [18:38:21]CreateOFDProtocolMessage [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 11 00 00 [18:38:21]Write to MH i2c: E2 08 00 8F 23 80 11 00 00 00 00 00 00 2C [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 17 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 17 00 8F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 81 [18:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:38:21]wFMCommunicate OK [18:38:21]CreateOFDProtocolMessage done [18:38:21]OFDSenderStorePacket 156405 [18:38:21]StoreOFDPacket docnum=156405 [18:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5F 40 07 01 5C D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 1D 37 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 62 02 00 35 04 06 00 9D B7 A1 EC 2C F5 18 D6 86 5D DC 6A 26 47 [18:38:21]CheckFolder [18:38:21]dirname=/storage/ofd_packets [18:38:21]CheckFolder done [18:38:21]ProducePacketName [18:38:21]name=ofd_packets/00156405 [18:38:21]NVStorageSaveData ofd_packets/00156405 [18:38:21]File name is /storage/ofd_packets/00156405 [18:38:21]Write 301 bytes [18:38:21]NVStorageSaveData done [18:38:21]OFDSenderStorePacket done [18:38:21]KKMCreateOFDPacket done [18:38:21]NVStorageSaveData kkm_last_timestamp [18:38:21]File name is /storage/kkm_last_timestamp [18:38:21]Write 4 bytes [18:38:21]NVStorageSaveData done [18:38:21]OFD Sender: Processing packet 156405 [packets to send 31, broken 30] [18:38:21]ProducePacketName [18:38:21]name=ofd_packets/00156405 [18:38:21]OFD Sender: To server: pG, [18:38:21]CommunicateWithHost lk.salyk.kg:30040 [18:38:21]ConnectInit lk.salyk.kg [18:38:21]ExternCall_PrintAddStr [18:38:21]wPrintStart [18:38:21]Write to MH i2c: 01 00 00 90 23 B3 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 07 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 07 00 90 23 00 00 00 00 00 FF 0F C8 [18:38:21]RasterBufferAndPrint [18:38:21]line Счет N : (1)99220 [18:38:21]line ИНН: 02508201610067 [18:38:21]line Контрольно-Кассовый Чек [18:38:21]line ПРОДАЖА [18:38:21]line ТРК (МРК, ГНК) : 31 [18:38:21]line Товар: 2710124130 [18:38:21]line Аи-92-К-5 [18:38:21]line 5.240 * 66.90 [18:38:21]line = 350.56 [18:38:21]line НДС 12% НСП 1% [18:38:21]line > о реализуемом товаре [18:38:21]line ОКРУГЛЕНИЕ: -0.56 [18:38:21]line ИТОГО: 350.00 [18:38:21]line Внесено: 350.00 [18:38:21]line СДАЧА: 0.00 [18:38:21]line НСП 1% : 3.10 [18:38:21]line НДС 12% : 37.23 [18:38:21]line Наличными: 350.00 [18:38:21]line Безнал.: 0.00 [18:38:21]line Место: АЗС № 143 "Партнер Нефть" [18:38:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:38:21]line СНО: Общий режим [18:38:21]line Чек 306 26.10.2024 18:38 [18:38:21]line Смена: 536 ФФД: 1.0 [18:38:21]line ЗНМ: 0300000096 [18:38:21]line РНМ: 0000000000091693 [18:38:21]line Версия ККМ: 001 [18:38:21]line ФМ: 0000000000871792 [18:38:21]line ФД: 156405 [18:38:21]line ФПД: 173412021185781 [18:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183821&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156405&fm=173412021185781&tin=02508201610067®Number=0000000000091693&sum=35000 [18:38:21]Connected sock=11 [18:38:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5F 40 07 01 5C D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 1D 37 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 62 02 00 35 04 06 00 9D B7 A1 EC 2C F5 18 D6 86 5D DC 6A 26 47 [18:38:21]written 0, free lines is 4095 [18:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 51 0A 47 00 37 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 62 02 00 F4 03 04 00 8F DC 1C 67 B6 04 01 00 00 6F B9 51 E8 6E 54 E8 FC [18:38:22]CommunicateWithHost err = 0 [18:38:22]CheckOFDResponse [18:38:22]1017 (14) - 77093643461234 [18:38:22]1041 (16) - 0000000000871792 [18:38:22]1040 (4) - 156405 [18:38:22]1012 (4) - 26.10.2024 12:11 [18:38:22]1206 (1) - 0 [18:38:22]OFD Sender: Remove packet 156405 [18:38:22]ProducePacketName [18:38:22]name=ofd_packets/00156405 [18:38:22]NVStorageDeleteData [18:38:22]Write to MH i2c: 01 00 00 BB 23 DE [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 07 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 07 00 BB 23 00 00 00 00 00 DA 0C CB [18:38:22]RasterBufferAndPrint [18:38:22]line [18:38:22]line [18:38:22]line [18:38:22]line [18:38:22]line [18:38:22]written 0, free lines is 3297 [18:38:22]process_action close_receipt done [18:38:22]requested_data is exist [18:38:22]produce_requested_data [18:38:22]requested_item fm.sn is exist - process it [18:38:22]wFMCommunicate request_size=4 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 11 00 00 [18:38:22]Write to MH i2c: E2 08 00 C2 23 80 11 00 00 00 00 00 00 5F [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 17 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 17 00 C2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B4 [18:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:38:22]wFMCommunicate OK [18:38:22]requested_item fd.num is exist - process it [18:38:22]SAM_PROTO_GetFieldsCounters [18:38:22]wFMCommunicate request_size=4 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 13 00 00 [18:38:22]Write to MH i2c: E2 08 00 C3 23 80 13 00 00 00 00 00 00 62 [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 62 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 62 00 C3 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:22]wFMCommunicate OK [18:38:22]SAM_PROTO_GetFieldsCounters done [18:38:22]requested_item shift.num is exist - process it [18:38:22]requested_item shift.opened is exist - process it [18:38:22]req_shift_opened [18:38:22]FM_GetShiftState [18:38:22]SAM_PROTO_GetShiftState [18:38:22]wFMCommunicate request_size=4 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 13 01 00 [18:38:22]Write to MH i2c: E2 08 00 C4 23 80 13 01 00 00 00 00 00 64 [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]OFD Sender: No OFD packet to send [18:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 0E 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 0E 00 C4 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 99 [18:38:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:38:22]wFMCommunicate OK [18:38:22]SAM_PROTO_GetShiftState done [18:38:22]FM_GetShiftState done [18:38:22]req_shift_opened done [18:38:22]requested_item shift.open_date is exist - process it [18:38:22]req_shift_open_date [18:38:22]req_shift_open_date done [18:38:22]produce_requested_data done [18:38:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156405,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:38:22]process_action_free close_receipt [18:38:22]json_value_free [18:38:22]json_value_free done [18:38:22]process_json_proto returns [18:38:22]Send response to host [18:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156405,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:38:22]free response buf [18:38:22]execute_script done [18:38:22]execute_script returns [18:38:22]free content buf [18:38:22]Sock 8.Close socket [18:38:22]Sock 8.Thread stoped [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:19]accept exits with 9 [18:44:19]New connection [18:44:19]New thread 3066834276 created [18:44:19]Thread 3066977636 joined [18:44:19]Waiting for new connection... [18:44:19] Sock 9.Parse request [18:44:19]Sock 9.Check first char [18:44:19]Sock 9.First char is OK [18:44:19]request: POST /json_proto HTTP/1.0 [18:44:19]Method: POST [18:44:19]URL: /json_proto [18:44:19]Method is POST - this is cgi request [18:44:19]url: /json_proto [18:44:19]query_string will be loaded in cgi processing [18:44:19]execute_cgi json_proto POST (null) [18:44:19]execute_cgi path=json_proto method=POST [18:44:19]POST find Content-Length [18:44:19]Host: 172.17.63.3:8080 [18:44:19]Content-Length: 681 [18:44:19]Content-Type: application/json [18:44:19] [18:44:19]POST finish read [18:44:19]Found Content-Length = 681 [18:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:19]execute_script... [18:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:19]POST & json_proto [18:44:19]process_json_proto [18:44:19]json parsed OK: [18:44:19]protocol is kg_v1.0 [18:44:19]action value=close_receipt [18:44:19]process_action close_receipt [18:44:19]cmd_close_receipt [18:44:19]MH_GetDate [18:44:19]Write to MH i2c: F0 00 00 C5 23 D7 [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: F0 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: F0 09 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: F0 09 00 C5 23 00 85 38 1D 67 50 D1 6C 64 12 [18:44:19]GetLastDocTimeStamp 1729967901 [18:44:19]current date 1729968261 [18:44:19]FM_GetShiftState [18:44:19]SAM_PROTO_GetShiftState [18:44:19]wFMCommunicate request_size=4 [18:44:19]MH_SAM_APDU [18:44:19]CAPDU: 80 13 01 00 [18:44:19]Write to MH i2c: E2 08 00 C6 23 80 13 01 00 00 00 00 00 66 [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:20]Read from MH i2c: E2 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: E2 0E 00 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: E2 0E 00 C6 23 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9B [18:44:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:44:20]wFMCommunicate OK [18:44:20]SAM_PROTO_GetShiftState done [18:44:20]FM_GetShiftState done [18:44:20]opened in 1729902702 [18:44:20]opened+sec_in_day 1729989102 [18:44:20]quantity*price = 100015 [18:44:20]sum+1 = 100017 [18:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 307 26.10.2024 18:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156406 ФПД: 242625664509134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184421&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156406&fm=242625664509134&tin=02508201610067®Number=0000000000091693&sum=100000 [18:44:21]StoreToDocumentArchive [18:44:21]shift 536 fd 156406 [18:44:21]save to /storage/0536/doc_00156406 [18:44:21]save last doc name /storage/0536/doc_00156406 to /storage/kkm_last_doc_name [18:44:21]save OK [18:44:21]Clear old archive folders... [18:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:21]tlvbuf is B6F5B400 [18:44:21]SAM_PROTO_ClearQueue [18:44:21]wFMCommunicate request_size=4 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 09 00 00 [18:44:21]Write to MH i2c: E2 08 00 D3 23 80 09 00 00 00 00 00 00 68 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 03 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 03 00 D3 23 00 90 00 6A [18:44:21]RAPDU: 90 00 [18:44:21]wFMCommunicate OK [18:44:21]SAM_PROTO_ClearQueue done [18:44:21]KKMCreateOFDPacket [18:44:21]OFDProtocolAddRootSTLVToBuf [18:44:21]FM_MakeSignedData [18:44:21]FM_MakeSignedData [18:44:21]SAM_PROTO_SignData [18:44:21]wFMCommunicate request_size=4 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 0D 01 02 [18:44:21]Write to MH i2c: E2 08 00 D4 23 80 0D 01 02 00 00 00 00 70 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 03 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 03 00 D4 23 00 90 00 6B [18:44:21]RAPDU: 90 00 [18:44:21]wFMCommunicate OK [18:44:21]wFMCommunicate request_size=255 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 85 38 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 62 02 00 35 04 06 00 DC [18:44:21]Write to MH i2c: E2 02 01 D5 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 85 38 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 62 02 00 35 04 06 00 DC 00 00 C3 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 03 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 03 00 D5 23 00 90 00 6C [18:44:21]RAPDU: 90 00 [18:44:21]wFMCommunicate OK [18:44:21]wFMCommunicate request_size=10 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 0D 02 02 05 AA B0 8B E4 CE [18:44:21]Write to MH i2c: E2 0D 00 D6 23 80 0D 02 02 05 00 AA B0 8B E4 CE 00 00 14 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 03 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 03 00 D6 23 00 90 00 6D [18:44:21]RAPDU: 90 00 [18:44:21]wFMCommunicate OK [18:44:21]wFMCommunicate request_size=4 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 0D 03 02 [18:44:21]Write to MH i2c: E2 08 00 D7 23 80 0D 03 02 00 00 00 00 75 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 0B 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 0B 00 D7 23 00 39 A0 6D E3 0A 87 DB 76 90 00 81 [18:44:21]RAPDU: 39 A0 6D E3 0A 87 DB 76 90 00 [18:44:21]wFMCommunicate OK [18:44:21]SAM_PROTO_SignData done [18:44:21]FM_MakeSignedData done [18:44:21]CreateOFDProtocolMessage [18:44:21]wFMCommunicate request_size=4 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 11 00 00 [18:44:21]Write to MH i2c: E2 08 00 D8 23 80 11 00 00 00 00 00 00 75 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 17 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 17 00 D8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CA [18:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:44:21]wFMCommunicate OK [18:44:21]CreateOFDProtocolMessage done [18:44:21]OFDSenderStorePacket 156406 [18:44:21]StoreOFDPacket docnum=156406 [18:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 71 07 01 42 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 85 38 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 62 02 00 35 04 06 00 DC AA B0 8B E4 CE 39 A0 6D E3 0A 87 DB 76 [18:44:21]CheckFolder [18:44:21]dirname=/storage/ofd_packets [18:44:21]CheckFolder done [18:44:21]ProducePacketName [18:44:21]name=ofd_packets/00156406 [18:44:21]NVStorageSaveData ofd_packets/00156406 [18:44:21]File name is /storage/ofd_packets/00156406 [18:44:21]Write 301 bytes [18:44:21]NVStorageSaveData done [18:44:21]OFDSenderStorePacket done [18:44:21]KKMCreateOFDPacket done [18:44:21]NVStorageSaveData kkm_last_timestamp [18:44:21]File name is /storage/kkm_last_timestamp [18:44:21]Write 4 bytes [18:44:21]NVStorageSaveData done [18:44:21]ExternCall_PrintAddStr [18:44:21]wPrintStart [18:44:21]Write to MH i2c: 01 00 00 D9 23 FC [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: 01 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: 01 07 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: 01 07 00 D9 23 00 00 00 00 00 FF 0F 11 [18:44:21]RasterBufferAndPrint [18:44:21]line Счет N : (1)99221 [18:44:21]line ИНН: 02508201610067 [18:44:21]line Контрольно-Кассовый Чек [18:44:21]line ПРОДАЖА [18:44:21]line ТРК (МРК, ГНК) : 21 [18:44:21]line Товар: 2710124130 [18:44:21]line Аи-92-К-5 [18:44:21]line 14.950 * 66.90 [18:44:21]line = 1000.16 [18:44:21]line НДС 12% НСП 1% [18:44:21]line > о реализуемом товаре [18:44:21]line ОКРУГЛЕНИЕ: -0.16 [18:44:21]line ИТОГО: 1000.00 [18:44:21]line Внесено: 1000.00 [18:44:21]line СДАЧА: 0.00 [18:44:21]line НСП 1% : 8.85 [18:44:21]line НДС 12% : 106.21 [18:44:21]line Наличными: 1000.00 [18:44:21]line Безнал.: 0.00 [18:44:21]line Место: АЗС № 143 "Партнер Нефть" [18:44:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:44:21]line СНО: Общий режим [18:44:21]line Чек 307 26.10.2024 18:44 [18:44:21]line Смена: 536 ФФД: 1.0 [18:44:21]line ЗНМ: 0300000096 [18:44:21]line РНМ: 0000000000091693 [18:44:21]line Версия ККМ: 001 [18:44:21]line ФМ: 0000000000871792 [18:44:21]line ФД: 156406 [18:44:21]line ФПД: 242625664509134 [18:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184421&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156406&fm=242625664509134&tin=02508201610067®Number=0000000000091693&sum=100000 [18:44:22]OFD Sender: Processing packet 156406 [packets to send 31, broken 30] [18:44:22]ProducePacketName [18:44:22]name=ofd_packets/00156406 [18:44:22]OFD Sender: To server: pG, [18:44:22]CommunicateWithHost lk.salyk.kg:30040 [18:44:22]ConnectInit lk.salyk.kg [18:44:22]written 0, free lines is 4095 [18:44:22]Connected sock=11 [18:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 71 07 01 42 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 85 38 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 62 02 00 35 04 06 00 DC AA B0 8B E4 CE 39 A0 6D E3 0A 87 DB 76 [18:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6D E8 47 00 E1 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 31 37 39 32 10 04 04 00 F6 62 02 00 F4 03 04 00 F7 DD 1C 67 B6 04 01 00 00 F6 A0 AD 9D E7 8A 17 C6 [18:44:22]CommunicateWithHost err = 0 [18:44:22]CheckOFDResponse [18:44:22]1017 (14) - 77093643461234 [18:44:22]1041 (16) - 0000000000871792 [18:44:22]1040 (4) - 156406 [18:44:22]1012 (4) - 26.10.2024 12:17 [18:44:22]1206 (1) - 0 [18:44:22]OFD Sender: Remove packet 156406 [18:44:22]ProducePacketName [18:44:22]name=ofd_packets/00156406 [18:44:22]NVStorageDeleteData [18:44:22]Write to MH i2c: 01 00 00 04 24 28 [18:44:22]Write i2c OK [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: 01 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: 01 07 00 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: 01 07 00 04 24 00 00 00 00 00 E4 0C 1F [18:44:22]RasterBufferAndPrint [18:44:22]line [18:44:22]line [18:44:22]line [18:44:22]line [18:44:22]line [18:44:22]written 0, free lines is 3306 [18:44:22]process_action close_receipt done [18:44:22]requested_data is exist [18:44:22]produce_requested_data [18:44:22]requested_item fm.sn is exist - process it [18:44:22]wFMCommunicate request_size=4 [18:44:22]MH_SAM_APDU [18:44:22]CAPDU: 80 11 00 00 [18:44:22]Write to MH i2c: E2 08 00 0B 24 80 11 00 00 00 00 00 00 A9 [18:44:22]Write i2c OK [18:44:22]MH_I2C_Read... [18:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:22]Read from MH i2c: E2 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: E2 17 00 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: E2 17 00 0B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FE [18:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:44:22]wFMCommunicate OK [18:44:22]requested_item fd.num is exist - process it [18:44:22]SAM_PROTO_GetFieldsCounters [18:44:22]wFMCommunicate request_size=4 [18:44:22]MH_SAM_APDU [18:44:22]CAPDU: 80 13 00 00 [18:44:22]Write to MH i2c: E2 08 00 0C 24 80 13 00 00 00 00 00 00 AC [18:44:22]Write i2c OK [18:44:22]MH_I2C_Read... [18:44:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:22]Read from MH i2c: E2 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: E2 62 00 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: E2 62 00 0C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [18:44:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:22]wFMCommunicate OK [18:44:22]SAM_PROTO_GetFieldsCounters done [18:44:22]requested_item shift.num is exist - process it [18:44:22]requested_item shift.opened is exist - process it [18:44:22]req_shift_opened [18:44:22]FM_GetShiftState [18:44:22]SAM_PROTO_GetShiftState [18:44:22]wFMCommunicate request_size=4 [18:44:22]MH_SAM_APDU [18:44:22]CAPDU: 80 13 01 00 [18:44:22]Write to MH i2c: E2 08 00 0D 24 80 13 01 00 00 00 00 00 AE [18:44:22]Write i2c OK [18:44:22]MH_I2C_Read... [18:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:22]Read from MH i2c: E2 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: E2 0E 00 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: E2 0E 00 0D 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E3 [18:44:22]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:44:22]wFMCommunicate OK [18:44:22]SAM_PROTO_GetShiftState done [18:44:22]FM_GetShiftState done [18:44:22]req_shift_opened done [18:44:22]requested_item shift.open_date is exist - process it [18:44:22]req_shift_open_date [18:44:22]req_shift_open_date done [18:44:22]produce_requested_data done [18:44:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156406,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:44:22]process_action_free close_receipt [18:44:22]json_value_free [18:44:22]json_value_free done [18:44:22]process_json_proto returns [18:44:22]Send response to host [18:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156406,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:44:22]free response buf [18:44:22]execute_script done [18:44:22]execute_script returns [18:44:22]free content buf [18:44:22]Sock 9.Close socket [18:44:22]Sock 9.Thread stoped [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]ConnectInit Can't connect to host [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]accept exits with 10 [18:53:43]New connection [18:53:43]New thread 3066977636 created [18:53:43]Thread 3066834276 joined [18:53:43]Waiting for new connection... [18:53:43] Sock 10.Parse request [18:53:43]Sock 10.Check first char [18:53:43]Sock 10.First char is OK [18:53:43]request: POST /json_proto HTTP/1.0 [18:53:43]Method: POST [18:53:43]URL: /json_proto [18:53:43]Method is POST - this is cgi request [18:53:43]url: /json_proto [18:53:43]query_string will be loaded in cgi processing [18:53:43]execute_cgi json_proto POST (null) [18:53:43]execute_cgi path=json_proto method=POST [18:53:43]POST find Content-Length [18:53:43]Host: 172.17.63.3:8080 [18:53:43]Content-Length: 681 [18:53:43]Content-Type: application/json [18:53:43] [18:53:43]POST finish read [18:53:43]Found Content-Length = 681 [18:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:43]execute_script... [18:53:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:43]POST & json_proto [18:53:43]process_json_proto [18:53:43]json parsed OK: [18:53:43]protocol is kg_v1.0 [18:53:43]action value=close_receipt [18:53:43]process_action close_receipt [18:53:43]cmd_close_receipt [18:53:43]MH_GetDate [18:53:43]Write to MH i2c: F0 00 00 0E 24 21 [18:53:43]Write i2c OK [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: F0 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: F0 09 00 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: F0 09 00 0E 24 00 B8 3A 1D 67 50 D1 6C 64 91 [18:53:43]GetLastDocTimeStamp 1729968261 [18:53:43]current date 1729968824 [18:53:43]FM_GetShiftState [18:53:43]SAM_PROTO_GetShiftState [18:53:43]wFMCommunicate request_size=4 [18:53:43]MH_SAM_APDU [18:53:43]CAPDU: 80 13 01 00 [18:53:43]Write to MH i2c: E2 08 00 0F 24 80 13 01 00 00 00 00 00 B0 [18:53:43]Write i2c OK [18:53:43]MH_I2C_Read... [18:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:43]Read from MH i2c: E2 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: E2 0E 00 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: E2 0E 00 0F 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E5 [18:53:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:53:43]wFMCommunicate OK [18:53:43]SAM_PROTO_GetShiftState done [18:53:43]FM_GetShiftState done [18:53:43]opened in 1729902702 [18:53:43]opened+sec_in_day 1729989102 [18:53:43]quantity*price = 140021 [18:53:43]sum+1 = 140023 [18:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 308 26.10.2024 18:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156407 ФПД: 275524483525727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185344&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156407&fm=275524483525727&tin=02508201610067®Number=0000000000091693&sum=140000 [18:53:44]StoreToDocumentArchive [18:53:44]shift 536 fd 156407 [18:53:44]save to /storage/0536/doc_00156407 [18:53:44]save last doc name /storage/0536/doc_00156407 to /storage/kkm_last_doc_name [18:53:44]save OK [18:53:44]Clear old archive folders... [18:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:44]tlvbuf is 0167E890 [18:53:44]SAM_PROTO_ClearQueue [18:53:44]wFMCommunicate request_size=4 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 09 00 00 [18:53:44]Write to MH i2c: E2 08 00 1C 24 80 09 00 00 00 00 00 00 B2 [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 03 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 03 00 1C 24 00 90 00 B4 [18:53:44]RAPDU: 90 00 [18:53:44]wFMCommunicate OK [18:53:44]SAM_PROTO_ClearQueue done [18:53:44]KKMCreateOFDPacket [18:53:44]OFDProtocolAddRootSTLVToBuf [18:53:44]FM_MakeSignedData [18:53:44]FM_MakeSignedData [18:53:44]SAM_PROTO_SignData [18:53:44]wFMCommunicate request_size=4 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 0D 01 02 [18:53:44]Write to MH i2c: E2 08 00 1D 24 80 0D 01 02 00 00 00 00 BA [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 03 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 03 00 1D 24 00 90 00 B5 [18:53:44]RAPDU: 90 00 [18:53:44]wFMCommunicate OK [18:53:44]wFMCommunicate request_size=255 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B8 3A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 62 02 00 35 04 06 00 FA [18:53:44]Write to MH i2c: E2 02 01 1E 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B8 3A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 62 02 00 35 04 06 00 FA 00 00 7F [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 03 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 03 00 1E 24 00 90 00 B6 [18:53:44]RAPDU: 90 00 [18:53:44]wFMCommunicate OK [18:53:44]wFMCommunicate request_size=10 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 0D 02 02 05 96 8A F7 AC 5F [18:53:44]Write to MH i2c: E2 0D 00 1F 24 80 0D 02 02 05 00 96 8A F7 AC 5F 00 00 E9 [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 03 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 03 00 1F 24 00 90 00 B7 [18:53:44]RAPDU: 90 00 [18:53:44]wFMCommunicate OK [18:53:44]wFMCommunicate request_size=4 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 0D 03 02 [18:53:44]Write to MH i2c: E2 08 00 20 24 80 0D 03 02 00 00 00 00 BF [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 0B 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 0B 00 20 24 00 0B AD 6A DD 69 55 98 97 90 00 AC [18:53:44]RAPDU: 0B AD 6A DD 69 55 98 97 90 00 [18:53:44]wFMCommunicate OK [18:53:44]SAM_PROTO_SignData done [18:53:44]FM_MakeSignedData done [18:53:44]CreateOFDProtocolMessage [18:53:44]wFMCommunicate request_size=4 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 11 00 00 [18:53:44]Write to MH i2c: E2 08 00 21 24 80 11 00 00 00 00 00 00 BF [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 17 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 17 00 21 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [18:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:53:44]wFMCommunicate OK [18:53:44]CreateOFDProtocolMessage done [18:53:44]OFDSenderStorePacket 156407 [18:53:44]StoreOFDPacket docnum=156407 [18:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 8D 07 01 6E F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B8 3A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 62 02 00 35 04 06 00 FA 96 8A F7 AC 5F 0B AD 6A DD 69 55 98 97 [18:53:44]CheckFolder [18:53:44]dirname=/storage/ofd_packets [18:53:44]CheckFolder done [18:53:44]ProducePacketName [18:53:44]name=ofd_packets/00156407 [18:53:44]NVStorageSaveData ofd_packets/00156407 [18:53:44]File name is /storage/ofd_packets/00156407 [18:53:44]Write 301 bytes [18:53:44]NVStorageSaveData done [18:53:44]OFDSenderStorePacket done [18:53:44]KKMCreateOFDPacket done [18:53:44]NVStorageSaveData kkm_last_timestamp [18:53:44]File name is /storage/kkm_last_timestamp [18:53:44]Write 4 bytes [18:53:44]NVStorageSaveData done [18:53:44]OFD Sender: Processing packet 156407 [packets to send 31, broken 30] [18:53:44]ProducePacketName [18:53:44]name=ofd_packets/00156407 [18:53:44]OFD Sender: To server: pG, [18:53:44]CommunicateWithHost lk.salyk.kg:30040 [18:53:44]ConnectInit lk.salyk.kg [18:53:44]ExternCall_PrintAddStr [18:53:44]wPrintStart [18:53:44]Write to MH i2c: 01 00 00 22 24 46 [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: 01 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: 01 07 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: 01 07 00 22 24 00 00 00 00 00 FF 0F 5B [18:53:44]RasterBufferAndPrint [18:53:44]line Счет N : (1)99222 [18:53:44]line ИНН: 02508201610067 [18:53:44]line Контрольно-Кассовый Чек [18:53:44]line ПРОДАЖА [18:53:44]line ТРК (МРК, ГНК) : 11 [18:53:44]line Товар: 2710124130 [18:53:44]line Аи-92-К-5 [18:53:44]line 20.930 * 66.90 [18:53:44]line = 1400.22 [18:53:44]line НДС 12% НСП 1% [18:53:44]line > о реализуемом товаре [18:53:44]line ОКРУГЛЕНИЕ: -0.22 [18:53:44]line ИТОГО: 1400.00 [18:53:44]line Внесено: 1400.00 [18:53:44]line СДАЧА: 0.00 [18:53:44]line НСП 1% : 12.39 [18:53:44]line НДС 12% : 148.70 [18:53:44]line Наличными: 1400.00 [18:53:44]line Безнал.: 0.00 [18:53:44]line Место: АЗС № 143 "Партнер Нефть" [18:53:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:53:44]line СНО: Общий режим [18:53:44]line Чек 308 26.10.2024 18:53 [18:53:44]line Смена: 536 ФФД: 1.0 [18:53:44]line ЗНМ: 0300000096 [18:53:44]line РНМ: 0000000000091693 [18:53:44]line Версия ККМ: 001 [18:53:44]line ФМ: 0000000000871792 [18:53:44]line ФД: 156407 [18:53:44]line ФПД: 275524483525727 [18:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185344&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156407&fm=275524483525727&tin=02508201610067®Number=0000000000091693&sum=140000 [18:53:45]Connected sock=11 [18:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 8D 07 01 6E F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B8 3A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 62 02 00 35 04 06 00 FA 96 8A F7 AC 5F 0B AD 6A DD 69 55 98 97 [18:53:45]written 0, free lines is 4095 [18:53:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2A 3F 47 00 F1 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 62 02 00 F4 03 04 00 2A E0 1C 67 B6 04 01 00 00 08 AC D8 CD C6 77 D0 9F [18:53:45]CommunicateWithHost err = 0 [18:53:45]CheckOFDResponse [18:53:45]1017 (14) - 77093643461234 [18:53:45]1041 (16) - 0000000000871792 [18:53:45]1040 (4) - 156407 [18:53:45]1012 (4) - 26.10.2024 12:27 [18:53:45]1206 (1) - 0 [18:53:45]OFD Sender: Remove packet 156407 [18:53:45]ProducePacketName [18:53:45]name=ofd_packets/00156407 [18:53:45]NVStorageDeleteData [18:53:45]Write to MH i2c: 01 00 00 4D 24 71 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: 01 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: 01 07 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: 01 07 00 4D 24 00 00 00 00 00 E4 0C 68 [18:53:45]RasterBufferAndPrint [18:53:45]line [18:53:45]line [18:53:45]line [18:53:45]line [18:53:45]line [18:53:45]written 0, free lines is 3306 [18:53:45]process_action close_receipt done [18:53:45]requested_data is exist [18:53:45]produce_requested_data [18:53:45]requested_item fm.sn is exist - process it [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 11 00 00 [18:53:45]Write to MH i2c: E2 08 00 54 24 80 11 00 00 00 00 00 00 F2 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 17 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 17 00 54 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 47 [18:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:53:45]wFMCommunicate OK [18:53:45]requested_item fd.num is exist - process it [18:53:45]SAM_PROTO_GetFieldsCounters [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 13 00 00 [18:53:45]Write to MH i2c: E2 08 00 55 24 80 13 00 00 00 00 00 00 F5 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:45]OFD Sender: No OFD packet to send [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 62 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 62 00 55 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [18:53: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:45]wFMCommunicate OK [18:53:45]SAM_PROTO_GetFieldsCounters done [18:53:45]requested_item shift.num is exist - process it [18:53:45]requested_item shift.opened is exist - process it [18:53:45]req_shift_opened [18:53:45]FM_GetShiftState [18:53:45]SAM_PROTO_GetShiftState [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 13 01 00 [18:53:45]Write to MH i2c: E2 08 00 56 24 80 13 01 00 00 00 00 00 F7 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 0E 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 0E 00 56 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2C [18:53:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:53:45]wFMCommunicate OK [18:53:45]SAM_PROTO_GetShiftState done [18:53:45]FM_GetShiftState done [18:53:45]req_shift_opened done [18:53:45]requested_item shift.open_date is exist - process it [18:53:45]req_shift_open_date [18:53:45]req_shift_open_date done [18:53:45]produce_requested_data done [18:53:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156407,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:53:45]process_action_free close_receipt [18:53:45]json_value_free [18:53:45]json_value_free done [18:53:45]process_json_proto returns [18:53:45]Send response to host [18:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156407,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:53:45]free response buf [18:53:45]execute_script done [18:53:45]execute_script returns [18:53:45]free content buf [18:53:45]Sock 10.Close socket [18:53:45]Sock 10.Thread stoped [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:53]accept exits with 8 [18:57:53]New connection [18:57:53]New thread 3066834276 created [18:57:53]Thread 3066977636 joined [18:57:53]Waiting for new connection... [18:57:53] Sock 8.Parse request [18:57:53]Sock 8.Check first char [18:57:53]Sock 8.First char is OK [18:57:53]request: POST /json_proto HTTP/1.0 [18:57:53]Method: POST [18:57:53]URL: /json_proto [18:57:53]Method is POST - this is cgi request [18:57:53]url: /json_proto [18:57:53]query_string will be loaded in cgi processing [18:57:53]execute_cgi json_proto POST (null) [18:57:53]execute_cgi path=json_proto method=POST [18:57:53]POST find Content-Length [18:57:53]Host: 172.17.63.3:8080 [18:57:53]Content-Length: 676 [18:57:53]Content-Type: application/json [18:57:53] [18:57:53]POST finish read [18:57:53]Found Content-Length = 676 [18:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:53]execute_script... [18:57:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:53]POST & json_proto [18:57:53]process_json_proto [18:57:53]json parsed OK: [18:57:53]protocol is kg_v1.0 [18:57:53]action value=close_receipt [18:57:53]process_action close_receipt [18:57:53]cmd_close_receipt [18:57:53]MH_GetDate [18:57:53]Write to MH i2c: F0 00 00 57 24 6A [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 09 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 09 00 57 24 00 B3 3B 1D 67 50 D1 6C 64 D6 [18:57:53]GetLastDocTimeStamp 1729968824 [18:57:53]current date 1729969075 [18:57:53]FM_GetShiftState [18:57:53]SAM_PROTO_GetShiftState [18:57:53]wFMCommunicate request_size=4 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 13 01 00 [18:57:53]Write to MH i2c: E2 08 00 58 24 80 13 01 00 00 00 00 00 F9 [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 0E 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 0E 00 58 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2E [18:57:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:57:53]wFMCommunicate OK [18:57:53]SAM_PROTO_GetShiftState done [18:57:53]FM_GetShiftState done [18:57:53]opened in 1729902702 [18:57:53]opened+sec_in_day 1729989102 [18:57:53]quantity*price = 60009 [18:57:53]sum+1 = 60010 [18:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 309 26.10.2024 18:57 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156408 ФПД: 146724910605077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185755&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156408&fm=146724910605077&tin=02508201610067®Number=0000000000091693&sum=60000 [18:57:55]StoreToDocumentArchive [18:57:55]shift 536 fd 156408 [18:57:55]save to /storage/0536/doc_00156408 [18:57:55]save last doc name /storage/0536/doc_00156408 to /storage/kkm_last_doc_name [18:57:55]save OK [18:57:55]Clear old archive folders... [18:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:55]tlvbuf is 017126A0 [18:57:55]SAM_PROTO_ClearQueue [18:57:55]wFMCommunicate request_size=4 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 09 00 00 [18:57:55]Write to MH i2c: E2 08 00 65 24 80 09 00 00 00 00 00 00 FB [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 65 24 00 90 00 FD [18:57:55]RAPDU: 90 00 [18:57:55]wFMCommunicate OK [18:57:55]SAM_PROTO_ClearQueue done [18:57:55]KKMCreateOFDPacket [18:57:55]OFDProtocolAddRootSTLVToBuf [18:57:55]FM_MakeSignedData [18:57:55]FM_MakeSignedData [18:57:55]SAM_PROTO_SignData [18:57:55]wFMCommunicate request_size=4 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 0D 01 02 [18:57:55]Write to MH i2c: E2 08 00 66 24 80 0D 01 02 00 00 00 00 03 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 66 24 00 90 00 FE [18:57:55]RAPDU: 90 00 [18:57:55]wFMCommunicate OK [18:57:55]wFMCommunicate request_size=255 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 B3 3B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 62 02 00 35 04 06 00 85 [18:57:55]Write to MH i2c: E2 02 01 67 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 B3 3B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 62 02 00 35 04 06 00 85 00 00 17 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 67 24 00 90 00 FF [18:57:55]RAPDU: 90 00 [18:57:55]wFMCommunicate OK [18:57:55]wFMCommunicate request_size=10 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 0D 02 02 05 72 0E 2D 23 15 [18:57:55]Write to MH i2c: E2 0D 00 68 24 80 0D 02 02 05 00 72 0E 2D 23 15 00 00 F5 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 68 24 00 90 00 00 [18:57:55]RAPDU: 90 00 [18:57:55]wFMCommunicate OK [18:57:55]wFMCommunicate request_size=4 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 0D 03 02 [18:57:55]Write to MH i2c: E2 08 00 69 24 80 0D 03 02 00 00 00 00 08 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 0B 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 0B 00 69 24 00 D5 A7 8C CC 99 99 4B 31 90 00 8B [18:57:55]RAPDU: D5 A7 8C CC 99 99 4B 31 90 00 [18:57:55]wFMCommunicate OK [18:57:55]SAM_PROTO_SignData done [18:57:55]FM_MakeSignedData done [18:57:55]CreateOFDProtocolMessage [18:57:55]wFMCommunicate request_size=4 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 11 00 00 [18:57:55]Write to MH i2c: E2 08 00 6A 24 80 11 00 00 00 00 00 00 08 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 17 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 17 00 6A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5D [18:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:57:55]wFMCommunicate OK [18:57:55]CreateOFDProtocolMessage done [18:57:55]OFDSenderStorePacket 156408 [18:57:55]StoreOFDPacket docnum=156408 [18:57:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 6F 07 01 BE 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 B3 3B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 62 02 00 35 04 06 00 85 72 0E 2D 23 15 D5 A7 8C CC 99 99 4B 31 [18:57:55]CheckFolder [18:57:55]dirname=/storage/ofd_packets [18:57:55]CheckFolder done [18:57:55]ProducePacketName [18:57:55]name=ofd_packets/00156408 [18:57:55]NVStorageSaveData ofd_packets/00156408 [18:57:55]File name is /storage/ofd_packets/00156408 [18:57:55]Write 301 bytes [18:57:55]NVStorageSaveData done [18:57:55]OFDSenderStorePacket done [18:57:55]KKMCreateOFDPacket done [18:57:55]NVStorageSaveData kkm_last_timestamp [18:57:55]File name is /storage/kkm_last_timestamp [18:57:55]Write 4 bytes [18:57:55]NVStorageSaveData done [18:57:55]ExternCall_PrintAddStr [18:57:55]wPrintStart [18:57:55]Write to MH i2c: 01 00 00 6B 24 8F [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 07 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 07 00 6B 24 00 00 00 00 00 FF 0F A4 [18:57:55]RasterBufferAndPrint [18:57:55]line Счет N : (1)99223 [18:57:55]line ИНН: 02508201610067 [18:57:55]line Контрольно-Кассовый Чек [18:57:55]line ПРОДАЖА [18:57:55]line ТРК (МРК, ГНК) : 11 [18:57:55]line Товар: 2710124130 [18:57:55]line Аи-92-К-5 [18:57:55]line 8.970 * 66.90 [18:57:55]line = 600.09 [18:57:55]line НДС 12% НСП 1% [18:57:55]line > о реализуемом товаре [18:57:55]line ОКРУГЛЕНИЕ: -0.09 [18:57:55]line ИТОГО: 600.00 [18:57:55]line Внесено: 600.00 [18:57:55]line СДАЧА: 0.00 [18:57:55]line НСП 1% : 5.31 [18:57:55]line НДС 12% : 63.73 [18:57:55]line Наличными: 600.00 [18:57:55]line Безнал.: 0.00 [18:57:55]line Место: АЗС № 143 "Партнер Нефть" [18:57:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:57:55]line СНО: Общий режим [18:57:55]line Чек 309 26.10.2024 18:57 [18:57:55]line Смена: 536 ФФД: 1.0 [18:57:55]line ЗНМ: 0300000096 [18:57:55]line РНМ: 0000000000091693 [18:57:55]line Версия ККМ: 001 [18:57:55]line ФМ: 0000000000871792 [18:57:55]line ФД: 156408 [18:57:55]line ФПД: 146724910605077 [18:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185755&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156408&fm=146724910605077&tin=02508201610067®Number=0000000000091693&sum=60000 [18:57:55]OFD Sender: Processing packet 156408 [packets to send 31, broken 30] [18:57:55]ProducePacketName [18:57:55]name=ofd_packets/00156408 [18:57:55]OFD Sender: To server: pG, [18:57:55]CommunicateWithHost lk.salyk.kg:30040 [18:57:55]ConnectInit lk.salyk.kg [18:57:55]written 0, free lines is 4095 [18:57:56]Connected sock=10 [18:57:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 6F 07 01 BE 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 B3 3B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 62 02 00 35 04 06 00 85 72 0E 2D 23 15 D5 A7 8C CC 99 99 4B 31 [18:57:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CA 92 47 00 45 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 62 02 00 F4 03 04 00 25 E1 1C 67 B6 04 01 00 00 F3 F6 D3 C6 42 73 9D 80 [18:57:56]CommunicateWithHost err = 0 [18:57:56]CheckOFDResponse [18:57:56]1017 (14) - 77093643461234 [18:57:56]1041 (16) - 0000000000871792 [18:57:56]1040 (4) - 156408 [18:57:56]1012 (4) - 26.10.2024 12:31 [18:57:56]1206 (1) - 0 [18:57:56]OFD Sender: Remove packet 156408 [18:57:56]ProducePacketName [18:57:56]name=ofd_packets/00156408 [18:57:56]NVStorageDeleteData [18:57:56]Write to MH i2c: 01 00 00 96 24 BA [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: 01 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: 01 07 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: 01 07 00 96 24 00 00 00 00 00 DC 0C A9 [18:57:56]RasterBufferAndPrint [18:57:56]line [18:57:56]line [18:57:56]line [18:57:56]line [18:57:56]line [18:57:56]written 0, free lines is 3298 [18:57:56]process_action close_receipt done [18:57:56]requested_data is exist [18:57:56]produce_requested_data [18:57:56]requested_item fm.sn is exist - process it [18:57:56]wFMCommunicate request_size=4 [18:57:56]MH_SAM_APDU [18:57:56]CAPDU: 80 11 00 00 [18:57:56]Write to MH i2c: E2 08 00 9D 24 80 11 00 00 00 00 00 00 3B [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:56]Read from MH i2c: E2 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 17 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 17 00 9D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 90 [18:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:57:56]wFMCommunicate OK [18:57:56]requested_item fd.num is exist - process it [18:57:56]SAM_PROTO_GetFieldsCounters [18:57:56]wFMCommunicate request_size=4 [18:57:56]MH_SAM_APDU [18:57:56]CAPDU: 80 13 00 00 [18:57:56]Write to MH i2c: E2 08 00 9E 24 80 13 00 00 00 00 00 00 3E [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:56]Read from MH i2c: E2 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 62 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 62 00 9E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [18:57: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:56]wFMCommunicate OK [18:57:56]SAM_PROTO_GetFieldsCounters done [18:57:56]requested_item shift.num is exist - process it [18:57:56]requested_item shift.opened is exist - process it [18:57:56]req_shift_opened [18:57:56]FM_GetShiftState [18:57:56]SAM_PROTO_GetShiftState [18:57:56]wFMCommunicate request_size=4 [18:57:56]MH_SAM_APDU [18:57:56]CAPDU: 80 13 01 00 [18:57:56]Write to MH i2c: E2 08 00 9F 24 80 13 01 00 00 00 00 00 40 [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:56]Read from MH i2c: E2 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 0E 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 0E 00 9F 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 75 [18:57:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:57:56]wFMCommunicate OK [18:57:56]SAM_PROTO_GetShiftState done [18:57:56]FM_GetShiftState done [18:57:56]req_shift_opened done [18:57:56]requested_item shift.open_date is exist - process it [18:57:56]req_shift_open_date [18:57:56]req_shift_open_date done [18:57:56]produce_requested_data done [18:57:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156408,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:57:56]process_action_free close_receipt [18:57:56]json_value_free [18:57:56]json_value_free done [18:57:56]process_json_proto returns [18:57:56]Send response to host [18:57:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156408,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:57:56]free response buf [18:57:56]execute_script done [18:57:56]execute_script returns [18:57:56]free content buf [18:57:56]Sock 8.Close socket [18:57:56]Sock 8.Thread stoped [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:15]accept exits with 9 [18:59:15]New connection [18:59:15]New thread 3066977636 created [18:59:15]Thread 3066834276 joined [18:59:15]Waiting for new connection... [18:59:15] Sock 9.Parse request [18:59:15]Sock 9.Check first char [18:59:15]Sock 9.First char is OK [18:59:15]request: POST /json_proto HTTP/1.0 [18:59:15]Method: POST [18:59:15]URL: /json_proto [18:59:15]Method is POST - this is cgi request [18:59:15]url: /json_proto [18:59:15]query_string will be loaded in cgi processing [18:59:15]execute_cgi json_proto POST (null) [18:59:15]execute_cgi path=json_proto method=POST [18:59:15]POST find Content-Length [18:59:15]Host: 172.17.63.3:8080 [18:59:15]Content-Length: 673 [18:59:15]Content-Type: application/json [18:59:15] [18:59:15]POST finish read [18:59:15]Found Content-Length = 673 [18:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:15]execute_script... [18:59:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:15]POST & json_proto [18:59:15]process_json_proto [18:59:15]json parsed OK: [18:59:15]protocol is kg_v1.0 [18:59:15]action value=close_receipt [18:59:15]process_action close_receipt [18:59:15]cmd_close_receipt [18:59:15]MH_GetDate [18:59:15]Write to MH i2c: F0 00 00 A0 24 B3 [18:59:15]Write i2c OK [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: F0 [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: F0 09 00 [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: F0 09 00 A0 24 00 05 3C 1D 67 50 D1 6C 64 72 [18:59:15]GetLastDocTimeStamp 1729969075 [18:59:15]current date 1729969157 [18:59:15]FM_GetShiftState [18:59:15]SAM_PROTO_GetShiftState [18:59:15]wFMCommunicate request_size=4 [18:59:15]MH_SAM_APDU [18:59:15]CAPDU: 80 13 01 00 [18:59:15]Write to MH i2c: E2 08 00 A1 24 80 13 01 00 00 00 00 00 42 [18:59:15]Write i2c OK [18:59:15]MH_I2C_Read... [18:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:15]Read from MH i2c: E2 [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: E2 0E 00 [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: E2 0E 00 A1 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 77 [18:59:15]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:59:15]wFMCommunicate OK [18:59:15]SAM_PROTO_GetShiftState done [18:59:15]FM_GetShiftState done [18:59:15]opened in 1729902702 [18:59:15]opened+sec_in_day 1729989102 [18:59:15]quantity*price = 30022 [18:59:15]sum+1 = 30024 [18:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 310 26.10.2024 18:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156409 ФПД: 18058693976154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185917&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156409&fm=18058693976154&tin=02508201610067®Number=0000000000091693&sum=30000 [18:59:16]StoreToDocumentArchive [18:59:16]shift 536 fd 156409 [18:59:16]save to /storage/0536/doc_00156409 [18:59:16]save last doc name /storage/0536/doc_00156409 to /storage/kkm_last_doc_name [18:59:16]save OK [18:59:16]Clear old archive folders... [18:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:16]tlvbuf is B6F5B6D0 [18:59:16]SAM_PROTO_ClearQueue [18:59:16]wFMCommunicate request_size=4 [18:59:16]MH_SAM_APDU [18:59:16]CAPDU: 80 09 00 00 [18:59:16]Write to MH i2c: E2 08 00 AE 24 80 09 00 00 00 00 00 00 44 [18:59:16]Write i2c OK [18:59:16]MH_I2C_Read... [18:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:16]Read from MH i2c: E2 [18:59:16]MH_I2C_Read... [18:59:16]Read from MH i2c: E2 03 00 [18:59:16]MH_I2C_Read... [18:59:16]Read from MH i2c: E2 03 00 AE 24 00 90 00 46 [18:59:16]RAPDU: 90 00 [18:59:16]wFMCommunicate OK [18:59:16]SAM_PROTO_ClearQueue done [18:59:16]KKMCreateOFDPacket [18:59:16]OFDProtocolAddRootSTLVToBuf [18:59:16]FM_MakeSignedData [18:59:16]FM_MakeSignedData [18:59:16]SAM_PROTO_SignData [18:59:16]wFMCommunicate request_size=4 [18:59:16]MH_SAM_APDU [18:59:16]CAPDU: 80 0D 01 02 [18:59:16]Write to MH i2c: E2 08 00 AF 24 80 0D 01 02 00 00 00 00 4C [18:59:16]Write i2c OK [18:59:16]MH_I2C_Read... [18:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:17]Read from MH i2c: E2 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 03 00 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 03 00 AF 24 00 90 00 47 [18:59:17]RAPDU: 90 00 [18:59:17]wFMCommunicate OK [18:59:17]wFMCommunicate request_size=255 [18:59:17]MH_SAM_APDU [18:59:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 05 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 62 02 00 35 04 06 00 10 6C 9E 0A [18:59:17]Write to MH i2c: E2 02 01 B0 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 05 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 62 02 00 35 04 06 00 10 6C 9E 0A 00 00 2A [18:59:17]Write i2c OK [18:59:17]MH_I2C_Read... [18:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:17]Read from MH i2c: E2 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 03 00 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 03 00 B0 24 00 90 00 48 [18:59:17]RAPDU: 90 00 [18:59:17]wFMCommunicate OK [18:59:17]wFMCommunicate request_size=7 [18:59:17]MH_SAM_APDU [18:59:17]CAPDU: 80 0D 02 02 02 20 5A [18:59:17]Write to MH i2c: E2 0A 00 B1 24 80 0D 02 02 02 00 20 5A 00 00 CD [18:59:17]Write i2c OK [18:59:17]MH_I2C_Read... [18:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:17]Read from MH i2c: E2 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 03 00 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 03 00 B1 24 00 90 00 49 [18:59:17]RAPDU: 90 00 [18:59:17]wFMCommunicate OK [18:59:17]wFMCommunicate request_size=4 [18:59:17]MH_SAM_APDU [18:59:17]CAPDU: 80 0D 03 02 [18:59:17]Write to MH i2c: E2 08 00 B2 24 80 0D 03 02 00 00 00 00 51 [18:59:17]Write i2c OK [18:59:17]MH_I2C_Read... [18:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:17]Read from MH i2c: E2 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 0B 00 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 0B 00 B2 24 00 02 65 10 D0 2E 70 2A F7 90 00 58 [18:59:17]RAPDU: 02 65 10 D0 2E 70 2A F7 90 00 [18:59:17]wFMCommunicate OK [18:59:17]SAM_PROTO_SignData done [18:59:17]FM_MakeSignedData done [18:59:17]CreateOFDProtocolMessage [18:59:17]wFMCommunicate request_size=4 [18:59:17]MH_SAM_APDU [18:59:17]CAPDU: 80 11 00 00 [18:59:17]Write to MH i2c: E2 08 00 B3 24 80 11 00 00 00 00 00 00 51 [18:59:17]Write i2c OK [18:59:17]MH_I2C_Read... [18:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:17]Read from MH i2c: E2 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 17 00 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 17 00 B3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [18:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:59:17]wFMCommunicate OK [18:59:17]CreateOFDProtocolMessage done [18:59:17]OFDSenderStorePacket 156409 [18:59:17]StoreOFDPacket docnum=156409 [18:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 59 25 04 01 0B D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 05 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 62 02 00 35 04 06 00 10 6C 9E 0A 20 5A 02 65 10 D0 2E 70 2A F7 [18:59:17]CheckFolder [18:59:17]dirname=/storage/ofd_packets [18:59:17]CheckFolder done [18:59:17]ProducePacketName [18:59:17]name=ofd_packets/00156409 [18:59:17]NVStorageSaveData ofd_packets/00156409 [18:59:17]File name is /storage/ofd_packets/00156409 [18:59:17]Write 298 bytes [18:59:17]NVStorageSaveData done [18:59:17]OFDSenderStorePacket done [18:59:17]KKMCreateOFDPacket done [18:59:17]NVStorageSaveData kkm_last_timestamp [18:59:17]File name is /storage/kkm_last_timestamp [18:59:17]Write 4 bytes [18:59:17]NVStorageSaveData done [18:59:17]ExternCall_PrintAddStr [18:59:17]wPrintStart [18:59:17]Write to MH i2c: 01 00 00 B4 24 D8 [18:59:17]Write i2c OK [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: 01 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: 01 07 00 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: 01 07 00 B4 24 00 00 00 00 00 FF 0F ED [18:59:17]RasterBufferAndPrint [18:59:17]line Счет N : (1)99224 [18:59:17]line ИНН: 02508201610067 [18:59:17]line Контрольно-Кассовый Чек [18:59:17]line ПРОДАЖА [18:59:17]line ТРК (МРК, ГНК) : 32 [18:59:17]line Товар: 2710194210 [18:59:17]line ДТ-К-5 [18:59:17]line 3.940 * 76.20 [18:59:17]line = 300.23 [18:59:17]line НДС 12% НСП 1% [18:59:17]line > о реализуемом товаре [18:59:17]line ОКРУГЛЕНИЕ: -0.23 [18:59:17]line ИТОГО: 300.00 [18:59:17]line Внесено: 300.00 [18:59:17]line СДАЧА: 0.00 [18:59:17]line НСП 1% : 2.66 [18:59:17]line НДС 12% : 31.88 [18:59:17]line Наличными: 300.00 [18:59:17]line Безнал.: 0.00 [18:59:17]line Место: АЗС № 143 "Партнер Нефть" [18:59:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:59:17]line СНО: Общий режим [18:59:17]line Чек 310 26.10.2024 18:59 [18:59:17]line Смена: 536 ФФД: 1.0 [18:59:17]line ЗНМ: 0300000096 [18:59:17]line РНМ: 0000000000091693 [18:59:17]line Версия ККМ: 001 [18:59:17]line ФМ: 0000000000871792 [18:59:17]line ФД: 156409 [18:59:17]line ФПД: 18058693976154 [18:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185917&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156409&fm=18058693976154&tin=02508201610067®Number=0000000000091693&sum=30000 [18:59:17]OFD Sender: Processing packet 156409 [packets to send 31, broken 30] [18:59:17]ProducePacketName [18:59:17]name=ofd_packets/00156409 [18:59:17]OFD Sender: To server: pG, [18:59:17]CommunicateWithHost lk.salyk.kg:30040 [18:59:17]ConnectInit lk.salyk.kg [18:59:17]written 0, free lines is 4095 [18:59:17]Connected sock=11 [18:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 59 25 04 01 0B D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 05 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 62 02 00 35 04 06 00 10 6C 9E 0A 20 5A 02 65 10 D0 2E 70 2A F7 [18:59:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7D 57 47 00 B5 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 62 02 00 F4 03 04 00 77 E1 1C 67 B6 04 01 00 00 D1 47 44 D4 AD 3C 83 C2 [18:59:18]CommunicateWithHost err = 0 [18:59:18]CheckOFDResponse [18:59:18]1017 (14) - 77093643461234 [18:59:18]1041 (16) - 0000000000871792 [18:59:18]1040 (4) - 156409 [18:59:18]1012 (4) - 26.10.2024 12:32 [18:59:18]1206 (1) - 0 [18:59:18]OFD Sender: Remove packet 156409 [18:59:18]ProducePacketName [18:59:18]name=ofd_packets/00156409 [18:59:18]NVStorageDeleteData [18:59:18]Write to MH i2c: 01 00 00 DF 24 03 [18:59:18]Write i2c OK [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: 01 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: 01 07 00 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: 01 07 00 DF 24 00 00 00 00 00 DC 0C F2 [18:59:18]RasterBufferAndPrint [18:59:18]line [18:59:18]line [18:59:18]line [18:59:18]line [18:59:18]line [18:59:18]written 0, free lines is 3299 [18:59:18]process_action close_receipt done [18:59:18]requested_data is exist [18:59:18]produce_requested_data [18:59:18]requested_item fm.sn is exist - process it [18:59:18]wFMCommunicate request_size=4 [18:59:18]MH_SAM_APDU [18:59:18]CAPDU: 80 11 00 00 [18:59:18]Write to MH i2c: E2 08 00 E6 24 80 11 00 00 00 00 00 00 84 [18:59:18]Write i2c OK [18:59:18]MH_I2C_Read... [18:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:18]Read from MH i2c: E2 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: E2 17 00 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: E2 17 00 E6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D9 [18:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:59:18]wFMCommunicate OK [18:59:18]requested_item fd.num is exist - process it [18:59:18]SAM_PROTO_GetFieldsCounters [18:59:18]wFMCommunicate request_size=4 [18:59:18]MH_SAM_APDU [18:59:18]CAPDU: 80 13 00 00 [18:59:18]Write to MH i2c: E2 08 00 E7 24 80 13 00 00 00 00 00 00 87 [18:59:18]Write i2c OK [18:59:18]MH_I2C_Read... [18:59:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:18]Read from MH i2c: E2 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: E2 62 00 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: E2 62 00 E7 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [18:59: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:18]wFMCommunicate OK [18:59:18]SAM_PROTO_GetFieldsCounters done [18:59:18]requested_item shift.num is exist - process it [18:59:18]requested_item shift.opened is exist - process it [18:59:18]req_shift_opened [18:59:18]FM_GetShiftState [18:59:18]SAM_PROTO_GetShiftState [18:59:18]wFMCommunicate request_size=4 [18:59:18]MH_SAM_APDU [18:59:18]CAPDU: 80 13 01 00 [18:59:18]Write to MH i2c: E2 08 00 E8 24 80 13 01 00 00 00 00 00 89 [18:59:18]Write i2c OK [18:59:18]MH_I2C_Read... [18:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:18]Read from MH i2c: E2 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: E2 0E 00 [18:59:18]MH_I2C_Read... [18:59:18]Read from MH i2c: E2 0E 00 E8 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BE [18:59:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [18:59:18]wFMCommunicate OK [18:59:18]SAM_PROTO_GetShiftState done [18:59:18]FM_GetShiftState done [18:59:18]req_shift_opened done [18:59:18]requested_item shift.open_date is exist - process it [18:59:18]req_shift_open_date [18:59:18]req_shift_open_date done [18:59:18]produce_requested_data done [18:59:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156409,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [18:59:18]process_action_free close_receipt [18:59:18]json_value_free [18:59:18]json_value_free done [18:59:18]process_json_proto returns [18:59:18]Send response to host [18:59:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156409,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [18:59:18]free response buf [18:59:18]execute_script done [18:59:18]execute_script returns [18:59:18]free content buf [18:59:18]Sock 9.Close socket [18:59:18]Sock 9.Thread stoped [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:50]accept exits with 8 [19:01:50]New connection [19:01:50]New thread 3066834276 created [19:01:50]Thread 3066977636 joined [19:01:50]Waiting for new connection... [19:01:50] Sock 8.Parse request [19:01:50]Sock 8.Check first char [19:01:50]Sock 8.First char is OK [19:01:50]request: POST /json_proto HTTP/1.0 [19:01:50]Method: POST [19:01:50]URL: /json_proto [19:01:50]Method is POST - this is cgi request [19:01:50]url: /json_proto [19:01:50]query_string will be loaded in cgi processing [19:01:50]execute_cgi json_proto POST (null) [19:01:50]execute_cgi path=json_proto method=POST [19:01:50]POST find Content-Length [19:01:50]Host: 172.17.63.3:8080 [19:01:50]Content-Length: 681 [19:01:50]Content-Type: application/json [19:01:50] [19:01:50]POST finish read [19:01:50]Found Content-Length = 681 [19:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.700, "sum" : 1050.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:50]execute_script... [19:01:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.700, "sum" : 1050.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:50]POST & json_proto [19:01:50]process_json_proto [19:01:50]json parsed OK: [19:01:50]protocol is kg_v1.0 [19:01:50]action value=close_receipt [19:01:50]process_action close_receipt [19:01:50]cmd_close_receipt [19:01:50]MH_GetDate [19:01:50]Write to MH i2c: F0 00 00 E9 24 FC [19:01:50]Write i2c OK [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: F0 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: F0 09 00 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: F0 09 00 E9 24 00 A0 3C 1D 67 50 D1 6C 64 56 [19:01:50]GetLastDocTimeStamp 1729969157 [19:01:50]current date 1729969312 [19:01:50]FM_GetShiftState [19:01:50]SAM_PROTO_GetShiftState [19:01:50]wFMCommunicate request_size=4 [19:01:50]MH_SAM_APDU [19:01:50]CAPDU: 80 13 01 00 [19:01:50]Write to MH i2c: E2 08 00 EA 24 80 13 01 00 00 00 00 00 8B [19:01:50]Write i2c OK [19:01:50]MH_I2C_Read... [19:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:50]Read from MH i2c: E2 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: E2 0E 00 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: E2 0E 00 EA 24 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C0 [19:01:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:01:50]wFMCommunicate OK [19:01:50]SAM_PROTO_GetShiftState done [19:01:50]FM_GetShiftState done [19:01:50]opened in 1729902702 [19:01:50]opened+sec_in_day 1729989102 [19:01:50]quantity*price = 105033 [19:01:50]sum+1 = 105034 [19:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.29 НДС 12% : 111.54 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 311 26.10.2024 19:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156410 ФПД: 35622650393000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190152&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156410&fm=35622650393000&tin=02508201610067®Number=0000000000091693&sum=105000 [19:01:51]StoreToDocumentArchive [19:01:51]shift 536 fd 156410 [19:01:51]save to /storage/0536/doc_00156410 [19:01:51]save last doc name /storage/0536/doc_00156410 to /storage/kkm_last_doc_name [19:01:51]save OK [19:01:51]Clear old archive folders... [19:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:51]tlvbuf is 01698040 [19:01:51]SAM_PROTO_ClearQueue [19:01:51]wFMCommunicate request_size=4 [19:01:51]MH_SAM_APDU [19:01:51]CAPDU: 80 09 00 00 [19:01:51]Write to MH i2c: E2 08 00 F7 24 80 09 00 00 00 00 00 00 8D [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:51]Read from MH i2c: E2 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 F7 24 00 90 00 8F [19:01:51]RAPDU: 90 00 [19:01:51]wFMCommunicate OK [19:01:51]SAM_PROTO_ClearQueue done [19:01:51]KKMCreateOFDPacket [19:01:51]OFDProtocolAddRootSTLVToBuf [19:01:51]FM_MakeSignedData [19:01:51]FM_MakeSignedData [19:01:51]SAM_PROTO_SignData [19:01:51]wFMCommunicate request_size=4 [19:01:51]MH_SAM_APDU [19:01:51]CAPDU: 80 0D 01 02 [19:01:51]Write to MH i2c: E2 08 00 F8 24 80 0D 01 02 00 00 00 00 95 [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:51]Read from MH i2c: E2 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 F8 24 00 90 00 90 [19:01:51]RAPDU: 90 00 [19:01:51]wFMCommunicate OK [19:01:51]wFMCommunicate request_size=255 [19:01:51]MH_SAM_APDU [19:01:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 49 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 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 01 00 00 F4 03 04 00 A0 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 62 02 00 35 04 06 00 20 [19:01:51]Write to MH i2c: E2 02 01 F9 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 49 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 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 01 00 00 F4 03 04 00 A0 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 62 02 00 35 04 06 00 20 00 00 6C [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:52]Read from MH i2c: E2 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: E2 03 00 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: E2 03 00 F9 24 00 90 00 91 [19:01:52]RAPDU: 90 00 [19:01:52]wFMCommunicate OK [19:01:52]wFMCommunicate request_size=10 [19:01:52]MH_SAM_APDU [19:01:52]CAPDU: 80 0D 02 02 05 66 0B 6C 31 A8 [19:01:52]Write to MH i2c: E2 0D 00 FA 24 80 0D 02 02 05 00 66 0B 6C 31 A8 00 00 58 [19:01:52]Write i2c OK [19:01:52]MH_I2C_Read... [19:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:52]Read from MH i2c: E2 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: E2 03 00 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: E2 03 00 FA 24 00 90 00 92 [19:01:52]RAPDU: 90 00 [19:01:52]wFMCommunicate OK [19:01:52]wFMCommunicate request_size=4 [19:01:52]MH_SAM_APDU [19:01:52]CAPDU: 80 0D 03 02 [19:01:52]Write to MH i2c: E2 08 00 FB 24 80 0D 03 02 00 00 00 00 9A [19:01:52]Write i2c OK [19:01:52]MH_I2C_Read... [19:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:52]Read from MH i2c: E2 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: E2 0B 00 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: E2 0B 00 FB 24 00 7F B2 25 41 DE 43 5C 57 90 00 06 [19:01:52]RAPDU: 7F B2 25 41 DE 43 5C 57 90 00 [19:01:52]wFMCommunicate OK [19:01:52]SAM_PROTO_SignData done [19:01:52]FM_MakeSignedData done [19:01:52]CreateOFDProtocolMessage [19:01:52]wFMCommunicate request_size=4 [19:01:52]MH_SAM_APDU [19:01:52]CAPDU: 80 11 00 00 [19:01:52]Write to MH i2c: E2 08 00 FC 24 80 11 00 00 00 00 00 00 9A [19:01:52]Write i2c OK [19:01:52]MH_I2C_Read... [19:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:52]Read from MH i2c: E2 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: E2 17 00 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: E2 17 00 FC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EF [19:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:01:52]wFMCommunicate OK [19:01:52]CreateOFDProtocolMessage done [19:01:52]OFDSenderStorePacket 156410 [19:01:52]StoreOFDPacket docnum=156410 [19:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C E0 07 01 5A D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 49 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 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 01 00 00 F4 03 04 00 A0 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 62 02 00 35 04 06 00 20 66 0B 6C 31 A8 7F B2 25 41 DE 43 5C 57 [19:01:52]CheckFolder [19:01:52]dirname=/storage/ofd_packets [19:01:52]CheckFolder done [19:01:52]ProducePacketName [19:01:52]name=ofd_packets/00156410 [19:01:52]NVStorageSaveData ofd_packets/00156410 [19:01:52]File name is /storage/ofd_packets/00156410 [19:01:52]Write 301 bytes [19:01:52]NVStorageSaveData done [19:01:52]OFDSenderStorePacket done [19:01:52]KKMCreateOFDPacket done [19:01:52]NVStorageSaveData kkm_last_timestamp [19:01:52]File name is /storage/kkm_last_timestamp [19:01:52]Write 4 bytes [19:01:52]NVStorageSaveData done [19:01:52]ExternCall_PrintAddStr [19:01:52]wPrintStart [19:01:52]Write to MH i2c: 01 00 00 FD 24 21 [19:01:52]Write i2c OK [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: 01 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: 01 07 00 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: 01 07 00 FD 24 00 00 00 00 00 FF 0F 36 [19:01:52]RasterBufferAndPrint [19:01:52]line Счет N : (1)99225 [19:01:52]line ИНН: 02508201610067 [19:01:52]line Контрольно-Кассовый Чек [19:01:52]line ПРОДАЖА [19:01:52]line ТРК (МРК, ГНК) : 21 [19:01:52]line Товар: 2710124130 [19:01:52]line Аи-92-К-5 [19:01:52]line 15.700 * 66.90 [19:01:52]line = 1050.33 [19:01:52]line НДС 12% НСП 1% [19:01:52]line > о реализуемом товаре [19:01:52]line ОКРУГЛЕНИЕ: -0.33 [19:01:52]line ИТОГО: 1050.00 [19:01:52]line Внесено: 1050.00 [19:01:52]line СДАЧА: 0.00 [19:01:52]line НСП 1% : 9.29 [19:01:52]line НДС 12% : 111.54 [19:01:52]line Наличными: 1050.00 [19:01:52]line Безнал.: 0.00 [19:01:52]line Место: АЗС № 143 "Партнер Нефть" [19:01:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:01:52]line СНО: Общий режим [19:01:52]line Чек 311 26.10.2024 19:01 [19:01:52]line Смена: 536 ФФД: 1.0 [19:01:52]line ЗНМ: 0300000096 [19:01:52]line РНМ: 0000000000091693 [19:01:52]line Версия ККМ: 001 [19:01:52]line ФМ: 0000000000871792 [19:01:52]line ФД: 156410 [19:01:52]line ФПД: 35622650393000 [19:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190152&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156410&fm=35622650393000&tin=02508201610067®Number=0000000000091693&sum=105000 [19:01:52]OFD Sender: Processing packet 156410 [packets to send 31, broken 30] [19:01:52]ProducePacketName [19:01:52]name=ofd_packets/00156410 [19:01:52]OFD Sender: To server: pG, [19:01:52]CommunicateWithHost lk.salyk.kg:30040 [19:01:52]ConnectInit lk.salyk.kg [19:01:52]written 0, free lines is 4095 [19:01:52]Connected sock=10 [19:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C E0 07 01 5A D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 49 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 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 01 00 00 F4 03 04 00 A0 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 62 02 00 35 04 06 00 20 66 0B 6C 31 A8 7F B2 25 41 DE 43 5C 57 [19:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 41 70 47 00 AA 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 62 02 00 F4 03 04 00 12 E2 1C 67 B6 04 01 00 00 84 A9 71 F4 9D ED 3B 2F [19:01:52]CommunicateWithHost err = 0 [19:01:52]CheckOFDResponse [19:01:52]1017 (14) - 77093643461234 [19:01:52]1041 (16) - 0000000000871792 [19:01:52]1040 (4) - 156410 [19:01:52]1012 (4) - 26.10.2024 12:35 [19:01:52]1206 (1) - 0 [19:01:52]OFD Sender: Remove packet 156410 [19:01:52]ProducePacketName [19:01:52]name=ofd_packets/00156410 [19:01:52]NVStorageDeleteData [19:01:52]Write to MH i2c: 01 00 00 28 25 4D [19:01:52]Write i2c OK [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: 01 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: 01 07 00 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: 01 07 00 28 25 00 00 00 00 00 E4 0C 44 [19:01:53]RasterBufferAndPrint [19:01:53]line [19:01:53]line [19:01:53]line [19:01:53]line [19:01:53]line [19:01:53]written 0, free lines is 3306 [19:01:53]process_action close_receipt done [19:01:53]requested_data is exist [19:01:53]produce_requested_data [19:01:53]requested_item fm.sn is exist - process it [19:01:53]wFMCommunicate request_size=4 [19:01:53]MH_SAM_APDU [19:01:53]CAPDU: 80 11 00 00 [19:01:53]Write to MH i2c: E2 08 00 2F 25 80 11 00 00 00 00 00 00 CE [19:01:53]Write i2c OK [19:01:53]MH_I2C_Read... [19:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:53]Read from MH i2c: E2 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: E2 17 00 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: E2 17 00 2F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 23 [19:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:01:53]wFMCommunicate OK [19:01:53]requested_item fd.num is exist - process it [19:01:53]SAM_PROTO_GetFieldsCounters [19:01:53]wFMCommunicate request_size=4 [19:01:53]MH_SAM_APDU [19:01:53]CAPDU: 80 13 00 00 [19:01:53]Write to MH i2c: E2 08 00 30 25 80 13 00 00 00 00 00 00 D1 [19:01:53]Write i2c OK [19:01:53]MH_I2C_Read... [19:01:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:53]Read from MH i2c: E2 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: E2 62 00 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: E2 62 00 30 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [19:01: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:53]wFMCommunicate OK [19:01:53]SAM_PROTO_GetFieldsCounters done [19:01:53]requested_item shift.num is exist - process it [19:01:53]requested_item shift.opened is exist - process it [19:01:53]req_shift_opened [19:01:53]FM_GetShiftState [19:01:53]SAM_PROTO_GetShiftState [19:01:53]wFMCommunicate request_size=4 [19:01:53]MH_SAM_APDU [19:01:53]CAPDU: 80 13 01 00 [19:01:53]Write to MH i2c: E2 08 00 31 25 80 13 01 00 00 00 00 00 D3 [19:01:53]Write i2c OK [19:01:53]MH_I2C_Read... [19:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:53]Read from MH i2c: E2 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: E2 0E 00 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: E2 0E 00 31 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 08 [19:01:53]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:01:53]wFMCommunicate OK [19:01:53]SAM_PROTO_GetShiftState done [19:01:53]FM_GetShiftState done [19:01:53]req_shift_opened done [19:01:53]requested_item shift.open_date is exist - process it [19:01:53]req_shift_open_date [19:01:53]req_shift_open_date done [19:01:53]produce_requested_data done [19:01:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156410,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:01:53]process_action_free close_receipt [19:01:53]json_value_free [19:01:53]json_value_free done [19:01:53]process_json_proto returns [19:01:53]Send response to host [19:01:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156410,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:01:53]free response buf [19:01:53]execute_script done [19:01:53]execute_script returns [19:01:53]free content buf [19:01:53]Sock 8.Close socket [19:01:53]Sock 8.Thread stoped [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:07]accept exits with 9 [19:03:07]New connection [19:03:07]New thread 3066977636 created [19:03:07]Thread 3066834276 joined [19:03:07]Waiting for new connection... [19:03:07] Sock 9.Parse request [19:03:07]Sock 9.Check first char [19:03:07]Sock 9.First char is OK [19:03:07]request: POST /json_proto HTTP/1.0 [19:03:07]Method: POST [19:03:07]URL: /json_proto [19:03:07]Method is POST - this is cgi request [19:03:07]url: /json_proto [19:03:07]query_string will be loaded in cgi processing [19:03:07]execute_cgi json_proto POST (null) [19:03:07]execute_cgi path=json_proto method=POST [19:03:07]POST find Content-Length [19:03:07]Host: 172.17.63.3:8080 [19:03:07]Content-Length: 676 [19:03:07]Content-Type: application/json [19:03:07] [19:03:07]POST finish read [19:03:07]Found Content-Length = 676 [19:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:07]execute_script... [19:03:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:07]POST & json_proto [19:03:07]process_json_proto [19:03:07]json parsed OK: [19:03:07]protocol is kg_v1.0 [19:03:07]action value=close_receipt [19:03:07]process_action close_receipt [19:03:07]cmd_close_receipt [19:03:07]MH_GetDate [19:03:07]Write to MH i2c: F0 00 00 32 25 46 [19:03:07]Write i2c OK [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: F0 [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: F0 09 00 [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: F0 09 00 32 25 00 ED 3C 1D 67 50 D1 6C 64 ED [19:03:07]GetLastDocTimeStamp 1729969312 [19:03:07]current date 1729969389 [19:03:07]FM_GetShiftState [19:03:07]SAM_PROTO_GetShiftState [19:03:07]wFMCommunicate request_size=4 [19:03:07]MH_SAM_APDU [19:03:07]CAPDU: 80 13 01 00 [19:03:07]Write to MH i2c: E2 08 00 33 25 80 13 01 00 00 00 00 00 D5 [19:03:07]Write i2c OK [19:03:07]MH_I2C_Read... [19:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:07]Read from MH i2c: E2 [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: E2 0E 00 [19:03:07]MH_I2C_Read... [19:03:07]Read from MH i2c: E2 0E 00 33 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 0A [19:03:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:03:07]wFMCommunicate OK [19:03:07]SAM_PROTO_GetShiftState done [19:03:07]FM_GetShiftState done [19:03:07]opened in 1729902702 [19:03:07]opened+sec_in_day 1729989102 [19:03:07]quantity*price = 20003 [19:03:07]sum+1 = 20004 [19:03:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 312 26.10.2024 19:03 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156411 ФПД: 215859221557392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190309&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156411&fm=215859221557392&tin=02508201610067®Number=0000000000091693&sum=20000 [19:03:08]StoreToDocumentArchive [19:03:08]shift 536 fd 156411 [19:03:08]save to /storage/0536/doc_00156411 [19:03:08]save last doc name /storage/0536/doc_00156411 to /storage/kkm_last_doc_name [19:03:08]save OK [19:03:08]Clear old archive folders... [19:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:08]tlvbuf is 016F8520 [19:03:08]SAM_PROTO_ClearQueue [19:03:08]wFMCommunicate request_size=4 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 09 00 00 [19:03:08]Write to MH i2c: E2 08 00 40 25 80 09 00 00 00 00 00 00 D7 [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:08]Read from MH i2c: E2 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 40 25 00 90 00 D9 [19:03:08]RAPDU: 90 00 [19:03:08]wFMCommunicate OK [19:03:08]SAM_PROTO_ClearQueue done [19:03:08]KKMCreateOFDPacket [19:03:08]OFDProtocolAddRootSTLVToBuf [19:03:08]FM_MakeSignedData [19:03:08]FM_MakeSignedData [19:03:08]SAM_PROTO_SignData [19:03:08]wFMCommunicate request_size=4 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 0D 01 02 [19:03:08]Write to MH i2c: E2 08 00 41 25 80 0D 01 02 00 00 00 00 DF [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:08]Read from MH i2c: E2 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 41 25 00 90 00 DA [19:03:08]RAPDU: 90 00 [19:03:08]wFMCommunicate OK [19:03:08]wFMCommunicate request_size=255 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 ED 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 62 02 00 35 04 06 00 C4 [19:03:08]Write to MH i2c: E2 02 01 42 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 ED 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 62 02 00 35 04 06 00 C4 00 00 58 [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:08]Read from MH i2c: E2 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 42 25 00 90 00 DB [19:03:08]RAPDU: 90 00 [19:03:08]wFMCommunicate OK [19:03:08]wFMCommunicate request_size=10 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 0D 02 02 05 52 A4 38 F0 90 [19:03:08]Write to MH i2c: E2 0D 00 43 25 80 0D 02 02 05 00 52 A4 38 F0 90 00 00 9A [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:08]Read from MH i2c: E2 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 [19:03:08]MH_I2C_Read... [19:03:08]Read from MH i2c: E2 03 00 43 25 00 90 00 DC [19:03:08]RAPDU: 90 00 [19:03:08]wFMCommunicate OK [19:03:08]wFMCommunicate request_size=4 [19:03:08]MH_SAM_APDU [19:03:08]CAPDU: 80 0D 03 02 [19:03:08]Write to MH i2c: E2 08 00 44 25 80 0D 03 02 00 00 00 00 E4 [19:03:08]Write i2c OK [19:03:08]MH_I2C_Read... [19:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:09]Read from MH i2c: E2 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 0B 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 0B 00 44 25 00 69 70 36 B2 63 F8 E1 EF 90 00 D1 [19:03:09]RAPDU: 69 70 36 B2 63 F8 E1 EF 90 00 [19:03:09]wFMCommunicate OK [19:03:09]SAM_PROTO_SignData done [19:03:09]FM_MakeSignedData done [19:03:09]CreateOFDProtocolMessage [19:03:09]wFMCommunicate request_size=4 [19:03:09]MH_SAM_APDU [19:03:09]CAPDU: 80 11 00 00 [19:03:09]Write to MH i2c: E2 08 00 45 25 80 11 00 00 00 00 00 00 E4 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:09]Read from MH i2c: E2 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 17 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 17 00 45 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 39 [19:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:03:09]wFMCommunicate OK [19:03:09]CreateOFDProtocolMessage done [19:03:09]OFDSenderStorePacket 156411 [19:03:09]StoreOFDPacket docnum=156411 [19:03:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 21 0D 07 01 4F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 ED 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 62 02 00 35 04 06 00 C4 52 A4 38 F0 90 69 70 36 B2 63 F8 E1 EF [19:03:09]CheckFolder [19:03:09]dirname=/storage/ofd_packets [19:03:09]CheckFolder done [19:03:09]ProducePacketName [19:03:09]name=ofd_packets/00156411 [19:03:09]NVStorageSaveData ofd_packets/00156411 [19:03:09]File name is /storage/ofd_packets/00156411 [19:03:09]Write 301 bytes [19:03:09]NVStorageSaveData done [19:03:09]OFDSenderStorePacket done [19:03:09]KKMCreateOFDPacket done [19:03:09]NVStorageSaveData kkm_last_timestamp [19:03:09]File name is /storage/kkm_last_timestamp [19:03:09]Write 4 bytes [19:03:09]NVStorageSaveData done [19:03:09]ExternCall_PrintAddStr [19:03:09]wPrintStart [19:03:09]Write to MH i2c: 01 00 00 46 25 6B [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 07 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 07 00 46 25 00 00 00 00 00 FF 0F 80 [19:03:09]RasterBufferAndPrint [19:03:09]line Счет N : (1)99226 [19:03:09]line ИНН: 02508201610067 [19:03:09]line Контрольно-Кассовый Чек [19:03:09]line ПРОДАЖА [19:03:09]line ТРК (МРК, ГНК) : 21 [19:03:09]line Товар: 2710124130 [19:03:09]line Аи-92-К-5 [19:03:09]line 2.990 * 66.90 [19:03:09]line = 200.03 [19:03:09]line НДС 12% НСП 1% [19:03:09]line > о реализуемом товаре [19:03:09]line ОКРУГЛЕНИЕ: -0.03 [19:03:09]line ИТОГО: 200.00 [19:03:09]line Внесено: 200.00 [19:03:09]line СДАЧА: 0.00 [19:03:09]line НСП 1% : 1.77 [19:03:09]line НДС 12% : 21.24 [19:03:09]line Наличными: 200.00 [19:03:09]line Безнал.: 0.00 [19:03:09]line Место: АЗС № 143 "Партнер Нефть" [19:03:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:03:09]line СНО: Общий режим [19:03:09]line Чек 312 26.10.2024 19:03 [19:03:09]line Смена: 536 ФФД: 1.0 [19:03:09]line ЗНМ: 0300000096 [19:03:09]line РНМ: 0000000000091693 [19:03:09]line Версия ККМ: 001 [19:03:09]line ФМ: 0000000000871792 [19:03:09]line ФД: 156411 [19:03:09]line ФПД: 215859221557392 [19:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190309&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156411&fm=215859221557392&tin=02508201610067®Number=0000000000091693&sum=20000 [19:03:09]OFD Sender: Processing packet 156411 [packets to send 31, broken 30] [19:03:09]ProducePacketName [19:03:09]name=ofd_packets/00156411 [19:03:09]OFD Sender: To server: pG, [19:03:09]CommunicateWithHost lk.salyk.kg:30040 [19:03:09]ConnectInit lk.salyk.kg [19:03:09]written 0, free lines is 4095 [19:03:09]Connected sock=10 [19:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 21 0D 07 01 4F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 ED 3C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 62 02 00 35 04 06 00 C4 52 A4 38 F0 90 69 70 36 B2 63 F8 E1 EF [19:03:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C6 31 47 00 2D 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 31 37 39 32 10 04 04 00 FB 62 02 00 F4 03 04 00 5E E2 1C 67 B6 04 01 00 00 07 05 2D 1D DF 4E B8 8E [19:03:09]CommunicateWithHost err = 0 [19:03:09]CheckOFDResponse [19:03:09]1017 (14) - 77093643461234 [19:03:09]1041 (16) - 0000000000871792 [19:03:09]1040 (4) - 156411 [19:03:09]1012 (4) - 26.10.2024 12:36 [19:03:09]1206 (1) - 0 [19:03:09]OFD Sender: Remove packet 156411 [19:03:09]ProducePacketName [19:03:09]name=ofd_packets/00156411 [19:03:09]NVStorageDeleteData [19:03:09]Write to MH i2c: 01 00 00 71 25 96 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 07 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: 01 07 00 71 25 00 00 00 00 00 E7 0C 90 [19:03:09]RasterBufferAndPrint [19:03:09]line [19:03:09]line [19:03:09]line [19:03:09]line [19:03:09]line [19:03:09]written 0, free lines is 3309 [19:03:09]process_action close_receipt done [19:03:09]requested_data is exist [19:03:09]produce_requested_data [19:03:09]requested_item fm.sn is exist - process it [19:03:09]wFMCommunicate request_size=4 [19:03:09]MH_SAM_APDU [19:03:09]CAPDU: 80 11 00 00 [19:03:09]Write to MH i2c: E2 08 00 78 25 80 11 00 00 00 00 00 00 17 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:09]Read from MH i2c: E2 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 17 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 17 00 78 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6C [19:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:03:09]wFMCommunicate OK [19:03:09]requested_item fd.num is exist - process it [19:03:09]SAM_PROTO_GetFieldsCounters [19:03:09]wFMCommunicate request_size=4 [19:03:09]MH_SAM_APDU [19:03:09]CAPDU: 80 13 00 00 [19:03:09]Write to MH i2c: E2 08 00 79 25 80 13 00 00 00 00 00 00 1A [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 62 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 62 00 79 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [19:03: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:10]wFMCommunicate OK [19:03:10]SAM_PROTO_GetFieldsCounters done [19:03:10]requested_item shift.num is exist - process it [19:03:10]requested_item shift.opened is exist - process it [19:03:10]req_shift_opened [19:03:10]FM_GetShiftState [19:03:10]SAM_PROTO_GetShiftState [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 13 01 00 [19:03:10]Write to MH i2c: E2 08 00 7A 25 80 13 01 00 00 00 00 00 1C [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 0E 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 0E 00 7A 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 51 [19:03:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:03:10]wFMCommunicate OK [19:03:10]SAM_PROTO_GetShiftState done [19:03:10]FM_GetShiftState done [19:03:10]req_shift_opened done [19:03:10]requested_item shift.open_date is exist - process it [19:03:10]req_shift_open_date [19:03:10]req_shift_open_date done [19:03:10]produce_requested_data done [19:03:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156411,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:03:10]process_action_free close_receipt [19:03:10]json_value_free [19:03:10]json_value_free done [19:03:10]process_json_proto returns [19:03:10]Send response to host [19:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156411,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:03:10]free response buf [19:03:10]execute_script done [19:03:10]execute_script returns [19:03:10]free content buf [19:03:10]Sock 9.Close socket [19:03:10]Sock 9.Thread stoped [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]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:23]accept exits with 8 [19:08:23]New connection [19:08:23]New thread 3066834276 created [19:08:23]Thread 3066977636 joined [19:08:23]Waiting for new connection... [19:08:23] Sock 8.Parse request [19:08:23]Sock 8.Check first char [19:08:23]Sock 8.First char is OK [19:08:23]request: POST /json_proto HTTP/1.0 [19:08:23]Method: POST [19:08:23]URL: /json_proto [19:08:23]Method is POST - this is cgi request [19:08:23]url: /json_proto [19:08:23]query_string will be loaded in cgi processing [19:08:23]execute_cgi json_proto POST (null) [19:08:23]execute_cgi path=json_proto method=POST [19:08:23]POST find Content-Length [19:08:23]Host: 172.17.63.3:8080 [19:08:23]Content-Length: 676 [19:08:23]Content-Type: application/json [19:08:23] [19:08:23]POST finish read [19:08:23]Found Content-Length = 676 [19:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:23]execute_script... [19:08:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:23]POST & json_proto [19:08:23]process_json_proto [19:08:23]json parsed OK: [19:08:23]protocol is kg_v1.0 [19:08:23]action value=close_receipt [19:08:23]process_action close_receipt [19:08:23]cmd_close_receipt [19:08:23]MH_GetDate [19:08:23]Write to MH i2c: F0 00 00 7B 25 8F [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: F0 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: F0 09 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: F0 09 00 7B 25 00 29 3E 1D 67 50 D1 6C 64 74 [19:08:23]GetLastDocTimeStamp 1729969389 [19:08:23]current date 1729969705 [19:08:23]FM_GetShiftState [19:08:23]SAM_PROTO_GetShiftState [19:08:23]wFMCommunicate request_size=4 [19:08:23]MH_SAM_APDU [19:08:23]CAPDU: 80 13 01 00 [19:08:23]Write to MH i2c: E2 08 00 7C 25 80 13 01 00 00 00 00 00 1E [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 0E 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 0E 00 7C 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 53 [19:08:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:08:23]wFMCommunicate OK [19:08:23]SAM_PROTO_GetShiftState done [19:08:23]FM_GetShiftState done [19:08:23]opened in 1729902702 [19:08:23]opened+sec_in_day 1729989102 [19:08:23]quantity*price = 30038 [19:08:23]sum+1 = 30039 [19:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 313 26.10.2024 19:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156412 ФПД: 16233927419139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190825&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156412&fm=16233927419139&tin=02508201610067®Number=0000000000091693&sum=30000 [19:08:24]StoreToDocumentArchive [19:08:24]shift 536 fd 156412 [19:08:24]save to /storage/0536/doc_00156412 [19:08:24]save last doc name /storage/0536/doc_00156412 to /storage/kkm_last_doc_name [19:08:24]save OK [19:08:24]Clear old archive folders... [19:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:24]tlvbuf is 01712540 [19:08:24]SAM_PROTO_ClearQueue [19:08:24]wFMCommunicate request_size=4 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 09 00 00 [19:08:24]Write to MH i2c: E2 08 00 89 25 80 09 00 00 00 00 00 00 20 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:24]Read from MH i2c: E2 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 03 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 03 00 89 25 00 90 00 22 [19:08:24]RAPDU: 90 00 [19:08:24]wFMCommunicate OK [19:08:24]SAM_PROTO_ClearQueue done [19:08:24]KKMCreateOFDPacket [19:08:24]OFDProtocolAddRootSTLVToBuf [19:08:24]FM_MakeSignedData [19:08:24]FM_MakeSignedData [19:08:24]SAM_PROTO_SignData [19:08:24]wFMCommunicate request_size=4 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 0D 01 02 [19:08:24]Write to MH i2c: E2 08 00 8A 25 80 0D 01 02 00 00 00 00 28 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:24]Read from MH i2c: E2 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 03 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 03 00 8A 25 00 90 00 23 [19:08:24]RAPDU: 90 00 [19:08:24]wFMCommunicate OK [19:08:24]wFMCommunicate request_size=255 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 29 3E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 62 02 00 35 04 06 00 0E [19:08:24]Write to MH i2c: E2 02 01 8B 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 29 3E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 62 02 00 35 04 06 00 0E 00 00 5D [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 8B 25 00 90 00 24 [19:08:25]RAPDU: 90 00 [19:08:25]wFMCommunicate OK [19:08:25]wFMCommunicate request_size=10 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 0D 02 02 05 C3 C1 7A 25 03 [19:08:25]Write to MH i2c: E2 0D 00 8C 25 80 0D 02 02 05 00 C3 C1 7A 25 03 00 00 5B [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 8C 25 00 90 00 25 [19:08:25]RAPDU: 90 00 [19:08:25]wFMCommunicate OK [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 0D 03 02 [19:08:25]Write to MH i2c: E2 08 00 8D 25 80 0D 03 02 00 00 00 00 2D [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 0B 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 0B 00 8D 25 00 0B 08 0E EC 34 1D 40 FD 90 00 C9 [19:08:25]RAPDU: 0B 08 0E EC 34 1D 40 FD 90 00 [19:08:25]wFMCommunicate OK [19:08:25]SAM_PROTO_SignData done [19:08:25]FM_MakeSignedData done [19:08:25]CreateOFDProtocolMessage [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 11 00 00 [19:08:25]Write to MH i2c: E2 08 00 8E 25 80 11 00 00 00 00 00 00 2D [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 17 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 17 00 8E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 82 [19:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:08:25]wFMCommunicate OK [19:08:25]CreateOFDProtocolMessage done [19:08:25]OFDSenderStorePacket 156412 [19:08:25]StoreOFDPacket docnum=156412 [19:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 32 07 01 AD F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 29 3E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 62 02 00 35 04 06 00 0E C3 C1 7A 25 03 0B 08 0E EC 34 1D 40 FD [19:08:25]CheckFolder [19:08:25]dirname=/storage/ofd_packets [19:08:25]CheckFolder done [19:08:25]ProducePacketName [19:08:25]name=ofd_packets/00156412 [19:08:25]NVStorageSaveData ofd_packets/00156412 [19:08:25]File name is /storage/ofd_packets/00156412 [19:08:25]Write 301 bytes [19:08:25]NVStorageSaveData done [19:08:25]OFDSenderStorePacket done [19:08:25]KKMCreateOFDPacket done [19:08:25]NVStorageSaveData kkm_last_timestamp [19:08:25]File name is /storage/kkm_last_timestamp [19:08:25]Write 4 bytes [19:08:25]NVStorageSaveData done [19:08:25]ExternCall_PrintAddStr [19:08:25]wPrintStart [19:08:25]Write to MH i2c: 01 00 00 8F 25 B4 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: 01 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: 01 07 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: 01 07 00 8F 25 00 00 00 00 00 FF 0F C9 [19:08:25]RasterBufferAndPrint [19:08:25]line Счет N : (1)99227 [19:08:25]line ИНН: 02508201610067 [19:08:25]line Контрольно-Кассовый Чек [19:08:25]line ПРОДАЖА [19:08:25]line ТРК (МРК, ГНК) : 21 [19:08:25]line Товар: 2710124130 [19:08:25]line Аи-92-К-5 [19:08:25]line 4.490 * 66.90 [19:08:25]line = 300.38 [19:08:25]line НДС 12% НСП 1% [19:08:25]line > о реализуемом товаре [19:08:25]line ОКРУГЛЕНИЕ: -0.38 [19:08:25]line ИТОГО: 300.00 [19:08:25]line Внесено: 300.00 [19:08:25]line СДАЧА: 0.00 [19:08:25]line НСП 1% : 2.66 [19:08:25]line НДС 12% : 31.90 [19:08:25]line Наличными: 300.00 [19:08:25]line Безнал.: 0.00 [19:08:25]line Место: АЗС № 143 "Партнер Нефть" [19:08:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:08:25]line СНО: Общий режим [19:08:25]line Чек 313 26.10.2024 19:08 [19:08:25]line Смена: 536 ФФД: 1.0 [19:08:25]line ЗНМ: 0300000096 [19:08:25]line РНМ: 0000000000091693 [19:08:25]line Версия ККМ: 001 [19:08:25]line ФМ: 0000000000871792 [19:08:25]line ФД: 156412 [19:08:25]line ФПД: 16233927419139 [19:08:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190825&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156412&fm=16233927419139&tin=02508201610067®Number=0000000000091693&sum=30000 [19:08:25]OFD Sender: Processing packet 156412 [packets to send 31, broken 30] [19:08:25]ProducePacketName [19:08:25]name=ofd_packets/00156412 [19:08:25]OFD Sender: To server: pG, [19:08:25]CommunicateWithHost lk.salyk.kg:30040 [19:08:25]ConnectInit lk.salyk.kg [19:08:25]written 0, free lines is 4095 [19:08:25]Connected sock=10 [19:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 32 07 01 AD F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 29 3E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 62 02 00 35 04 06 00 0E C3 C1 7A 25 03 0B 08 0E EC 34 1D 40 FD [19:08:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D0 D4 47 00 55 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 31 37 39 32 10 04 04 00 FC 62 02 00 F4 03 04 00 9B E3 1C 67 B6 04 01 00 00 6C C3 15 F3 78 B2 31 FB [19:08:25]CommunicateWithHost err = 0 [19:08:25]CheckOFDResponse [19:08:25]1017 (14) - 77093643461234 [19:08:25]1041 (16) - 0000000000871792 [19:08:25]1040 (4) - 156412 [19:08:25]1012 (4) - 26.10.2024 12:42 [19:08:25]1206 (1) - 0 [19:08:25]OFD Sender: Remove packet 156412 [19:08:25]ProducePacketName [19:08:25]name=ofd_packets/00156412 [19:08:25]NVStorageDeleteData [19:08:26]Write to MH i2c: 01 00 00 BA 25 DF [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 07 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 07 00 BA 25 00 00 00 00 00 DC 0C CE [19:08:26]RasterBufferAndPrint [19:08:26]line [19:08:26]line [19:08:26]line [19:08:26]line [19:08:26]line [19:08:26]written 0, free lines is 3298 [19:08:26]process_action close_receipt done [19:08:26]requested_data is exist [19:08:26]produce_requested_data [19:08:26]requested_item fm.sn is exist - process it [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 11 00 00 [19:08:26]Write to MH i2c: E2 08 00 C1 25 80 11 00 00 00 00 00 00 60 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 17 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 17 00 C1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B5 [19:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:08:26]wFMCommunicate OK [19:08:26]requested_item fd.num is exist - process it [19:08:26]SAM_PROTO_GetFieldsCounters [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 13 00 00 [19:08:26]Write to MH i2c: E2 08 00 C2 25 80 13 00 00 00 00 00 00 63 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 62 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 62 00 C2 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FC 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:26]wFMCommunicate OK [19:08:26]SAM_PROTO_GetFieldsCounters done [19:08:26]requested_item shift.num is exist - process it [19:08:26]requested_item shift.opened is exist - process it [19:08:26]req_shift_opened [19:08:26]FM_GetShiftState [19:08:26]SAM_PROTO_GetShiftState [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 13 01 00 [19:08:26]Write to MH i2c: E2 08 00 C3 25 80 13 01 00 00 00 00 00 65 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:26]Read from MH i2c: E2 0E 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 0E 00 C3 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9A [19:08:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:08:26]wFMCommunicate OK [19:08:26]SAM_PROTO_GetShiftState done [19:08:26]FM_GetShiftState done [19:08:26]req_shift_opened done [19:08:26]requested_item shift.open_date is exist - process it [19:08:26]req_shift_open_date [19:08:26]req_shift_open_date done [19:08:26]produce_requested_data done [19:08:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156412,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:08:26]process_action_free close_receipt [19:08:26]json_value_free [19:08:26]json_value_free done [19:08:26]process_json_proto returns [19:08:26]Send response to host [19:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156412,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:08:26]free response buf [19:08:26]execute_script done [19:08:26]execute_script returns [19:08:26]free content buf [19:08:26]Sock 8.Close socket [19:08:26]Sock 8.Thread stoped [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:23]accept exits with 9 [19:18:23]New connection [19:18:23]New thread 3066977636 created [19:18:23]Thread 3066834276 joined [19:18:23]Waiting for new connection... [19:18:23] Sock 9.Parse request [19:18:23]Sock 9.Check first char [19:18:23]Sock 9.First char is OK [19:18:23]request: POST /json_proto HTTP/1.0 [19:18:23]Method: POST [19:18:23]URL: /json_proto [19:18:23]Method is POST - this is cgi request [19:18:23]url: /json_proto [19:18:23]query_string will be loaded in cgi processing [19:18:23]execute_cgi json_proto POST (null) [19:18:23]execute_cgi path=json_proto method=POST [19:18:23]POST find Content-Length [19:18:23]Host: 172.17.63.3:8080 [19:18:23]Content-Length: 676 [19:18:23]Content-Type: application/json [19:18:23] [19:18:23]POST finish read [19:18:23]Found Content-Length = 676 [19:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:23]execute_script... [19:18: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)99228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:23]POST & json_proto [19:18:23]process_json_proto [19:18:23]json parsed OK: [19:18:23]protocol is kg_v1.0 [19:18:23]action value=close_receipt [19:18:23]process_action close_receipt [19:18:23]cmd_close_receipt [19:18:23]MH_GetDate [19:18:23]Write to MH i2c: F0 00 00 C4 25 D8 [19:18:23]Write i2c OK [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: F0 [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: F0 09 00 [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: F0 09 00 C4 25 00 81 40 1D 67 50 D1 6C 64 17 [19:18:23]GetLastDocTimeStamp 1729969705 [19:18:23]current date 1729970305 [19:18:23]FM_GetShiftState [19:18:23]SAM_PROTO_GetShiftState [19:18:23]wFMCommunicate request_size=4 [19:18:23]MH_SAM_APDU [19:18:23]CAPDU: 80 13 01 00 [19:18:23]Write to MH i2c: E2 08 00 C5 25 80 13 01 00 00 00 00 00 67 [19:18:23]Write i2c OK [19:18:23]MH_I2C_Read... [19:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:23]Read from MH i2c: E2 [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: E2 0E 00 [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: E2 0E 00 C5 25 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9C [19:18:23]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:18:23]wFMCommunicate OK [19:18:23]SAM_PROTO_GetShiftState done [19:18:23]FM_GetShiftState done [19:18:23]opened in 1729902702 [19:18:23]opened+sec_in_day 1729989102 [19:18:23]quantity*price = 30038 [19:18:23]sum+1 = 30039 [19:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 314 26.10.2024 19:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156413 ФПД: 225330884924427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191825&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156413&fm=225330884924427&tin=02508201610067®Number=0000000000091693&sum=30000 [19:18:24]StoreToDocumentArchive [19:18:24]shift 536 fd 156413 [19:18:24]save to /storage/0536/doc_00156413 [19:18:24]save last doc name /storage/0536/doc_00156413 to /storage/kkm_last_doc_name [19:18:24]save OK [19:18:24]Clear old archive folders... [19:18:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:24]tlvbuf is 01754460 [19:18:24]SAM_PROTO_ClearQueue [19:18:24]wFMCommunicate request_size=4 [19:18:24]MH_SAM_APDU [19:18:24]CAPDU: 80 09 00 00 [19:18:24]Write to MH i2c: E2 08 00 D2 25 80 09 00 00 00 00 00 00 69 [19:18:24]Write i2c OK [19:18:24]MH_I2C_Read... [19:18:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:24]Read from MH i2c: E2 [19:18:24]MH_I2C_Read... [19:18:24]Read from MH i2c: E2 03 00 [19:18:24]MH_I2C_Read... [19:18:24]Read from MH i2c: E2 03 00 D2 25 00 90 00 6B [19:18:24]RAPDU: 90 00 [19:18:24]wFMCommunicate OK [19:18:24]SAM_PROTO_ClearQueue done [19:18:24]KKMCreateOFDPacket [19:18:24]OFDProtocolAddRootSTLVToBuf [19:18:24]FM_MakeSignedData [19:18:24]FM_MakeSignedData [19:18:24]SAM_PROTO_SignData [19:18:24]wFMCommunicate request_size=4 [19:18:24]MH_SAM_APDU [19:18:24]CAPDU: 80 0D 01 02 [19:18:24]Write to MH i2c: E2 08 00 D3 25 80 0D 01 02 00 00 00 00 71 [19:18:24]Write i2c OK [19:18:24]MH_I2C_Read... [19:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:24]Read from MH i2c: E2 [19:18:24]MH_I2C_Read... [19:18:24]Read from MH i2c: E2 03 00 [19:18:24]MH_I2C_Read... [19:18:24]Read from MH i2c: E2 03 00 D3 25 00 90 00 6C [19:18:24]RAPDU: 90 00 [19:18:24]wFMCommunicate OK [19:18:24]wFMCommunicate request_size=255 [19:18:24]MH_SAM_APDU [19:18:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 81 40 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 62 02 00 35 04 06 00 CC [19:18:24]Write to MH i2c: E2 02 01 D4 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 81 40 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 62 02 00 35 04 06 00 CC 00 00 C0 [19:18:24]Write i2c OK [19:18:24]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 D4 25 00 90 00 6D [19:18:25]RAPDU: 90 00 [19:18:25]wFMCommunicate OK [19:18:25]wFMCommunicate request_size=10 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 0D 02 02 05 EF EF 5A 54 0B [19:18:25]Write to MH i2c: E2 0D 00 D5 25 80 0D 02 02 05 00 EF EF 5A 54 0B 00 00 15 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 D5 25 00 90 00 6E [19:18:25]RAPDU: 90 00 [19:18:25]wFMCommunicate OK [19:18:25]wFMCommunicate request_size=4 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 0D 03 02 [19:18:25]Write to MH i2c: E2 08 00 D6 25 80 0D 03 02 00 00 00 00 76 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 0B 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 0B 00 D6 25 00 F4 9B C5 30 1A FC 3C C9 90 00 16 [19:18:25]RAPDU: F4 9B C5 30 1A FC 3C C9 90 00 [19:18:25]wFMCommunicate OK [19:18:25]SAM_PROTO_SignData done [19:18:25]FM_MakeSignedData done [19:18:25]CreateOFDProtocolMessage [19:18:25]wFMCommunicate request_size=4 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 11 00 00 [19:18:25]Write to MH i2c: E2 08 00 D7 25 80 11 00 00 00 00 00 00 76 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 17 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 17 00 D7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [19:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:18:25]wFMCommunicate OK [19:18:25]CreateOFDProtocolMessage done [19:18:25]OFDSenderStorePacket 156413 [19:18:25]StoreOFDPacket docnum=156413 [19:18:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B 26 07 01 8D 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 81 40 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 62 02 00 35 04 06 00 CC EF EF 5A 54 0B F4 9B C5 30 1A FC 3C C9 [19:18:25]CheckFolder [19:18:25]dirname=/storage/ofd_packets [19:18:25]CheckFolder done [19:18:25]ProducePacketName [19:18:25]name=ofd_packets/00156413 [19:18:25]NVStorageSaveData ofd_packets/00156413 [19:18:25]File name is /storage/ofd_packets/00156413 [19:18:25]Write 301 bytes [19:18:25]NVStorageSaveData done [19:18:25]OFDSenderStorePacket done [19:18:25]KKMCreateOFDPacket done [19:18:25]NVStorageSaveData kkm_last_timestamp [19:18:25]File name is /storage/kkm_last_timestamp [19:18:25]Write 4 bytes [19:18:25]NVStorageSaveData done [19:18:25]ExternCall_PrintAddStr [19:18:25]wPrintStart [19:18:25]Write to MH i2c: 01 00 00 D8 25 FD [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: 01 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: 01 07 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: 01 07 00 D8 25 00 00 00 00 00 FF 0F 12 [19:18:25]RasterBufferAndPrint [19:18:25]line Счет N : (1)99228 [19:18:25]line ИНН: 02508201610067 [19:18:25]line Контрольно-Кассовый Чек [19:18:25]line ПРОДАЖА [19:18:25]line ТРК (МРК, ГНК) : 21 [19:18:25]line Товар: 2710124130 [19:18:25]line Аи-92-К-5 [19:18:25]line 4.490 * 66.90 [19:18:25]line = 300.38 [19:18:25]line НДС 12% НСП 1% [19:18:25]line > о реализуемом товаре [19:18:25]line ОКРУГЛЕНИЕ: -0.38 [19:18:25]line ИТОГО: 300.00 [19:18:25]line Внесено: 300.00 [19:18:25]line СДАЧА: 0.00 [19:18:25]line НСП 1% : 2.66 [19:18:25]line НДС 12% : 31.90 [19:18:25]line Наличными: 300.00 [19:18:25]line Безнал.: 0.00 [19:18:25]line Место: АЗС № 143 "Партнер Нефть" [19:18:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:18:25]line СНО: Общий режим [19:18:25]line Чек 314 26.10.2024 19:18 [19:18:25]line Смена: 536 ФФД: 1.0 [19:18:25]line ЗНМ: 0300000096 [19:18:25]line РНМ: 0000000000091693 [19:18:25]line Версия ККМ: 001 [19:18:25]line ФМ: 0000000000871792 [19:18:25]line ФД: 156413 [19:18:25]line ФПД: 225330884924427 [19:18:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191825&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156413&fm=225330884924427&tin=02508201610067®Number=0000000000091693&sum=30000 [19:18:25]OFD Sender: Processing packet 156413 [packets to send 31, broken 30] [19:18:25]ProducePacketName [19:18:25]name=ofd_packets/00156413 [19:18:25]OFD Sender: To server: pG, [19:18:25]CommunicateWithHost lk.salyk.kg:30040 [19:18:25]ConnectInit lk.salyk.kg [19:18:25]written 0, free lines is 4095 [19:18:25]Connected sock=8 [19:18:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B 26 07 01 8D 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 81 40 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 62 02 00 35 04 06 00 CC EF EF 5A 54 0B F4 9B C5 30 1A FC 3C C9 [19:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EB 76 47 00 5D 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 31 37 39 32 10 04 04 00 FD 62 02 00 F4 03 04 00 F3 E5 1C 67 B6 04 01 00 00 93 6F FF B5 51 6E A4 29 [19:18:25]CommunicateWithHost err = 0 [19:18:25]CheckOFDResponse [19:18:25]1017 (14) - 77093643461234 [19:18:25]1041 (16) - 0000000000871792 [19:18:25]1040 (4) - 156413 [19:18:25]1012 (4) - 26.10.2024 12:52 [19:18:25]1206 (1) - 0 [19:18:25]OFD Sender: Remove packet 156413 [19:18:25]ProducePacketName [19:18:25]name=ofd_packets/00156413 [19:18:25]NVStorageDeleteData [19:18:26]Write to MH i2c: 01 00 00 03 26 29 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 07 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 07 00 03 26 00 00 00 00 00 E4 0C 20 [19:18:26]RasterBufferAndPrint [19:18:26]line [19:18:26]line [19:18:26]line [19:18:26]line [19:18:26]line [19:18:26]written 0, free lines is 3306 [19:18:26]process_action close_receipt done [19:18:26]requested_data is exist [19:18:26]produce_requested_data [19:18:26]requested_item fm.sn is exist - process it [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 11 00 00 [19:18:26]Write to MH i2c: E2 08 00 0A 26 80 11 00 00 00 00 00 00 AA [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 17 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 17 00 0A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [19:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:18:26]wFMCommunicate OK [19:18:26]requested_item fd.num is exist - process it [19:18:26]SAM_PROTO_GetFieldsCounters [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 13 00 00 [19:18:26]Write to MH i2c: E2 08 00 0B 26 80 13 00 00 00 00 00 00 AD [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 62 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 62 00 0B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FD 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:26]wFMCommunicate OK [19:18:26]SAM_PROTO_GetFieldsCounters done [19:18:26]requested_item shift.num is exist - process it [19:18:26]requested_item shift.opened is exist - process it [19:18:26]req_shift_opened [19:18:26]FM_GetShiftState [19:18:26]SAM_PROTO_GetShiftState [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 13 01 00 [19:18:26]Write to MH i2c: E2 08 00 0C 26 80 13 01 00 00 00 00 00 AF [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 0E 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 0E 00 0C 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E4 [19:18:26]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:18:26]wFMCommunicate OK [19:18:26]SAM_PROTO_GetShiftState done [19:18:26]FM_GetShiftState done [19:18:26]req_shift_opened done [19:18:26]requested_item shift.open_date is exist - process it [19:18:26]req_shift_open_date [19:18:26]req_shift_open_date done [19:18:26]produce_requested_data done [19:18:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156413,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:18:26]process_action_free close_receipt [19:18:26]json_value_free [19:18:26]json_value_free done [19:18:26]process_json_proto returns [19:18:26]Send response to host [19:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156413,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:18:26]free response buf [19:18:26]execute_script done [19:18:26]execute_script returns [19:18:26]free content buf [19:18:26]Sock 9.Close socket [19:18:26]Sock 9.Thread stoped [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:16]accept exits with 10 [19:27:16]New connection [19:27:16]New thread 3066834276 created [19:27:16]Thread 3066977636 joined [19:27:16]Waiting for new connection... [19:27:16] Sock 10.Parse request [19:27:16]Sock 10.Check first char [19:27:16]Sock 10.First char is OK [19:27:16]request: POST /json_proto HTTP/1.0 [19:27:16]Method: POST [19:27:16]URL: /json_proto [19:27:16]Method is POST - this is cgi request [19:27:16]url: /json_proto [19:27:16]query_string will be loaded in cgi processing [19:27:16]execute_cgi json_proto POST (null) [19:27:16]execute_cgi path=json_proto method=POST [19:27:16]POST find Content-Length [19:27:16]Host: 172.17.63.3:8080 [19:27:16]Content-Length: 677 [19:27:16]Content-Type: application/json [19:27:16] [19:27:16]POST finish read [19:27:16]Found Content-Length = 677 [19:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:16]execute_script... [19:27: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)99229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:16]POST & json_proto [19:27:16]process_json_proto [19:27:16]json parsed OK: [19:27:16]protocol is kg_v1.0 [19:27:16]action value=close_receipt [19:27:16]process_action close_receipt [19:27:16]cmd_close_receipt [19:27:16]MH_GetDate [19:27:16]Write to MH i2c: F0 00 00 0D 26 22 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: F0 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: F0 09 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: F0 09 00 0D 26 00 96 42 1D 67 50 D1 6C 64 78 [19:27:16]GetLastDocTimeStamp 1729970305 [19:27:16]current date 1729970838 [19:27:16]FM_GetShiftState [19:27:16]SAM_PROTO_GetShiftState [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 13 01 00 [19:27:16]Write to MH i2c: E2 08 00 0E 26 80 13 01 00 00 00 00 00 B1 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0E 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0E 00 0E 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E6 [19:27:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_GetShiftState done [19:27:16]FM_GetShiftState done [19:27:16]opened in 1729902702 [19:27:16]opened+sec_in_day 1729989102 [19:27:16]quantity*price = 80012 [19:27:16]sum+1 = 80013 [19:27:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 315 26.10.2024 19:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156414 ФПД: 124671194899347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156414&fm=124671194899347&tin=02508201610067®Number=0000000000091693&sum=80000 [19:27:18]StoreToDocumentArchive [19:27:18]shift 536 fd 156414 [19:27:18]save to /storage/0536/doc_00156414 [19:27:18]save last doc name /storage/0536/doc_00156414 to /storage/kkm_last_doc_name [19:27:18]save OK [19:27:18]Clear old archive folders... [19:27:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:18]tlvbuf is 01711D50 [19:27:18]SAM_PROTO_ClearQueue [19:27:18]wFMCommunicate request_size=4 [19:27:18]MH_SAM_APDU [19:27:18]CAPDU: 80 09 00 00 [19:27:18]Write to MH i2c: E2 08 00 1B 26 80 09 00 00 00 00 00 00 B3 [19:27:18]Write i2c OK [19:27:18]MH_I2C_Read... [19:27:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:18]Read from MH i2c: E2 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 03 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 03 00 1B 26 00 90 00 B5 [19:27:18]RAPDU: 90 00 [19:27:18]wFMCommunicate OK [19:27:18]SAM_PROTO_ClearQueue done [19:27:18]KKMCreateOFDPacket [19:27:18]OFDProtocolAddRootSTLVToBuf [19:27:18]FM_MakeSignedData [19:27:18]FM_MakeSignedData [19:27:18]SAM_PROTO_SignData [19:27:18]wFMCommunicate request_size=4 [19:27:18]MH_SAM_APDU [19:27:18]CAPDU: 80 0D 01 02 [19:27:18]Write to MH i2c: E2 08 00 1C 26 80 0D 01 02 00 00 00 00 BB [19:27:18]Write i2c OK [19:27:18]MH_I2C_Read... [19:27:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:18]Read from MH i2c: E2 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 03 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 03 00 1C 26 00 90 00 B6 [19:27:18]RAPDU: 90 00 [19:27:18]wFMCommunicate OK [19:27:18]wFMCommunicate request_size=255 [19:27:18]MH_SAM_APDU [19:27:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 96 42 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 62 02 00 35 04 06 00 71 [19:27:18]Write to MH i2c: E2 02 01 1D 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 96 42 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 62 02 00 35 04 06 00 71 00 00 C0 [19:27:18]Write i2c OK [19:27:18]MH_I2C_Read... [19:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:18]Read from MH i2c: E2 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 03 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 03 00 1D 26 00 90 00 B7 [19:27:18]RAPDU: 90 00 [19:27:18]wFMCommunicate OK [19:27:18]wFMCommunicate request_size=10 [19:27:18]MH_SAM_APDU [19:27:18]CAPDU: 80 0D 02 02 05 63 46 49 23 93 [19:27:18]Write to MH i2c: E2 0D 00 1E 26 80 0D 02 02 05 00 63 46 49 23 93 00 00 70 [19:27:18]Write i2c OK [19:27:18]MH_I2C_Read... [19:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:18]Read from MH i2c: E2 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 03 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 03 00 1E 26 00 90 00 B8 [19:27:18]RAPDU: 90 00 [19:27:18]wFMCommunicate OK [19:27:18]wFMCommunicate request_size=4 [19:27:18]MH_SAM_APDU [19:27:18]CAPDU: 80 0D 03 02 [19:27:18]Write to MH i2c: E2 08 00 1F 26 80 0D 03 02 00 00 00 00 C0 [19:27:18]Write i2c OK [19:27:18]MH_I2C_Read... [19:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:18]Read from MH i2c: E2 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 0B 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 0B 00 1F 26 00 F6 28 EF 30 C5 81 A7 B3 90 00 9E [19:27:18]RAPDU: F6 28 EF 30 C5 81 A7 B3 90 00 [19:27:18]wFMCommunicate OK [19:27:18]SAM_PROTO_SignData done [19:27:18]FM_MakeSignedData done [19:27:18]CreateOFDProtocolMessage [19:27:18]wFMCommunicate request_size=4 [19:27:18]MH_SAM_APDU [19:27:18]CAPDU: 80 11 00 00 [19:27:18]Write to MH i2c: E2 08 00 20 26 80 11 00 00 00 00 00 00 C0 [19:27:18]Write i2c OK [19:27:18]MH_I2C_Read... [19:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:18]Read from MH i2c: E2 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 17 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 17 00 20 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [19:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:27:18]wFMCommunicate OK [19:27:18]CreateOFDProtocolMessage done [19:27:18]OFDSenderStorePacket 156414 [19:27:18]StoreOFDPacket docnum=156414 [19:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 99 07 01 10 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 96 42 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 62 02 00 35 04 06 00 71 63 46 49 23 93 F6 28 EF 30 C5 81 A7 B3 [19:27:18]CheckFolder [19:27:18]dirname=/storage/ofd_packets [19:27:18]CheckFolder done [19:27:18]ProducePacketName [19:27:18]name=ofd_packets/00156414 [19:27:18]NVStorageSaveData ofd_packets/00156414 [19:27:18]File name is /storage/ofd_packets/00156414 [19:27:18]Write 301 bytes [19:27:18]NVStorageSaveData done [19:27:18]OFDSenderStorePacket done [19:27:18]KKMCreateOFDPacket done [19:27:18]NVStorageSaveData kkm_last_timestamp [19:27:18]File name is /storage/kkm_last_timestamp [19:27:18]Write 4 bytes [19:27:18]NVStorageSaveData done [19:27:18]ExternCall_PrintAddStr [19:27:18]wPrintStart [19:27:18]Write to MH i2c: 01 00 00 21 26 47 [19:27:18]Write i2c OK [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: 01 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: 01 07 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: 01 07 00 21 26 00 00 00 00 00 FF 0F 5C [19:27:18]RasterBufferAndPrint [19:27:18]line Счет N : (1)99229 [19:27:18]line ИНН: 02508201610067 [19:27:18]line Контрольно-Кассовый Чек [19:27:18]line ПРОДАЖА [19:27:18]line ТРК (МРК, ГНК) : 31 [19:27:18]line Товар: 2710124130 [19:27:18]line Аи-92-К-5 [19:27:18]line 11.960 * 66.90 [19:27:18]line = 800.12 [19:27:18]line НДС 12% НСП 1% [19:27:18]line > о реализуемом товаре [19:27:18]line ОКРУГЛЕНИЕ: -0.12 [19:27:18]line ИТОГО: 800.00 [19:27:18]line Внесено: 800.00 [19:27:18]line СДАЧА: 0.00 [19:27:18]line НСП 1% : 7.08 [19:27:18]line НДС 12% : 84.97 [19:27:18]line Наличными: 800.00 [19:27:18]line Безнал.: 0.00 [19:27:18]line Место: АЗС № 143 "Партнер Нефть" [19:27:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:27:18]line СНО: Общий режим [19:27:18]line Чек 315 26.10.2024 19:27 [19:27:18]line Смена: 536 ФФД: 1.0 [19:27:18]line ЗНМ: 0300000096 [19:27:18]line РНМ: 0000000000091693 [19:27:18]line Версия ККМ: 001 [19:27:18]line ФМ: 0000000000871792 [19:27:18]line ФД: 156414 [19:27:18]line ФПД: 124671194899347 [19:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156414&fm=124671194899347&tin=02508201610067®Number=0000000000091693&sum=80000 [19:27:18]OFD Sender: Processing packet 156414 [packets to send 31, broken 30] [19:27:18]ProducePacketName [19:27:18]name=ofd_packets/00156414 [19:27:18]OFD Sender: To server: pG, [19:27:18]CommunicateWithHost lk.salyk.kg:30040 [19:27:18]ConnectInit lk.salyk.kg [19:27:18]written 0, free lines is 4095 [19:27:19]Connected sock=9 [19:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 99 07 01 10 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 96 42 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 62 02 00 35 04 06 00 71 63 46 49 23 93 F6 28 EF 30 C5 81 A7 B3 [19:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 66 CE 47 00 9E 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 62 02 00 F4 03 04 00 08 E8 1C 67 B6 04 01 00 00 2E 06 6C 83 6A 1E 7C 68 [19:27:19]CommunicateWithHost err = 0 [19:27:19]CheckOFDResponse [19:27:19]1017 (14) - 77093643461234 [19:27:19]1041 (16) - 0000000000871792 [19:27:19]1040 (4) - 156414 [19:27:19]1012 (4) - 26.10.2024 13:00 [19:27:19]1206 (1) - 0 [19:27:19]OFD Sender: Remove packet 156414 [19:27:19]ProducePacketName [19:27:19]name=ofd_packets/00156414 [19:27:19]NVStorageDeleteData [19:27:19]Write to MH i2c: 01 00 00 4C 26 72 [19:27:19]Write i2c OK [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: 01 [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: 01 07 00 [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: 01 07 00 4C 26 00 00 00 00 00 E2 0C 67 [19:27:19]RasterBufferAndPrint [19:27:19]line [19:27:19]line [19:27:19]line [19:27:19]line [19:27:19]line [19:27:19]written 0, free lines is 3304 [19:27:19]process_action close_receipt done [19:27:19]requested_data is exist [19:27:19]produce_requested_data [19:27:19]requested_item fm.sn is exist - process it [19:27:19]wFMCommunicate request_size=4 [19:27:19]MH_SAM_APDU [19:27:19]CAPDU: 80 11 00 00 [19:27:19]Write to MH i2c: E2 08 00 53 26 80 11 00 00 00 00 00 00 F3 [19:27:19]Write i2c OK [19:27:19]MH_I2C_Read... [19:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:19]Read from MH i2c: E2 [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: E2 17 00 [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: E2 17 00 53 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [19:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:27:19]wFMCommunicate OK [19:27:19]requested_item fd.num is exist - process it [19:27:19]SAM_PROTO_GetFieldsCounters [19:27:19]wFMCommunicate request_size=4 [19:27:19]MH_SAM_APDU [19:27:19]CAPDU: 80 13 00 00 [19:27:19]Write to MH i2c: E2 08 00 54 26 80 13 00 00 00 00 00 00 F6 [19:27:19]Write i2c OK [19:27:19]MH_I2C_Read... [19:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:19]Read from MH i2c: E2 [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: E2 62 00 [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: E2 62 00 54 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [19:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FE 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:19]wFMCommunicate OK [19:27:19]SAM_PROTO_GetFieldsCounters done [19:27:19]requested_item shift.num is exist - process it [19:27:19]requested_item shift.opened is exist - process it [19:27:19]req_shift_opened [19:27:19]FM_GetShiftState [19:27:19]SAM_PROTO_GetShiftState [19:27:19]wFMCommunicate request_size=4 [19:27:19]MH_SAM_APDU [19:27:19]CAPDU: 80 13 01 00 [19:27:19]Write to MH i2c: E2 08 00 55 26 80 13 01 00 00 00 00 00 F8 [19:27:19]Write i2c OK [19:27:19]MH_I2C_Read... [19:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:19]Read from MH i2c: E2 [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: E2 0E 00 [19:27:19]MH_I2C_Read... [19:27:19]Read from MH i2c: E2 0E 00 55 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2D [19:27:19]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:27:19]wFMCommunicate OK [19:27:19]SAM_PROTO_GetShiftState done [19:27:19]FM_GetShiftState done [19:27:19]req_shift_opened done [19:27:19]requested_item shift.open_date is exist - process it [19:27:19]req_shift_open_date [19:27:19]req_shift_open_date done [19:27:19]produce_requested_data done [19:27:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156414,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:27:19]process_action_free close_receipt [19:27:19]json_value_free [19:27:19]json_value_free done [19:27:19]process_json_proto returns [19:27:19]Send response to host [19:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156414,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:27:19]free response buf [19:27:19]execute_script done [19:27:19]execute_script returns [19:27:19]free content buf [19:27:19]Sock 10.Close socket [19:27:19]Sock 10.Thread stoped [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31: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:07]accept exits with 8 [19:34:07]New connection [19:34:07]New thread 3066977636 created [19:34:07]Thread 3066834276 joined [19:34:07]Waiting for new connection... [19:34:07] Sock 8.Parse request [19:34:07]Sock 8.Check first char [19:34:07]Sock 8.First char is OK [19:34:07]request: POST /json_proto HTTP/1.0 [19:34:07]Method: POST [19:34:07]URL: /json_proto [19:34:07]Method is POST - this is cgi request [19:34:07]url: /json_proto [19:34:07]query_string will be loaded in cgi processing [19:34:07]execute_cgi json_proto POST (null) [19:34:07]execute_cgi path=json_proto method=POST [19:34:07]POST find Content-Length [19:34:07]Host: 172.17.63.3:8080 [19:34:07]Content-Length: 681 [19:34:07]Content-Type: application/json [19:34:07] [19:34:07]POST finish read [19:34:07]Found Content-Length = 681 [19:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:07]execute_script... [19:34:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:07]POST & json_proto [19:34:07]process_json_proto [19:34:07]json parsed OK: [19:34:07]protocol is kg_v1.0 [19:34:07]action value=close_receipt [19:34:07]process_action close_receipt [19:34:07]cmd_close_receipt [19:34:07]MH_GetDate [19:34:07]Write to MH i2c: F0 00 00 56 26 6B [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 09 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 09 00 56 26 00 31 44 1D 67 50 D1 6C 64 5E [19:34:07]GetLastDocTimeStamp 1729970838 [19:34:07]current date 1729971249 [19:34:07]FM_GetShiftState [19:34:07]SAM_PROTO_GetShiftState [19:34:07]wFMCommunicate request_size=4 [19:34:07]MH_SAM_APDU [19:34:07]CAPDU: 80 13 01 00 [19:34:07]Write to MH i2c: E2 08 00 57 26 80 13 01 00 00 00 00 00 FA [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:07]Read from MH i2c: E2 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 57 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2F [19:34:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:34:07]wFMCommunicate OK [19:34:07]SAM_PROTO_GetShiftState done [19:34:07]FM_GetShiftState done [19:34:07]opened in 1729902702 [19:34:07]opened+sec_in_day 1729989102 [19:34:07]quantity*price = 100015 [19:34:07]sum+1 = 100017 [19:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 316 26.10.2024 19:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156415 ФПД: 277255699586598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193409&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156415&fm=277255699586598&tin=02508201610067®Number=0000000000091693&sum=100000 [19:34:08]StoreToDocumentArchive [19:34:08]shift 536 fd 156415 [19:34:08]save to /storage/0536/doc_00156415 [19:34:08]save last doc name /storage/0536/doc_00156415 to /storage/kkm_last_doc_name [19:34:08]save OK [19:34:08]Clear old archive folders... [19:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:08]tlvbuf is B6F5B050 [19:34:08]SAM_PROTO_ClearQueue [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 09 00 00 [19:34:08]Write to MH i2c: E2 08 00 64 26 80 09 00 00 00 00 00 00 FC [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 64 26 00 90 00 FE [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_ClearQueue done [19:34:08]KKMCreateOFDPacket [19:34:08]OFDProtocolAddRootSTLVToBuf [19:34:08]FM_MakeSignedData [19:34:08]FM_MakeSignedData [19:34:08]SAM_PROTO_SignData [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 01 02 [19:34:08]Write to MH i2c: E2 08 00 65 26 80 0D 01 02 00 00 00 00 04 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 65 26 00 90 00 FF [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=255 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 31 44 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 62 02 00 35 04 06 00 FC [19:34:08]Write to MH i2c: E2 02 01 66 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 31 44 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 62 02 00 35 04 06 00 FC 00 00 41 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 66 26 00 90 00 00 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=10 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 02 02 05 29 9F 7C 5E 26 [19:34:08]Write to MH i2c: E2 0D 00 67 26 80 0D 02 02 05 00 29 9F 7C 5E 26 00 00 D9 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 67 26 00 90 00 01 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 03 02 [19:34:08]Write to MH i2c: E2 08 00 68 26 80 0D 03 02 00 00 00 00 09 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0B 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0B 00 68 26 00 B0 AD 38 D0 8E 8E 43 53 90 00 21 [19:34:09]RAPDU: B0 AD 38 D0 8E 8E 43 53 90 00 [19:34:09]wFMCommunicate OK [19:34:09]SAM_PROTO_SignData done [19:34:09]FM_MakeSignedData done [19:34:09]CreateOFDProtocolMessage [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 11 00 00 [19:34:09]Write to MH i2c: E2 08 00 69 26 80 11 00 00 00 00 00 00 09 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 69 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [19:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:34:09]wFMCommunicate OK [19:34:09]CreateOFDProtocolMessage done [19:34:09]OFDSenderStorePacket 156415 [19:34:09]StoreOFDPacket docnum=156415 [19:34:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C EB 07 01 C1 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 31 44 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 62 02 00 35 04 06 00 FC 29 9F 7C 5E 26 B0 AD 38 D0 8E 8E 43 53 [19:34:09]CheckFolder [19:34:09]dirname=/storage/ofd_packets [19:34:09]CheckFolder done [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00156415 [19:34:09]NVStorageSaveData ofd_packets/00156415 [19:34:09]File name is /storage/ofd_packets/00156415 [19:34:09]Write 301 bytes [19:34:09]NVStorageSaveData done [19:34:09]OFDSenderStorePacket done [19:34:09]KKMCreateOFDPacket done [19:34:09]NVStorageSaveData kkm_last_timestamp [19:34:09]File name is /storage/kkm_last_timestamp [19:34:09]Write 4 bytes [19:34:09]NVStorageSaveData done [19:34:09]ExternCall_PrintAddStr [19:34:09]wPrintStart [19:34:09]Write to MH i2c: 01 00 00 6A 26 90 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 6A 26 00 00 00 00 00 FF 0F A5 [19:34:09]RasterBufferAndPrint [19:34:09]line Счет N : (1)99230 [19:34:09]line ИНН: 02508201610067 [19:34:09]line Контрольно-Кассовый Чек [19:34:09]line ПРОДАЖА [19:34:09]line ТРК (МРК, ГНК) : 11 [19:34:09]line Товар: 2710124130 [19:34:09]line Аи-92-К-5 [19:34:09]line 14.950 * 66.90 [19:34:09]line = 1000.16 [19:34:09]line НДС 12% НСП 1% [19:34:09]line > о реализуемом товаре [19:34:09]line ОКРУГЛЕНИЕ: -0.16 [19:34:09]line ИТОГО: 1000.00 [19:34:09]line Внесено: 1000.00 [19:34:09]line СДАЧА: 0.00 [19:34:09]line НСП 1% : 8.85 [19:34:09]line НДС 12% : 106.21 [19:34:09]line Наличными: 1000.00 [19:34:09]line Безнал.: 0.00 [19:34:09]line Место: АЗС № 143 "Партнер Нефть" [19:34:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:34:09]line СНО: Общий режим [19:34:09]line Чек 316 26.10.2024 19:34 [19:34:09]line Смена: 536 ФФД: 1.0 [19:34:09]line ЗНМ: 0300000096 [19:34:09]line РНМ: 0000000000091693 [19:34:09]line Версия ККМ: 001 [19:34:09]line ФМ: 0000000000871792 [19:34:09]line ФД: 156415 [19:34:09]line ФПД: 277255699586598 [19:34:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193409&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156415&fm=277255699586598&tin=02508201610067®Number=0000000000091693&sum=100000 [19:34:09]OFD Sender: Processing packet 156415 [packets to send 31, broken 30] [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00156415 [19:34:09]OFD Sender: To server: pG, [19:34:09]CommunicateWithHost lk.salyk.kg:30040 [19:34:09]ConnectInit lk.salyk.kg [19:34:09]written 0, free lines is 4095 [19:34:09]Connected sock=10 [19:34:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C EB 07 01 C1 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 31 44 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 62 02 00 35 04 06 00 FC 29 9F 7C 5E 26 B0 AD 38 D0 8E 8E 43 53 [19:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D6 DE 47 00 8B 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 31 37 39 32 10 04 04 00 FF 62 02 00 F4 03 04 00 A3 E9 1C 67 B6 04 01 00 00 47 7C A2 9B 4B 3D 6A 51 [19:34:09]CommunicateWithHost err = 0 [19:34:09]CheckOFDResponse [19:34:09]1017 (14) - 77093643461234 [19:34:09]1041 (16) - 0000000000871792 [19:34:09]1040 (4) - 156415 [19:34:09]1012 (4) - 26.10.2024 13:07 [19:34:09]1206 (1) - 0 [19:34:09]OFD Sender: Remove packet 156415 [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00156415 [19:34:09]NVStorageDeleteData [19:34:09]Write to MH i2c: 01 00 00 95 26 BB [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 E4 0C B2 [19:34:09]RasterBufferAndPrint [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]written 0, free lines is 3306 [19:34:09]process_action close_receipt done [19:34:09]requested_data is exist [19:34:09]produce_requested_data [19:34:09]requested_item fm.sn is exist - process it [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 11 00 00 [19:34:09]Write to MH i2c: E2 08 00 9C 26 80 11 00 00 00 00 00 00 3C [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 9C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 91 [19:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:34:09]wFMCommunicate OK [19:34:09]requested_item fd.num is exist - process it [19:34:09]SAM_PROTO_GetFieldsCounters [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 13 00 00 [19:34:09]Write to MH i2c: E2 08 00 9D 26 80 13 00 00 00 00 00 00 3F [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:10]Read from MH i2c: E2 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 62 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 62 00 9D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FF 62 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:10]wFMCommunicate OK [19:34:10]SAM_PROTO_GetFieldsCounters done [19:34:10]requested_item shift.num is exist - process it [19:34:10]requested_item shift.opened is exist - process it [19:34:10]req_shift_opened [19:34:10]FM_GetShiftState [19:34:10]SAM_PROTO_GetShiftState [19:34:10]wFMCommunicate request_size=4 [19:34:10]MH_SAM_APDU [19:34:10]CAPDU: 80 13 01 00 [19:34:10]Write to MH i2c: E2 08 00 9E 26 80 13 01 00 00 00 00 00 41 [19:34:10]Write i2c OK [19:34:10]MH_I2C_Read... [19:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:10]Read from MH i2c: E2 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 0E 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 0E 00 9E 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 76 [19:34:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:34:10]wFMCommunicate OK [19:34:10]SAM_PROTO_GetShiftState done [19:34:10]FM_GetShiftState done [19:34:10]req_shift_opened done [19:34:10]requested_item shift.open_date is exist - process it [19:34:10]req_shift_open_date [19:34:10]req_shift_open_date done [19:34:10]produce_requested_data done [19:34:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156415,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:34:10]process_action_free close_receipt [19:34:10]json_value_free [19:34:10]json_value_free done [19:34:10]process_json_proto returns [19:34:10]Send response to host [19:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156415,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:34:10]free response buf [19:34:10]execute_script done [19:34:10]execute_script returns [19:34:10]free content buf [19:34:10]Sock 8.Close socket [19:34:10]Sock 8.Thread stoped [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:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:33]accept exits with 9 [19:38:33]New connection [19:38:33]New thread 3066834276 created [19:38:33]Thread 3066977636 joined [19:38:33]Waiting for new connection... [19:38:33] Sock 9.Parse request [19:38:33]Sock 9.Check first char [19:38:33]Sock 9.First char is OK [19:38:33]request: POST /json_proto HTTP/1.0 [19:38:33]Method: POST [19:38:33]URL: /json_proto [19:38:33]Method is POST - this is cgi request [19:38:33]url: /json_proto [19:38:33]query_string will be loaded in cgi processing [19:38:33]execute_cgi json_proto POST (null) [19:38:33]execute_cgi path=json_proto method=POST [19:38:33]POST find Content-Length [19:38:33]Host: 172.17.63.3:8080 [19:38:33]Content-Length: 676 [19:38:33]Content-Type: application/json [19:38:33] [19:38:33]POST finish read [19:38:33]Found Content-Length = 676 [19:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:33]execute_script... [19:38:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:33]POST & json_proto [19:38:33]process_json_proto [19:38:33]json parsed OK: [19:38:33]protocol is kg_v1.0 [19:38:33]action value=close_receipt [19:38:33]process_action close_receipt [19:38:33]cmd_close_receipt [19:38:33]MH_GetDate [19:38:33]Write to MH i2c: F0 00 00 9F 26 B4 [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: F0 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: F0 09 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: F0 09 00 9F 26 00 3B 45 1D 67 50 D1 6C 64 B2 [19:38:33]GetLastDocTimeStamp 1729971249 [19:38:33]current date 1729971515 [19:38:33]FM_GetShiftState [19:38:33]SAM_PROTO_GetShiftState [19:38:33]wFMCommunicate request_size=4 [19:38:33]MH_SAM_APDU [19:38:33]CAPDU: 80 13 01 00 [19:38:33]Write to MH i2c: E2 08 00 A0 26 80 13 01 00 00 00 00 00 43 [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 0E 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 0E 00 A0 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 78 [19:38:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:38:33]wFMCommunicate OK [19:38:33]SAM_PROTO_GetShiftState done [19:38:33]FM_GetShiftState done [19:38:33]opened in 1729902702 [19:38:33]opened+sec_in_day 1729989102 [19:38:33]quantity*price = 13045 [19:38:33]sum+1 = 13047 [19:38:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 317 26.10.2024 19:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156416 ФПД: 51407690636094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193835&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156416&fm=51407690636094&tin=02508201610067®Number=0000000000091693&sum=13000 [19:38:34]StoreToDocumentArchive [19:38:34]shift 536 fd 156416 [19:38:34]save to /storage/0536/doc_00156416 [19:38:34]save last doc name /storage/0536/doc_00156416 to /storage/kkm_last_doc_name [19:38:34]save OK [19:38:34]Clear old archive folders... [19:38:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:34]tlvbuf is 0171E380 [19:38:34]SAM_PROTO_ClearQueue [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 09 00 00 [19:38:34]Write to MH i2c: E2 08 00 AD 26 80 09 00 00 00 00 00 00 45 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 AD 26 00 90 00 47 [19:38:34]RAPDU: 90 00 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_ClearQueue done [19:38:34]KKMCreateOFDPacket [19:38:34]OFDProtocolAddRootSTLVToBuf [19:38:34]FM_MakeSignedData [19:38:34]FM_MakeSignedData [19:38:34]SAM_PROTO_SignData [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 0D 01 02 [19:38:34]Write to MH i2c: E2 08 00 AE 26 80 0D 01 02 00 00 00 00 4D [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 AE 26 00 90 00 48 [19:38:34]RAPDU: 90 00 [19:38:34]wFMCommunicate OK [19:38:34]wFMCommunicate request_size=255 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 3D 01 00 00 F4 03 04 00 3B 45 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 63 02 00 35 04 06 00 2E [19:38:34]Write to MH i2c: E2 02 01 AF 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 3D 01 00 00 F4 03 04 00 3B 45 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 63 02 00 35 04 06 00 2E 00 00 29 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 AF 26 00 90 00 49 [19:38:35]RAPDU: 90 00 [19:38:35]wFMCommunicate OK [19:38:35]wFMCommunicate request_size=10 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 0D 02 02 05 C1 49 23 9B 3E [19:38:35]Write to MH i2c: E2 0D 00 B0 26 80 0D 02 02 05 00 C1 49 23 9B 3E 00 00 60 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 B0 26 00 90 00 4A [19:38:35]RAPDU: 90 00 [19:38:35]wFMCommunicate OK [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 0D 03 02 [19:38:35]Write to MH i2c: E2 08 00 B1 26 80 0D 03 02 00 00 00 00 52 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0B 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0B 00 B1 26 00 35 AE 8D F1 B7 4B 83 49 90 00 82 [19:38:35]RAPDU: 35 AE 8D F1 B7 4B 83 49 90 00 [19:38:35]wFMCommunicate OK [19:38:35]SAM_PROTO_SignData done [19:38:35]FM_MakeSignedData done [19:38:35]CreateOFDProtocolMessage [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 11 00 00 [19:38:35]Write to MH i2c: E2 08 00 B2 26 80 11 00 00 00 00 00 00 52 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 17 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 17 00 B2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [19:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:38:35]wFMCommunicate OK [19:38:35]CreateOFDProtocolMessage done [19:38:35]OFDSenderStorePacket 156416 [19:38:35]StoreOFDPacket docnum=156416 [19:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB D4 07 01 F2 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 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 3D 01 00 00 F4 03 04 00 3B 45 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 63 02 00 35 04 06 00 2E C1 49 23 9B 3E 35 AE 8D F1 B7 4B 83 49 [19:38:35]CheckFolder [19:38:35]dirname=/storage/ofd_packets [19:38:35]CheckFolder done [19:38:35]ProducePacketName [19:38:35]name=ofd_packets/00156416 [19:38:35]NVStorageSaveData ofd_packets/00156416 [19:38:35]File name is /storage/ofd_packets/00156416 [19:38:35]Write 301 bytes [19:38:35]NVStorageSaveData done [19:38:35]OFDSenderStorePacket done [19:38:35]KKMCreateOFDPacket done [19:38:35]NVStorageSaveData kkm_last_timestamp [19:38:35]File name is /storage/kkm_last_timestamp [19:38:35]Write 4 bytes [19:38:35]NVStorageSaveData done [19:38:35]ExternCall_PrintAddStr [19:38:35]wPrintStart [19:38:35]Write to MH i2c: 01 00 00 B3 26 D9 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 B3 26 00 00 00 00 00 FF 0F EE [19:38:35]RasterBufferAndPrint [19:38:35]line Счет N : (1)99231 [19:38:35]line ИНН: 02508201610067 [19:38:35]line Контрольно-Кассовый Чек [19:38:35]line ПРОДАЖА [19:38:35]line ТРК (МРК, ГНК) : 21 [19:38:35]line Товар: 2710124130 [19:38:35]line Аи-92-К-5 [19:38:35]line 1.950 * 66.90 [19:38:35]line = 130.46 [19:38:35]line НДС 12% НСП 1% [19:38:35]line > о реализуемом товаре [19:38:35]line ОКРУГЛЕНИЕ: -0.46 [19:38:35]line ИТОГО: 130.00 [19:38:35]line Внесено: 130.00 [19:38:35]line СДАЧА: 0.00 [19:38:35]line НСП 1% : 1.15 [19:38:35]line НДС 12% : 13.85 [19:38:35]line Наличными: 130.00 [19:38:35]line Безнал.: 0.00 [19:38:35]line Место: АЗС № 143 "Партнер Нефть" [19:38:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:38:35]line СНО: Общий режим [19:38:35]line Чек 317 26.10.2024 19:38 [19:38:35]line Смена: 536 ФФД: 1.0 [19:38:35]line ЗНМ: 0300000096 [19:38:35]line РНМ: 0000000000091693 [19:38:35]line Версия ККМ: 001 [19:38:35]line ФМ: 0000000000871792 [19:38:35]line ФД: 156416 [19:38:35]line ФПД: 51407690636094 [19:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193835&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156416&fm=51407690636094&tin=02508201610067®Number=0000000000091693&sum=13000 [19:38:35]OFD Sender: Processing packet 156416 [packets to send 31, broken 30] [19:38:35]ProducePacketName [19:38:35]name=ofd_packets/00156416 [19:38:35]OFD Sender: To server: pG, [19:38:35]CommunicateWithHost lk.salyk.kg:30040 [19:38:35]ConnectInit lk.salyk.kg [19:38:35]written 0, free lines is 4095 [19:38:35]Connected sock=10 [19:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB D4 07 01 F2 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 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 3D 01 00 00 F4 03 04 00 3B 45 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 63 02 00 35 04 06 00 2E C1 49 23 9B 3E 35 AE 8D F1 B7 4B 83 49 [19:38:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F0 DF 47 00 7F AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 63 02 00 F4 03 04 00 AD EA 1C 67 B6 04 01 00 00 80 10 A3 73 57 8A D5 DC [19:38:35]CommunicateWithHost err = 0 [19:38:35]CheckOFDResponse [19:38:35]1017 (14) - 77093643461234 [19:38:35]1041 (16) - 0000000000871792 [19:38:35]1040 (4) - 156416 [19:38:35]1012 (4) - 26.10.2024 13:12 [19:38:35]1206 (1) - 0 [19:38:35]OFD Sender: Remove packet 156416 [19:38:35]ProducePacketName [19:38:35]name=ofd_packets/00156416 [19:38:35]NVStorageDeleteData [19:38:35]Write to MH i2c: 01 00 00 DE 26 04 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 D7 0C EE [19:38:35]RasterBufferAndPrint [19:38:35]line [19:38:35]line [19:38:35]line [19:38:35]line [19:38:35]line [19:38:35]written 0, free lines is 3294 [19:38:35]process_action close_receipt done [19:38:35]requested_data is exist [19:38:35]produce_requested_data [19:38:35]requested_item fm.sn is exist - process it [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 11 00 00 [19:38:35]Write to MH i2c: E2 08 00 E5 26 80 11 00 00 00 00 00 00 85 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 17 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 17 00 E5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DA [19:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:38:36]wFMCommunicate OK [19:38:36]requested_item fd.num is exist - process it [19:38:36]SAM_PROTO_GetFieldsCounters [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 13 00 00 [19:38:36]Write to MH i2c: E2 08 00 E6 26 80 13 00 00 00 00 00 00 88 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 62 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 62 00 E6 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 00 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:38:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 00 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:36]wFMCommunicate OK [19:38:36]SAM_PROTO_GetFieldsCounters done [19:38:36]requested_item shift.num is exist - process it [19:38:36]requested_item shift.opened is exist - process it [19:38:36]req_shift_opened [19:38:36]FM_GetShiftState [19:38:36]SAM_PROTO_GetShiftState [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 13 01 00 [19:38:36]Write to MH i2c: E2 08 00 E7 26 80 13 01 00 00 00 00 00 8A [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 0E 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 0E 00 E7 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BF [19:38:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:38:36]wFMCommunicate OK [19:38:36]SAM_PROTO_GetShiftState done [19:38:36]FM_GetShiftState done [19:38:36]req_shift_opened done [19:38:36]requested_item shift.open_date is exist - process it [19:38:36]req_shift_open_date [19:38:36]req_shift_open_date done [19:38:36]produce_requested_data done [19:38:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156416,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:38:36]process_action_free close_receipt [19:38:36]json_value_free [19:38:36]json_value_free done [19:38:36]process_json_proto returns [19:38:36]Send response to host [19:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156416,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:38:36]free response buf [19:38:36]execute_script done [19:38:36]execute_script returns [19:38:36]free content buf [19:38:36]Sock 9.Close socket [19:38:36]Sock 9.Thread stoped [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]accept exits with 8 [19:43:41]New connection [19:43:41]New thread 3066977636 created [19:43:41]Thread 3066834276 joined [19:43:41]Waiting for new connection... [19:43:41] Sock 8.Parse request [19:43:41]Sock 8.Check first char [19:43:41]Sock 8.First char is OK [19:43:41]request: POST /json_proto HTTP/1.0 [19:43:41]Method: POST [19:43:41]URL: /json_proto [19:43:41]Method is POST - this is cgi request [19:43:41]url: /json_proto [19:43:41]query_string will be loaded in cgi processing [19:43:41]execute_cgi json_proto POST (null) [19:43:41]execute_cgi path=json_proto method=POST [19:43:41]POST find Content-Length [19:43:41]Host: 172.17.63.3:8080 [19:43:41]Content-Length: 676 [19:43:41]Content-Type: application/json [19:43:41] [19:43:41]POST finish read [19:43:41]Found Content-Length = 676 [19:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:41]execute_script... [19:43:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:41]POST & json_proto [19:43:41]process_json_proto [19:43:41]json parsed OK: [19:43:41]protocol is kg_v1.0 [19:43:41]action value=close_receipt [19:43:41]process_action close_receipt [19:43:41]cmd_close_receipt [19:43:41]MH_GetDate [19:43:41]Write to MH i2c: F0 00 00 E8 26 FD [19:43:41]Write i2c OK [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: F0 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: F0 09 00 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: F0 09 00 E8 26 00 6F 46 1D 67 50 D1 6C 64 30 [19:43:41]GetLastDocTimeStamp 1729971515 [19:43:41]current date 1729971823 [19:43:41]FM_GetShiftState [19:43:41]SAM_PROTO_GetShiftState [19:43:41]wFMCommunicate request_size=4 [19:43:41]MH_SAM_APDU [19:43:41]CAPDU: 80 13 01 00 [19:43:41]Write to MH i2c: E2 08 00 E9 26 80 13 01 00 00 00 00 00 8C [19:43:41]Write i2c OK [19:43:41]MH_I2C_Read... [19:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:41]Read from MH i2c: E2 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 0E 00 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 0E 00 E9 26 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 C1 [19:43:41]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:43:41]wFMCommunicate OK [19:43:41]SAM_PROTO_GetShiftState done [19:43:41]FM_GetShiftState done [19:43:41]opened in 1729902702 [19:43:41]opened+sec_in_day 1729989102 [19:43:41]quantity*price = 50041 [19:43:41]sum+1 = 50042 [19:43:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 318 26.10.2024 19:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156417 ФПД: 191114323215837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194343&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156417&fm=191114323215837&tin=02508201610067®Number=0000000000091693&sum=50000 [19:43:42]StoreToDocumentArchive [19:43:42]shift 536 fd 156417 [19:43:42]save to /storage/0536/doc_00156417 [19:43:42]save last doc name /storage/0536/doc_00156417 to /storage/kkm_last_doc_name [19:43:42]save OK [19:43:42]Clear old archive folders... [19:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:42]tlvbuf is 016E9820 [19:43:42]SAM_PROTO_ClearQueue [19:43:42]wFMCommunicate request_size=4 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 09 00 00 [19:43:42]Write to MH i2c: E2 08 00 F6 26 80 09 00 00 00 00 00 00 8E [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 03 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 03 00 F6 26 00 90 00 90 [19:43:42]RAPDU: 90 00 [19:43:42]wFMCommunicate OK [19:43:42]SAM_PROTO_ClearQueue done [19:43:42]KKMCreateOFDPacket [19:43:42]OFDProtocolAddRootSTLVToBuf [19:43:42]FM_MakeSignedData [19:43:42]FM_MakeSignedData [19:43:42]SAM_PROTO_SignData [19:43:42]wFMCommunicate request_size=4 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 0D 01 02 [19:43:42]Write to MH i2c: E2 08 00 F7 26 80 0D 01 02 00 00 00 00 96 [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 03 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 03 00 F7 26 00 90 00 91 [19:43:42]RAPDU: 90 00 [19:43:42]wFMCommunicate OK [19:43:42]wFMCommunicate request_size=255 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 6F 46 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 63 02 00 35 04 06 00 AD [19:43:42]Write to MH i2c: E2 02 01 F8 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 6F 46 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 63 02 00 35 04 06 00 AD 00 00 CF [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 03 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 03 00 F8 26 00 90 00 92 [19:43:42]RAPDU: 90 00 [19:43:42]wFMCommunicate OK [19:43:42]wFMCommunicate request_size=10 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 0D 02 02 05 D1 45 58 C5 DD [19:43:42]Write to MH i2c: E2 0D 00 F9 26 80 0D 02 02 05 00 D1 45 58 C5 DD 00 00 B3 [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 03 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 03 00 F9 26 00 90 00 93 [19:43:42]RAPDU: 90 00 [19:43:42]wFMCommunicate OK [19:43:42]wFMCommunicate request_size=4 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 0D 03 02 [19:43:42]Write to MH i2c: E2 08 00 FA 26 80 0D 03 02 00 00 00 00 9B [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 0B 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 0B 00 FA 26 00 9E 1D F8 38 C7 24 50 13 90 00 D5 [19:43:42]RAPDU: 9E 1D F8 38 C7 24 50 13 90 00 [19:43:42]wFMCommunicate OK [19:43:42]SAM_PROTO_SignData done [19:43:42]FM_MakeSignedData done [19:43:42]CreateOFDProtocolMessage [19:43:42]wFMCommunicate request_size=4 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 11 00 00 [19:43:42]Write to MH i2c: E2 08 00 FB 26 80 11 00 00 00 00 00 00 9B [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 17 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 17 00 FB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F0 [19:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:43:42]wFMCommunicate OK [19:43:42]CreateOFDProtocolMessage done [19:43:42]OFDSenderStorePacket 156417 [19:43:42]StoreOFDPacket docnum=156417 [19:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D6 B1 07 01 6E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 6F 46 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 63 02 00 35 04 06 00 AD D1 45 58 C5 DD 9E 1D F8 38 C7 24 50 13 [19:43:42]CheckFolder [19:43:42]dirname=/storage/ofd_packets [19:43:42]CheckFolder done [19:43:42]ProducePacketName [19:43:42]name=ofd_packets/00156417 [19:43:42]NVStorageSaveData ofd_packets/00156417 [19:43:42]File name is /storage/ofd_packets/00156417 [19:43:42]Write 301 bytes [19:43:42]NVStorageSaveData done [19:43:42]OFDSenderStorePacket done [19:43:42]KKMCreateOFDPacket done [19:43:42]NVStorageSaveData kkm_last_timestamp [19:43:42]File name is /storage/kkm_last_timestamp [19:43:42]Write 4 bytes [19:43:42]NVStorageSaveData done [19:43:43]ExternCall_PrintAddStr [19:43:43]wPrintStart [19:43:43]Write to MH i2c: 01 00 00 FC 26 22 [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 07 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 07 00 FC 26 00 00 00 00 00 FF 0F 37 [19:43:43]RasterBufferAndPrint [19:43:43]line Счет N : (1)99232 [19:43:43]line ИНН: 02508201610067 [19:43:43]line Контрольно-Кассовый Чек [19:43:43]line ПРОДАЖА [19:43:43]line ТРК (МРК, ГНК) : 31 [19:43:43]line Товар: 2710124130 [19:43:43]line Аи-92-К-5 [19:43:43]line 7.480 * 66.90 [19:43:43]line = 500.41 [19:43:43]line НДС 12% НСП 1% [19:43:43]line > о реализуемом товаре [19:43:43]line ОКРУГЛЕНИЕ: -0.41 [19:43:43]line ИТОГО: 500.00 [19:43:43]line Внесено: 500.00 [19:43:43]line СДАЧА: 0.00 [19:43:43]line НСП 1% : 4.43 [19:43:43]line НДС 12% : 53.14 [19:43:43]line Наличными: 500.00 [19:43:43]line Безнал.: 0.00 [19:43:43]line Место: АЗС № 143 "Партнер Нефть" [19:43:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:43:43]line СНО: Общий режим [19:43:43]line Чек 318 26.10.2024 19:43 [19:43:43]line Смена: 536 ФФД: 1.0 [19:43:43]line ЗНМ: 0300000096 [19:43:43]line РНМ: 0000000000091693 [19:43:43]line Версия ККМ: 001 [19:43:43]line ФМ: 0000000000871792 [19:43:43]line ФД: 156417 [19:43:43]line ФПД: 191114323215837 [19:43:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194343&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156417&fm=191114323215837&tin=02508201610067®Number=0000000000091693&sum=50000 [19:43:43]OFD Sender: Processing packet 156417 [packets to send 31, broken 30] [19:43:43]ProducePacketName [19:43:43]name=ofd_packets/00156417 [19:43:43]OFD Sender: To server: pG, [19:43:43]CommunicateWithHost lk.salyk.kg:30040 [19:43:43]ConnectInit lk.salyk.kg [19:43:43]written 0, free lines is 4095 [19:43:43]Connected sock=10 [19:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D6 B1 07 01 6E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 6F 46 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 63 02 00 35 04 06 00 AD D1 45 58 C5 DD 9E 1D F8 38 C7 24 50 13 [19:43:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AB 81 47 00 2E 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 31 37 39 32 10 04 04 00 01 63 02 00 F4 03 04 00 E0 EB 1C 67 B6 04 01 00 00 79 6B 3F F5 BC 61 AD 30 [19:43:43]CommunicateWithHost err = 0 [19:43:43]CheckOFDResponse [19:43:43]1017 (14) - 77093643461234 [19:43:43]1041 (16) - 0000000000871792 [19:43:43]1040 (4) - 156417 [19:43:43]1012 (4) - 26.10.2024 13:17 [19:43:43]1206 (1) - 0 [19:43:43]OFD Sender: Remove packet 156417 [19:43:43]ProducePacketName [19:43:43]name=ofd_packets/00156417 [19:43:43]NVStorageDeleteData [19:43:43]Write to MH i2c: 01 00 00 27 27 4E [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 07 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 07 00 27 27 00 00 00 00 00 DA 0C 3B [19:43:43]RasterBufferAndPrint [19:43:43]line [19:43:43]line [19:43:43]line [19:43:43]line [19:43:43]line [19:43:43]written 0, free lines is 3297 [19:43:43]process_action close_receipt done [19:43:43]requested_data is exist [19:43:43]produce_requested_data [19:43:43]requested_item fm.sn is exist - process it [19:43:43]wFMCommunicate request_size=4 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 11 00 00 [19:43:43]Write to MH i2c: E2 08 00 2E 27 80 11 00 00 00 00 00 00 CF [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 17 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 17 00 2E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [19:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:43:43]wFMCommunicate OK [19:43:43]requested_item fd.num is exist - process it [19:43:43]SAM_PROTO_GetFieldsCounters [19:43:43]wFMCommunicate request_size=4 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 13 00 00 [19:43:43]Write to MH i2c: E2 08 00 2F 27 80 13 00 00 00 00 00 00 D2 [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 62 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 62 00 2F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 01 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [19:43: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 01 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:44]wFMCommunicate OK [19:43:44]SAM_PROTO_GetFieldsCounters done [19:43:44]requested_item shift.num is exist - process it [19:43:44]requested_item shift.opened is exist - process it [19:43:44]req_shift_opened [19:43:44]FM_GetShiftState [19:43:44]SAM_PROTO_GetShiftState [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 13 01 00 [19:43:44]Write to MH i2c: E2 08 00 30 27 80 13 01 00 00 00 00 00 D4 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0E 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0E 00 30 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 09 [19:43:44]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:43:44]wFMCommunicate OK [19:43:44]SAM_PROTO_GetShiftState done [19:43:44]FM_GetShiftState done [19:43:44]req_shift_opened done [19:43:44]requested_item shift.open_date is exist - process it [19:43:44]req_shift_open_date [19:43:44]req_shift_open_date done [19:43:44]produce_requested_data done [19:43:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156417,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:43:44]process_action_free close_receipt [19:43:44]json_value_free [19:43:44]json_value_free done [19:43:44]process_json_proto returns [19:43:44]Send response to host [19:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156417,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:43:44]free response buf [19:43:44]execute_script done [19:43:44]execute_script returns [19:43:44]free content buf [19:43:44]Sock 8.Close socket [19:43:44]Sock 8.Thread stoped [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:36]accept exits with 9 [19:46:36]New connection [19:46:36]New thread 3066834276 created [19:46:36]Thread 3066977636 joined [19:46:36]Waiting for new connection... [19:46:36] Sock 9.Parse request [19:46:36]Sock 9.Check first char [19:46:36]Sock 9.First char is OK [19:46:36]request: POST /json_proto HTTP/1.0 [19:46:36]Method: POST [19:46:36]URL: /json_proto [19:46:36]Method is POST - this is cgi request [19:46:36]url: /json_proto [19:46:36]query_string will be loaded in cgi processing [19:46:36]execute_cgi json_proto POST (null) [19:46:36]execute_cgi path=json_proto method=POST [19:46:36]POST find Content-Length [19:46:36]Host: 172.17.63.3:8080 [19:46:36]Content-Length: 765 [19:46:36]Content-Type: application/json [19:46:36] [19:46:36]POST finish read [19:46:36]Found Content-Length = 765 [19:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:36]execute_script... [19:46:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:36]POST & json_proto [19:46:36]process_json_proto [19:46:36]json parsed OK: [19:46:36]protocol is kg_v1.0 [19:46:36]action value=close_receipt [19:46:36]process_action close_receipt [19:46:36]cmd_close_receipt [19:46:36]MH_GetDate [19:46:36]Write to MH i2c: F0 00 00 31 27 47 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: F0 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: F0 09 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: F0 09 00 31 27 00 1D 47 1D 67 50 D1 6C 64 29 [19:46:36]GetLastDocTimeStamp 1729971823 [19:46:36]current date 1729971997 [19:46:36]FM_GetShiftState [19:46:36]SAM_PROTO_GetShiftState [19:46:36]wFMCommunicate request_size=4 [19:46:36]MH_SAM_APDU [19:46:36]CAPDU: 80 13 01 00 [19:46:36]Write to MH i2c: E2 08 00 32 27 80 13 01 00 00 00 00 00 D6 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:36]Read from MH i2c: E2 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 0E 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 0E 00 32 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 0B [19:46:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:46:36]wFMCommunicate OK [19:46:36]SAM_PROTO_GetShiftState done [19:46:36]FM_GetShiftState done [19:46:36]opened in 1729902702 [19:46:36]opened+sec_in_day 1729989102 [19:46:36]quantity*price = 60009 [19:46:36]sum+1 = 60010 [19:46:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 319 26.10.2024 19:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156418 ФПД: 110330005148754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194638&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156418&fm=110330005148754&tin=02508201610067®Number=0000000000091693&sum=60009 [19:46:37]StoreToDocumentArchive [19:46:37]shift 536 fd 156418 [19:46:37]save to /storage/0536/doc_00156418 [19:46:37]save last doc name /storage/0536/doc_00156418 to /storage/kkm_last_doc_name [19:46:37]save OK [19:46:37]Clear old archive folders... [19:46:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:37]tlvbuf is 01711C60 [19:46:37]SAM_PROTO_ClearQueue [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 09 00 00 [19:46:37]Write to MH i2c: E2 08 00 3F 27 80 09 00 00 00 00 00 00 D8 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [19:46:37]RAPDU: 90 00 [19:46:37]wFMCommunicate OK [19:46:37]SAM_PROTO_ClearQueue done [19:46:37]KKMCreateOFDPacket [19:46:37]OFDProtocolAddRootSTLVToBuf [19:46:37]FM_MakeSignedData [19:46:37]FM_MakeSignedData [19:46:37]SAM_PROTO_SignData [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 0D 01 02 [19:46:37]Write to MH i2c: E2 08 00 40 27 80 0D 01 02 00 00 00 00 E0 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 40 27 00 90 00 DB [19:46:37]RAPDU: 90 00 [19:46:37]wFMCommunicate OK [19:46:37]wFMCommunicate request_size=255 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 1E 47 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 63 02 00 35 04 06 00 64 [19:46:37]Write to MH i2c: E2 02 01 41 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 1E 47 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 63 02 00 35 04 06 00 64 00 00 71 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 41 27 00 90 00 DC [19:46:37]RAPDU: 90 00 [19:46:37]wFMCommunicate OK [19:46:37]wFMCommunicate request_size=10 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 0D 02 02 05 58 34 C3 D4 52 [19:46:37]Write to MH i2c: E2 0D 00 42 27 80 0D 02 02 05 00 58 34 C3 D4 52 00 00 62 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 42 27 00 90 00 DD [19:46:37]RAPDU: 90 00 [19:46:37]wFMCommunicate OK [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 0D 03 02 [19:46:37]Write to MH i2c: E2 08 00 43 27 80 0D 03 02 00 00 00 00 E5 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 0B 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 0B 00 43 27 00 ED 32 E1 00 81 CA FE 3B 90 00 6A [19:46:37]RAPDU: ED 32 E1 00 81 CA FE 3B 90 00 [19:46:37]wFMCommunicate OK [19:46:37]SAM_PROTO_SignData done [19:46:37]FM_MakeSignedData done [19:46:37]CreateOFDProtocolMessage [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 11 00 00 [19:46:37]Write to MH i2c: E2 08 00 44 27 80 11 00 00 00 00 00 00 E5 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 17 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 17 00 44 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [19:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:46:37]wFMCommunicate OK [19:46:37]CreateOFDProtocolMessage done [19:46:37]OFDSenderStorePacket 156418 [19:46:37]StoreOFDPacket docnum=156418 [19:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8E C7 07 01 6C E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 1E 47 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 63 02 00 35 04 06 00 64 58 34 C3 D4 52 ED 32 E1 00 81 CA FE 3B [19:46:37]CheckFolder [19:46:37]dirname=/storage/ofd_packets [19:46:37]CheckFolder done [19:46:37]ProducePacketName [19:46:37]name=ofd_packets/00156418 [19:46:37]NVStorageSaveData ofd_packets/00156418 [19:46:37]File name is /storage/ofd_packets/00156418 [19:46:37]Write 301 bytes [19:46:37]NVStorageSaveData done [19:46:37]OFDSenderStorePacket done [19:46:37]KKMCreateOFDPacket done [19:46:37]NVStorageSaveData kkm_last_timestamp [19:46:37]File name is /storage/kkm_last_timestamp [19:46:37]Write 4 bytes [19:46:37]NVStorageSaveData done [19:46:37]ExternCall_PrintAddStr [19:46:37]wPrintStart [19:46:37]Write to MH i2c: 01 00 00 45 27 6C [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 07 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 07 00 45 27 00 00 00 00 00 FF 0F 81 [19:46:37]RasterBufferAndPrint [19:46:37]line Счет N : (1)99233 [19:46:37]line ИНН: 02508201610067 [19:46:37]line Контрольно-Кассовый Чек [19:46:37]line ПРОДАЖА [19:46:37]line ТРК (МРК, ГНК) : 31 [19:46:37]line Товар: 2710124130 [19:46:37]line Аи-92-К-5 [19:46:37]line 8.970 * 66.90 [19:46:37]line = 600.09 [19:46:37]line НДС 12% НСП 1% [19:46:37]line > о реализуемом товаре [19:46:37]line ИТОГО: 600.09 [19:46:37]line НСП 1% : 5.31 [19:46:37]line НДС 12% : 63.73 [19:46:37]line Наличными: 0.00 [19:46:37]line Безнал.: 600.09 [19:46:37]line Место: АЗС № 143 "Партнер Нефть" [19:46:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:46:37]line СНО: Общий режим [19:46:37]line Чек 319 26.10.2024 19:46 [19:46:37]line Смена: 536 ФФД: 1.0 [19:46:37]line ЗНМ: 0300000096 [19:46:37]line РНМ: 0000000000091693 [19:46:37]line Версия ККМ: 001 [19:46:37]line Платежная система: Mbank [19:46:37]line ФМ: 0000000000871792 [19:46:37]line ФД: 156418 [19:46:37]line ФПД: 110330005148754 [19:46:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194638&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156418&fm=110330005148754&tin=02508201610067®Number=0000000000091693&sum=60009 [19:46:38]OFD Sender: Processing packet 156418 [packets to send 31, broken 30] [19:46:38]ProducePacketName [19:46:38]name=ofd_packets/00156418 [19:46:38]OFD Sender: To server: pG, [19:46:38]CommunicateWithHost lk.salyk.kg:30040 [19:46:38]ConnectInit lk.salyk.kg [19:46:38]written 0, free lines is 4095 [19:46:38]Connected sock=10 [19:46:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8E C7 07 01 6C E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 1E 47 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 63 02 00 35 04 06 00 64 58 34 C3 D4 52 ED 32 E1 00 81 CA FE 3B [19:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E8 D0 47 00 1C 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 31 37 39 32 10 04 04 00 02 63 02 00 F4 03 04 00 8F EC 1C 67 B6 04 01 00 00 7D 9B AA 79 3D A0 92 FE [19:46:38]CommunicateWithHost err = 0 [19:46:38]CheckOFDResponse [19:46:38]1017 (14) - 77093643461234 [19:46:38]1041 (16) - 0000000000871792 [19:46:38]1040 (4) - 156418 [19:46:38]1012 (4) - 26.10.2024 13:20 [19:46:38]1206 (1) - 0 [19:46:38]OFD Sender: Remove packet 156418 [19:46:38]ProducePacketName [19:46:38]name=ofd_packets/00156418 [19:46:38]NVStorageDeleteData [19:46:38]Write to MH i2c: 01 00 00 6E 27 95 [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 07 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 09 0D B2 [19:46:38]RasterBufferAndPrint [19:46:38]line [19:46:38]line [19:46:38]line [19:46:38]line [19:46:38]line [19:46:38]written 0, free lines is 3344 [19:46:38]process_action close_receipt done [19:46:38]requested_data is exist [19:46:38]produce_requested_data [19:46:38]requested_item fm.sn is exist - process it [19:46:38]wFMCommunicate request_size=4 [19:46:38]MH_SAM_APDU [19:46:38]CAPDU: 80 11 00 00 [19:46:38]Write to MH i2c: E2 08 00 75 27 80 11 00 00 00 00 00 00 16 [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:38]Read from MH i2c: E2 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 17 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 17 00 75 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6B [19:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:46:38]wFMCommunicate OK [19:46:38]requested_item fd.num is exist - process it [19:46:38]SAM_PROTO_GetFieldsCounters [19:46:38]wFMCommunicate request_size=4 [19:46:38]MH_SAM_APDU [19:46:38]CAPDU: 80 13 00 00 [19:46:38]Write to MH i2c: E2 08 00 76 27 80 13 00 00 00 00 00 00 19 [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:38]Read from MH i2c: E2 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 62 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 62 00 76 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 02 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [19:46: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 02 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:38]wFMCommunicate OK [19:46:38]SAM_PROTO_GetFieldsCounters done [19:46:38]requested_item shift.num is exist - process it [19:46:38]requested_item shift.opened is exist - process it [19:46:38]req_shift_opened [19:46:38]FM_GetShiftState [19:46:38]SAM_PROTO_GetShiftState [19:46:38]wFMCommunicate request_size=4 [19:46:38]MH_SAM_APDU [19:46:38]CAPDU: 80 13 01 00 [19:46:38]Write to MH i2c: E2 08 00 77 27 80 13 01 00 00 00 00 00 1B [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:38]Read from MH i2c: E2 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 0E 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 0E 00 77 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [19:46:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:46:38]wFMCommunicate OK [19:46:38]SAM_PROTO_GetShiftState done [19:46:38]FM_GetShiftState done [19:46:38]req_shift_opened done [19:46:38]requested_item shift.open_date is exist - process it [19:46:38]req_shift_open_date [19:46:38]req_shift_open_date done [19:46:38]produce_requested_data done [19:46:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156418,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:46:38]process_action_free close_receipt [19:46:38]json_value_free [19:46:38]json_value_free done [19:46:38]process_json_proto returns [19:46:38]Send response to host [19:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156418,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:46:38]free response buf [19:46:38]execute_script done [19:46:38]execute_script returns [19:46:38]free content buf [19:46:38]Sock 9.Close socket [19:46:38]Sock 9.Thread stoped [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:06]accept exits with 8 [19:56:06]New connection [19:56:06]New thread 3066977636 created [19:56:06]Thread 3066834276 joined [19:56:06]Waiting for new connection... [19:56:06] Sock 8.Parse request [19:56:06]Sock 8.Check first char [19:56:06]Sock 8.First char is OK [19:56:06]request: POST /json_proto HTTP/1.0 [19:56:06]Method: POST [19:56:06]URL: /json_proto [19:56:06]Method is POST - this is cgi request [19:56:06]url: /json_proto [19:56:06]query_string will be loaded in cgi processing [19:56:06]execute_cgi json_proto POST (null) [19:56:06]execute_cgi path=json_proto method=POST [19:56:06]POST find Content-Length [19:56:06]Host: 172.17.63.3:8080 [19:56:06]Content-Length: 673 [19:56:06]Content-Type: application/json [19:56:06] [19:56:06]POST finish read [19:56:06]Found Content-Length = 673 [19:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:06]execute_script... [19:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:06]POST & json_proto [19:56:06]process_json_proto [19:56:06]json parsed OK: [19:56:06]protocol is kg_v1.0 [19:56:06]action value=close_receipt [19:56:06]process_action close_receipt [19:56:06]cmd_close_receipt [19:56:06]MH_GetDate [19:56:06]Write to MH i2c: F0 00 00 78 27 8E [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: F0 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: F0 09 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: F0 09 00 78 27 00 58 49 1D 67 50 D1 6C 64 AD [19:56:06]GetLastDocTimeStamp 1729971998 [19:56:06]current date 1729972568 [19:56:06]FM_GetShiftState [19:56:06]SAM_PROTO_GetShiftState [19:56:06]wFMCommunicate request_size=4 [19:56:06]MH_SAM_APDU [19:56:06]CAPDU: 80 13 01 00 [19:56:06]Write to MH i2c: E2 08 00 79 27 80 13 01 00 00 00 00 00 1D [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 0E 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 0E 00 79 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 52 [19:56:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:56:06]wFMCommunicate OK [19:56:06]SAM_PROTO_GetShiftState done [19:56:06]FM_GetShiftState done [19:56:06]opened in 1729902702 [19:56:06]opened+sec_in_day 1729989102 [19:56:06]quantity*price = 50063 [19:56:06]sum+1 = 50064 [19:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 320 26.10.2024 19:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156419 ФПД: 60136617974663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195608&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156419&fm=60136617974663&tin=02508201610067®Number=0000000000091693&sum=50000 [19:56:07]StoreToDocumentArchive [19:56:07]shift 536 fd 156419 [19:56:07]save to /storage/0536/doc_00156419 [19:56:07]save last doc name /storage/0536/doc_00156419 to /storage/kkm_last_doc_name [19:56:07]save OK [19:56:07]Clear old archive folders... [19:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:56:07]tlvbuf is 016BD660 [19:56:07]SAM_PROTO_ClearQueue [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 09 00 00 [19:56:07]Write to MH i2c: E2 08 00 86 27 80 09 00 00 00 00 00 00 1F [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 86 27 00 90 00 21 [19:56:07]RAPDU: 90 00 [19:56:07]wFMCommunicate OK [19:56:07]SAM_PROTO_ClearQueue done [19:56:07]KKMCreateOFDPacket [19:56:07]OFDProtocolAddRootSTLVToBuf [19:56:07]FM_MakeSignedData [19:56:07]FM_MakeSignedData [19:56:07]SAM_PROTO_SignData [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 0D 01 02 [19:56:07]Write to MH i2c: E2 08 00 87 27 80 0D 01 02 00 00 00 00 27 [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 87 27 00 90 00 22 [19:56:07]RAPDU: 90 00 [19:56:07]wFMCommunicate OK [19:56:07]wFMCommunicate request_size=255 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 58 49 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 63 02 00 35 04 06 00 36 B1 A5 C0 [19:56:07]Write to MH i2c: E2 02 01 88 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 58 49 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 63 02 00 35 04 06 00 36 B1 A5 C0 00 00 6D [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:08]Read from MH i2c: E2 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 03 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 03 00 88 27 00 90 00 23 [19:56:08]RAPDU: 90 00 [19:56:08]wFMCommunicate OK [19:56:08]wFMCommunicate request_size=7 [19:56:08]MH_SAM_APDU [19:56:08]CAPDU: 80 0D 02 02 02 9B 87 [19:56:08]Write to MH i2c: E2 0A 00 89 27 80 0D 02 02 02 00 9B 87 00 00 50 [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:08]Read from MH i2c: E2 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 03 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 03 00 89 27 00 90 00 24 [19:56:08]RAPDU: 90 00 [19:56:08]wFMCommunicate OK [19:56:08]wFMCommunicate request_size=4 [19:56:08]MH_SAM_APDU [19:56:08]CAPDU: 80 0D 03 02 [19:56:08]Write to MH i2c: E2 08 00 8A 27 80 0D 03 02 00 00 00 00 2C [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:08]Read from MH i2c: E2 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 0B 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 0B 00 8A 27 00 45 3D A1 22 86 C3 3F 18 90 00 12 [19:56:08]RAPDU: 45 3D A1 22 86 C3 3F 18 90 00 [19:56:08]wFMCommunicate OK [19:56:08]SAM_PROTO_SignData done [19:56:08]FM_MakeSignedData done [19:56:08]CreateOFDProtocolMessage [19:56:08]wFMCommunicate request_size=4 [19:56:08]MH_SAM_APDU [19:56:08]CAPDU: 80 11 00 00 [19:56:08]Write to MH i2c: E2 08 00 8B 27 80 11 00 00 00 00 00 00 2C [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:08]Read from MH i2c: E2 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 17 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 17 00 8B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 81 [19:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:56:08]wFMCommunicate OK [19:56:08]CreateOFDProtocolMessage done [19:56:08]OFDSenderStorePacket 156419 [19:56:08]StoreOFDPacket docnum=156419 [19:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 BC CA 04 01 B9 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 58 49 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 63 02 00 35 04 06 00 36 B1 A5 C0 9B 87 45 3D A1 22 86 C3 3F 18 [19:56:08]CheckFolder [19:56:08]dirname=/storage/ofd_packets [19:56:08]CheckFolder done [19:56:08]ProducePacketName [19:56:08]name=ofd_packets/00156419 [19:56:08]NVStorageSaveData ofd_packets/00156419 [19:56:08]File name is /storage/ofd_packets/00156419 [19:56:08]Write 298 bytes [19:56:08]NVStorageSaveData done [19:56:08]OFDSenderStorePacket done [19:56:08]KKMCreateOFDPacket done [19:56:08]NVStorageSaveData kkm_last_timestamp [19:56:08]File name is /storage/kkm_last_timestamp [19:56:08]Write 4 bytes [19:56:08]NVStorageSaveData done [19:56:08]ExternCall_PrintAddStr [19:56:08]wPrintStart [19:56:08]Write to MH i2c: 01 00 00 8C 27 B3 [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: 01 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: 01 07 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: 01 07 00 8C 27 00 00 00 00 00 FF 0F C8 [19:56:08]RasterBufferAndPrint [19:56:08]line Счет N : (1)99234 [19:56:08]line ИНН: 02508201610067 [19:56:08]line Контрольно-Кассовый Чек [19:56:08]line ПРОДАЖА [19:56:08]line ТРК (МРК, ГНК) : 32 [19:56:08]line Товар: 2710194210 [19:56:08]line ДТ-К-5 [19:56:08]line 6.570 * 76.20 [19:56:08]line = 500.63 [19:56:08]line НДС 12% НСП 1% [19:56:08]line > о реализуемом товаре [19:56:08]line ОКРУГЛЕНИЕ: -0.63 [19:56:08]line ИТОГО: 500.00 [19:56:08]line Внесено: 500.00 [19:56:08]line СДАЧА: 0.00 [19:56:08]line НСП 1% : 4.43 [19:56:08]line НДС 12% : 53.16 [19:56:08]line Наличными: 500.00 [19:56:08]line Безнал.: 0.00 [19:56:08]line Место: АЗС № 143 "Партнер Нефть" [19:56:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:56:08]line СНО: Общий режим [19:56:08]line Чек 320 26.10.2024 19:56 [19:56:08]line Смена: 536 ФФД: 1.0 [19:56:08]line ЗНМ: 0300000096 [19:56:08]line РНМ: 0000000000091693 [19:56:08]line Версия ККМ: 001 [19:56:08]line ФМ: 0000000000871792 [19:56:08]line ФД: 156419 [19:56:08]line ФПД: 60136617974663 [19:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195608&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156419&fm=60136617974663&tin=02508201610067®Number=0000000000091693&sum=50000 [19:56:08]OFD Sender: Processing packet 156419 [packets to send 31, broken 30] [19:56:08]ProducePacketName [19:56:08]name=ofd_packets/00156419 [19:56:08]OFD Sender: To server: pG, [19:56:08]CommunicateWithHost lk.salyk.kg:30040 [19:56:08]ConnectInit lk.salyk.kg [19:56:08]written 0, free lines is 4095 [19:56:08]Connected sock=11 [19:56:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 BC CA 04 01 B9 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 58 49 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 63 02 00 35 04 06 00 36 B1 A5 C0 9B 87 45 3D A1 22 86 C3 3F 18 [19:56:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C0 FD 47 00 88 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 31 37 39 32 10 04 04 00 03 63 02 00 F4 03 04 00 CA EE 1C 67 B6 04 01 00 00 7A 1D 73 BB 47 91 6E B3 [19:56:09]CommunicateWithHost err = 0 [19:56:09]CheckOFDResponse [19:56:09]1017 (14) - 77093643461234 [19:56:09]1041 (16) - 0000000000871792 [19:56:09]1040 (4) - 156419 [19:56:09]1012 (4) - 26.10.2024 13:29 [19:56:09]1206 (1) - 0 [19:56:09]OFD Sender: Remove packet 156419 [19:56:09]ProducePacketName [19:56:09]name=ofd_packets/00156419 [19:56:09]NVStorageDeleteData [19:56:09]Write to MH i2c: 01 00 00 B7 27 DE [19:56:09]Write i2c OK [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: 01 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: 01 07 00 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: 01 07 00 B7 27 00 00 00 00 00 E4 0C D5 [19:56:09]RasterBufferAndPrint [19:56:09]line [19:56:09]line [19:56:09]line [19:56:09]line [19:56:09]line [19:56:09]written 0, free lines is 3306 [19:56:09]process_action close_receipt done [19:56:09]requested_data is exist [19:56:09]produce_requested_data [19:56:09]requested_item fm.sn is exist - process it [19:56:09]wFMCommunicate request_size=4 [19:56:09]MH_SAM_APDU [19:56:09]CAPDU: 80 11 00 00 [19:56:09]Write to MH i2c: E2 08 00 BE 27 80 11 00 00 00 00 00 00 5F [19:56:09]Write i2c OK [19:56:09]MH_I2C_Read... [19:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:09]Read from MH i2c: E2 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: E2 17 00 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: E2 17 00 BE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B4 [19:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:56:09]wFMCommunicate OK [19:56:09]requested_item fd.num is exist - process it [19:56:09]SAM_PROTO_GetFieldsCounters [19:56:09]wFMCommunicate request_size=4 [19:56:09]MH_SAM_APDU [19:56:09]CAPDU: 80 13 00 00 [19:56:09]Write to MH i2c: E2 08 00 BF 27 80 13 00 00 00 00 00 00 62 [19:56:09]Write i2c OK [19:56:09]MH_I2C_Read... [19:56:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:09]Read from MH i2c: E2 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: E2 62 00 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: E2 62 00 BF 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 03 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:56:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 03 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:09]wFMCommunicate OK [19:56:09]SAM_PROTO_GetFieldsCounters done [19:56:09]requested_item shift.num is exist - process it [19:56:09]requested_item shift.opened is exist - process it [19:56:09]req_shift_opened [19:56:09]FM_GetShiftState [19:56:09]SAM_PROTO_GetShiftState [19:56:09]wFMCommunicate request_size=4 [19:56:09]MH_SAM_APDU [19:56:09]CAPDU: 80 13 01 00 [19:56:09]Write to MH i2c: E2 08 00 C0 27 80 13 01 00 00 00 00 00 64 [19:56:09]Write i2c OK [19:56:09]MH_I2C_Read... [19:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:09]Read from MH i2c: E2 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: E2 0E 00 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: E2 0E 00 C0 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 99 [19:56:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [19:56:09]wFMCommunicate OK [19:56:09]SAM_PROTO_GetShiftState done [19:56:09]FM_GetShiftState done [19:56:09]req_shift_opened done [19:56:09]requested_item shift.open_date is exist - process it [19:56:09]req_shift_open_date [19:56:09]req_shift_open_date done [19:56:09]produce_requested_data done [19:56:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156419,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [19:56:09]process_action_free close_receipt [19:56:09]json_value_free [19:56:09]json_value_free done [19:56:09]process_json_proto returns [19:56:09]Send response to host [19:56:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156419,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [19:56:09]free response buf [19:56:09]execute_script done [19:56:09]execute_script returns [19:56:09]free content buf [19:56:09]Sock 8.Close socket [19:56:09]Sock 8.Thread stoped [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:33]accept exits with 9 [20:01:33]New connection [20:01:33]New thread 3066834276 created [20:01:33]Thread 3066977636 joined [20:01:33]Waiting for new connection... [20:01:33] Sock 9.Parse request [20:01:33]Sock 9.Check first char [20:01:33]Sock 9.First char is OK [20:01:33]request: POST /json_proto HTTP/1.0 [20:01:33]Method: POST [20:01:33]URL: /json_proto [20:01:33]Method is POST - this is cgi request [20:01:33]url: /json_proto [20:01:33]query_string will be loaded in cgi processing [20:01:33]execute_cgi json_proto POST (null) [20:01:33]execute_cgi path=json_proto method=POST [20:01:33]POST find Content-Length [20:01:33]Host: 172.17.63.3:8080 [20:01:33]Content-Length: 678 [20:01:33]Content-Type: application/json [20:01:33] [20:01:33]POST finish read [20:01:33]Found Content-Length = 678 [20:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:33]execute_script... [20:01: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)99235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:33]POST & json_proto [20:01:33]process_json_proto [20:01:33]json parsed OK: [20:01:33]protocol is kg_v1.0 [20:01:33]action value=close_receipt [20:01:33]process_action close_receipt [20:01:33]cmd_close_receipt [20:01:33]MH_GetDate [20:01:33]Write to MH i2c: F0 00 00 C1 27 D7 [20:01:33]Write i2c OK [20:01:33]MH_I2C_Read... [20:01:33]Read from MH i2c: F0 [20:01:33]MH_I2C_Read... [20:01:33]Read from MH i2c: F0 09 00 [20:01:33]MH_I2C_Read... [20:01:33]Read from MH i2c: F0 09 00 C1 27 00 9F 4A 1D 67 50 D1 6C 64 3E [20:01:33]GetLastDocTimeStamp 1729972568 [20:01:33]current date 1729972895 [20:01:33]FM_GetShiftState [20:01:33]SAM_PROTO_GetShiftState [20:01:33]wFMCommunicate request_size=4 [20:01:33]MH_SAM_APDU [20:01:33]CAPDU: 80 13 01 00 [20:01:33]Write to MH i2c: E2 08 00 C2 27 80 13 01 00 00 00 00 00 66 [20:01:33]Write i2c OK [20:01:33]MH_I2C_Read... [20:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:33]Read from MH i2c: E2 [20:01:33]MH_I2C_Read... [20:01:33]Read from MH i2c: E2 0E 00 [20:01:33]MH_I2C_Read... [20:01:33]Read from MH i2c: E2 0E 00 C2 27 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9B [20:01:33]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:01:33]wFMCommunicate OK [20:01:33]SAM_PROTO_GetShiftState done [20:01:33]FM_GetShiftState done [20:01:33]opened in 1729902702 [20:01:33]opened+sec_in_day 1729989102 [20:01:33]quantity*price = 150037 [20:01:33]sum+1 = 150039 [20:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 321 26.10.2024 20:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156420 ФПД: 53491428793691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156420&fm=53491428793691&tin=02508201610067®Number=0000000000091693&sum=150000 [20:01:34]StoreToDocumentArchive [20:01:34]shift 536 fd 156420 [20:01:34]save to /storage/0536/doc_00156420 [20:01:34]save last doc name /storage/0536/doc_00156420 to /storage/kkm_last_doc_name [20:01:34]save OK [20:01:34]Clear old archive folders... [20:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:01:34]tlvbuf is 0167F110 [20:01:34]SAM_PROTO_ClearQueue [20:01:34]wFMCommunicate request_size=4 [20:01:34]MH_SAM_APDU [20:01:34]CAPDU: 80 09 00 00 [20:01:34]Write to MH i2c: E2 08 00 CF 27 80 09 00 00 00 00 00 00 68 [20:01:34]Write i2c OK [20:01:34]MH_I2C_Read... [20:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:34]Read from MH i2c: E2 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 03 00 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 03 00 CF 27 00 90 00 6A [20:01:34]RAPDU: 90 00 [20:01:34]wFMCommunicate OK [20:01:34]SAM_PROTO_ClearQueue done [20:01:34]KKMCreateOFDPacket [20:01:34]OFDProtocolAddRootSTLVToBuf [20:01:34]FM_MakeSignedData [20:01:34]FM_MakeSignedData [20:01:34]SAM_PROTO_SignData [20:01:34]wFMCommunicate request_size=4 [20:01:34]MH_SAM_APDU [20:01:34]CAPDU: 80 0D 01 02 [20:01:34]Write to MH i2c: E2 08 00 D0 27 80 0D 01 02 00 00 00 00 70 [20:01:34]Write i2c OK [20:01:34]MH_I2C_Read... [20:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:34]Read from MH i2c: E2 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 03 00 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 03 00 D0 27 00 90 00 6B [20:01:34]RAPDU: 90 00 [20:01:34]wFMCommunicate OK [20:01:34]wFMCommunicate request_size=255 [20:01:34]MH_SAM_APDU [20:01:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 9F 4A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 63 02 00 35 04 06 00 30 A6 71 9C [20:01:34]Write to MH i2c: E2 02 01 D1 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 9F 4A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 63 02 00 35 04 06 00 30 A6 71 9C 00 00 86 [20:01:34]Write i2c OK [20:01:34]MH_I2C_Read... [20:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:34]Read from MH i2c: E2 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 03 00 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 03 00 D1 27 00 90 00 6C [20:01:34]RAPDU: 90 00 [20:01:34]wFMCommunicate OK [20:01:34]wFMCommunicate request_size=7 [20:01:34]MH_SAM_APDU [20:01:34]CAPDU: 80 0D 02 02 02 9D 5B [20:01:34]Write to MH i2c: E2 0A 00 D2 27 80 0D 02 02 02 00 9D 5B 00 00 6F [20:01:34]Write i2c OK [20:01:34]MH_I2C_Read... [20:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:34]Read from MH i2c: E2 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 03 00 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 03 00 D2 27 00 90 00 6D [20:01:34]RAPDU: 90 00 [20:01:34]wFMCommunicate OK [20:01:34]wFMCommunicate request_size=4 [20:01:34]MH_SAM_APDU [20:01:34]CAPDU: 80 0D 03 02 [20:01:34]Write to MH i2c: E2 08 00 D3 27 80 0D 03 02 00 00 00 00 75 [20:01:34]Write i2c OK [20:01:34]MH_I2C_Read... [20:01:34]OFD Sender: No OFD packet to send [20:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:34]Read from MH i2c: E2 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 0B 00 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 0B 00 D3 27 00 71 BC 75 56 E2 8F C0 3B 90 00 DA [20:01:34]RAPDU: 71 BC 75 56 E2 8F C0 3B 90 00 [20:01:34]wFMCommunicate OK [20:01:34]SAM_PROTO_SignData done [20:01:34]FM_MakeSignedData done [20:01:34]CreateOFDProtocolMessage [20:01:34]wFMCommunicate request_size=4 [20:01:34]MH_SAM_APDU [20:01:34]CAPDU: 80 11 00 00 [20:01:34]Write to MH i2c: E2 08 00 D4 27 80 11 00 00 00 00 00 00 75 [20:01:34]Write i2c OK [20:01:34]MH_I2C_Read... [20:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:34]Read from MH i2c: E2 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 17 00 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: E2 17 00 D4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CA [20:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:01:34]wFMCommunicate OK [20:01:34]CreateOFDProtocolMessage done [20:01:34]OFDSenderStorePacket 156420 [20:01:34]StoreOFDPacket docnum=156420 [20:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D5 36 04 01 D4 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 9F 4A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 63 02 00 35 04 06 00 30 A6 71 9C 9D 5B 71 BC 75 56 E2 8F C0 3B [20:01:34]CheckFolder [20:01:34]dirname=/storage/ofd_packets [20:01:34]CheckFolder done [20:01:34]ProducePacketName [20:01:34]name=ofd_packets/00156420 [20:01:34]NVStorageSaveData ofd_packets/00156420 [20:01:34]File name is /storage/ofd_packets/00156420 [20:01:34]Write 298 bytes [20:01:34]NVStorageSaveData done [20:01:34]OFDSenderStorePacket done [20:01:34]KKMCreateOFDPacket done [20:01:34]NVStorageSaveData kkm_last_timestamp [20:01:34]File name is /storage/kkm_last_timestamp [20:01:34]Write 4 bytes [20:01:34]NVStorageSaveData done [20:01:34]ExternCall_PrintAddStr [20:01:34]wPrintStart [20:01:34]Write to MH i2c: 01 00 00 D5 27 FC [20:01:34]Write i2c OK [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: 01 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: 01 07 00 [20:01:34]MH_I2C_Read... [20:01:34]Read from MH i2c: 01 07 00 D5 27 00 00 00 00 00 FF 0F 11 [20:01:34]RasterBufferAndPrint [20:01:34]line Счет N : (1)99235 [20:01:34]line ИНН: 02508201610067 [20:01:34]line Контрольно-Кассовый Чек [20:01:34]line ПРОДАЖА [20:01:34]line ТРК (МРК, ГНК) : 32 [20:01:34]line Товар: 2710194210 [20:01:34]line ДТ-К-5 [20:01:34]line 19.690 * 76.20 [20:01:34]line = 1500.38 [20:01:34]line НДС 12% НСП 1% [20:01:34]line > о реализуемом товаре [20:01:34]line ОКРУГЛЕНИЕ: -0.38 [20:01:34]line ИТОГО: 1500.00 [20:01:34]line Внесено: 1500.00 [20:01:34]line СДАЧА: 0.00 [20:01:34]line НСП 1% : 13.28 [20:01:34]line НДС 12% : 159.33 [20:01:34]line Наличными: 1500.00 [20:01:34]line Безнал.: 0.00 [20:01:34]line Место: АЗС № 143 "Партнер Нефть" [20:01:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:01:34]line СНО: Общий режим [20:01:34]line Чек 321 26.10.2024 20:01 [20:01:34]line Смена: 536 ФФД: 1.0 [20:01:34]line ЗНМ: 0300000096 [20:01:34]line РНМ: 0000000000091693 [20:01:34]line Версия ККМ: 001 [20:01:34]line ФМ: 0000000000871792 [20:01:34]line ФД: 156420 [20:01:34]line ФПД: 53491428793691 [20:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156420&fm=53491428793691&tin=02508201610067®Number=0000000000091693&sum=150000 [20:01:35]OFD Sender: Processing packet 156420 [packets to send 31, broken 30] [20:01:35]ProducePacketName [20:01:35]name=ofd_packets/00156420 [20:01:35]OFD Sender: To server: pG, [20:01:35]CommunicateWithHost lk.salyk.kg:30040 [20:01:35]ConnectInit lk.salyk.kg [20:01:35]written 0, free lines is 4095 [20:01:35]Connected sock=10 [20:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D5 36 04 01 D4 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 9F 4A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 63 02 00 35 04 06 00 30 A6 71 9C 9D 5B 71 BC 75 56 E2 8F C0 3B [20:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D6 99 47 00 A0 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 63 02 00 F4 03 04 00 10 F0 1C 67 B6 04 01 00 00 79 FF 3D A1 00 0B 00 C2 [20:01:35]CommunicateWithHost err = 0 [20:01:35]CheckOFDResponse [20:01:35]1017 (14) - 77093643461234 [20:01:35]1041 (16) - 0000000000871792 [20:01:35]1040 (4) - 156420 [20:01:35]1012 (4) - 26.10.2024 13:35 [20:01:35]1206 (1) - 0 [20:01:35]OFD Sender: Remove packet 156420 [20:01:35]ProducePacketName [20:01:35]name=ofd_packets/00156420 [20:01:35]NVStorageDeleteData [20:01:35]Write to MH i2c: 01 00 00 00 28 28 [20:01:35]Write i2c OK [20:01:35]MH_I2C_Read... [20:01:35]Read from MH i2c: 01 [20:01:35]MH_I2C_Read... [20:01:35]Read from MH i2c: 01 07 00 [20:01:35]MH_I2C_Read... [20:01:35]Read from MH i2c: 01 07 00 00 28 00 00 00 00 00 E5 0C 20 [20:01:35]RasterBufferAndPrint [20:01:35]line [20:01:35]line [20:01:35]line [20:01:35]line [20:01:35]line [20:01:35]written 0, free lines is 3307 [20:01:35]process_action close_receipt done [20:01:35]requested_data is exist [20:01:35]produce_requested_data [20:01:35]requested_item fm.sn is exist - process it [20:01:35]wFMCommunicate request_size=4 [20:01:35]MH_SAM_APDU [20:01:35]CAPDU: 80 11 00 00 [20:01:35]Write to MH i2c: E2 08 00 07 28 80 11 00 00 00 00 00 00 A9 [20:01:35]Write i2c OK [20:01:35]MH_I2C_Read... [20:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:35]Read from MH i2c: E2 [20:01:35]MH_I2C_Read... [20:01:35]Read from MH i2c: E2 17 00 [20:01:35]MH_I2C_Read... [20:01:35]Read from MH i2c: E2 17 00 07 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FE [20:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:01:35]wFMCommunicate OK [20:01:35]requested_item fd.num is exist - process it [20:01:35]SAM_PROTO_GetFieldsCounters [20:01:35]wFMCommunicate request_size=4 [20:01:35]MH_SAM_APDU [20:01:35]CAPDU: 80 13 00 00 [20:01:35]Write to MH i2c: E2 08 00 08 28 80 13 00 00 00 00 00 00 AC [20:01:35]Write i2c OK [20:01:35]MH_I2C_Read... [20:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:35]Read from MH i2c: E2 [20:01:35]MH_I2C_Read... [20:01:35]Read from MH i2c: E2 62 00 [20:01:35]MH_I2C_Read... [20:01:35]Read from MH i2c: E2 62 00 08 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 04 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [20:01: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 04 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:35]wFMCommunicate OK [20:01:35]SAM_PROTO_GetFieldsCounters done [20:01:35]requested_item shift.num is exist - process it [20:01:35]requested_item shift.opened is exist - process it [20:01:35]req_shift_opened [20:01:35]FM_GetShiftState [20:01:35]SAM_PROTO_GetShiftState [20:01:35]wFMCommunicate request_size=4 [20:01:35]MH_SAM_APDU [20:01:35]CAPDU: 80 13 01 00 [20:01:35]Write to MH i2c: E2 08 00 09 28 80 13 01 00 00 00 00 00 AE [20:01:35]Write i2c OK [20:01:35]MH_I2C_Read... [20:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:36]Read from MH i2c: E2 [20:01:36]MH_I2C_Read... [20:01:36]Read from MH i2c: E2 0E 00 [20:01:36]MH_I2C_Read... [20:01:36]Read from MH i2c: E2 0E 00 09 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E3 [20:01:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:01:36]wFMCommunicate OK [20:01:36]SAM_PROTO_GetShiftState done [20:01:36]FM_GetShiftState done [20:01:36]req_shift_opened done [20:01:36]requested_item shift.open_date is exist - process it [20:01:36]req_shift_open_date [20:01:36]req_shift_open_date done [20:01:36]produce_requested_data done [20:01:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156420,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:01:36]process_action_free close_receipt [20:01:36]json_value_free [20:01:36]json_value_free done [20:01:36]process_json_proto returns [20:01:36]Send response to host [20:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156420,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:01:36]free response buf [20:01:36]execute_script done [20:01:36]execute_script returns [20:01:36]free content buf [20:01:36]Sock 9.Close socket [20:01:36]Sock 9.Thread stoped [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:29]accept exits with 8 [20:02:29]New connection [20:02:29]New thread 3066977636 created [20:02:29]Thread 3066834276 joined [20:02:29]Waiting for new connection... [20:02:29] Sock 8.Parse request [20:02:29]Sock 8.Check first char [20:02:29]Sock 8.First char is OK [20:02:29]request: POST /json_proto HTTP/1.0 [20:02:29]Method: POST [20:02:29]URL: /json_proto [20:02:29]Method is POST - this is cgi request [20:02:29]url: /json_proto [20:02:29]query_string will be loaded in cgi processing [20:02:29]execute_cgi json_proto POST (null) [20:02:29]execute_cgi path=json_proto method=POST [20:02:29]POST find Content-Length [20:02:29]Host: 172.17.63.3:8080 [20:02:29]Content-Length: 676 [20:02:29]Content-Type: application/json [20:02:29] [20:02:29]POST finish read [20:02:29]Found Content-Length = 676 [20:02:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:29]execute_script... [20:02:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:29]POST & json_proto [20:02:29]process_json_proto [20:02:29]json parsed OK: [20:02:29]protocol is kg_v1.0 [20:02:29]action value=close_receipt [20:02:29]process_action close_receipt [20:02:29]cmd_close_receipt [20:02:29]MH_GetDate [20:02:29]Write to MH i2c: F0 00 00 0A 28 21 [20:02:29]Write i2c OK [20:02:29]MH_I2C_Read... [20:02:29]Read from MH i2c: F0 [20:02:29]MH_I2C_Read... [20:02:29]Read from MH i2c: F0 09 00 [20:02:29]MH_I2C_Read... [20:02:29]Read from MH i2c: F0 09 00 0A 28 00 D7 4A 1D 67 50 D1 6C 64 C0 [20:02:29]GetLastDocTimeStamp 1729972895 [20:02:29]current date 1729972951 [20:02:29]FM_GetShiftState [20:02:29]SAM_PROTO_GetShiftState [20:02:29]wFMCommunicate request_size=4 [20:02:29]MH_SAM_APDU [20:02:29]CAPDU: 80 13 01 00 [20:02:29]Write to MH i2c: E2 08 00 0B 28 80 13 01 00 00 00 00 00 B0 [20:02:29]Write i2c OK [20:02:29]MH_I2C_Read... [20:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:29]Read from MH i2c: E2 [20:02:29]MH_I2C_Read... [20:02:29]Read from MH i2c: E2 0E 00 [20:02:29]MH_I2C_Read... [20:02:29]Read from MH i2c: E2 0E 00 0B 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E5 [20:02:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:02:29]wFMCommunicate OK [20:02:29]SAM_PROTO_GetShiftState done [20:02:29]FM_GetShiftState done [20:02:29]opened in 1729902702 [20:02:29]opened+sec_in_day 1729989102 [20:02:29]quantity*price = 40006 [20:02:29]sum+1 = 40007 [20:02:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 322 26.10.2024 20:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156421 ФПД: 164276649492333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156421&fm=164276649492333&tin=02508201610067®Number=0000000000091693&sum=40000 [20:02:30]StoreToDocumentArchive [20:02:30]shift 536 fd 156421 [20:02:30]save to /storage/0536/doc_00156421 [20:02:30]save last doc name /storage/0536/doc_00156421 to /storage/kkm_last_doc_name [20:02:30]save OK [20:02:30]Clear old archive folders... [20:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:02:30]tlvbuf is 0169FED0 [20:02:30]SAM_PROTO_ClearQueue [20:02:30]wFMCommunicate request_size=4 [20:02:30]MH_SAM_APDU [20:02:30]CAPDU: 80 09 00 00 [20:02:30]Write to MH i2c: E2 08 00 18 28 80 09 00 00 00 00 00 00 B2 [20:02:30]Write i2c OK [20:02:30]MH_I2C_Read... [20:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:30]Read from MH i2c: E2 [20:02:30]MH_I2C_Read... [20:02:30]Read from MH i2c: E2 03 00 [20:02:30]MH_I2C_Read... [20:02:30]Read from MH i2c: E2 03 00 18 28 00 90 00 B4 [20:02:30]RAPDU: 90 00 [20:02:30]wFMCommunicate OK [20:02:30]SAM_PROTO_ClearQueue done [20:02:30]KKMCreateOFDPacket [20:02:30]OFDProtocolAddRootSTLVToBuf [20:02:30]FM_MakeSignedData [20:02:30]FM_MakeSignedData [20:02:30]SAM_PROTO_SignData [20:02:30]wFMCommunicate request_size=4 [20:02:30]MH_SAM_APDU [20:02:30]CAPDU: 80 0D 01 02 [20:02:30]Write to MH i2c: E2 08 00 19 28 80 0D 01 02 00 00 00 00 BA [20:02:30]Write i2c OK [20:02:30]MH_I2C_Read... [20:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:30]Read from MH i2c: E2 [20:02:30]MH_I2C_Read... [20:02:30]Read from MH i2c: E2 03 00 [20:02:30]MH_I2C_Read... [20:02:30]Read from MH i2c: E2 03 00 19 28 00 90 00 B5 [20:02:30]RAPDU: 90 00 [20:02:30]wFMCommunicate OK [20:02:30]wFMCommunicate request_size=255 [20:02:30]MH_SAM_APDU [20:02:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D7 4A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 63 02 00 35 04 06 00 95 [20:02:30]Write to MH i2c: E2 02 01 1A 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D7 4A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 63 02 00 35 04 06 00 95 00 00 1E [20:02:30]Write i2c OK [20:02:30]MH_I2C_Read... [20:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:31]Read from MH i2c: E2 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: E2 03 00 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: E2 03 00 1A 28 00 90 00 B6 [20:02:31]RAPDU: 90 00 [20:02:31]wFMCommunicate OK [20:02:31]wFMCommunicate request_size=10 [20:02:31]MH_SAM_APDU [20:02:31]CAPDU: 80 0D 02 02 05 68 A3 56 7F 6D [20:02:31]Write to MH i2c: E2 0D 00 1B 28 80 0D 02 02 05 00 68 A3 56 7F 6D 00 00 14 [20:02:31]Write i2c OK [20:02:31]MH_I2C_Read... [20:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:31]Read from MH i2c: E2 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: E2 03 00 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: E2 03 00 1B 28 00 90 00 B7 [20:02:31]RAPDU: 90 00 [20:02:31]wFMCommunicate OK [20:02:31]wFMCommunicate request_size=4 [20:02:31]MH_SAM_APDU [20:02:31]CAPDU: 80 0D 03 02 [20:02:31]Write to MH i2c: E2 08 00 1C 28 80 0D 03 02 00 00 00 00 BF [20:02:31]Write i2c OK [20:02:31]MH_I2C_Read... [20:02:31]OFD Sender: No OFD packet to send [20:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:31]Read from MH i2c: E2 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: E2 0B 00 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: E2 0B 00 1C 28 00 F8 A6 FB 8A 71 9F BB 12 90 00 C0 [20:02:31]RAPDU: F8 A6 FB 8A 71 9F BB 12 90 00 [20:02:31]wFMCommunicate OK [20:02:31]SAM_PROTO_SignData done [20:02:31]FM_MakeSignedData done [20:02:31]CreateOFDProtocolMessage [20:02:31]wFMCommunicate request_size=4 [20:02:31]MH_SAM_APDU [20:02:31]CAPDU: 80 11 00 00 [20:02:31]Write to MH i2c: E2 08 00 1D 28 80 11 00 00 00 00 00 00 BF [20:02:31]Write i2c OK [20:02:31]MH_I2C_Read... [20:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:31]Read from MH i2c: E2 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: E2 17 00 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: E2 17 00 1D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [20:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:02:31]wFMCommunicate OK [20:02:31]CreateOFDProtocolMessage done [20:02:31]OFDSenderStorePacket 156421 [20:02:31]StoreOFDPacket docnum=156421 [20:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 ED CD 07 01 51 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D7 4A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 63 02 00 35 04 06 00 95 68 A3 56 7F 6D F8 A6 FB 8A 71 9F BB 12 [20:02:31]CheckFolder [20:02:31]dirname=/storage/ofd_packets [20:02:31]CheckFolder done [20:02:31]ProducePacketName [20:02:31]name=ofd_packets/00156421 [20:02:31]NVStorageSaveData ofd_packets/00156421 [20:02:31]File name is /storage/ofd_packets/00156421 [20:02:31]Write 301 bytes [20:02:31]NVStorageSaveData done [20:02:31]OFDSenderStorePacket done [20:02:31]KKMCreateOFDPacket done [20:02:31]NVStorageSaveData kkm_last_timestamp [20:02:31]File name is /storage/kkm_last_timestamp [20:02:31]Write 4 bytes [20:02:31]NVStorageSaveData done [20:02:31]ExternCall_PrintAddStr [20:02:31]wPrintStart [20:02:31]Write to MH i2c: 01 00 00 1E 28 46 [20:02:31]Write i2c OK [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: 01 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: 01 07 00 [20:02:31]MH_I2C_Read... [20:02:31]Read from MH i2c: 01 07 00 1E 28 00 00 00 00 00 FF 0F 5B [20:02:31]RasterBufferAndPrint [20:02:31]line Счет N : (1)99236 [20:02:31]line ИНН: 02508201610067 [20:02:31]line Контрольно-Кассовый Чек [20:02:31]line ПРОДАЖА [20:02:31]line ТРК (МРК, ГНК) : 11 [20:02:31]line Товар: 2710124130 [20:02:31]line Аи-92-К-5 [20:02:31]line 5.980 * 66.90 [20:02:31]line = 400.06 [20:02:31]line НДС 12% НСП 1% [20:02:31]line > о реализуемом товаре [20:02:31]line ОКРУГЛЕНИЕ: -0.06 [20:02:31]line ИТОГО: 400.00 [20:02:31]line Внесено: 400.00 [20:02:31]line СДАЧА: 0.00 [20:02:31]line НСП 1% : 3.54 [20:02:31]line НДС 12% : 42.48 [20:02:31]line Наличными: 400.00 [20:02:31]line Безнал.: 0.00 [20:02:31]line Место: АЗС № 143 "Партнер Нефть" [20:02:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:02:31]line СНО: Общий режим [20:02:31]line Чек 322 26.10.2024 20:02 [20:02:31]line Смена: 536 ФФД: 1.0 [20:02:31]line ЗНМ: 0300000096 [20:02:31]line РНМ: 0000000000091693 [20:02:31]line Версия ККМ: 001 [20:02:31]line ФМ: 0000000000871792 [20:02:31]line ФД: 156421 [20:02:31]line ФПД: 164276649492333 [20:02:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156421&fm=164276649492333&tin=02508201610067®Number=0000000000091693&sum=40000 [20:02:31]OFD Sender: Processing packet 156421 [packets to send 31, broken 30] [20:02:31]ProducePacketName [20:02:31]name=ofd_packets/00156421 [20:02:31]OFD Sender: To server: pG, [20:02:31]CommunicateWithHost lk.salyk.kg:30040 [20:02:31]ConnectInit lk.salyk.kg [20:02:31]written 0, free lines is 4095 [20:02:31]Connected sock=10 [20:02:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 ED CD 07 01 51 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D7 4A 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 63 02 00 35 04 06 00 95 68 A3 56 7F 6D F8 A6 FB 8A 71 9F BB 12 [20:02:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A3 D0 47 00 D7 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 31 37 39 32 10 04 04 00 05 63 02 00 F4 03 04 00 49 F0 1C 67 B6 04 01 00 00 0F 69 30 0F 19 0F 82 D2 [20:02:31]CommunicateWithHost err = 0 [20:02:31]CheckOFDResponse [20:02:31]1017 (14) - 77093643461234 [20:02:31]1041 (16) - 0000000000871792 [20:02:31]1040 (4) - 156421 [20:02:31]1012 (4) - 26.10.2024 13:36 [20:02:31]1206 (1) - 0 [20:02:31]OFD Sender: Remove packet 156421 [20:02:31]ProducePacketName [20:02:31]name=ofd_packets/00156421 [20:02:31]NVStorageDeleteData [20:02:32]Write to MH i2c: 01 00 00 49 28 71 [20:02:32]Write i2c OK [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: 01 [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: 01 07 00 [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: 01 07 00 49 28 00 00 00 00 00 DE 0C 62 [20:02:32]RasterBufferAndPrint [20:02:32]line [20:02:32]line [20:02:32]line [20:02:32]line [20:02:32]line [20:02:32]written 0, free lines is 3300 [20:02:32]process_action close_receipt done [20:02:32]requested_data is exist [20:02:32]produce_requested_data [20:02:32]requested_item fm.sn is exist - process it [20:02:32]wFMCommunicate request_size=4 [20:02:32]MH_SAM_APDU [20:02:32]CAPDU: 80 11 00 00 [20:02:32]Write to MH i2c: E2 08 00 50 28 80 11 00 00 00 00 00 00 F2 [20:02:32]Write i2c OK [20:02:32]MH_I2C_Read... [20:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:32]Read from MH i2c: E2 [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: E2 17 00 [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: E2 17 00 50 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 47 [20:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:02:32]wFMCommunicate OK [20:02:32]requested_item fd.num is exist - process it [20:02:32]SAM_PROTO_GetFieldsCounters [20:02:32]wFMCommunicate request_size=4 [20:02:32]MH_SAM_APDU [20:02:32]CAPDU: 80 13 00 00 [20:02:32]Write to MH i2c: E2 08 00 51 28 80 13 00 00 00 00 00 00 F5 [20:02:32]Write i2c OK [20:02:32]MH_I2C_Read... [20:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:32]Read from MH i2c: E2 [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: E2 62 00 [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: E2 62 00 51 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 05 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [20: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 05 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:32]wFMCommunicate OK [20:02:32]SAM_PROTO_GetFieldsCounters done [20:02:32]requested_item shift.num is exist - process it [20:02:32]requested_item shift.opened is exist - process it [20:02:32]req_shift_opened [20:02:32]FM_GetShiftState [20:02:32]SAM_PROTO_GetShiftState [20:02:32]wFMCommunicate request_size=4 [20:02:32]MH_SAM_APDU [20:02:32]CAPDU: 80 13 01 00 [20:02:32]Write to MH i2c: E2 08 00 52 28 80 13 01 00 00 00 00 00 F7 [20:02:32]Write i2c OK [20:02:32]MH_I2C_Read... [20:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:32]Read from MH i2c: E2 [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: E2 0E 00 [20:02:32]MH_I2C_Read... [20:02:32]Read from MH i2c: E2 0E 00 52 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2C [20:02:32]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:02:32]wFMCommunicate OK [20:02:32]SAM_PROTO_GetShiftState done [20:02:32]FM_GetShiftState done [20:02:32]req_shift_opened done [20:02:32]requested_item shift.open_date is exist - process it [20:02:32]req_shift_open_date [20:02:32]req_shift_open_date done [20:02:32]produce_requested_data done [20:02:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156421,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:02:32]process_action_free close_receipt [20:02:32]json_value_free [20:02:32]json_value_free done [20:02:32]process_json_proto returns [20:02:32]Send response to host [20:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156421,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:02:32]free response buf [20:02:32]execute_script done [20:02:32]execute_script returns [20:02:32]free content buf [20:02:32]Sock 8.Close socket [20:02:32]Sock 8.Thread stoped [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]accept exits with 9 [20:05:07]New connection [20:05:07]New thread 3066834276 created [20:05:07]Thread 3066977636 joined [20:05:07]Waiting for new connection... [20:05:07] Sock 9.Parse request [20:05:07]Sock 9.Check first char [20:05:07]Sock 9.First char is OK [20:05:07]request: POST /json_proto HTTP/1.0 [20:05:07]Method: POST [20:05:07]URL: /json_proto [20:05:07]Method is POST - this is cgi request [20:05:07]url: /json_proto [20:05:07]query_string will be loaded in cgi processing [20:05:07]execute_cgi json_proto POST (null) [20:05:07]execute_cgi path=json_proto method=POST [20:05:07]POST find Content-Length [20:05:07]Host: 172.17.63.3:8080 [20:05:07]Content-Length: 676 [20:05:07]Content-Type: application/json [20:05:07] [20:05:07]POST finish read [20:05:07]Found Content-Length = 676 [20:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:07]execute_script... [20:05:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:07]POST & json_proto [20:05:07]process_json_proto [20:05:07]json parsed OK: [20:05:07]protocol is kg_v1.0 [20:05:07]action value=close_receipt [20:05:07]process_action close_receipt [20:05:07]cmd_close_receipt [20:05:07]MH_GetDate [20:05:07]Write to MH i2c: F0 00 00 53 28 6A [20:05:07]Write i2c OK [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: F0 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: F0 09 00 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: F0 09 00 53 28 00 75 4B 1D 67 50 D1 6C 64 A8 [20:05:07]GetLastDocTimeStamp 1729972951 [20:05:07]current date 1729973109 [20:05:07]FM_GetShiftState [20:05:07]SAM_PROTO_GetShiftState [20:05:07]wFMCommunicate request_size=4 [20:05:07]MH_SAM_APDU [20:05:07]CAPDU: 80 13 01 00 [20:05:07]Write to MH i2c: E2 08 00 54 28 80 13 01 00 00 00 00 00 F9 [20:05:07]Write i2c OK [20:05:07]MH_I2C_Read... [20:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:07]Read from MH i2c: E2 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 0E 00 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 0E 00 54 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2E [20:05:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:05:07]wFMCommunicate OK [20:05:07]SAM_PROTO_GetShiftState done [20:05:07]FM_GetShiftState done [20:05:07]opened in 1729902702 [20:05:07]opened+sec_in_day 1729989102 [20:05:07]quantity*price = 30038 [20:05:07]sum+1 = 30039 [20:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 323 26.10.2024 20:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156422 ФПД: 203319078629223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200509&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156422&fm=203319078629223&tin=02508201610067®Number=0000000000091693&sum=30000 [20:05:08]StoreToDocumentArchive [20:05:08]shift 536 fd 156422 [20:05:08]save to /storage/0536/doc_00156422 [20:05:08]save last doc name /storage/0536/doc_00156422 to /storage/kkm_last_doc_name [20:05:08]save OK [20:05:08]Clear old archive folders... [20:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:08]tlvbuf is B6EE0460 [20:05:08]SAM_PROTO_ClearQueue [20:05:08]wFMCommunicate request_size=4 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 09 00 00 [20:05:08]Write to MH i2c: E2 08 00 61 28 80 09 00 00 00 00 00 00 FB [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 03 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 03 00 61 28 00 90 00 FD [20:05:08]RAPDU: 90 00 [20:05:08]wFMCommunicate OK [20:05:08]SAM_PROTO_ClearQueue done [20:05:08]KKMCreateOFDPacket [20:05:08]OFDProtocolAddRootSTLVToBuf [20:05:08]FM_MakeSignedData [20:05:08]FM_MakeSignedData [20:05:08]SAM_PROTO_SignData [20:05:08]wFMCommunicate request_size=4 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 0D 01 02 [20:05:08]Write to MH i2c: E2 08 00 62 28 80 0D 01 02 00 00 00 00 03 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 03 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 03 00 62 28 00 90 00 FE [20:05:08]RAPDU: 90 00 [20:05:08]wFMCommunicate OK [20:05:08]wFMCommunicate request_size=255 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 75 4B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 63 02 00 35 04 06 00 B8 [20:05:08]Write to MH i2c: E2 02 01 63 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 75 4B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 63 02 00 35 04 06 00 B8 00 00 50 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 03 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 03 00 63 28 00 90 00 FF [20:05:08]RAPDU: 90 00 [20:05:08]wFMCommunicate OK [20:05:08]wFMCommunicate request_size=10 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 0D 02 02 05 EA E9 75 2F 67 [20:05:08]Write to MH i2c: E2 0D 00 64 28 80 0D 02 02 05 00 EA E9 75 2F 67 00 00 EE [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 03 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 03 00 64 28 00 90 00 00 [20:05:08]RAPDU: 90 00 [20:05:08]wFMCommunicate OK [20:05:08]wFMCommunicate request_size=4 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 0D 03 02 [20:05:08]Write to MH i2c: E2 08 00 65 28 80 0D 03 02 00 00 00 00 08 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 0B 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 0B 00 65 28 00 F0 2D 34 BE 8A CD 32 21 90 00 C2 [20:05:08]RAPDU: F0 2D 34 BE 8A CD 32 21 90 00 [20:05:08]wFMCommunicate OK [20:05:08]SAM_PROTO_SignData done [20:05:08]FM_MakeSignedData done [20:05:08]CreateOFDProtocolMessage [20:05:08]wFMCommunicate request_size=4 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 11 00 00 [20:05:08]Write to MH i2c: E2 08 00 66 28 80 11 00 00 00 00 00 00 08 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 17 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 17 00 66 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5D [20:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:05:08]wFMCommunicate OK [20:05:08]CreateOFDProtocolMessage done [20:05:08]OFDSenderStorePacket 156422 [20:05:08]StoreOFDPacket docnum=156422 [20:05:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0F D9 07 01 4A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 75 4B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 63 02 00 35 04 06 00 B8 EA E9 75 2F 67 F0 2D 34 BE 8A CD 32 21 [20:05:08]CheckFolder [20:05:08]dirname=/storage/ofd_packets [20:05:08]CheckFolder done [20:05:08]ProducePacketName [20:05:08]name=ofd_packets/00156422 [20:05:08]NVStorageSaveData ofd_packets/00156422 [20:05:08]File name is /storage/ofd_packets/00156422 [20:05:08]Write 301 bytes [20:05:08]NVStorageSaveData done [20:05:08]OFDSenderStorePacket done [20:05:08]KKMCreateOFDPacket done [20:05:08]NVStorageSaveData kkm_last_timestamp [20:05:08]File name is /storage/kkm_last_timestamp [20:05:08]Write 4 bytes [20:05:08]NVStorageSaveData done [20:05:08]ExternCall_PrintAddStr [20:05:08]wPrintStart [20:05:08]Write to MH i2c: 01 00 00 67 28 8F [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: 01 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: 01 07 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: 01 07 00 67 28 00 00 00 00 00 FF 0F A4 [20:05:08]RasterBufferAndPrint [20:05:08]line Счет N : (1)99237 [20:05:08]line ИНН: 02508201610067 [20:05:08]line Контрольно-Кассовый Чек [20:05:08]line ПРОДАЖА [20:05:08]line ТРК (МРК, ГНК) : 21 [20:05:08]line Товар: 2710124130 [20:05:08]line Аи-92-К-5 [20:05:08]line 4.490 * 66.90 [20:05:08]line = 300.38 [20:05:08]line НДС 12% НСП 1% [20:05:08]line > о реализуемом товаре [20:05:08]line ОКРУГЛЕНИЕ: -0.38 [20:05:08]line ИТОГО: 300.00 [20:05:08]line Внесено: 300.00 [20:05:08]line СДАЧА: 0.00 [20:05:08]line НСП 1% : 2.66 [20:05:08]line НДС 12% : 31.90 [20:05:08]line Наличными: 300.00 [20:05:08]line Безнал.: 0.00 [20:05:08]line Место: АЗС № 143 "Партнер Нефть" [20:05:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:05:08]line СНО: Общий режим [20:05:08]line Чек 323 26.10.2024 20:05 [20:05:08]line Смена: 536 ФФД: 1.0 [20:05:08]line ЗНМ: 0300000096 [20:05:08]line РНМ: 0000000000091693 [20:05:08]line Версия ККМ: 001 [20:05:08]line ФМ: 0000000000871792 [20:05:08]line ФД: 156422 [20:05:08]line ФПД: 203319078629223 [20:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200509&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156422&fm=203319078629223&tin=02508201610067®Number=0000000000091693&sum=30000 [20:05:09]OFD Sender: Processing packet 156422 [packets to send 31, broken 30] [20:05:09]ProducePacketName [20:05:09]name=ofd_packets/00156422 [20:05:09]OFD Sender: To server: pG, [20:05:09]CommunicateWithHost lk.salyk.kg:30040 [20:05:09]ConnectInit lk.salyk.kg [20:05:09]written 0, free lines is 4095 [20:05:09]Connected sock=10 [20: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 31 37 39 32 0F 01 00 00 0F D9 07 01 4A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 75 4B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 63 02 00 35 04 06 00 B8 EA E9 75 2F 67 F0 2D 34 BE 8A CD 32 21 [20:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 80 DB 47 00 1F AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 63 02 00 F4 03 04 00 E6 F0 1C 67 B6 04 01 00 00 69 C5 D1 7A 30 42 63 61 [20:05:09]CommunicateWithHost err = 0 [20:05:09]CheckOFDResponse [20:05:09]1017 (14) - 77093643461234 [20:05:09]1041 (16) - 0000000000871792 [20:05:09]1040 (4) - 156422 [20:05:09]1012 (4) - 26.10.2024 13:38 [20:05:09]1206 (1) - 0 [20:05:09]OFD Sender: Remove packet 156422 [20:05:09]ProducePacketName [20:05:09]name=ofd_packets/00156422 [20:05:09]NVStorageDeleteData [20:05:09]Write to MH i2c: 01 00 00 92 28 BA [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: 01 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: 01 07 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: 01 07 00 92 28 00 00 00 00 00 E6 0C B3 [20:05:09]RasterBufferAndPrint [20:05:09]line [20:05:09]line [20:05:09]line [20:05:09]line [20:05:09]line [20:05:09]written 0, free lines is 3308 [20:05:09]process_action close_receipt done [20:05:09]requested_data is exist [20:05:09]produce_requested_data [20:05:09]requested_item fm.sn is exist - process it [20:05:09]wFMCommunicate request_size=4 [20:05:09]MH_SAM_APDU [20:05:09]CAPDU: 80 11 00 00 [20:05:09]Write to MH i2c: E2 08 00 99 28 80 11 00 00 00 00 00 00 3B [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 17 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 17 00 99 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 90 [20:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:05:09]wFMCommunicate OK [20:05:09]requested_item fd.num is exist - process it [20:05:09]SAM_PROTO_GetFieldsCounters [20:05:09]wFMCommunicate request_size=4 [20:05:09]MH_SAM_APDU [20:05:09]CAPDU: 80 13 00 00 [20:05:09]Write to MH i2c: E2 08 00 9A 28 80 13 00 00 00 00 00 00 3E [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 62 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 62 00 9A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 06 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [20:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 06 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:09]wFMCommunicate OK [20:05:09]SAM_PROTO_GetFieldsCounters done [20:05:09]requested_item shift.num is exist - process it [20:05:09]requested_item shift.opened is exist - process it [20:05:09]req_shift_opened [20:05:09]FM_GetShiftState [20:05:09]SAM_PROTO_GetShiftState [20:05:09]wFMCommunicate request_size=4 [20:05:09]MH_SAM_APDU [20:05:09]CAPDU: 80 13 01 00 [20:05:09]Write to MH i2c: E2 08 00 9B 28 80 13 01 00 00 00 00 00 40 [20:05:09]Write i2c OK [20:05:09]MH_I2C_Read... [20:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:09]Read from MH i2c: E2 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 0E 00 [20:05:09]MH_I2C_Read... [20:05:09]Read from MH i2c: E2 0E 00 9B 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 75 [20:05:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:05:09]wFMCommunicate OK [20:05:09]SAM_PROTO_GetShiftState done [20:05:09]FM_GetShiftState done [20:05:09]req_shift_opened done [20:05:09]requested_item shift.open_date is exist - process it [20:05:09]req_shift_open_date [20:05:09]req_shift_open_date done [20:05:09]produce_requested_data done [20:05:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156422,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:05:09]process_action_free close_receipt [20:05:09]json_value_free [20:05:09]json_value_free done [20:05:09]process_json_proto returns [20:05:09]Send response to host [20:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156422,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:05:09]free response buf [20:05:09]execute_script done [20:05:09]execute_script returns [20:05:09]free content buf [20:05:09]Sock 9.Close socket [20:05:09]Sock 9.Thread stoped [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:43]accept exits with 8 [20:06:43]New connection [20:06:43]New thread 3066977636 created [20:06:43]Thread 3066834276 joined [20:06:43]Waiting for new connection... [20:06:43] Sock 8.Parse request [20:06:43]Sock 8.Check first char [20:06:43]Sock 8.First char is OK [20:06:43]request: POST /json_proto HTTP/1.0 [20:06:43]Method: POST [20:06:43]URL: /json_proto [20:06:43]Method is POST - this is cgi request [20:06:43]url: /json_proto [20:06:43]query_string will be loaded in cgi processing [20:06:43]execute_cgi json_proto POST (null) [20:06:43]execute_cgi path=json_proto method=POST [20:06:43]POST find Content-Length [20:06:43]Host: 172.17.63.3:8080 [20:06:43]Content-Length: 765 [20:06:43]Content-Type: application/json [20:06:43] [20:06:43]POST finish read [20:06:43]Found Content-Length = 765 [20:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:43]execute_script... [20:06:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:43]POST & json_proto [20:06:43]process_json_proto [20:06:43]json parsed OK: [20:06:43]protocol is kg_v1.0 [20:06:43]action value=close_receipt [20:06:43]process_action close_receipt [20:06:43]cmd_close_receipt [20:06:43]MH_GetDate [20:06:43]Write to MH i2c: F0 00 00 9C 28 B3 [20:06:43]Write i2c OK [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: F0 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: F0 09 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: F0 09 00 9C 28 00 D5 4B 1D 67 50 D1 6C 64 51 [20:06:43]GetLastDocTimeStamp 1729973109 [20:06:43]current date 1729973205 [20:06:43]FM_GetShiftState [20:06:43]SAM_PROTO_GetShiftState [20:06:43]wFMCommunicate request_size=4 [20:06:43]MH_SAM_APDU [20:06:43]CAPDU: 80 13 01 00 [20:06:43]Write to MH i2c: E2 08 00 9D 28 80 13 01 00 00 00 00 00 42 [20:06:43]Write i2c OK [20:06:43]MH_I2C_Read... [20:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:43]Read from MH i2c: E2 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 0E 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 0E 00 9D 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 77 [20:06:43]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:06:43]wFMCommunicate OK [20:06:43]SAM_PROTO_GetShiftState done [20:06:43]FM_GetShiftState done [20:06:43]opened in 1729902702 [20:06:43]opened+sec_in_day 1729989102 [20:06:43]quantity*price = 30038 [20:06:43]sum+1 = 30039 [20:06:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 324 26.10.2024 20:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156423 ФПД: 257463700559252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200645&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156423&fm=257463700559252&tin=02508201610067®Number=0000000000091693&sum=30038 [20:06:44]StoreToDocumentArchive [20:06:44]shift 536 fd 156423 [20:06:44]save to /storage/0536/doc_00156423 [20:06:44]save last doc name /storage/0536/doc_00156423 to /storage/kkm_last_doc_name [20:06:44]save OK [20:06:44]Clear old archive folders... [20:06:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:44]tlvbuf is 01753DA0 [20:06:44]SAM_PROTO_ClearQueue [20:06:44]wFMCommunicate request_size=4 [20:06:44]MH_SAM_APDU [20:06:44]CAPDU: 80 09 00 00 [20:06:44]Write to MH i2c: E2 08 00 AA 28 80 09 00 00 00 00 00 00 44 [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:44]Read from MH i2c: E2 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 03 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 03 00 AA 28 00 90 00 46 [20:06:44]RAPDU: 90 00 [20:06:44]wFMCommunicate OK [20:06:44]SAM_PROTO_ClearQueue done [20:06:44]KKMCreateOFDPacket [20:06:44]OFDProtocolAddRootSTLVToBuf [20:06:44]FM_MakeSignedData [20:06:44]FM_MakeSignedData [20:06:44]SAM_PROTO_SignData [20:06:44]wFMCommunicate request_size=4 [20:06:44]MH_SAM_APDU [20:06:44]CAPDU: 80 0D 01 02 [20:06:44]Write to MH i2c: E2 08 00 AB 28 80 0D 01 02 00 00 00 00 4C [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:44]Read from MH i2c: E2 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 03 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 03 00 AB 28 00 90 00 47 [20:06:44]RAPDU: 90 00 [20:06:44]wFMCommunicate OK [20:06:44]wFMCommunicate request_size=255 [20:06:44]MH_SAM_APDU [20:06:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D5 4B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 63 02 00 35 04 06 00 EA [20:06:44]Write to MH i2c: E2 02 01 AC 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D5 4B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 63 02 00 35 04 06 00 EA 00 00 79 [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:44]Read from MH i2c: E2 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 03 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 03 00 AC 28 00 90 00 48 [20:06:44]RAPDU: 90 00 [20:06:44]wFMCommunicate OK [20:06:44]wFMCommunicate request_size=10 [20:06:44]MH_SAM_APDU [20:06:44]CAPDU: 80 0D 02 02 05 29 70 6A 15 94 [20:06:44]Write to MH i2c: E2 0D 00 AD 28 80 0D 02 02 05 00 29 70 6A 15 94 00 00 05 [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:44]Read from MH i2c: E2 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 03 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 03 00 AD 28 00 90 00 49 [20:06:44]RAPDU: 90 00 [20:06:44]wFMCommunicate OK [20:06:44]wFMCommunicate request_size=4 [20:06:44]MH_SAM_APDU [20:06:44]CAPDU: 80 0D 03 02 [20:06:44]Write to MH i2c: E2 08 00 AE 28 80 0D 03 02 00 00 00 00 51 [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:44]Read from MH i2c: E2 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 0B 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 0B 00 AE 28 00 C8 5A 1D 00 11 9F 18 E3 90 00 3C [20:06:44]RAPDU: C8 5A 1D 00 11 9F 18 E3 90 00 [20:06:44]wFMCommunicate OK [20:06:44]SAM_PROTO_SignData done [20:06:44]FM_MakeSignedData done [20:06:44]CreateOFDProtocolMessage [20:06:44]wFMCommunicate request_size=4 [20:06:44]MH_SAM_APDU [20:06:44]CAPDU: 80 11 00 00 [20:06:44]Write to MH i2c: E2 08 00 AF 28 80 11 00 00 00 00 00 00 51 [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:44]Read from MH i2c: E2 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 17 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: E2 17 00 AF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [20:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:06:44]wFMCommunicate OK [20:06:44]CreateOFDProtocolMessage done [20:06:44]OFDSenderStorePacket 156423 [20:06:44]StoreOFDPacket docnum=156423 [20:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 11 62 07 01 0B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D5 4B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 63 02 00 35 04 06 00 EA 29 70 6A 15 94 C8 5A 1D 00 11 9F 18 E3 [20:06:44]CheckFolder [20:06:44]dirname=/storage/ofd_packets [20:06:44]CheckFolder done [20:06:44]ProducePacketName [20:06:44]name=ofd_packets/00156423 [20:06:44]NVStorageSaveData ofd_packets/00156423 [20:06:44]File name is /storage/ofd_packets/00156423 [20:06:44]Write 301 bytes [20:06:44]NVStorageSaveData done [20:06:44]OFDSenderStorePacket done [20:06:44]KKMCreateOFDPacket done [20:06:44]NVStorageSaveData kkm_last_timestamp [20:06:44]File name is /storage/kkm_last_timestamp [20:06:44]Write 4 bytes [20:06:44]NVStorageSaveData done [20:06:44]ExternCall_PrintAddStr [20:06:44]wPrintStart [20:06:44]Write to MH i2c: 01 00 00 B0 28 D8 [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: 01 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: 01 07 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: 01 07 00 B0 28 00 00 00 00 00 FF 0F ED [20:06:44]RasterBufferAndPrint [20:06:44]line Счет N : (1)99238 [20:06:44]line ИНН: 02508201610067 [20:06:44]line Контрольно-Кассовый Чек [20:06:44]line ПРОДАЖА [20:06:44]line ТРК (МРК, ГНК) : 31 [20:06:44]line Товар: 2710124130 [20:06:44]line Аи-92-К-5 [20:06:44]line 4.490 * 66.90 [20:06:44]line = 300.38 [20:06:44]line НДС 12% НСП 1% [20:06:44]line > о реализуемом товаре [20:06:44]line ИТОГО: 300.38 [20:06:44]line НСП 1% : 2.66 [20:06:44]line НДС 12% : 31.90 [20:06:44]line Наличными: 0.00 [20:06:44]line Безнал.: 300.38 [20:06:44]line Место: АЗС № 143 "Партнер Нефть" [20:06:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:06:44]line СНО: Общий режим [20:06:44]line Чек 324 26.10.2024 20:06 [20:06:44]line Смена: 536 ФФД: 1.0 [20:06:44]line ЗНМ: 0300000096 [20:06:44]line РНМ: 0000000000091693 [20:06:44]line Версия ККМ: 001 [20:06:44]line Платежная система: Mbank [20:06:44]line ФМ: 0000000000871792 [20:06:44]line ФД: 156423 [20:06:44]line ФПД: 257463700559252 [20:06:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200645&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156423&fm=257463700559252&tin=02508201610067®Number=0000000000091693&sum=30038 [20:06:45]OFD Sender: Processing packet 156423 [packets to send 31, broken 30] [20:06:45]ProducePacketName [20:06:45]name=ofd_packets/00156423 [20:06:45]OFD Sender: To server: pG, [20:06:45]CommunicateWithHost lk.salyk.kg:30040 [20:06:45]ConnectInit lk.salyk.kg [20:06:45]written 0, free lines is 4095 [20:06:45]Write to MH i2c: 01 00 00 D9 28 01 [20:06:45]Write i2c OK [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: 01 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: 01 07 00 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: 01 07 00 D9 28 00 00 00 00 00 FF 0C 13 [20:06:45]RasterBufferAndPrint [20:06:45]line [20:06:45]line [20:06:45]line [20:06:45]line [20:06:45]line [20:06:45]written 0, free lines is 3333 [20:06:45]process_action close_receipt done [20:06:45]requested_data is exist [20:06:45]produce_requested_data [20:06:45]requested_item fm.sn is exist - process it [20:06:45]wFMCommunicate request_size=4 [20:06:45]MH_SAM_APDU [20:06:45]CAPDU: 80 11 00 00 [20:06:45]Write to MH i2c: E2 08 00 E0 28 80 11 00 00 00 00 00 00 82 [20:06:45]Write i2c OK [20:06:45]MH_I2C_Read... [20:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:45]Read from MH i2c: E2 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: E2 17 00 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: E2 17 00 E0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [20:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:06:45]wFMCommunicate OK [20:06:45]requested_item fd.num is exist - process it [20:06:45]SAM_PROTO_GetFieldsCounters [20:06:45]wFMCommunicate request_size=4 [20:06:45]MH_SAM_APDU [20:06:45]CAPDU: 80 13 00 00 [20:06:45]Write to MH i2c: E2 08 00 E1 28 80 13 00 00 00 00 00 00 85 [20:06:45]Write i2c OK [20:06:45]MH_I2C_Read... [20:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:45]Read from MH i2c: E2 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: E2 62 00 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: E2 62 00 E1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 07 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [20: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 07 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:45]wFMCommunicate OK [20:06:45]SAM_PROTO_GetFieldsCounters done [20:06:45]requested_item shift.num is exist - process it [20:06:45]requested_item shift.opened is exist - process it [20:06:45]req_shift_opened [20:06:45]FM_GetShiftState [20:06:45]SAM_PROTO_GetShiftState [20:06:45]wFMCommunicate request_size=4 [20:06:45]MH_SAM_APDU [20:06:45]CAPDU: 80 13 01 00 [20:06:45]Write to MH i2c: E2 08 00 E2 28 80 13 01 00 00 00 00 00 87 [20:06:45]Write i2c OK [20:06:45]MH_I2C_Read... [20:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:45]Read from MH i2c: E2 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: E2 0E 00 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: E2 0E 00 E2 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BC [20:06:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:06:45]wFMCommunicate OK [20:06:45]SAM_PROTO_GetShiftState done [20:06:45]FM_GetShiftState done [20:06:45]req_shift_opened done [20:06:45]requested_item shift.open_date is exist - process it [20:06:45]req_shift_open_date [20:06:45]req_shift_open_date done [20:06:45]produce_requested_data done [20:06:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156423,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:06:45]process_action_free close_receipt [20:06:45]json_value_free [20:06:45]json_value_free done [20:06:45]process_json_proto returns [20:06:45]Send response to host [20:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156423,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:06:45]free response buf [20:06:45]execute_script done [20:06:45]execute_script returns [20:06:45]free content buf [20:06:45]Sock 8.Close socket [20:06:45]Sock 8.Thread stoped [20:08:54]ConnectInit Can't connect to host [20:08:54]CommunicateWithHost connect error [20:08:54]CommunicateWithHost err = -1 [20:08:54]OFD Sender: Server communicate error [20:08:59]OFD Sender: Processing packet 156423 [packets to send 31, broken 30] [20:08:59]ProducePacketName [20:08:59]name=ofd_packets/00156423 [20:08:59]OFD Sender: To server: pG, [20:08:59]CommunicateWithHost lk.salyk.kg:30040 [20:08:59]ConnectInit lk.salyk.kg [20:08:59]Connected sock=8 [20:08:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 11 62 07 01 0B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D5 4B 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 63 02 00 35 04 06 00 EA 29 70 6A 15 94 C8 5A 1D 00 11 9F 18 E3 [20:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 14 32 47 00 B1 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 63 02 00 F4 03 04 00 CD F1 1C 67 B6 04 01 00 00 BC A3 D8 96 07 4F 7D 63 [20:09:00]CommunicateWithHost err = 0 [20:09:00]CheckOFDResponse [20:09:00]1017 (14) - 77093643461234 [20:09:00]1041 (16) - 0000000000871792 [20:09:00]1040 (4) - 156423 [20:09:00]1012 (4) - 26.10.2024 13:42 [20:09:00]1206 (1) - 0 [20:09:00]OFD Sender: Remove packet 156423 [20:09:00]ProducePacketName [20:09:00]name=ofd_packets/00156423 [20:09:00]NVStorageDeleteData [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:18]accept exits with 9 [20:15:18]New connection [20:15:18]New thread 3066834276 created [20:15:18]Thread 3066977636 joined [20:15:18]Waiting for new connection... [20:15:18] Sock 9.Parse request [20:15:18]Sock 9.Check first char [20:15:18]Sock 9.First char is OK [20:15:18]request: POST /json_proto HTTP/1.0 [20:15:18]Method: POST [20:15:18]URL: /json_proto [20:15:18]Method is POST - this is cgi request [20:15:18]url: /json_proto [20:15:18]query_string will be loaded in cgi processing [20:15:18]execute_cgi json_proto POST (null) [20:15:18]execute_cgi path=json_proto method=POST [20:15:18]POST find Content-Length [20:15:18]Host: 172.17.63.3:8080 [20:15:18]Content-Length: 676 [20:15:18]Content-Type: application/json [20:15:18] [20:15:18]POST finish read [20:15:18]Found Content-Length = 676 [20:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:18]execute_script... [20:15: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)99239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:18]POST & json_proto [20:15:18]process_json_proto [20:15:18]json parsed OK: [20:15:18]protocol is kg_v1.0 [20:15:18]action value=close_receipt [20:15:18]process_action close_receipt [20:15:18]cmd_close_receipt [20:15:18]MH_GetDate [20:15:18]Write to MH i2c: F0 00 00 E3 28 FA [20:15:18]Write i2c OK [20:15:18]MH_I2C_Read... [20:15:18]Read from MH i2c: F0 [20:15:18]MH_I2C_Read... [20:15:18]Read from MH i2c: F0 09 00 [20:15:18]MH_I2C_Read... [20:15:18]Read from MH i2c: F0 09 00 E3 28 00 D8 4D 1D 67 50 D1 6C 64 9D [20:15:18]GetLastDocTimeStamp 1729973205 [20:15:18]current date 1729973720 [20:15:18]FM_GetShiftState [20:15:18]SAM_PROTO_GetShiftState [20:15:18]wFMCommunicate request_size=4 [20:15:18]MH_SAM_APDU [20:15:18]CAPDU: 80 13 01 00 [20:15:18]Write to MH i2c: E2 08 00 E4 28 80 13 01 00 00 00 00 00 89 [20:15:18]Write i2c OK [20:15:18]MH_I2C_Read... [20:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:18]Read from MH i2c: E2 [20:15:18]MH_I2C_Read... [20:15:18]Read from MH i2c: E2 0E 00 [20:15:18]MH_I2C_Read... [20:15:18]Read from MH i2c: E2 0E 00 E4 28 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BE [20:15:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:15:18]wFMCommunicate OK [20:15:18]SAM_PROTO_GetShiftState done [20:15:18]FM_GetShiftState done [20:15:18]opened in 1729902702 [20:15:18]opened+sec_in_day 1729989102 [20:15:18]quantity*price = 50041 [20:15:18]sum+1 = 50042 [20:15:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 325 26.10.2024 20:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156424 ФПД: 49619481849822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201520&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156424&fm=49619481849822&tin=02508201610067®Number=0000000000091693&sum=50000 [20:15:20]StoreToDocumentArchive [20:15:20]shift 536 fd 156424 [20:15:20]save to /storage/0536/doc_00156424 [20:15:20]save last doc name /storage/0536/doc_00156424 to /storage/kkm_last_doc_name [20:15:20]save OK [20:15:20]Clear old archive folders... [20:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:20]tlvbuf is 016B3630 [20:15:20]SAM_PROTO_ClearQueue [20:15:20]wFMCommunicate request_size=4 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 09 00 00 [20:15:20]Write to MH i2c: E2 08 00 F1 28 80 09 00 00 00 00 00 00 8B [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [20:15:20]RAPDU: 90 00 [20:15:20]wFMCommunicate OK [20:15:20]SAM_PROTO_ClearQueue done [20:15:20]KKMCreateOFDPacket [20:15:20]OFDProtocolAddRootSTLVToBuf [20:15:20]FM_MakeSignedData [20:15:20]FM_MakeSignedData [20:15:20]SAM_PROTO_SignData [20:15:20]wFMCommunicate request_size=4 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 0D 01 02 [20:15:20]Write to MH i2c: E2 08 00 F2 28 80 0D 01 02 00 00 00 00 93 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [20:15:20]RAPDU: 90 00 [20:15:20]wFMCommunicate OK [20:15:20]wFMCommunicate request_size=255 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 4D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 63 02 00 35 04 06 00 2D [20:15:20]Write to MH i2c: E2 02 01 F3 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 D8 4D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 63 02 00 35 04 06 00 2D 00 00 CA [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [20:15:20]RAPDU: 90 00 [20:15:20]wFMCommunicate OK [20:15:20]wFMCommunicate request_size=10 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 0D 02 02 05 20 EF 96 EF DE [20:15:20]Write to MH i2c: E2 0D 00 F4 28 80 0D 02 02 05 00 20 EF 96 EF DE 00 00 12 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [20:15:20]RAPDU: 90 00 [20:15:20]wFMCommunicate OK [20:15:20]wFMCommunicate request_size=4 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 0D 03 02 [20:15:20]Write to MH i2c: E2 08 00 F5 28 80 0D 03 02 00 00 00 00 98 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 0B 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 0B 00 F5 28 00 6A 4B 2B 40 62 B8 5E 49 90 00 7A [20:15:20]RAPDU: 6A 4B 2B 40 62 B8 5E 49 90 00 [20:15:20]wFMCommunicate OK [20:15:20]SAM_PROTO_SignData done [20:15:20]FM_MakeSignedData done [20:15:20]CreateOFDProtocolMessage [20:15:20]wFMCommunicate request_size=4 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 11 00 00 [20:15:20]Write to MH i2c: E2 08 00 F6 28 80 11 00 00 00 00 00 00 98 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 17 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 17 00 F6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [20:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:15:20]wFMCommunicate OK [20:15:20]CreateOFDProtocolMessage done [20:15:20]OFDSenderStorePacket 156424 [20:15:20]StoreOFDPacket docnum=156424 [20:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A 41 07 01 38 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 D8 4D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 63 02 00 35 04 06 00 2D 20 EF 96 EF DE 6A 4B 2B 40 62 B8 5E 49 [20:15:20]CheckFolder [20:15:20]dirname=/storage/ofd_packets [20:15:20]CheckFolder done [20:15:20]ProducePacketName [20:15:20]name=ofd_packets/00156424 [20:15:20]NVStorageSaveData ofd_packets/00156424 [20:15:20]File name is /storage/ofd_packets/00156424 [20:15:20]Write 301 bytes [20:15:20]NVStorageSaveData done [20:15:20]OFDSenderStorePacket done [20:15:20]KKMCreateOFDPacket done [20:15:20]NVStorageSaveData kkm_last_timestamp [20:15:20]File name is /storage/kkm_last_timestamp [20:15:20]Write 4 bytes [20:15:20]NVStorageSaveData done [20:15:20]ExternCall_PrintAddStr [20:15:20]wPrintStart [20:15:20]Write to MH i2c: 01 00 00 F7 28 1F [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 07 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 FF 0F 34 [20:15:20]RasterBufferAndPrint [20:15:20]line Счет N : (1)99239 [20:15:20]line ИНН: 02508201610067 [20:15:20]line Контрольно-Кассовый Чек [20:15:20]line ПРОДАЖА [20:15:20]line ТРК (МРК, ГНК) : 31 [20:15:20]line Товар: 2710124130 [20:15:20]line Аи-92-К-5 [20:15:20]line 7.480 * 66.90 [20:15:20]line = 500.41 [20:15:20]line НДС 12% НСП 1% [20:15:20]line > о реализуемом товаре [20:15:20]line ОКРУГЛЕНИЕ: -0.41 [20:15:20]line ИТОГО: 500.00 [20:15:20]line Внесено: 500.00 [20:15:20]line СДАЧА: 0.00 [20:15:20]line НСП 1% : 4.43 [20:15:20]line НДС 12% : 53.14 [20:15:20]line Наличными: 500.00 [20:15:20]line Безнал.: 0.00 [20:15:20]line Место: АЗС № 143 "Партнер Нефть" [20:15:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:15:20]line СНО: Общий режим [20:15:20]line Чек 325 26.10.2024 20:15 [20:15:20]line Смена: 536 ФФД: 1.0 [20:15:20]line ЗНМ: 0300000096 [20:15:20]line РНМ: 0000000000091693 [20:15:20]line Версия ККМ: 001 [20:15:20]line ФМ: 0000000000871792 [20:15:20]line ФД: 156424 [20:15:20]line ФПД: 49619481849822 [20:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201520&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156424&fm=49619481849822&tin=02508201610067®Number=0000000000091693&sum=50000 [20:15:20]OFD Sender: Processing packet 156424 [packets to send 31, broken 30] [20:15:20]ProducePacketName [20:15:20]name=ofd_packets/00156424 [20:15:20]OFD Sender: To server: pG, [20:15:20]CommunicateWithHost lk.salyk.kg:30040 [20:15:20]ConnectInit lk.salyk.kg [20:15:20]written 0, free lines is 4095 [20:15:21]Connected sock=10 [20:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A 41 07 01 38 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 D8 4D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 63 02 00 35 04 06 00 2D 20 EF 96 EF DE 6A 4B 2B 40 62 B8 5E 49 [20:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9D 2B 47 00 C6 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 63 02 00 F4 03 04 00 4A F3 1C 67 B6 04 01 00 00 32 13 9D 7A 28 3F 3D 8C [20:15:21]CommunicateWithHost err = 0 [20:15:21]CheckOFDResponse [20:15:21]1017 (14) - 77093643461234 [20:15:21]1041 (16) - 0000000000871792 [20:15:21]1040 (4) - 156424 [20:15:21]1012 (4) - 26.10.2024 13:48 [20:15:21]1206 (1) - 0 [20:15:21]OFD Sender: Remove packet 156424 [20:15:21]ProducePacketName [20:15:21]name=ofd_packets/00156424 [20:15:21]NVStorageDeleteData [20:15:21]Write to MH i2c: 01 00 00 22 29 4B [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 07 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 E6 0C 44 [20:15:21]RasterBufferAndPrint [20:15:21]line [20:15:21]line [20:15:21]line [20:15:21]line [20:15:21]line [20:15:21]written 0, free lines is 3308 [20:15:21]process_action close_receipt done [20:15:21]requested_data is exist [20:15:21]produce_requested_data [20:15:21]requested_item fm.sn is exist - process it [20:15:21]wFMCommunicate request_size=4 [20:15:21]MH_SAM_APDU [20:15:21]CAPDU: 80 11 00 00 [20:15:21]Write to MH i2c: E2 08 00 29 29 80 11 00 00 00 00 00 00 CC [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:21]Read from MH i2c: E2 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 17 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 17 00 29 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 21 [20:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:15:21]wFMCommunicate OK [20:15:21]requested_item fd.num is exist - process it [20:15:21]SAM_PROTO_GetFieldsCounters [20:15:21]wFMCommunicate request_size=4 [20:15:21]MH_SAM_APDU [20:15:21]CAPDU: 80 13 00 00 [20:15:21]Write to MH i2c: E2 08 00 2A 29 80 13 00 00 00 00 00 00 CF [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:21]Read from MH i2c: E2 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 62 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 62 00 2A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 08 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [20:15: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 08 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:21]wFMCommunicate OK [20:15:21]SAM_PROTO_GetFieldsCounters done [20:15:21]requested_item shift.num is exist - process it [20:15:21]requested_item shift.opened is exist - process it [20:15:21]req_shift_opened [20:15:21]FM_GetShiftState [20:15:21]SAM_PROTO_GetShiftState [20:15:21]wFMCommunicate request_size=4 [20:15:21]MH_SAM_APDU [20:15:21]CAPDU: 80 13 01 00 [20:15:21]Write to MH i2c: E2 08 00 2B 29 80 13 01 00 00 00 00 00 D1 [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:21]Read from MH i2c: E2 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 0E 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 0E 00 2B 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 06 [20:15:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:15:21]wFMCommunicate OK [20:15:21]SAM_PROTO_GetShiftState done [20:15:21]FM_GetShiftState done [20:15:21]req_shift_opened done [20:15:21]requested_item shift.open_date is exist - process it [20:15:21]req_shift_open_date [20:15:21]req_shift_open_date done [20:15:21]produce_requested_data done [20:15:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156424,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:15:21]process_action_free close_receipt [20:15:21]json_value_free [20:15:21]json_value_free done [20:15:21]process_json_proto returns [20:15:21]Send response to host [20:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156424,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:15:21]free response buf [20:15:21]execute_script done [20:15:21]execute_script returns [20:15:21]free content buf [20:15:21]Sock 9.Close socket [20:15:21]Sock 9.Thread stoped [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:37]accept exits with 8 [20:15:37]New connection [20:15:37]New thread 3066977636 created [20:15:37]Thread 3066834276 joined [20:15:37]Waiting for new connection... [20:15:37] Sock 8.Parse request [20:15:37]Sock 8.Check first char [20:15:37]Sock 8.First char is OK [20:15:37]request: POST /json_proto HTTP/1.0 [20:15:37]Method: POST [20:15:37]URL: /json_proto [20:15:37]Method is POST - this is cgi request [20:15:37]url: /json_proto [20:15:37]query_string will be loaded in cgi processing [20:15:37]execute_cgi json_proto POST (null) [20:15:37]execute_cgi path=json_proto method=POST [20:15:37]POST find Content-Length [20:15:37]Host: 172.17.63.3:8080 [20:15:37]Content-Length: 676 [20:15:37]Content-Type: application/json [20:15:37] [20:15:37]POST finish read [20:15:37]Found Content-Length = 676 [20:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:37]execute_script... [20:15:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:37]POST & json_proto [20:15:37]process_json_proto [20:15:37]json parsed OK: [20:15:37]protocol is kg_v1.0 [20:15:37]action value=close_receipt [20:15:37]process_action close_receipt [20:15:37]cmd_close_receipt [20:15:37]MH_GetDate [20:15:37]Write to MH i2c: F0 00 00 2C 29 44 [20:15:37]Write i2c OK [20:15:37]MH_I2C_Read... [20:15:37]Read from MH i2c: F0 [20:15:37]MH_I2C_Read... [20:15:37]Read from MH i2c: F0 09 00 [20:15:37]MH_I2C_Read... [20:15:37]Read from MH i2c: F0 09 00 2C 29 00 EB 4D 1D 67 50 D1 6C 64 FA [20:15:37]GetLastDocTimeStamp 1729973720 [20:15:37]current date 1729973739 [20:15:37]FM_GetShiftState [20:15:37]SAM_PROTO_GetShiftState [20:15:37]wFMCommunicate request_size=4 [20:15:37]MH_SAM_APDU [20:15:37]CAPDU: 80 13 01 00 [20:15:37]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [20:15:37]Write i2c OK [20:15:37]MH_I2C_Read... [20:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:37]Read from MH i2c: E2 [20:15:37]MH_I2C_Read... [20:15:37]Read from MH i2c: E2 0E 00 [20:15:37]MH_I2C_Read... [20:15:37]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 08 [20:15:37]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:15:37]wFMCommunicate OK [20:15:37]SAM_PROTO_GetShiftState done [20:15:37]FM_GetShiftState done [20:15:37]opened in 1729902702 [20:15:37]opened+sec_in_day 1729989102 [20:15:37]quantity*price = 30038 [20:15:37]sum+1 = 30039 [20:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 326 26.10.2024 20:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156425 ФПД: 245441948237657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156425&fm=245441948237657&tin=02508201610067®Number=0000000000091693&sum=30000 [20:15:38]StoreToDocumentArchive [20:15:38]shift 536 fd 156425 [20:15:38]save to /storage/0536/doc_00156425 [20:15:38]save last doc name /storage/0536/doc_00156425 to /storage/kkm_last_doc_name [20:15:38]save OK [20:15:38]Clear old archive folders... [20:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:38]tlvbuf is 0171E0E0 [20:15:38]SAM_PROTO_ClearQueue [20:15:38]wFMCommunicate request_size=4 [20:15:38]MH_SAM_APDU [20:15:38]CAPDU: 80 09 00 00 [20:15:38]Write to MH i2c: E2 08 00 3A 29 80 09 00 00 00 00 00 00 D5 [20:15:38]Write i2c OK [20:15:38]MH_I2C_Read... [20:15:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:38]Read from MH i2c: E2 [20:15:38]MH_I2C_Read... [20:15:38]Read from MH i2c: E2 03 00 [20:15:38]MH_I2C_Read... [20:15:38]Read from MH i2c: E2 03 00 3A 29 00 90 00 D7 [20:15:38]RAPDU: 90 00 [20:15:38]wFMCommunicate OK [20:15:38]SAM_PROTO_ClearQueue done [20:15:38]KKMCreateOFDPacket [20:15:38]OFDProtocolAddRootSTLVToBuf [20:15:38]FM_MakeSignedData [20:15:38]FM_MakeSignedData [20:15:38]SAM_PROTO_SignData [20:15:38]wFMCommunicate request_size=4 [20:15:38]MH_SAM_APDU [20:15:38]CAPDU: 80 0D 01 02 [20:15:38]Write to MH i2c: E2 08 00 3B 29 80 0D 01 02 00 00 00 00 DD [20:15:38]Write i2c OK [20:15:38]MH_I2C_Read... [20:15:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:38]Read from MH i2c: E2 [20:15:38]MH_I2C_Read... [20:15:38]Read from MH i2c: E2 03 00 [20:15:38]MH_I2C_Read... [20:15:38]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [20:15:38]RAPDU: 90 00 [20:15:38]wFMCommunicate OK [20:15:38]wFMCommunicate request_size=255 [20:15:38]MH_SAM_APDU [20:15:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 EB 4D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 63 02 00 35 04 06 00 DF [20:15:38]Write to MH i2c: E2 02 01 3C 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 EB 4D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 63 02 00 35 04 06 00 DF 00 00 CF [20:15:38]Write i2c OK [20:15:38]MH_I2C_Read... [20:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:39]Read from MH i2c: E2 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 03 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [20:15:39]RAPDU: 90 00 [20:15:39]wFMCommunicate OK [20:15:39]wFMCommunicate request_size=10 [20:15:39]MH_SAM_APDU [20:15:39]CAPDU: 80 0D 02 02 05 3A 68 23 3F 59 [20:15:39]Write to MH i2c: E2 0D 00 3D 29 80 0D 02 02 05 00 3A 68 23 3F 59 00 00 47 [20:15:39]Write i2c OK [20:15:39]MH_I2C_Read... [20:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:39]Read from MH i2c: E2 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 03 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [20:15:39]RAPDU: 90 00 [20:15:39]wFMCommunicate OK [20:15:39]wFMCommunicate request_size=4 [20:15:39]MH_SAM_APDU [20:15:39]CAPDU: 80 0D 03 02 [20:15:39]Write to MH i2c: E2 08 00 3E 29 80 0D 03 02 00 00 00 00 E2 [20:15:39]Write i2c OK [20:15:39]MH_I2C_Read... [20:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:39]Read from MH i2c: E2 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 0B 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 0B 00 3E 29 00 18 58 7E CB 87 D0 68 76 90 00 D1 [20:15:39]RAPDU: 18 58 7E CB 87 D0 68 76 90 00 [20:15:39]wFMCommunicate OK [20:15:39]SAM_PROTO_SignData done [20:15:39]FM_MakeSignedData done [20:15:39]CreateOFDProtocolMessage [20:15:39]wFMCommunicate request_size=4 [20:15:39]MH_SAM_APDU [20:15:39]CAPDU: 80 11 00 00 [20:15:39]Write to MH i2c: E2 08 00 3F 29 80 11 00 00 00 00 00 00 E2 [20:15:39]Write i2c OK [20:15:39]MH_I2C_Read... [20:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:39]Read from MH i2c: E2 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 17 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 17 00 3F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [20:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:15:39]wFMCommunicate OK [20:15:39]CreateOFDProtocolMessage done [20:15:39]OFDSenderStorePacket 156425 [20:15:39]StoreOFDPacket docnum=156425 [20:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6C 91 07 01 0D D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 EB 4D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 63 02 00 35 04 06 00 DF 3A 68 23 3F 59 18 58 7E CB 87 D0 68 76 [20:15:39]CheckFolder [20:15:39]dirname=/storage/ofd_packets [20:15:39]CheckFolder done [20:15:39]ProducePacketName [20:15:39]name=ofd_packets/00156425 [20:15:39]NVStorageSaveData ofd_packets/00156425 [20:15:39]File name is /storage/ofd_packets/00156425 [20:15:39]Write 301 bytes [20:15:39]NVStorageSaveData done [20:15:39]OFDSenderStorePacket done [20:15:39]KKMCreateOFDPacket done [20:15:39]NVStorageSaveData kkm_last_timestamp [20:15:39]File name is /storage/kkm_last_timestamp [20:15:39]Write 4 bytes [20:15:39]NVStorageSaveData done [20:15:39]ExternCall_PrintAddStr [20:15:39]wPrintStart [20:15:39]Write to MH i2c: 01 00 00 40 29 69 [20:15:39]Write i2c OK [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: 01 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: 01 07 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: 01 07 00 40 29 00 00 00 00 00 FF 0F 7E [20:15:39]RasterBufferAndPrint [20:15:39]line Счет N : (1)99240 [20:15:39]line ИНН: 02508201610067 [20:15:39]line Контрольно-Кассовый Чек [20:15:39]line ПРОДАЖА [20:15:39]line ТРК (МРК, ГНК) : 21 [20:15:39]line Товар: 2710124130 [20:15:39]line Аи-92-К-5 [20:15:39]line 4.490 * 66.90 [20:15:39]line = 300.38 [20:15:39]line НДС 12% НСП 1% [20:15:39]line > о реализуемом товаре [20:15:39]line ОКРУГЛЕНИЕ: -0.38 [20:15:39]line ИТОГО: 300.00 [20:15:39]line Внесено: 300.00 [20:15:39]line СДАЧА: 0.00 [20:15:39]line НСП 1% : 2.66 [20:15:39]line НДС 12% : 31.90 [20:15:39]line Наличными: 300.00 [20:15:39]line Безнал.: 0.00 [20:15:39]line Место: АЗС № 143 "Партнер Нефть" [20:15:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:15:39]line СНО: Общий режим [20:15:39]line Чек 326 26.10.2024 20:15 [20:15:39]line Смена: 536 ФФД: 1.0 [20:15:39]line ЗНМ: 0300000096 [20:15:39]line РНМ: 0000000000091693 [20:15:39]line Версия ККМ: 001 [20:15:39]line ФМ: 0000000000871792 [20:15:39]line ФД: 156425 [20:15:39]line ФПД: 245441948237657 [20:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156425&fm=245441948237657&tin=02508201610067®Number=0000000000091693&sum=30000 [20:15:39]OFD Sender: Processing packet 156425 [packets to send 31, broken 30] [20:15:39]ProducePacketName [20:15:39]name=ofd_packets/00156425 [20:15:39]OFD Sender: To server: pG, [20:15:39]CommunicateWithHost lk.salyk.kg:30040 [20:15:39]ConnectInit lk.salyk.kg [20:15:39]written 0, free lines is 4095 [20:15:39]Connected sock=11 [20:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6C 91 07 01 0D D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 EB 4D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 63 02 00 35 04 06 00 DF 3A 68 23 3F 59 18 58 7E CB 87 D0 68 76 [20:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5F 80 47 00 91 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 63 02 00 F4 03 04 00 5D F3 1C 67 B6 04 01 00 00 9A 0E B7 FC 64 1F DA 19 [20:15:39]CommunicateWithHost err = 0 [20:15:39]CheckOFDResponse [20:15:39]1017 (14) - 77093643461234 [20:15:39]1041 (16) - 0000000000871792 [20:15:39]1040 (4) - 156425 [20:15:39]1012 (4) - 26.10.2024 13:49 [20:15:39]1206 (1) - 0 [20:15:39]OFD Sender: Remove packet 156425 [20:15:39]ProducePacketName [20:15:39]name=ofd_packets/00156425 [20:15:39]NVStorageDeleteData [20:15:40]Write to MH i2c: 01 00 00 6B 29 94 [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: 01 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: 01 07 00 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 E4 0C 8B [20:15:40]RasterBufferAndPrint [20:15:40]line [20:15:40]line [20:15:40]line [20:15:40]line [20:15:40]line [20:15:40]written 0, free lines is 3306 [20:15:40]process_action close_receipt done [20:15:40]requested_data is exist [20:15:40]produce_requested_data [20:15:40]requested_item fm.sn is exist - process it [20:15:40]wFMCommunicate request_size=4 [20:15:40]MH_SAM_APDU [20:15:40]CAPDU: 80 11 00 00 [20:15:40]Write to MH i2c: E2 08 00 72 29 80 11 00 00 00 00 00 00 15 [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:40]Read from MH i2c: E2 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 17 00 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 17 00 72 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6A [20:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:15:40]wFMCommunicate OK [20:15:40]requested_item fd.num is exist - process it [20:15:40]SAM_PROTO_GetFieldsCounters [20:15:40]wFMCommunicate request_size=4 [20:15:40]MH_SAM_APDU [20:15:40]CAPDU: 80 13 00 00 [20:15:40]Write to MH i2c: E2 08 00 73 29 80 13 00 00 00 00 00 00 18 [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:40]Read from MH i2c: E2 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 62 00 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 62 00 73 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 09 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [20:15: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 09 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:40]wFMCommunicate OK [20:15:40]SAM_PROTO_GetFieldsCounters done [20:15:40]requested_item shift.num is exist - process it [20:15:40]requested_item shift.opened is exist - process it [20:15:40]req_shift_opened [20:15:40]FM_GetShiftState [20:15:40]SAM_PROTO_GetShiftState [20:15:40]wFMCommunicate request_size=4 [20:15:40]MH_SAM_APDU [20:15:40]CAPDU: 80 13 01 00 [20:15:40]Write to MH i2c: E2 08 00 74 29 80 13 01 00 00 00 00 00 1A [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:40]Read from MH i2c: E2 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 0E 00 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 0E 00 74 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4F [20:15:40]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:15:40]wFMCommunicate OK [20:15:40]SAM_PROTO_GetShiftState done [20:15:40]FM_GetShiftState done [20:15:40]req_shift_opened done [20:15:40]requested_item shift.open_date is exist - process it [20:15:40]req_shift_open_date [20:15:40]req_shift_open_date done [20:15:40]produce_requested_data done [20:15:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156425,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:15:40]process_action_free close_receipt [20:15:40]json_value_free [20:15:40]json_value_free done [20:15:40]process_json_proto returns [20:15:40]Send response to host [20:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156425,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:15:40]free response buf [20:15:40]execute_script done [20:15:40]execute_script returns [20:15:40]free content buf [20:15:40]Sock 8.Close socket [20:15:40]Sock 8.Thread stoped [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]accept exits with 9 [20:17:55]New connection [20:17:55]New thread 3066834276 created [20:17:55]Thread 3066977636 joined [20:17:55]Waiting for new connection... [20:17:55] Sock 9.Parse request [20:17:55]Sock 9.Check first char [20:17:55]Sock 9.First char is OK [20:17:55]request: POST /json_proto HTTP/1.0 [20:17:55]Method: POST [20:17:55]URL: /json_proto [20:17:55]Method is POST - this is cgi request [20:17:55]url: /json_proto [20:17:55]query_string will be loaded in cgi processing [20:17:55]execute_cgi json_proto POST (null) [20:17:55]execute_cgi path=json_proto method=POST [20:17:55]POST find Content-Length [20:17:55]Host: 172.17.63.3:8080 [20:17:55]Content-Length: 676 [20:17:55]Content-Type: application/json [20:17:55] [20:17:55]POST finish read [20:17:55]Found Content-Length = 676 [20:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:55]execute_script... [20:17: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)99241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:55]POST & json_proto [20:17:55]process_json_proto [20:17:55]json parsed OK: [20:17:55]protocol is kg_v1.0 [20:17:55]action value=close_receipt [20:17:55]process_action close_receipt [20:17:55]cmd_close_receipt [20:17:55]MH_GetDate [20:17:55]Write to MH i2c: F0 00 00 75 29 8D [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: F0 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: F0 09 00 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: F0 09 00 75 29 00 75 4E 1D 67 50 D1 6C 64 CE [20:17:55]GetLastDocTimeStamp 1729973739 [20:17:55]current date 1729973877 [20:17:55]FM_GetShiftState [20:17:55]SAM_PROTO_GetShiftState [20:17:55]wFMCommunicate request_size=4 [20:17:55]MH_SAM_APDU [20:17:55]CAPDU: 80 13 01 00 [20:17:55]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:55]Read from MH i2c: E2 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: E2 0E 00 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 51 [20:17:55]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:17:55]wFMCommunicate OK [20:17:55]SAM_PROTO_GetShiftState done [20:17:55]FM_GetShiftState done [20:17:55]opened in 1729902702 [20:17:55]opened+sec_in_day 1729989102 [20:17:55]quantity*price = 30038 [20:17:55]sum+1 = 30039 [20:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 327 26.10.2024 20:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156426 ФПД: 84455705782184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201757&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156426&fm=84455705782184&tin=02508201610067®Number=0000000000091693&sum=30000 [20:17:56]StoreToDocumentArchive [20:17:56]shift 536 fd 156426 [20:17:56]save to /storage/0536/doc_00156426 [20:17:56]save last doc name /storage/0536/doc_00156426 to /storage/kkm_last_doc_name [20:17:56]save OK [20:17:56]Clear old archive folders... [20:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:56]tlvbuf is B6DAE100 [20:17:56]SAM_PROTO_ClearQueue [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 09 00 00 [20:17:56]Write to MH i2c: E2 08 00 83 29 80 09 00 00 00 00 00 00 1E [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [20:17:56]RAPDU: 90 00 [20:17:56]wFMCommunicate OK [20:17:56]SAM_PROTO_ClearQueue done [20:17:56]KKMCreateOFDPacket [20:17:56]OFDProtocolAddRootSTLVToBuf [20:17:56]FM_MakeSignedData [20:17:56]FM_MakeSignedData [20:17:56]SAM_PROTO_SignData [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 0D 01 02 [20:17:56]Write to MH i2c: E2 08 00 84 29 80 0D 01 02 00 00 00 00 26 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [20:17:56]RAPDU: 90 00 [20:17:56]wFMCommunicate OK [20:17:56]wFMCommunicate request_size=255 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 75 4E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 63 02 00 35 04 06 00 4C [20:17:56]Write to MH i2c: E2 02 01 85 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 75 4E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 63 02 00 35 04 06 00 4C 00 00 12 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [20:17:56]RAPDU: 90 00 [20:17:56]wFMCommunicate OK [20:17:56]wFMCommunicate request_size=10 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 0D 02 02 05 CF E0 57 A7 A8 [20:17:56]Write to MH i2c: E2 0D 00 86 29 80 0D 02 02 05 00 CF E0 57 A7 A8 00 00 88 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [20:17:56]RAPDU: 90 00 [20:17:56]wFMCommunicate OK [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 0D 03 02 [20:17:56]Write to MH i2c: E2 08 00 87 29 80 0D 03 02 00 00 00 00 2B [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 0B 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 0B 00 87 29 00 01 3E 8E E8 28 CF A5 A9 90 00 26 [20:17:56]RAPDU: 01 3E 8E E8 28 CF A5 A9 90 00 [20:17:56]wFMCommunicate OK [20:17:56]SAM_PROTO_SignData done [20:17:56]FM_MakeSignedData done [20:17:56]CreateOFDProtocolMessage [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 11 00 00 [20:17:56]Write to MH i2c: E2 08 00 88 29 80 11 00 00 00 00 00 00 2B [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 88 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [20:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:17:56]wFMCommunicate OK [20:17:56]CreateOFDProtocolMessage done [20:17:56]OFDSenderStorePacket 156426 [20:17:56]StoreOFDPacket docnum=156426 [20:17:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 02 07 01 12 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 75 4E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 63 02 00 35 04 06 00 4C CF E0 57 A7 A8 01 3E 8E E8 28 CF A5 A9 [20:17:56]CheckFolder [20:17:56]dirname=/storage/ofd_packets [20:17:56]CheckFolder done [20:17:56]ProducePacketName [20:17:56]name=ofd_packets/00156426 [20:17:56]NVStorageSaveData ofd_packets/00156426 [20:17:56]File name is /storage/ofd_packets/00156426 [20:17:56]Write 301 bytes [20:17:56]NVStorageSaveData done [20:17:56]OFDSenderStorePacket done [20:17:56]KKMCreateOFDPacket done [20:17:56]NVStorageSaveData kkm_last_timestamp [20:17:56]File name is /storage/kkm_last_timestamp [20:17:56]Write 4 bytes [20:17:56]NVStorageSaveData done [20:17:56]OFD Sender: Processing packet 156426 [packets to send 31, broken 30] [20:17:56]ProducePacketName [20:17:56]name=ofd_packets/00156426 [20:17:56]OFD Sender: To server: pG, [20:17:56]CommunicateWithHost lk.salyk.kg:30040 [20:17:56]ConnectInit lk.salyk.kg [20:17:56]ExternCall_PrintAddStr [20:17:56]wPrintStart [20:17:56]Write to MH i2c: 01 00 00 89 29 B2 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 89 29 00 00 00 00 00 FF 0F C7 [20:17:56]RasterBufferAndPrint [20:17:56]line Счет N : (1)99241 [20:17:56]line ИНН: 02508201610067 [20:17:56]line Контрольно-Кассовый Чек [20:17:56]line ПРОДАЖА [20:17:56]line ТРК (МРК, ГНК) : 21 [20:17:56]line Товар: 2710124130 [20:17:56]line Аи-92-К-5 [20:17:56]line 4.490 * 66.90 [20:17:56]line = 300.38 [20:17:56]line НДС 12% НСП 1% [20:17:56]line > о реализуемом товаре [20:17:56]line ОКРУГЛЕНИЕ: -0.38 [20:17:56]line ИТОГО: 300.00 [20:17:56]line Внесено: 300.00 [20:17:56]line СДАЧА: 0.00 [20:17:56]line НСП 1% : 2.66 [20:17:56]line НДС 12% : 31.90 [20:17:56]line Наличными: 300.00 [20:17:56]line Безнал.: 0.00 [20:17:56]line Место: АЗС № 143 "Партнер Нефть" [20:17:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:17:56]line СНО: Общий режим [20:17:56]line Чек 327 26.10.2024 20:17 [20:17:56]line Смена: 536 ФФД: 1.0 [20:17:56]line ЗНМ: 0300000096 [20:17:56]line РНМ: 0000000000091693 [20:17:56]line Версия ККМ: 001 [20:17:56]line ФМ: 0000000000871792 [20:17:56]line ФД: 156426 [20:17:56]line ФПД: 84455705782184 [20:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201757&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156426&fm=84455705782184&tin=02508201610067®Number=0000000000091693&sum=30000 [20:17:57]Connected sock=11 [20:17:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 02 07 01 12 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 75 4E 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 63 02 00 35 04 06 00 4C CF E0 57 A7 A8 01 3E 8E E8 28 CF A5 A9 [20:17:57]written 0, free lines is 4095 [20:17:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 33 C7 47 00 96 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 63 02 00 F4 03 04 00 E6 F3 1C 67 B6 04 01 00 00 FF EC 5F A8 92 5B 30 BD [20:17:57]CommunicateWithHost err = 0 [20:17:57]CheckOFDResponse [20:17:57]1017 (14) - 77093643461234 [20:17:57]1041 (16) - 0000000000871792 [20:17:57]1040 (4) - 156426 [20:17:57]1012 (4) - 26.10.2024 13:51 [20:17:57]1206 (1) - 0 [20:17:57]OFD Sender: Remove packet 156426 [20:17:57]ProducePacketName [20:17:57]name=ofd_packets/00156426 [20:17:57]NVStorageDeleteData [20:17:57]Write to MH i2c: 01 00 00 B4 29 DD [20:17:57]Write i2c OK [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: 01 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: 01 07 00 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: 01 07 00 B4 29 00 00 00 00 00 E0 0C D0 [20:17:57]RasterBufferAndPrint [20:17:57]line [20:17:57]line [20:17:57]line [20:17:57]line [20:17:57]line [20:17:57]written 0, free lines is 3301 [20:17:57]process_action close_receipt done [20:17:57]requested_data is exist [20:17:57]produce_requested_data [20:17:57]requested_item fm.sn is exist - process it [20:17:57]wFMCommunicate request_size=4 [20:17:57]MH_SAM_APDU [20:17:57]CAPDU: 80 11 00 00 [20:17:57]Write to MH i2c: E2 08 00 BB 29 80 11 00 00 00 00 00 00 5E [20:17:57]Write i2c OK [20:17:57]MH_I2C_Read... [20:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:57]Read from MH i2c: E2 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 17 00 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 17 00 BB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B3 [20:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:17:57]wFMCommunicate OK [20:17:57]requested_item fd.num is exist - process it [20:17:57]SAM_PROTO_GetFieldsCounters [20:17:57]wFMCommunicate request_size=4 [20:17:57]MH_SAM_APDU [20:17:57]CAPDU: 80 13 00 00 [20:17:57]Write to MH i2c: E2 08 00 BC 29 80 13 00 00 00 00 00 00 61 [20:17:57]Write i2c OK [20:17:57]MH_I2C_Read... [20:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:57]Read from MH i2c: E2 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 62 00 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 62 00 BC 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0A 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [20:17:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0A 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:57]wFMCommunicate OK [20:17:57]SAM_PROTO_GetFieldsCounters done [20:17:57]requested_item shift.num is exist - process it [20:17:57]requested_item shift.opened is exist - process it [20:17:57]req_shift_opened [20:17:57]FM_GetShiftState [20:17:57]SAM_PROTO_GetShiftState [20:17:57]wFMCommunicate request_size=4 [20:17:57]MH_SAM_APDU [20:17:57]CAPDU: 80 13 01 00 [20:17:57]Write to MH i2c: E2 08 00 BD 29 80 13 01 00 00 00 00 00 63 [20:17:57]Write i2c OK [20:17:57]MH_I2C_Read... [20:17:57]OFD Sender: No OFD packet to send [20:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:57]Read from MH i2c: E2 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 0E 00 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 0E 00 BD 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 98 [20:17:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:17:57]wFMCommunicate OK [20:17:57]SAM_PROTO_GetShiftState done [20:17:57]FM_GetShiftState done [20:17:57]req_shift_opened done [20:17:57]requested_item shift.open_date is exist - process it [20:17:57]req_shift_open_date [20:17:57]req_shift_open_date done [20:17:57]produce_requested_data done [20:17:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156426,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:17:57]process_action_free close_receipt [20:17:57]json_value_free [20:17:57]json_value_free done [20:17:57]process_json_proto returns [20:17:57]Send response to host [20:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156426,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:17:57]free response buf [20:17:57]execute_script done [20:17:57]execute_script returns [20:17:57]free content buf [20:17:57]Sock 9.Close socket [20:17:57]Sock 9.Thread stoped [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:25:59]accept exits with 8 [20:25:59]New connection [20:25:59]New thread 3066977636 created [20:25:59]Thread 3066834276 joined [20:25:59]Waiting for new connection... [20:25:59] Sock 8.Parse request [20:25:59]Sock 8.Check first char [20:25:59]Sock 8.First char is OK [20:25:59]request: POST /json_proto HTTP/1.0 [20:25:59]Method: POST [20:25:59]URL: /json_proto [20:25:59]Method is POST - this is cgi request [20:25:59]url: /json_proto [20:25:59]query_string will be loaded in cgi processing [20:25:59]execute_cgi json_proto POST (null) [20:25:59]execute_cgi path=json_proto method=POST [20:25:59]POST find Content-Length [20:25:59]Host: 172.17.63.3:8080 [20:25:59]Content-Length: 676 [20:25:59]Content-Type: application/json [20:25:59] [20:25:59]POST finish read [20:25:59]Found Content-Length = 676 [20:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:59]execute_script... [20:25:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:59]POST & json_proto [20:25:59]process_json_proto [20:25:59]json parsed OK: [20:25:59]protocol is kg_v1.0 [20:25:59]action value=close_receipt [20:25:59]process_action close_receipt [20:25:59]cmd_close_receipt [20:25:59]MH_GetDate [20:25:59]Write to MH i2c: F0 00 00 BE 29 D6 [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: F0 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: F0 09 00 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: F0 09 00 BE 29 00 59 50 1D 67 50 D1 6C 64 FD [20:25:59]GetLastDocTimeStamp 1729973877 [20:25:59]current date 1729974361 [20:25:59]FM_GetShiftState [20:25:59]SAM_PROTO_GetShiftState [20:25:59]wFMCommunicate request_size=4 [20:25:59]MH_SAM_APDU [20:25:59]CAPDU: 80 13 01 00 [20:25:59]Write to MH i2c: E2 08 00 BF 29 80 13 01 00 00 00 00 00 65 [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:00]Read from MH i2c: E2 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 0E 00 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 0E 00 BF 29 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 9A [20:26:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:26:00]wFMCommunicate OK [20:26:00]SAM_PROTO_GetShiftState done [20:26:00]FM_GetShiftState done [20:26:00]opened in 1729902702 [20:26:00]opened+sec_in_day 1729989102 [20:26:00]quantity*price = 20003 [20:26:00]sum+1 = 20004 [20:26:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 328 26.10.2024 20:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156427 ФПД: 36967011904747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T202601&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156427&fm=36967011904747&tin=02508201610067®Number=0000000000091693&sum=20000 [20:26:01]StoreToDocumentArchive [20:26:01]shift 536 fd 156427 [20:26:01]save to /storage/0536/doc_00156427 [20:26:01]save last doc name /storage/0536/doc_00156427 to /storage/kkm_last_doc_name [20:26:01]save OK [20:26:01]Clear old archive folders... [20:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:01]tlvbuf is 016A97B0 [20:26:01]SAM_PROTO_ClearQueue [20:26:01]wFMCommunicate request_size=4 [20:26:01]MH_SAM_APDU [20:26:01]CAPDU: 80 09 00 00 [20:26:01]Write to MH i2c: E2 08 00 CC 29 80 09 00 00 00 00 00 00 67 [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:01]Read from MH i2c: E2 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 03 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [20:26:01]RAPDU: 90 00 [20:26:01]wFMCommunicate OK [20:26:01]SAM_PROTO_ClearQueue done [20:26:01]KKMCreateOFDPacket [20:26:01]OFDProtocolAddRootSTLVToBuf [20:26:01]FM_MakeSignedData [20:26:01]FM_MakeSignedData [20:26:01]SAM_PROTO_SignData [20:26:01]wFMCommunicate request_size=4 [20:26:01]MH_SAM_APDU [20:26:01]CAPDU: 80 0D 01 02 [20:26:01]Write to MH i2c: E2 08 00 CD 29 80 0D 01 02 00 00 00 00 6F [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:01]Read from MH i2c: E2 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 03 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [20:26:01]RAPDU: 90 00 [20:26:01]wFMCommunicate OK [20:26:01]wFMCommunicate request_size=255 [20:26:01]MH_SAM_APDU [20:26:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 59 50 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 63 02 00 35 04 06 00 21 [20:26:01]Write to MH i2c: E2 02 01 CE 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 59 50 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 63 02 00 35 04 06 00 21 00 00 E6 [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:01]Read from MH i2c: E2 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 03 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [20:26:01]RAPDU: 90 00 [20:26:01]wFMCommunicate OK [20:26:01]wFMCommunicate request_size=10 [20:26:01]MH_SAM_APDU [20:26:01]CAPDU: 80 0D 02 02 05 9F 0D 9C EC EB [20:26:01]Write to MH i2c: E2 0D 00 CF 29 80 0D 02 02 05 00 9F 0D 9C EC EB 00 00 9B [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:01]Read from MH i2c: E2 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 03 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [20:26:01]RAPDU: 90 00 [20:26:01]wFMCommunicate OK [20:26:01]wFMCommunicate request_size=4 [20:26:01]MH_SAM_APDU [20:26:01]CAPDU: 80 0D 03 02 [20:26:01]Write to MH i2c: E2 08 00 D0 29 80 0D 03 02 00 00 00 00 74 [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:01]Read from MH i2c: E2 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 0B 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 0B 00 D0 29 00 AF ED 47 50 75 1A A7 D6 90 00 B4 [20:26:01]RAPDU: AF ED 47 50 75 1A A7 D6 90 00 [20:26:01]wFMCommunicate OK [20:26:01]SAM_PROTO_SignData done [20:26:01]FM_MakeSignedData done [20:26:01]CreateOFDProtocolMessage [20:26:01]wFMCommunicate request_size=4 [20:26:01]MH_SAM_APDU [20:26:01]CAPDU: 80 11 00 00 [20:26:01]Write to MH i2c: E2 08 00 D1 29 80 11 00 00 00 00 00 00 74 [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:01]Read from MH i2c: E2 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 17 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 17 00 D1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C9 [20:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:26:01]wFMCommunicate OK [20:26:01]CreateOFDProtocolMessage done [20:26:01]OFDSenderStorePacket 156427 [20:26:01]StoreOFDPacket docnum=156427 [20:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E D3 07 01 45 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 59 50 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 63 02 00 35 04 06 00 21 9F 0D 9C EC EB AF ED 47 50 75 1A A7 D6 [20:26:01]CheckFolder [20:26:01]dirname=/storage/ofd_packets [20:26:01]CheckFolder done [20:26:01]ProducePacketName [20:26:01]name=ofd_packets/00156427 [20:26:01]NVStorageSaveData ofd_packets/00156427 [20:26:01]File name is /storage/ofd_packets/00156427 [20:26:01]Write 301 bytes [20:26:01]NVStorageSaveData done [20:26:01]OFDSenderStorePacket done [20:26:01]KKMCreateOFDPacket done [20:26:01]NVStorageSaveData kkm_last_timestamp [20:26:01]File name is /storage/kkm_last_timestamp [20:26:01]Write 4 bytes [20:26:01]NVStorageSaveData done [20:26:01]ExternCall_PrintAddStr [20:26:01]wPrintStart [20:26:01]Write to MH i2c: 01 00 00 D2 29 FB [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 07 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 07 00 D2 29 00 00 00 00 00 FF 0F 10 [20:26:01]RasterBufferAndPrint [20:26:01]line Счет N : (1)99242 [20:26:01]line ИНН: 02508201610067 [20:26:01]line Контрольно-Кассовый Чек [20:26:01]line ПРОДАЖА [20:26:01]line ТРК (МРК, ГНК) : 11 [20:26:01]line Товар: 2710124130 [20:26:01]line Аи-92-К-5 [20:26:01]line 2.990 * 66.90 [20:26:01]line = 200.03 [20:26:01]line НДС 12% НСП 1% [20:26:01]line > о реализуемом товаре [20:26:01]line ОКРУГЛЕНИЕ: -0.03 [20:26:01]line ИТОГО: 200.00 [20:26:01]line Внесено: 200.00 [20:26:01]line СДАЧА: 0.00 [20:26:01]line НСП 1% : 1.77 [20:26:01]line НДС 12% : 21.24 [20:26:01]line Наличными: 200.00 [20:26:01]line Безнал.: 0.00 [20:26:01]line Место: АЗС № 143 "Партнер Нефть" [20:26:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:26:01]line СНО: Общий режим [20:26:01]line Чек 328 26.10.2024 20:26 [20:26:01]line Смена: 536 ФФД: 1.0 [20:26:01]line ЗНМ: 0300000096 [20:26:01]line РНМ: 0000000000091693 [20:26:01]line Версия ККМ: 001 [20:26:01]line ФМ: 0000000000871792 [20:26:01]line ФД: 156427 [20:26:01]line ФПД: 36967011904747 [20:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T202601&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156427&fm=36967011904747&tin=02508201610067®Number=0000000000091693&sum=20000 [20:26:01]OFD Sender: Processing packet 156427 [packets to send 31, broken 30] [20:26:01]ProducePacketName [20:26:01]name=ofd_packets/00156427 [20:26:01]OFD Sender: To server: pG, [20:26:01]CommunicateWithHost lk.salyk.kg:30040 [20:26:01]ConnectInit lk.salyk.kg [20:26:01]written 0, free lines is 4095 [20:26:02]Connected sock=10 [20:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E D3 07 01 45 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 59 50 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 63 02 00 35 04 06 00 21 9F 0D 9C EC EB AF ED 47 50 75 1A A7 D6 [20:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B4 6B 47 00 82 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 63 02 00 F4 03 04 00 CB F5 1C 67 B6 04 01 00 00 E4 61 90 9E 11 B5 61 1E [20:26:02]CommunicateWithHost err = 0 [20:26:02]CheckOFDResponse [20:26:02]1017 (14) - 77093643461234 [20:26:02]1041 (16) - 0000000000871792 [20:26:02]1040 (4) - 156427 [20:26:02]1012 (4) - 26.10.2024 13:59 [20:26:02]1206 (1) - 0 [20:26:02]OFD Sender: Remove packet 156427 [20:26:02]ProducePacketName [20:26:02]name=ofd_packets/00156427 [20:26:02]NVStorageDeleteData [20:26:02]Write to MH i2c: 01 00 00 FD 29 26 [20:26:02]Write i2c OK [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: 01 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: 01 07 00 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: 01 07 00 FD 29 00 00 00 00 00 DA 0C 13 [20:26:02]RasterBufferAndPrint [20:26:02]line [20:26:02]line [20:26:02]line [20:26:02]line [20:26:02]line [20:26:02]written 0, free lines is 3297 [20:26:02]process_action close_receipt done [20:26:02]requested_data is exist [20:26:02]produce_requested_data [20:26:02]requested_item fm.sn is exist - process it [20:26:02]wFMCommunicate request_size=4 [20:26:02]MH_SAM_APDU [20:26:02]CAPDU: 80 11 00 00 [20:26:02]Write to MH i2c: E2 08 00 04 2A 80 11 00 00 00 00 00 00 A8 [20:26:02]Write i2c OK [20:26:02]MH_I2C_Read... [20:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:02]Read from MH i2c: E2 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: E2 17 00 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: E2 17 00 04 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FD [20:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:26:02]wFMCommunicate OK [20:26:02]requested_item fd.num is exist - process it [20:26:02]SAM_PROTO_GetFieldsCounters [20:26:02]wFMCommunicate request_size=4 [20:26:02]MH_SAM_APDU [20:26:02]CAPDU: 80 13 00 00 [20:26:02]Write to MH i2c: E2 08 00 05 2A 80 13 00 00 00 00 00 00 AB [20:26:02]Write i2c OK [20:26:02]MH_I2C_Read... [20:26:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:02]Read from MH i2c: E2 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: E2 62 00 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: E2 62 00 05 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0B 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [20:26:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0B 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:02]wFMCommunicate OK [20:26:02]SAM_PROTO_GetFieldsCounters done [20:26:02]requested_item shift.num is exist - process it [20:26:02]requested_item shift.opened is exist - process it [20:26:02]req_shift_opened [20:26:02]FM_GetShiftState [20:26:02]SAM_PROTO_GetShiftState [20:26:02]wFMCommunicate request_size=4 [20:26:02]MH_SAM_APDU [20:26:02]CAPDU: 80 13 01 00 [20:26:02]Write to MH i2c: E2 08 00 06 2A 80 13 01 00 00 00 00 00 AD [20:26:02]Write i2c OK [20:26:02]MH_I2C_Read... [20:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:02]Read from MH i2c: E2 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: E2 0E 00 [20:26:02]MH_I2C_Read... [20:26:02]Read from MH i2c: E2 0E 00 06 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E2 [20:26:02]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:26:02]wFMCommunicate OK [20:26:02]SAM_PROTO_GetShiftState done [20:26:02]FM_GetShiftState done [20:26:02]req_shift_opened done [20:26:02]requested_item shift.open_date is exist - process it [20:26:02]req_shift_open_date [20:26:02]req_shift_open_date done [20:26:02]produce_requested_data done [20:26:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156427,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:26:02]process_action_free close_receipt [20:26:02]json_value_free [20:26:02]json_value_free done [20:26:02]process_json_proto returns [20:26:02]Send response to host [20:26:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156427,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:26:02]free response buf [20:26:02]execute_script done [20:26:02]execute_script returns [20:26:02]free content buf [20:26:02]Sock 8.Close socket [20:26:02]Sock 8.Thread stoped [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:21]accept exits with 9 [20:32:21]New connection [20:32:21]New thread 3066834276 created [20:32:21]Thread 3066977636 joined [20:32:21]Waiting for new connection... [20:32:21] Sock 9.Parse request [20:32:21]Sock 9.Check first char [20:32:21]Sock 9.First char is OK [20:32:21]request: POST /json_proto HTTP/1.0 [20:32:21]Method: POST [20:32:21]URL: /json_proto [20:32:21]Method is POST - this is cgi request [20:32:21]url: /json_proto [20:32:21]query_string will be loaded in cgi processing [20:32:21]execute_cgi json_proto POST (null) [20:32:21]execute_cgi path=json_proto method=POST [20:32:21]POST find Content-Length [20:32:21]Host: 172.17.63.3:8080 [20:32:21]Content-Length: 678 [20:32:21]Content-Type: application/json [20:32:21] [20:32:21]POST finish read [20:32:21]Found Content-Length = 678 [20:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:21]execute_script... [20:32:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:21]POST & json_proto [20:32:21]process_json_proto [20:32:21]json parsed OK: [20:32:21]protocol is kg_v1.0 [20:32:21]action value=close_receipt [20:32:21]process_action close_receipt [20:32:21]cmd_close_receipt [20:32:21]MH_GetDate [20:32:21]Write to MH i2c: F0 00 00 07 2A 20 [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: F0 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: F0 09 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: F0 09 00 07 2A 00 D7 51 1D 67 50 D1 6C 64 C6 [20:32:21]GetLastDocTimeStamp 1729974361 [20:32:21]current date 1729974743 [20:32:21]FM_GetShiftState [20:32:21]SAM_PROTO_GetShiftState [20:32:21]wFMCommunicate request_size=4 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 13 01 00 [20:32:21]Write to MH i2c: E2 08 00 08 2A 80 13 01 00 00 00 00 00 AF [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 0E 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 0E 00 08 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E4 [20:32:21]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:32:21]wFMCommunicate OK [20:32:21]SAM_PROTO_GetShiftState done [20:32:21]FM_GetShiftState done [20:32:21]opened in 1729902702 [20:32:21]opened+sec_in_day 1729989102 [20:32:21]quantity*price = 200025 [20:32:21]sum+1 = 200026 [20:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 329 26.10.2024 20:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156428 ФПД: 128851109113952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203223&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156428&fm=128851109113952&tin=02508201610067®Number=0000000000091693&sum=200000 [20:32:23]StoreToDocumentArchive [20:32:23]shift 536 fd 156428 [20:32:23]save to /storage/0536/doc_00156428 [20:32:23]save last doc name /storage/0536/doc_00156428 to /storage/kkm_last_doc_name [20:32:23]save OK [20:32:23]Clear old archive folders... [20:32:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:32:23]tlvbuf is 016F7C60 [20:32:23]SAM_PROTO_ClearQueue [20:32:23]wFMCommunicate request_size=4 [20:32:23]MH_SAM_APDU [20:32:23]CAPDU: 80 09 00 00 [20:32:23]Write to MH i2c: E2 08 00 15 2A 80 09 00 00 00 00 00 00 B1 [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:23]Read from MH i2c: E2 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 03 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 03 00 15 2A 00 90 00 B3 [20:32:23]RAPDU: 90 00 [20:32:23]wFMCommunicate OK [20:32:23]SAM_PROTO_ClearQueue done [20:32:23]KKMCreateOFDPacket [20:32:23]OFDProtocolAddRootSTLVToBuf [20:32:23]FM_MakeSignedData [20:32:23]FM_MakeSignedData [20:32:23]SAM_PROTO_SignData [20:32:23]wFMCommunicate request_size=4 [20:32:23]MH_SAM_APDU [20:32:23]CAPDU: 80 0D 01 02 [20:32:23]Write to MH i2c: E2 08 00 16 2A 80 0D 01 02 00 00 00 00 B9 [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:23]OFD Sender: No OFD packet to send [20:32:23]Read from MH i2c: E2 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 03 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 03 00 16 2A 00 90 00 B4 [20:32:23]RAPDU: 90 00 [20:32:23]wFMCommunicate OK [20:32:23]wFMCommunicate request_size=255 [20:32:23]MH_SAM_APDU [20:32:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 D7 51 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 63 02 00 35 04 06 00 75 30 7C 96 [20:32:23]Write to MH i2c: E2 02 01 17 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 D7 51 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 63 02 00 35 04 06 00 75 30 7C 96 00 00 69 [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:23]Read from MH i2c: E2 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 03 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [20:32:23]RAPDU: 90 00 [20:32:23]wFMCommunicate OK [20:32:23]wFMCommunicate request_size=7 [20:32:23]MH_SAM_APDU [20:32:23]CAPDU: 80 0D 02 02 02 70 60 [20:32:23]Write to MH i2c: E2 0A 00 18 2A 80 0D 02 02 02 00 70 60 00 00 90 [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:23]Read from MH i2c: E2 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 03 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [20:32:23]RAPDU: 90 00 [20:32:23]wFMCommunicate OK [20:32:23]wFMCommunicate request_size=4 [20:32:23]MH_SAM_APDU [20:32:23]CAPDU: 80 0D 03 02 [20:32:23]Write to MH i2c: E2 08 00 19 2A 80 0D 03 02 00 00 00 00 BE [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:23]Read from MH i2c: E2 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 0B 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 0B 00 19 2A 00 25 E7 A5 6E 86 0B E5 2C 90 00 80 [20:32:23]RAPDU: 25 E7 A5 6E 86 0B E5 2C 90 00 [20:32:23]wFMCommunicate OK [20:32:23]SAM_PROTO_SignData done [20:32:23]FM_MakeSignedData done [20:32:23]CreateOFDProtocolMessage [20:32:23]wFMCommunicate request_size=4 [20:32:23]MH_SAM_APDU [20:32:23]CAPDU: 80 11 00 00 [20:32:23]Write to MH i2c: E2 08 00 1A 2A 80 11 00 00 00 00 00 00 BE [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:23]Read from MH i2c: E2 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 17 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: E2 17 00 1A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [20:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:32:23]wFMCommunicate OK [20:32:23]CreateOFDProtocolMessage done [20:32:23]OFDSenderStorePacket 156428 [20:32:23]StoreOFDPacket docnum=156428 [20:32:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 BA C9 04 01 BA 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 D7 51 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 63 02 00 35 04 06 00 75 30 7C 96 70 60 25 E7 A5 6E 86 0B E5 2C [20:32:23]CheckFolder [20:32:23]dirname=/storage/ofd_packets [20:32:23]CheckFolder done [20:32:23]ProducePacketName [20:32:23]name=ofd_packets/00156428 [20:32:23]NVStorageSaveData ofd_packets/00156428 [20:32:23]File name is /storage/ofd_packets/00156428 [20:32:23]Write 298 bytes [20:32:23]NVStorageSaveData done [20:32:23]OFDSenderStorePacket done [20:32:23]KKMCreateOFDPacket done [20:32:23]NVStorageSaveData kkm_last_timestamp [20:32:23]File name is /storage/kkm_last_timestamp [20:32:23]Write 4 bytes [20:32:23]NVStorageSaveData done [20:32:23]ExternCall_PrintAddStr [20:32:23]wPrintStart [20:32:23]Write to MH i2c: 01 00 00 1B 2A 45 [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 07 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 07 00 1B 2A 00 00 00 00 00 FF 0F 5A [20:32:23]RasterBufferAndPrint [20:32:23]line Счет N : (1)99243 [20:32:23]line ИНН: 02508201610067 [20:32:23]line Контрольно-Кассовый Чек [20:32:23]line ПРОДАЖА [20:32:23]line ТРК (МРК, ГНК) : 32 [20:32:23]line Товар: 2710194210 [20:32:23]line ДТ-К-5 [20:32:23]line 26.250 * 76.20 [20:32:23]line = 2000.25 [20:32:23]line НДС 12% НСП 1% [20:32:23]line > о реализуемом товаре [20:32:23]line ОКРУГЛЕНИЕ: -0.25 [20:32:23]line ИТОГО: 2000.00 [20:32:23]line Внесено: 2000.00 [20:32:23]line СДАЧА: 0.00 [20:32:23]line НСП 1% : 17.70 [20:32:23]line НДС 12% : 212.42 [20:32:23]line Наличными: 2000.00 [20:32:23]line Безнал.: 0.00 [20:32:23]line Место: АЗС № 143 "Партнер Нефть" [20:32:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:32:23]line СНО: Общий режим [20:32:23]line Чек 329 26.10.2024 20:32 [20:32:23]line Смена: 536 ФФД: 1.0 [20:32:23]line ЗНМ: 0300000096 [20:32:23]line РНМ: 0000000000091693 [20:32:23]line Версия ККМ: 001 [20:32:23]line ФМ: 0000000000871792 [20:32:23]line ФД: 156428 [20:32:23]line ФПД: 128851109113952 [20:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203223&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156428&fm=128851109113952&tin=02508201610067®Number=0000000000091693&sum=200000 [20:32:23]OFD Sender: Processing packet 156428 [packets to send 31, broken 30] [20:32:23]ProducePacketName [20:32:23]name=ofd_packets/00156428 [20:32:23]OFD Sender: To server: pG, [20:32:23]CommunicateWithHost lk.salyk.kg:30040 [20:32:23]ConnectInit lk.salyk.kg [20:32:23]written 0, free lines is 4095 [20:32:24]Connected sock=10 [20:32:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 BA C9 04 01 BA 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 D7 51 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 63 02 00 35 04 06 00 75 30 7C 96 70 60 25 E7 A5 6E 86 0B E5 2C [20:32:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 08 3A 47 00 83 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 63 02 00 F4 03 04 00 49 F7 1C 67 B6 04 01 00 00 61 B0 6D E3 2F 07 92 92 [20:32:24]CommunicateWithHost err = 0 [20:32:24]CheckOFDResponse [20:32:24]1017 (14) - 77093643461234 [20:32:24]1041 (16) - 0000000000871792 [20:32:24]1040 (4) - 156428 [20:32:24]1012 (4) - 26.10.2024 14:06 [20:32:24]1206 (1) - 0 [20:32:24]OFD Sender: Remove packet 156428 [20:32:24]ProducePacketName [20:32:24]name=ofd_packets/00156428 [20:32:24]NVStorageDeleteData [20:32:24]Write to MH i2c: 01 00 00 46 2A 70 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: 01 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: 01 07 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: 01 07 00 46 2A 00 00 00 00 00 DD 0C 60 [20:32:24]RasterBufferAndPrint [20:32:24]line [20:32:24]line [20:32:24]line [20:32:24]line [20:32:24]line [20:32:24]written 0, free lines is 3302 [20:32:24]process_action close_receipt done [20:32:24]requested_data is exist [20:32:24]produce_requested_data [20:32:24]requested_item fm.sn is exist - process it [20:32:24]wFMCommunicate request_size=4 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 11 00 00 [20:32:24]Write to MH i2c: E2 08 00 4D 2A 80 11 00 00 00 00 00 00 F1 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 17 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 17 00 4D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 46 [20:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:32:24]wFMCommunicate OK [20:32:24]requested_item fd.num is exist - process it [20:32:24]SAM_PROTO_GetFieldsCounters [20:32:24]wFMCommunicate request_size=4 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 13 00 00 [20:32:24]Write to MH i2c: E2 08 00 4E 2A 80 13 00 00 00 00 00 00 F4 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 62 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 62 00 4E 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0C 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [20:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0C 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:24]wFMCommunicate OK [20:32:24]SAM_PROTO_GetFieldsCounters done [20:32:24]requested_item shift.num is exist - process it [20:32:24]requested_item shift.opened is exist - process it [20:32:24]req_shift_opened [20:32:24]FM_GetShiftState [20:32:24]SAM_PROTO_GetShiftState [20:32:24]wFMCommunicate request_size=4 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 13 01 00 [20:32:24]Write to MH i2c: E2 08 00 4F 2A 80 13 01 00 00 00 00 00 F6 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 0E 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 0E 00 4F 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2B [20:32:24]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:32:24]wFMCommunicate OK [20:32:24]SAM_PROTO_GetShiftState done [20:32:24]FM_GetShiftState done [20:32:24]req_shift_opened done [20:32:24]requested_item shift.open_date is exist - process it [20:32:24]req_shift_open_date [20:32:24]req_shift_open_date done [20:32:24]produce_requested_data done [20:32:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156428,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:32:24]process_action_free close_receipt [20:32:24]json_value_free [20:32:24]json_value_free done [20:32:24]process_json_proto returns [20:32:24]Send response to host [20:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156428,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:32:24]free response buf [20:32:24]execute_script done [20:32:24]execute_script returns [20:32:24]free content buf [20:32:24]Sock 9.Close socket [20:32:24]Sock 9.Thread stoped [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:05]accept exits with 8 [20:35:05]New connection [20:35:05]New thread 3066977636 created [20:35:05] Sock 8.Parse request [20:35:05]Thread 3066834276 joined [20:35:05]Sock 8.Check first char [20:35:05]Waiting for new connection... [20:35:05]Sock 8.First char is OK [20:35:05]request: POST /json_proto HTTP/1.0 [20:35:05]Method: POST [20:35:05]URL: /json_proto [20:35:05]Method is POST - this is cgi request [20:35:05]url: /json_proto [20:35:05]query_string will be loaded in cgi processing [20:35:05]execute_cgi json_proto POST (null) [20:35:05]execute_cgi path=json_proto method=POST [20:35:05]POST find Content-Length [20:35:05]Host: 172.17.63.3:8080 [20:35:05]Content-Length: 766 [20:35:05]Content-Type: application/json [20:35:05] [20:35:05]POST finish read [20:35:05]Found Content-Length = 766 [20:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:05]execute_script... [20:35:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:05]POST & json_proto [20:35:05]process_json_proto [20:35:05]json parsed OK: [20:35:05]protocol is kg_v1.0 [20:35:05]action value=close_receipt [20:35:05]process_action close_receipt [20:35:05]cmd_close_receipt [20:35:05]MH_GetDate [20:35:05]Write to MH i2c: F0 00 00 50 2A 69 [20:35:05]Write i2c OK [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: F0 [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: F0 09 00 [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: F0 09 00 50 2A 00 7B 52 1D 67 50 D1 6C 64 B4 [20:35:05]GetLastDocTimeStamp 1729974743 [20:35:05]current date 1729974907 [20:35:05]FM_GetShiftState [20:35:05]SAM_PROTO_GetShiftState [20:35:05]wFMCommunicate request_size=4 [20:35:05]MH_SAM_APDU [20:35:05]CAPDU: 80 13 01 00 [20:35:05]Write to MH i2c: E2 08 00 51 2A 80 13 01 00 00 00 00 00 F8 [20:35:05]Write i2c OK [20:35:05]MH_I2C_Read... [20:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:05]Read from MH i2c: E2 [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: E2 0E 00 [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: E2 0E 00 51 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2D [20:35:05]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:35:05]wFMCommunicate OK [20:35:05]SAM_PROTO_GetShiftState done [20:35:05]FM_GetShiftState done [20:35:05]opened in 1729902702 [20:35:05]opened+sec_in_day 1729989102 [20:35:05]quantity*price = 66900 [20:35:05]sum+1 = 66901 [20:35:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 0.00 Безнал.: 669.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 330 26.10.2024 20:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156429 ФПД: 120235602011179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203507&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156429&fm=120235602011179&tin=02508201610067®Number=0000000000091693&sum=66900 [20:35:06]StoreToDocumentArchive [20:35:06]shift 536 fd 156429 [20:35:06]save to /storage/0536/doc_00156429 [20:35:06]save last doc name /storage/0536/doc_00156429 to /storage/kkm_last_doc_name [20:35:06]save OK [20:35:06]Clear old archive folders... [20:35:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:35:06]tlvbuf is 016BAAB0 [20:35:06]SAM_PROTO_ClearQueue [20:35:06]wFMCommunicate request_size=4 [20:35:06]MH_SAM_APDU [20:35:06]CAPDU: 80 09 00 00 [20:35:06]Write to MH i2c: E2 08 00 5E 2A 80 09 00 00 00 00 00 00 FA [20:35:06]Write i2c OK [20:35:06]MH_I2C_Read... [20:35:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:06]Read from MH i2c: E2 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 03 00 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [20:35:06]RAPDU: 90 00 [20:35:06]wFMCommunicate OK [20:35:06]SAM_PROTO_ClearQueue done [20:35:06]KKMCreateOFDPacket [20:35:06]OFDProtocolAddRootSTLVToBuf [20:35:06]FM_MakeSignedData [20:35:06]FM_MakeSignedData [20:35:06]SAM_PROTO_SignData [20:35:06]wFMCommunicate request_size=4 [20:35:06]MH_SAM_APDU [20:35:06]CAPDU: 80 0D 01 02 [20:35:06]Write to MH i2c: E2 08 00 5F 2A 80 0D 01 02 00 00 00 00 02 [20:35:06]Write i2c OK [20:35:06]MH_I2C_Read... [20:35:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:06]Read from MH i2c: E2 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 03 00 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 03 00 5F 2A 00 90 00 FD [20:35:06]RAPDU: 90 00 [20:35:06]wFMCommunicate OK [20:35:06]wFMCommunicate request_size=255 [20:35:06]MH_SAM_APDU [20:35: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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 7B 52 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 63 02 00 35 04 06 00 6D [20:35:06]Write to MH i2c: E2 02 01 60 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 7B 52 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 63 02 00 35 04 06 00 6D 00 00 54 [20:35:06]Write i2c OK [20:35:06]MH_I2C_Read... [20:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:06]Read from MH i2c: E2 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 03 00 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 03 00 60 2A 00 90 00 FE [20:35:06]RAPDU: 90 00 [20:35:06]wFMCommunicate OK [20:35:06]wFMCommunicate request_size=10 [20:35:06]MH_SAM_APDU [20:35:06]CAPDU: 80 0D 02 02 05 5A 88 58 E4 2B [20:35:06]Write to MH i2c: E2 0D 00 61 2A 80 0D 02 02 05 00 5A 88 58 E4 2B 00 00 58 [20:35:06]Write i2c OK [20:35:06]MH_I2C_Read... [20:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:06]Read from MH i2c: E2 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 03 00 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 03 00 61 2A 00 90 00 FF [20:35:06]RAPDU: 90 00 [20:35:06]wFMCommunicate OK [20:35:06]wFMCommunicate request_size=4 [20:35:06]MH_SAM_APDU [20:35:06]CAPDU: 80 0D 03 02 [20:35:06]Write to MH i2c: E2 08 00 62 2A 80 0D 03 02 00 00 00 00 07 [20:35:06]Write i2c OK [20:35:06]MH_I2C_Read... [20:35:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:06]Read from MH i2c: E2 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 0B 00 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 0B 00 62 2A 00 A9 52 B2 3E C7 03 0A 84 90 00 4B [20:35:06]RAPDU: A9 52 B2 3E C7 03 0A 84 90 00 [20:35:06]wFMCommunicate OK [20:35:06]SAM_PROTO_SignData done [20:35:06]FM_MakeSignedData done [20:35:06]CreateOFDProtocolMessage [20:35:06]wFMCommunicate request_size=4 [20:35:06]MH_SAM_APDU [20:35:06]CAPDU: 80 11 00 00 [20:35:06]Write to MH i2c: E2 08 00 63 2A 80 11 00 00 00 00 00 00 07 [20:35:06]Write i2c OK [20:35:06]MH_I2C_Read... [20:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:06]Read from MH i2c: E2 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 17 00 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: E2 17 00 63 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5C [20:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:35:06]wFMCommunicate OK [20:35:06]CreateOFDProtocolMessage done [20:35:06]OFDSenderStorePacket 156429 [20:35:06]StoreOFDPacket docnum=156429 [20:35:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2C 93 07 01 C9 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 7B 52 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 63 02 00 35 04 06 00 6D 5A 88 58 E4 2B A9 52 B2 3E C7 03 0A 84 [20:35:06]CheckFolder [20:35:06]dirname=/storage/ofd_packets [20:35:06]CheckFolder done [20:35:06]ProducePacketName [20:35:06]name=ofd_packets/00156429 [20:35:06]NVStorageSaveData ofd_packets/00156429 [20:35:06]File name is /storage/ofd_packets/00156429 [20:35:06]Write 301 bytes [20:35:06]NVStorageSaveData done [20:35:06]OFDSenderStorePacket done [20:35:06]KKMCreateOFDPacket done [20:35:06]NVStorageSaveData kkm_last_timestamp [20:35:06]File name is /storage/kkm_last_timestamp [20:35:06]Write 4 bytes [20:35:06]NVStorageSaveData done [20:35:06]ExternCall_PrintAddStr [20:35:06]wPrintStart [20:35:06]Write to MH i2c: 01 00 00 64 2A 8E [20:35:06]Write i2c OK [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: 01 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: 01 07 00 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: 01 07 00 64 2A 00 00 00 00 00 FF 0F A3 [20:35:06]RasterBufferAndPrint [20:35:06]line Счет N : (1)99244 [20:35:06]line ИНН: 02508201610067 [20:35:06]line Контрольно-Кассовый Чек [20:35:06]line ПРОДАЖА [20:35:06]line ТРК (МРК, ГНК) : 31 [20:35:06]line Товар: 2710124130 [20:35:06]line Аи-92-К-5 [20:35:06]line 10.000 * 66.90 [20:35:06]line = 669.00 [20:35:06]line НДС 12% НСП 1% [20:35:06]line > о реализуемом товаре [20:35:06]line ИТОГО: 669.00 [20:35:06]line НСП 1% : 5.92 [20:35:06]line НДС 12% : 71.04 [20:35:06]line Наличными: 0.00 [20:35:06]line Безнал.: 669.00 [20:35:06]line Место: АЗС № 143 "Партнер Нефть" [20:35:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:35:06]line СНО: Общий режим [20:35:06]line Чек 330 26.10.2024 20:35 [20:35:06]line Смена: 536 ФФД: 1.0 [20:35:06]line ЗНМ: 0300000096 [20:35:06]line РНМ: 0000000000091693 [20:35:06]line Версия ККМ: 001 [20:35:06]line Платежная система: Mbank [20:35:06]line ФМ: 0000000000871792 [20:35:06]line ФД: 156429 [20:35:06]line ФПД: 120235602011179 [20:35:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203507&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156429&fm=120235602011179&tin=02508201610067®Number=0000000000091693&sum=66900 [20:35:06]written 0, free lines is 4095 [20:35:06]OFD Sender: Processing packet 156429 [packets to send 31, broken 30] [20:35:06]ProducePacketName [20:35:06]name=ofd_packets/00156429 [20:35:06]OFD Sender: To server: pG, [20:35:06]CommunicateWithHost lk.salyk.kg:30040 [20:35:06]ConnectInit lk.salyk.kg [20:35:06]Connected sock=11 [20:35:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2C 93 07 01 C9 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 7B 52 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 63 02 00 35 04 06 00 6D 5A 88 58 E4 2B A9 52 B2 3E C7 03 0A 84 [20:35:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 05 5E 47 00 83 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 63 02 00 F4 03 04 00 EC F7 1C 67 B6 04 01 00 00 00 D7 2C 8A D5 7C 5C 86 [20:35:07]CommunicateWithHost err = 0 [20:35:07]CheckOFDResponse [20:35:07]1017 (14) - 77093643461234 [20:35:07]1041 (16) - 0000000000871792 [20:35:07]1040 (4) - 156429 [20:35:07]1012 (4) - 26.10.2024 14:08 [20:35:07]1206 (1) - 0 [20:35:07]OFD Sender: Remove packet 156429 [20:35:07]ProducePacketName [20:35:07]name=ofd_packets/00156429 [20:35:07]NVStorageDeleteData [20:35:07]Write to MH i2c: 01 00 00 8D 2A B7 [20:35:07]Write i2c OK [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: 01 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: 01 07 00 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: 01 07 00 8D 2A 00 00 00 00 00 16 0D E1 [20:35:07]RasterBufferAndPrint [20:35:07]line [20:35:07]line [20:35:07]line [20:35:07]line [20:35:07]line [20:35:07]written 0, free lines is 3358 [20:35:07]process_action close_receipt done [20:35:07]requested_data is exist [20:35:07]produce_requested_data [20:35:07]requested_item fm.sn is exist - process it [20:35:07]wFMCommunicate request_size=4 [20:35:07]MH_SAM_APDU [20:35:07]CAPDU: 80 11 00 00 [20:35:07]Write to MH i2c: E2 08 00 94 2A 80 11 00 00 00 00 00 00 38 [20:35:07]Write i2c OK [20:35:07]MH_I2C_Read... [20:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:07]Read from MH i2c: E2 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 17 00 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 17 00 94 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [20:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:35:07]wFMCommunicate OK [20:35:07]requested_item fd.num is exist - process it [20:35:07]SAM_PROTO_GetFieldsCounters [20:35:07]wFMCommunicate request_size=4 [20:35:07]MH_SAM_APDU [20:35:07]CAPDU: 80 13 00 00 [20:35:07]Write to MH i2c: E2 08 00 95 2A 80 13 00 00 00 00 00 00 3B [20:35:07]Write i2c OK [20:35:07]MH_I2C_Read... [20:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:07]Read from MH i2c: E2 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 62 00 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 62 00 95 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0D 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [20:35: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0D 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:07]wFMCommunicate OK [20:35:07]SAM_PROTO_GetFieldsCounters done [20:35:07]requested_item shift.num is exist - process it [20:35:07]requested_item shift.opened is exist - process it [20:35:07]req_shift_opened [20:35:07]FM_GetShiftState [20:35:07]SAM_PROTO_GetShiftState [20:35:07]wFMCommunicate request_size=4 [20:35:07]MH_SAM_APDU [20:35:07]CAPDU: 80 13 01 00 [20:35:07]Write to MH i2c: E2 08 00 96 2A 80 13 01 00 00 00 00 00 3D [20:35:07]Write i2c OK [20:35:07]MH_I2C_Read... [20:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:07]Read from MH i2c: E2 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 0E 00 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 0E 00 96 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 72 [20:35:07]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:35:07]wFMCommunicate OK [20:35:07]SAM_PROTO_GetShiftState done [20:35:07]FM_GetShiftState done [20:35:07]req_shift_opened done [20:35:07]requested_item shift.open_date is exist - process it [20:35:07]req_shift_open_date [20:35:07]req_shift_open_date done [20:35:07]produce_requested_data done [20:35:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156429,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:35:07]process_action_free close_receipt [20:35:07]json_value_free [20:35:07]json_value_free done [20:35:07]process_json_proto returns [20:35:07]Send response to host [20:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156429,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:35:07]free response buf [20:35:07]execute_script done [20:35:07]execute_script returns [20:35:07]free content buf [20:35:07]Sock 8.Close socket [20:35:07]Sock 8.Thread stoped [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:14]accept exits with 9 [20:36:14]New connection [20:36:14]New thread 3066834276 created [20:36:14]Thread 3066977636 joined [20:36:14]Waiting for new connection... [20:36:14] Sock 9.Parse request [20:36:14]Sock 9.Check first char [20:36:14]Sock 9.First char is OK [20:36:14]request: POST /json_proto HTTP/1.0 [20:36:14]Method: POST [20:36:14]URL: /json_proto [20:36:14]Method is POST - this is cgi request [20:36:14]url: /json_proto [20:36:14]query_string will be loaded in cgi processing [20:36:14]execute_cgi json_proto POST (null) [20:36:14]execute_cgi path=json_proto method=POST [20:36:14]POST find Content-Length [20:36:14]Host: 172.17.63.3:8080 [20:36:14]Content-Length: 681 [20:36:14]Content-Type: application/json [20:36:14] [20:36:14]POST finish read [20:36:14]Found Content-Length = 681 [20:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:14]execute_script... [20:36:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:14]POST & json_proto [20:36:14]process_json_proto [20:36:14]json parsed OK: [20:36:14]protocol is kg_v1.0 [20:36:14]action value=close_receipt [20:36:14]process_action close_receipt [20:36:14]cmd_close_receipt [20:36:14]MH_GetDate [20:36:14]Write to MH i2c: F0 00 00 97 2A B0 [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: F0 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: F0 09 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: F0 09 00 97 2A 00 C0 52 1D 67 50 D1 6C 64 40 [20:36:14]GetLastDocTimeStamp 1729974907 [20:36:14]current date 1729974976 [20:36:14]FM_GetShiftState [20:36:14]SAM_PROTO_GetShiftState [20:36:14]wFMCommunicate request_size=4 [20:36:14]MH_SAM_APDU [20:36:14]CAPDU: 80 13 01 00 [20:36:14]Write to MH i2c: E2 08 00 98 2A 80 13 01 00 00 00 00 00 3F [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:14]Read from MH i2c: E2 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 98 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 74 [20:36:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:36:14]wFMCommunicate OK [20:36:14]SAM_PROTO_GetShiftState done [20:36:14]FM_GetShiftState done [20:36:14]opened in 1729902702 [20:36:14]opened+sec_in_day 1729989102 [20:36:14]quantity*price = 100015 [20:36:14]sum+1 = 100017 [20:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 331 26.10.2024 20:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156430 ФПД: 215596380956191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203616&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156430&fm=215596380956191&tin=02508201610067®Number=0000000000091693&sum=100000 [20:36:15]StoreToDocumentArchive [20:36:15]shift 536 fd 156430 [20:36:15]save to /storage/0536/doc_00156430 [20:36:15]save last doc name /storage/0536/doc_00156430 to /storage/kkm_last_doc_name [20:36:15]save OK [20:36:15]Clear old archive folders... [20:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:15]tlvbuf is B6F5E230 [20:36:15]SAM_PROTO_ClearQueue [20:36:15]wFMCommunicate request_size=4 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 09 00 00 [20:36:15]Write to MH i2c: E2 08 00 A5 2A 80 09 00 00 00 00 00 00 41 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 A5 2A 00 90 00 43 [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]SAM_PROTO_ClearQueue done [20:36:15]KKMCreateOFDPacket [20:36:15]OFDProtocolAddRootSTLVToBuf [20:36:15]FM_MakeSignedData [20:36:15]FM_MakeSignedData [20:36:15]SAM_PROTO_SignData [20:36:15]wFMCommunicate request_size=4 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 01 02 [20:36:15]Write to MH i2c: E2 08 00 A6 2A 80 0D 01 02 00 00 00 00 49 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 A6 2A 00 90 00 44 [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]wFMCommunicate request_size=255 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 C0 52 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 63 02 00 35 04 06 00 C4 [20:36:15]Write to MH i2c: E2 02 01 A7 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 C0 52 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 63 02 00 35 04 06 00 C4 00 00 0A [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 A7 2A 00 90 00 45 [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]wFMCommunicate request_size=10 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 02 02 05 15 71 B3 A6 1F [20:36:15]Write to MH i2c: E2 0D 00 A8 2A 80 0D 02 02 05 00 15 71 B3 A6 1F 00 00 54 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]wFMCommunicate request_size=4 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 03 02 [20:36:15]Write to MH i2c: E2 08 00 A9 2A 80 0D 03 02 00 00 00 00 4E [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 0B 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 0B 00 A9 2A 00 46 77 12 18 2F 8D E8 0A 90 00 E4 [20:36:15]RAPDU: 46 77 12 18 2F 8D E8 0A 90 00 [20:36:15]wFMCommunicate OK [20:36:15]SAM_PROTO_SignData done [20:36:15]FM_MakeSignedData done [20:36:15]CreateOFDProtocolMessage [20:36:15]wFMCommunicate request_size=4 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 11 00 00 [20:36:15]Write to MH i2c: E2 08 00 AA 2A 80 11 00 00 00 00 00 00 4E [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 17 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 17 00 AA 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [20:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:36:15]wFMCommunicate OK [20:36:15]CreateOFDProtocolMessage done [20:36:15]OFDSenderStorePacket 156430 [20:36:15]StoreOFDPacket docnum=156430 [20:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA B7 07 01 ED 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 C0 52 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 63 02 00 35 04 06 00 C4 15 71 B3 A6 1F 46 77 12 18 2F 8D E8 0A [20:36:15]CheckFolder [20:36:15]dirname=/storage/ofd_packets [20:36:15]CheckFolder done [20:36:15]ProducePacketName [20:36:15]name=ofd_packets/00156430 [20:36:15]NVStorageSaveData ofd_packets/00156430 [20:36:15]File name is /storage/ofd_packets/00156430 [20:36:15]Write 301 bytes [20:36:15]NVStorageSaveData done [20:36:15]OFDSenderStorePacket done [20:36:15]KKMCreateOFDPacket done [20:36:15]NVStorageSaveData kkm_last_timestamp [20:36:15]File name is /storage/kkm_last_timestamp [20:36:15]Write 4 bytes [20:36:15]NVStorageSaveData done [20:36:15]ExternCall_PrintAddStr [20:36:15]wPrintStart [20:36:15]Write to MH i2c: 01 00 00 AB 2A D5 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: 01 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: 01 07 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: 01 07 00 AB 2A 00 00 00 00 00 FF 0F EA [20:36:15]RasterBufferAndPrint [20:36:15]line Счет N : (1)99245 [20:36:15]line ИНН: 02508201610067 [20:36:15]line Контрольно-Кассовый Чек [20:36:15]line ПРОДАЖА [20:36:15]line ТРК (МРК, ГНК) : 11 [20:36:15]line Товар: 2710124130 [20:36:15]line Аи-92-К-5 [20:36:15]line 14.950 * 66.90 [20:36:15]line = 1000.16 [20:36:15]line НДС 12% НСП 1% [20:36:15]line > о реализуемом товаре [20:36:15]line ОКРУГЛЕНИЕ: -0.16 [20:36:15]line ИТОГО: 1000.00 [20:36:15]line Внесено: 1000.00 [20:36:15]line СДАЧА: 0.00 [20:36:15]line НСП 1% : 8.85 [20:36:15]line НДС 12% : 106.21 [20:36:15]line Наличными: 1000.00 [20:36:15]line Безнал.: 0.00 [20:36:15]line Место: АЗС № 143 "Партнер Нефть" [20:36:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:36:15]line СНО: Общий режим [20:36:15]line Чек 331 26.10.2024 20:36 [20:36:15]line Смена: 536 ФФД: 1.0 [20:36:15]line ЗНМ: 0300000096 [20:36:15]line РНМ: 0000000000091693 [20:36:15]line Версия ККМ: 001 [20:36:15]line ФМ: 0000000000871792 [20:36:15]line ФД: 156430 [20:36:15]line ФПД: 215596380956191 [20:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203616&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156430&fm=215596380956191&tin=02508201610067®Number=0000000000091693&sum=100000 [20:36:15]written 0, free lines is 4095 [20:36:15]OFD Sender: Processing packet 156430 [packets to send 31, broken 30] [20:36:15]ProducePacketName [20:36:15]name=ofd_packets/00156430 [20:36:15]OFD Sender: To server: pG, [20:36:15]CommunicateWithHost lk.salyk.kg:30040 [20:36:15]ConnectInit lk.salyk.kg [20:36:15]Connected sock=10 [20:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA B7 07 01 ED 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 C0 52 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 63 02 00 35 04 06 00 C4 15 71 B3 A6 1F 46 77 12 18 2F 8D E8 0A [20:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EF 06 47 00 2E 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 63 02 00 F4 03 04 00 31 F8 1C 67 B6 04 01 00 00 4A B1 2F A4 66 65 C8 49 [20:36:16]CommunicateWithHost err = 0 [20:36:16]CheckOFDResponse [20:36:16]1017 (14) - 77093643461234 [20:36:16]1041 (16) - 0000000000871792 [20:36:16]1040 (4) - 156430 [20:36:16]1012 (4) - 26.10.2024 14:09 [20:36:16]1206 (1) - 0 [20:36:16]OFD Sender: Remove packet 156430 [20:36:16]ProducePacketName [20:36:16]name=ofd_packets/00156430 [20:36:16]NVStorageDeleteData [20:36:16]Write to MH i2c: 01 00 00 D6 2A 00 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 07 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 07 00 D6 2A 00 00 00 00 00 EB 0C FE [20:36:16]RasterBufferAndPrint [20:36:16]line [20:36:16]line [20:36:16]line [20:36:16]line [20:36:16]line [20:36:16]written 0, free lines is 3313 [20:36:16]process_action close_receipt done [20:36:16]requested_data is exist [20:36:16]produce_requested_data [20:36:16]requested_item fm.sn is exist - process it [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 11 00 00 [20:36:16]Write to MH i2c: E2 08 00 DD 2A 80 11 00 00 00 00 00 00 81 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 17 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 17 00 DD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [20:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:36:16]wFMCommunicate OK [20:36:16]requested_item fd.num is exist - process it [20:36:16]SAM_PROTO_GetFieldsCounters [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 13 00 00 [20:36:16]Write to MH i2c: E2 08 00 DE 2A 80 13 00 00 00 00 00 00 84 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 62 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 62 00 DE 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0E 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [20:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0E 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:16]wFMCommunicate OK [20:36:16]SAM_PROTO_GetFieldsCounters done [20:36:16]requested_item shift.num is exist - process it [20:36:16]requested_item shift.opened is exist - process it [20:36:16]req_shift_opened [20:36:16]FM_GetShiftState [20:36:16]SAM_PROTO_GetShiftState [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 13 01 00 [20:36:16]Write to MH i2c: E2 08 00 DF 2A 80 13 01 00 00 00 00 00 86 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0E 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0E 00 DF 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [20:36:16]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:36:16]wFMCommunicate OK [20:36:16]SAM_PROTO_GetShiftState done [20:36:16]FM_GetShiftState done [20:36:16]req_shift_opened done [20:36:16]requested_item shift.open_date is exist - process it [20:36:16]req_shift_open_date [20:36:16]req_shift_open_date done [20:36:16]produce_requested_data done [20:36:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156430,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:36:16]process_action_free close_receipt [20:36:16]json_value_free [20:36:16]json_value_free done [20:36:16]process_json_proto returns [20:36:16]Send response to host [20:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156430,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:36:16]free response buf [20:36:16]execute_script done [20:36:16]execute_script returns [20:36:16]free content buf [20:36:16]Sock 9.Close socket [20:36:16]Sock 9.Thread stoped [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:25]accept exits with 8 [20:47:25]New connection [20:47:25]New thread 3066977636 created [20:47:25]Thread 3066834276 joined [20:47:25]Waiting for new connection... [20:47:25] Sock 8.Parse request [20:47:25]Sock 8.Check first char [20:47:25]Sock 8.First char is OK [20:47:25]request: POST /json_proto HTTP/1.0 [20:47:25]Method: POST [20:47:25]URL: /json_proto [20:47:25]Method is POST - this is cgi request [20:47:25]url: /json_proto [20:47:25]query_string will be loaded in cgi processing [20:47:25]execute_cgi json_proto POST (null) [20:47:25]execute_cgi path=json_proto method=POST [20:47:25]POST find Content-Length [20:47:25]Host: 172.17.63.3:8080 [20:47:25]Content-Length: 676 [20:47:25]Content-Type: application/json [20:47:25] [20:47:25]POST finish read [20:47:25]Found Content-Length = 676 [20:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:25]execute_script... [20:47:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:25]POST & json_proto [20:47:25]process_json_proto [20:47:25]json parsed OK: [20:47:25]protocol is kg_v1.0 [20:47:25]action value=close_receipt [20:47:25]process_action close_receipt [20:47:25]cmd_close_receipt [20:47:25]MH_GetDate [20:47:25]Write to MH i2c: F0 00 00 E0 2A F9 [20:47:25]Write i2c OK [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: F0 [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: F0 09 00 [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: F0 09 00 E0 2A 00 5F 55 1D 67 50 D1 6C 64 2B [20:47:25]GetLastDocTimeStamp 1729974976 [20:47:25]current date 1729975647 [20:47:25]FM_GetShiftState [20:47:25]SAM_PROTO_GetShiftState [20:47:25]wFMCommunicate request_size=4 [20:47:25]MH_SAM_APDU [20:47:25]CAPDU: 80 13 01 00 [20:47:25]Write to MH i2c: E2 08 00 E1 2A 80 13 01 00 00 00 00 00 88 [20:47:25]Write i2c OK [20:47:25]MH_I2C_Read... [20:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:25]Read from MH i2c: E2 [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: E2 0E 00 [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: E2 0E 00 E1 2A 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BD [20:47:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:47:25]wFMCommunicate OK [20:47:25]SAM_PROTO_GetShiftState done [20:47:25]FM_GetShiftState done [20:47:25]opened in 1729902702 [20:47:25]opened+sec_in_day 1729989102 [20:47:25]quantity*price = 20003 [20:47:25]sum+1 = 20004 [20:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 332 26.10.2024 20:47 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156431 ФПД: 263937863358620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204727&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156431&fm=263937863358620&tin=02508201610067®Number=0000000000091693&sum=20000 [20:47:26]StoreToDocumentArchive [20:47:26]shift 536 fd 156431 [20:47:26]save to /storage/0536/doc_00156431 [20:47:26]save last doc name /storage/0536/doc_00156431 to /storage/kkm_last_doc_name [20:47:26]save OK [20:47:26]Clear old archive folders... [20:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:47:26]tlvbuf is 016B3590 [20:47:26]SAM_PROTO_ClearQueue [20:47:26]wFMCommunicate request_size=4 [20:47:26]MH_SAM_APDU [20:47:26]CAPDU: 80 09 00 00 [20:47:26]Write to MH i2c: E2 08 00 EE 2A 80 09 00 00 00 00 00 00 8A [20:47:26]Write i2c OK [20:47:26]MH_I2C_Read... [20:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:26]Read from MH i2c: E2 [20:47:26]MH_I2C_Read... [20:47:26]Read from MH i2c: E2 03 00 [20:47:26]MH_I2C_Read... [20:47:26]Read from MH i2c: E2 03 00 EE 2A 00 90 00 8C [20:47:26]RAPDU: 90 00 [20:47:26]wFMCommunicate OK [20:47:26]SAM_PROTO_ClearQueue done [20:47:26]KKMCreateOFDPacket [20:47:26]OFDProtocolAddRootSTLVToBuf [20:47:26]FM_MakeSignedData [20:47:26]FM_MakeSignedData [20:47:26]SAM_PROTO_SignData [20:47:26]wFMCommunicate request_size=4 [20:47:26]MH_SAM_APDU [20:47:26]CAPDU: 80 0D 01 02 [20:47:26]Write to MH i2c: E2 08 00 EF 2A 80 0D 01 02 00 00 00 00 92 [20:47:26]Write i2c OK [20:47:26]MH_I2C_Read... [20:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:26]Read from MH i2c: E2 [20:47:26]MH_I2C_Read... [20:47:26]Read from MH i2c: E2 03 00 [20:47:26]MH_I2C_Read... [20:47:26]Read from MH i2c: E2 03 00 EF 2A 00 90 00 8D [20:47:26]RAPDU: 90 00 [20:47:26]wFMCommunicate OK [20:47:26]wFMCommunicate request_size=255 [20:47:26]MH_SAM_APDU [20:47:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 5F 55 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 63 02 00 35 04 06 00 F0 [20:47:26]Write to MH i2c: E2 02 01 F0 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 5F 55 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 63 02 00 35 04 06 00 F0 00 00 EB [20:47:26]Write i2c OK [20:47:26]MH_I2C_Read... [20:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:27]Read from MH i2c: E2 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 03 00 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [20:47:27]RAPDU: 90 00 [20:47:27]wFMCommunicate OK [20:47:27]wFMCommunicate request_size=10 [20:47:27]MH_SAM_APDU [20:47:27]CAPDU: 80 0D 02 02 05 0C D2 96 98 9C [20:47:27]Write to MH i2c: E2 0D 00 F1 2A 80 0D 02 02 05 00 0C D2 96 98 9C 00 00 47 [20:47:27]Write i2c OK [20:47:27]MH_I2C_Read... [20:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:27]Read from MH i2c: E2 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 03 00 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [20:47:27]RAPDU: 90 00 [20:47:27]wFMCommunicate OK [20:47:27]wFMCommunicate request_size=4 [20:47:27]MH_SAM_APDU [20:47:27]CAPDU: 80 0D 03 02 [20:47:27]Write to MH i2c: E2 08 00 F2 2A 80 0D 03 02 00 00 00 00 97 [20:47:27]Write i2c OK [20:47:27]MH_I2C_Read... [20:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:27]OFD Sender: No OFD packet to send [20:47:27]Read from MH i2c: E2 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 0B 00 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 0B 00 F2 2A 00 1D 61 C8 B4 3D 03 2C 93 90 00 91 [20:47:27]RAPDU: 1D 61 C8 B4 3D 03 2C 93 90 00 [20:47:27]wFMCommunicate OK [20:47:27]SAM_PROTO_SignData done [20:47:27]FM_MakeSignedData done [20:47:27]CreateOFDProtocolMessage [20:47:27]wFMCommunicate request_size=4 [20:47:27]MH_SAM_APDU [20:47:27]CAPDU: 80 11 00 00 [20:47:27]Write to MH i2c: E2 08 00 F3 2A 80 11 00 00 00 00 00 00 97 [20:47:27]Write i2c OK [20:47:27]MH_I2C_Read... [20:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:27]Read from MH i2c: E2 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 17 00 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 17 00 F3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [20:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:47:27]wFMCommunicate OK [20:47:27]CreateOFDProtocolMessage done [20:47:27]OFDSenderStorePacket 156431 [20:47:27]StoreOFDPacket docnum=156431 [20:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B3 B1 07 01 C3 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 5F 55 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 63 02 00 35 04 06 00 F0 0C D2 96 98 9C 1D 61 C8 B4 3D 03 2C 93 [20:47:27]CheckFolder [20:47:27]dirname=/storage/ofd_packets [20:47:27]CheckFolder done [20:47:27]ProducePacketName [20:47:27]name=ofd_packets/00156431 [20:47:27]NVStorageSaveData ofd_packets/00156431 [20:47:27]File name is /storage/ofd_packets/00156431 [20:47:27]Write 301 bytes [20:47:27]NVStorageSaveData done [20:47:27]OFDSenderStorePacket done [20:47:27]KKMCreateOFDPacket done [20:47:27]NVStorageSaveData kkm_last_timestamp [20:47:27]File name is /storage/kkm_last_timestamp [20:47:27]Write 4 bytes [20:47:27]NVStorageSaveData done [20:47:27]ExternCall_PrintAddStr [20:47:27]wPrintStart [20:47:27]Write to MH i2c: 01 00 00 F4 2A 1E [20:47:27]Write i2c OK [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: 01 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: 01 07 00 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: 01 07 00 F4 2A 00 00 00 00 00 FF 0F 33 [20:47:27]RasterBufferAndPrint [20:47:27]line Счет N : (1)99246 [20:47:27]line ИНН: 02508201610067 [20:47:27]line Контрольно-Кассовый Чек [20:47:27]line ПРОДАЖА [20:47:27]line ТРК (МРК, ГНК) : 11 [20:47:27]line Товар: 2710124130 [20:47:27]line Аи-92-К-5 [20:47:27]line 2.990 * 66.90 [20:47:27]line = 200.03 [20:47:27]line НДС 12% НСП 1% [20:47:27]line > о реализуемом товаре [20:47:27]line ОКРУГЛЕНИЕ: -0.03 [20:47:27]line ИТОГО: 200.00 [20:47:27]line Внесено: 200.00 [20:47:27]line СДАЧА: 0.00 [20:47:27]line НСП 1% : 1.77 [20:47:27]line НДС 12% : 21.24 [20:47:27]line Наличными: 200.00 [20:47:27]line Безнал.: 0.00 [20:47:27]line Место: АЗС № 143 "Партнер Нефть" [20:47:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:47:27]line СНО: Общий режим [20:47:27]line Чек 332 26.10.2024 20:47 [20:47:27]line Смена: 536 ФФД: 1.0 [20:47:27]line ЗНМ: 0300000096 [20:47:27]line РНМ: 0000000000091693 [20:47:27]line Версия ККМ: 001 [20:47:27]line ФМ: 0000000000871792 [20:47:27]line ФД: 156431 [20:47:27]line ФПД: 263937863358620 [20:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204727&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156431&fm=263937863358620&tin=02508201610067®Number=0000000000091693&sum=20000 [20:47:27]OFD Sender: Processing packet 156431 [packets to send 31, broken 30] [20:47:27]ProducePacketName [20:47:27]name=ofd_packets/00156431 [20:47:27]OFD Sender: To server: pG, [20:47:27]CommunicateWithHost lk.salyk.kg:30040 [20:47:27]ConnectInit lk.salyk.kg [20:47:27]written 0, free lines is 4095 [20:47:27]Connected sock=10 [20:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B3 B1 07 01 C3 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 5F 55 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 63 02 00 35 04 06 00 F0 0C D2 96 98 9C 1D 61 C8 B4 3D 03 2C 93 [20:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EF 55 47 00 0B 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 63 02 00 F4 03 04 00 D1 FA 1C 67 B6 04 01 00 00 62 FA CD 44 E6 87 31 E0 [20:47:28]CommunicateWithHost err = 0 [20:47:28]CheckOFDResponse [20:47:28]1017 (14) - 77093643461234 [20:47:28]1041 (16) - 0000000000871792 [20:47:28]1040 (4) - 156431 [20:47:28]1012 (4) - 26.10.2024 14:21 [20:47:28]1206 (1) - 0 [20:47:28]OFD Sender: Remove packet 156431 [20:47:28]ProducePacketName [20:47:28]name=ofd_packets/00156431 [20:47:28]NVStorageDeleteData [20:47:28]Write to MH i2c: 01 00 00 1F 2B 4A [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: 01 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: 01 07 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: 01 07 00 1F 2B 00 00 00 00 00 F3 0C 50 [20:47:28]RasterBufferAndPrint [20:47:28]line [20:47:28]line [20:47:28]line [20:47:28]line [20:47:28]line [20:47:28]written 0, free lines is 3324 [20:47:28]process_action close_receipt done [20:47:28]requested_data is exist [20:47:28]produce_requested_data [20:47:28]requested_item fm.sn is exist - process it [20:47:28]wFMCommunicate request_size=4 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 11 00 00 [20:47:28]Write to MH i2c: E2 08 00 26 2B 80 11 00 00 00 00 00 00 CB [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 17 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 17 00 26 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [20:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:47:28]wFMCommunicate OK [20:47:28]requested_item fd.num is exist - process it [20:47:28]SAM_PROTO_GetFieldsCounters [20:47:28]wFMCommunicate request_size=4 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 13 00 00 [20:47:28]Write to MH i2c: E2 08 00 27 2B 80 13 00 00 00 00 00 00 CE [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 62 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 62 00 27 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [20:47: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:28]wFMCommunicate OK [20:47:28]SAM_PROTO_GetFieldsCounters done [20:47:28]requested_item shift.num is exist - process it [20:47:28]requested_item shift.opened is exist - process it [20:47:28]req_shift_opened [20:47:28]FM_GetShiftState [20:47:28]SAM_PROTO_GetShiftState [20:47:28]wFMCommunicate request_size=4 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 13 01 00 [20:47:28]Write to MH i2c: E2 08 00 28 2B 80 13 01 00 00 00 00 00 D0 [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 0E 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 0E 00 28 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 05 [20:47:28]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:47:28]wFMCommunicate OK [20:47:28]SAM_PROTO_GetShiftState done [20:47:28]FM_GetShiftState done [20:47:28]req_shift_opened done [20:47:28]requested_item shift.open_date is exist - process it [20:47:28]req_shift_open_date [20:47:28]req_shift_open_date done [20:47:28]produce_requested_data done [20:47:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156431,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:47:28]process_action_free close_receipt [20:47:28]json_value_free [20:47:28]json_value_free done [20:47:28]process_json_proto returns [20:47:28]Send response to host [20:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156431,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:47:28]free response buf [20:47:28]execute_script done [20:47:28]execute_script returns [20:47:28]free content buf [20:47:28]Sock 8.Close socket [20:47:28]Sock 8.Thread stoped [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:12]accept exits with 9 [20:53:12]New connection [20:53:12]New thread 3066834276 created [20:53:12]Thread 3066977636 joined [20:53:12]Waiting for new connection... [20:53:12] Sock 9.Parse request [20:53:12]Sock 9.Check first char [20:53:12]Sock 9.First char is OK [20:53:12]request: POST /json_proto HTTP/1.0 [20:53:12]Method: POST [20:53:12]URL: /json_proto [20:53:12]Method is POST - this is cgi request [20:53:12]url: /json_proto [20:53:12]query_string will be loaded in cgi processing [20:53:12]execute_cgi json_proto POST (null) [20:53:12]execute_cgi path=json_proto method=POST [20:53:12]POST find Content-Length [20:53:12]Host: 172.17.63.3:8080 [20:53:12]Content-Length: 676 [20:53:12]Content-Type: application/json [20:53:12] [20:53:12]POST finish read [20:53:12]Found Content-Length = 676 [20:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:12]execute_script... [20:53:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:12]POST & json_proto [20:53:12]process_json_proto [20:53:12]json parsed OK: [20:53:12]protocol is kg_v1.0 [20:53:12]action value=close_receipt [20:53:12]process_action close_receipt [20:53:12]cmd_close_receipt [20:53:12]MH_GetDate [20:53:12]Write to MH i2c: F0 00 00 29 2B 43 [20:53:12]Write i2c OK [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: F0 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: F0 09 00 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: F0 09 00 29 2B 00 BA 56 1D 67 50 D1 6C 64 D1 [20:53:12]GetLastDocTimeStamp 1729975647 [20:53:12]current date 1729975994 [20:53:12]FM_GetShiftState [20:53:12]SAM_PROTO_GetShiftState [20:53:12]wFMCommunicate request_size=4 [20:53:12]MH_SAM_APDU [20:53:12]CAPDU: 80 13 01 00 [20:53:12]Write to MH i2c: E2 08 00 2A 2B 80 13 01 00 00 00 00 00 D2 [20:53:12]Write i2c OK [20:53:12]MH_I2C_Read... [20:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:12]Read from MH i2c: E2 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: E2 0E 00 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: E2 0E 00 2A 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 07 [20:53:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:53:12]wFMCommunicate OK [20:53:12]SAM_PROTO_GetShiftState done [20:53:12]FM_GetShiftState done [20:53:12]opened in 1729902702 [20:53:12]opened+sec_in_day 1729989102 [20:53:12]quantity*price = 50041 [20:53:12]sum+1 = 50042 [20:53:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 333 26.10.2024 20:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156432 ФПД: 270846499591022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205314&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156432&fm=270846499591022&tin=02508201610067®Number=0000000000091693&sum=50000 [20:53:13]StoreToDocumentArchive [20:53:13]shift 536 fd 156432 [20:53:13]save to /storage/0536/doc_00156432 [20:53:13]save last doc name /storage/0536/doc_00156432 to /storage/kkm_last_doc_name [20:53:13]save OK [20:53:13]Clear old archive folders... [20:53:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:13]tlvbuf is B6DAE2D0 [20:53:13]SAM_PROTO_ClearQueue [20:53:13]wFMCommunicate request_size=4 [20:53:13]MH_SAM_APDU [20:53:13]CAPDU: 80 09 00 00 [20:53:13]Write to MH i2c: E2 08 00 37 2B 80 09 00 00 00 00 00 00 D4 [20:53:13]Write i2c OK [20:53:13]MH_I2C_Read... [20:53:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:13]Read from MH i2c: E2 [20:53:13]MH_I2C_Read... [20:53:13]Read from MH i2c: E2 03 00 [20:53:13]MH_I2C_Read... [20:53:13]Read from MH i2c: E2 03 00 37 2B 00 90 00 D6 [20:53:13]RAPDU: 90 00 [20:53:13]wFMCommunicate OK [20:53:13]SAM_PROTO_ClearQueue done [20:53:13]KKMCreateOFDPacket [20:53:13]OFDProtocolAddRootSTLVToBuf [20:53:13]FM_MakeSignedData [20:53:13]FM_MakeSignedData [20:53:13]SAM_PROTO_SignData [20:53:13]wFMCommunicate request_size=4 [20:53:13]MH_SAM_APDU [20:53:13]CAPDU: 80 0D 01 02 [20:53:13]Write to MH i2c: E2 08 00 38 2B 80 0D 01 02 00 00 00 00 DC [20:53:13]Write i2c OK [20:53:13]MH_I2C_Read... [20:53:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:13]Read from MH i2c: E2 [20:53:13]MH_I2C_Read... [20:53:13]Read from MH i2c: E2 03 00 [20:53:13]MH_I2C_Read... [20:53:13]Read from MH i2c: E2 03 00 38 2B 00 90 00 D7 [20:53:13]RAPDU: 90 00 [20:53:13]wFMCommunicate OK [20:53:13]wFMCommunicate request_size=255 [20:53:13]MH_SAM_APDU [20:53:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 BA 56 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 63 02 00 35 04 06 00 F6 [20:53:13]Write to MH i2c: E2 02 01 39 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 BA 56 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 63 02 00 35 04 06 00 F6 00 00 D7 [20:53:13]Write i2c OK [20:53:13]MH_I2C_Read... [20:53:13]OFD Sender: No OFD packet to send [20:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:13]Read from MH i2c: E2 [20:53:13]MH_I2C_Read... [20:53:13]Read from MH i2c: E2 03 00 [20:53:13]MH_I2C_Read... [20:53:13]Read from MH i2c: E2 03 00 39 2B 00 90 00 D8 [20:53:13]RAPDU: 90 00 [20:53:13]wFMCommunicate OK [20:53:13]wFMCommunicate request_size=10 [20:53:13]MH_SAM_APDU [20:53:13]CAPDU: 80 0D 02 02 05 55 5D 65 93 6E [20:53:13]Write to MH i2c: E2 0D 00 3A 2B 80 0D 02 02 05 00 55 5D 65 93 6E 00 00 01 [20:53:13]Write i2c OK [20:53:13]MH_I2C_Read... [20:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:13]Read from MH i2c: E2 [20:53:13]MH_I2C_Read... [20:53:13]Read from MH i2c: E2 03 00 [20:53:13]MH_I2C_Read... [20:53:13]Read from MH i2c: E2 03 00 3A 2B 00 90 00 D9 [20:53:13]RAPDU: 90 00 [20:53:13]wFMCommunicate OK [20:53:13]wFMCommunicate request_size=4 [20:53:13]MH_SAM_APDU [20:53:13]CAPDU: 80 0D 03 02 [20:53:13]Write to MH i2c: E2 08 00 3B 2B 80 0D 03 02 00 00 00 00 E1 [20:53:13]Write i2c OK [20:53:13]MH_I2C_Read... [20:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:14]Read from MH i2c: E2 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 0B 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 0B 00 3B 2B 00 68 D8 30 E3 CD B2 70 38 90 00 5C [20:53:14]RAPDU: 68 D8 30 E3 CD B2 70 38 90 00 [20:53:14]wFMCommunicate OK [20:53:14]SAM_PROTO_SignData done [20:53:14]FM_MakeSignedData done [20:53:14]CreateOFDProtocolMessage [20:53:14]wFMCommunicate request_size=4 [20:53:14]MH_SAM_APDU [20:53:14]CAPDU: 80 11 00 00 [20:53:14]Write to MH i2c: E2 08 00 3C 2B 80 11 00 00 00 00 00 00 E1 [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:14]Read from MH i2c: E2 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 17 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 17 00 3C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 36 [20:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:53:14]wFMCommunicate OK [20:53:14]CreateOFDProtocolMessage done [20:53:14]OFDSenderStorePacket 156432 [20:53:14]StoreOFDPacket docnum=156432 [20:53:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4D 8C 07 01 C9 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 BA 56 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 63 02 00 35 04 06 00 F6 55 5D 65 93 6E 68 D8 30 E3 CD B2 70 38 [20:53:14]CheckFolder [20:53:14]dirname=/storage/ofd_packets [20:53:14]CheckFolder done [20:53:14]ProducePacketName [20:53:14]name=ofd_packets/00156432 [20:53:14]NVStorageSaveData ofd_packets/00156432 [20:53:14]File name is /storage/ofd_packets/00156432 [20:53:14]Write 301 bytes [20:53:14]NVStorageSaveData done [20:53:14]OFDSenderStorePacket done [20:53:14]KKMCreateOFDPacket done [20:53:14]NVStorageSaveData kkm_last_timestamp [20:53:14]File name is /storage/kkm_last_timestamp [20:53:14]Write 4 bytes [20:53:14]NVStorageSaveData done [20:53:14]ExternCall_PrintAddStr [20:53:14]wPrintStart [20:53:14]Write to MH i2c: 01 00 00 3D 2B 68 [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: 01 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: 01 07 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: 01 07 00 3D 2B 00 00 00 00 00 FF 0F 7D [20:53:14]RasterBufferAndPrint [20:53:14]line Счет N : (1)99247 [20:53:14]line ИНН: 02508201610067 [20:53:14]line Контрольно-Кассовый Чек [20:53:14]line ПРОДАЖА [20:53:14]line ТРК (МРК, ГНК) : 11 [20:53:14]line Товар: 2710124130 [20:53:14]line Аи-92-К-5 [20:53:14]line 7.480 * 66.90 [20:53:14]line = 500.41 [20:53:14]line НДС 12% НСП 1% [20:53:14]line > о реализуемом товаре [20:53:14]line ОКРУГЛЕНИЕ: -0.41 [20:53:14]line ИТОГО: 500.00 [20:53:14]line Внесено: 500.00 [20:53:14]line СДАЧА: 0.00 [20:53:14]line НСП 1% : 4.43 [20:53:14]line НДС 12% : 53.14 [20:53:14]line Наличными: 500.00 [20:53:14]line Безнал.: 0.00 [20:53:14]line Место: АЗС № 143 "Партнер Нефть" [20:53:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:53:14]line СНО: Общий режим [20:53:14]line Чек 333 26.10.2024 20:53 [20:53:14]line Смена: 536 ФФД: 1.0 [20:53:14]line ЗНМ: 0300000096 [20:53:14]line РНМ: 0000000000091693 [20:53:14]line Версия ККМ: 001 [20:53:14]line ФМ: 0000000000871792 [20:53:14]line ФД: 156432 [20:53:14]line ФПД: 270846499591022 [20:53:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205314&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156432&fm=270846499591022&tin=02508201610067®Number=0000000000091693&sum=50000 [20:53:14]written 0, free lines is 4095 [20:53:14]OFD Sender: Processing packet 156432 [packets to send 31, broken 30] [20:53:14]ProducePacketName [20:53:14]name=ofd_packets/00156432 [20:53:14]OFD Sender: To server: pG, [20:53:14]CommunicateWithHost lk.salyk.kg:30040 [20:53:14]ConnectInit lk.salyk.kg [20:53:14]Connected sock=10 [20:53:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4D 8C 07 01 C9 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 BA 56 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 63 02 00 35 04 06 00 F6 55 5D 65 93 6E 68 D8 30 E3 CD B2 70 38 [20:53:14]Write to MH i2c: 01 00 00 68 2B 93 [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: 01 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: 01 07 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: 01 07 00 68 2B 00 00 00 00 00 EE 0C 94 [20:53:14]RasterBufferAndPrint [20:53:14]line [20:53:14]line [20:53:14]line [20:53:14]line [20:53:14]line [20:53:14]written 0, free lines is 3316 [20:53:14]process_action close_receipt done [20:53:14]requested_data is exist [20:53:14]produce_requested_data [20:53:14]requested_item fm.sn is exist - process it [20:53:14]wFMCommunicate request_size=4 [20:53:14]MH_SAM_APDU [20:53:14]CAPDU: 80 11 00 00 [20:53:14]Write to MH i2c: E2 08 00 6F 2B 80 11 00 00 00 00 00 00 14 [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:14]Read from MH i2c: E2 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 17 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 17 00 6F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [20:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:53:14]wFMCommunicate OK [20:53:14]requested_item fd.num is exist - process it [20:53:14]SAM_PROTO_GetFieldsCounters [20:53:14]wFMCommunicate request_size=4 [20:53:14]MH_SAM_APDU [20:53:14]CAPDU: 80 13 00 00 [20:53:14]Write to MH i2c: E2 08 00 70 2B 80 13 00 00 00 00 00 00 17 [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:14]Read from MH i2c: E2 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 62 00 [20:53:14]MH_I2C_Read... [20:53:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F5 86 47 00 45 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 63 02 00 F4 03 04 00 2C FC 1C 67 B6 04 01 00 00 5E 85 45 14 23 28 6D 80 [20:53:14]CommunicateWithHost err = 0 [20:53:14]CheckOFDResponse [20:53:14]1017 (14) - 77093643461234 [20:53:14]1041 (16) - 0000000000871792 [20:53:14]1040 (4) - 156432 [20:53:14]1012 (4) - 26.10.2024 14:26 [20:53:14]1206 (1) - 0 [20:53:14]OFD Sender: Remove packet 156432 [20:53:14]ProducePacketName [20:53:14]name=ofd_packets/00156432 [20:53:14]NVStorageDeleteData [20:53:14]Read from MH i2c: E2 62 00 70 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 10 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [20:53:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 10 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:14]wFMCommunicate OK [20:53:14]SAM_PROTO_GetFieldsCounters done [20:53:14]requested_item shift.num is exist - process it [20:53:14]requested_item shift.opened is exist - process it [20:53:14]req_shift_opened [20:53:14]FM_GetShiftState [20:53:14]SAM_PROTO_GetShiftState [20:53:14]wFMCommunicate request_size=4 [20:53:14]MH_SAM_APDU [20:53:14]CAPDU: 80 13 01 00 [20:53:14]Write to MH i2c: E2 08 00 71 2B 80 13 01 00 00 00 00 00 19 [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:14]Read from MH i2c: E2 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 0E 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 0E 00 71 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4E [20:53:14]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:53:14]wFMCommunicate OK [20:53:14]SAM_PROTO_GetShiftState done [20:53:14]FM_GetShiftState done [20:53:14]req_shift_opened done [20:53:14]requested_item shift.open_date is exist - process it [20:53:14]req_shift_open_date [20:53:14]req_shift_open_date done [20:53:14]produce_requested_data done [20:53:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156432,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:53:14]process_action_free close_receipt [20:53:14]json_value_free [20:53:14]json_value_free done [20:53:14]process_json_proto returns [20:53:14]Send response to host [20:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156432,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:53:14]free response buf [20:53:14]execute_script done [20:53:14]execute_script returns [20:53:14]free content buf [20:53:14]Sock 9.Close socket [20:53:14]Sock 9.Thread stoped [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:17]accept exits with 8 [20:56:17]New connection [20:56:17]New thread 3066977636 created [20:56:17]Thread 3066834276 joined [20:56:17]Waiting for new connection... [20:56:17] Sock 8.Parse request [20:56:17]Sock 8.Check first char [20:56:17]Sock 8.First char is OK [20:56:17]request: POST /json_proto HTTP/1.0 [20:56:17]Method: POST [20:56:17]URL: /json_proto [20:56:17]Method is POST - this is cgi request [20:56:17]url: /json_proto [20:56:17]query_string will be loaded in cgi processing [20:56:17]execute_cgi json_proto POST (null) [20:56:17]execute_cgi path=json_proto method=POST [20:56:17]POST find Content-Length [20:56:17]Host: 172.17.63.3:8080 [20:56:17]Content-Length: 765 [20:56:17]Content-Type: application/json [20:56:17] [20:56:17]POST finish read [20:56:17]Found Content-Length = 765 [20:56:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:17]execute_script... [20:56:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:17]POST & json_proto [20:56:17]process_json_proto [20:56:17]json parsed OK: [20:56:17]protocol is kg_v1.0 [20:56:17]action value=close_receipt [20:56:17]process_action close_receipt [20:56:17]cmd_close_receipt [20:56:17]MH_GetDate [20:56:17]Write to MH i2c: F0 00 00 72 2B 8C [20:56:17]Write i2c OK [20:56:17]MH_I2C_Read... [20:56:17]Read from MH i2c: F0 [20:56:17]MH_I2C_Read... [20:56:17]Read from MH i2c: F0 09 00 [20:56:17]MH_I2C_Read... [20:56:17]Read from MH i2c: F0 09 00 72 2B 00 74 57 1D 67 50 D1 6C 64 D5 [20:56:17]GetLastDocTimeStamp 1729975994 [20:56:17]current date 1729976180 [20:56:17]FM_GetShiftState [20:56:17]SAM_PROTO_GetShiftState [20:56:17]wFMCommunicate request_size=4 [20:56:17]MH_SAM_APDU [20:56:17]CAPDU: 80 13 01 00 [20:56:17]Write to MH i2c: E2 08 00 73 2B 80 13 01 00 00 00 00 00 1B [20:56:17]Write i2c OK [20:56:17]MH_I2C_Read... [20:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:18]Read from MH i2c: E2 [20:56:18]MH_I2C_Read... [20:56:18]Read from MH i2c: E2 0E 00 [20:56:18]MH_I2C_Read... [20:56:18]Read from MH i2c: E2 0E 00 73 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [20:56:18]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:56:18]wFMCommunicate OK [20:56:18]SAM_PROTO_GetShiftState done [20:56:18]FM_GetShiftState done [20:56:18]opened in 1729902702 [20:56:18]opened+sec_in_day 1729989102 [20:56:18]quantity*price = 26024 [20:56:18]sum+1 = 26025 [20:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.24 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 0.00 Безнал.: 260.24 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 334 26.10.2024 20:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156433 ФПД: 241568795551431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205620&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156433&fm=241568795551431&tin=02508201610067®Number=0000000000091693&sum=26024 [20:56:19]StoreToDocumentArchive [20:56:19]shift 536 fd 156433 [20:56:19]save to /storage/0536/doc_00156433 [20:56:19]save last doc name /storage/0536/doc_00156433 to /storage/kkm_last_doc_name [20:56:19]save OK [20:56:19]Clear old archive folders... [20:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:19]tlvbuf is 016E3E80 [20:56:19]SAM_PROTO_ClearQueue [20:56:19]wFMCommunicate request_size=4 [20:56:19]MH_SAM_APDU [20:56:19]CAPDU: 80 09 00 00 [20:56:19]Write to MH i2c: E2 08 00 80 2B 80 09 00 00 00 00 00 00 1D [20:56:19]Write i2c OK [20:56:19]MH_I2C_Read... [20:56:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:19]Read from MH i2c: E2 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 03 00 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 03 00 80 2B 00 90 00 1F [20:56:19]RAPDU: 90 00 [20:56:19]wFMCommunicate OK [20:56:19]SAM_PROTO_ClearQueue done [20:56:19]KKMCreateOFDPacket [20:56:19]OFDProtocolAddRootSTLVToBuf [20:56:19]FM_MakeSignedData [20:56:19]FM_MakeSignedData [20:56:19]SAM_PROTO_SignData [20:56:19]wFMCommunicate request_size=4 [20:56:19]MH_SAM_APDU [20:56:19]CAPDU: 80 0D 01 02 [20:56:19]Write to MH i2c: E2 08 00 81 2B 80 0D 01 02 00 00 00 00 25 [20:56:19]Write i2c OK [20:56:19]MH_I2C_Read... [20:56:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:19]Read from MH i2c: E2 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 03 00 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 03 00 81 2B 00 90 00 20 [20:56:19]RAPDU: 90 00 [20:56:19]wFMCommunicate OK [20:56:19]wFMCommunicate request_size=255 [20:56:19]MH_SAM_APDU [20:56:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 74 57 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 63 02 00 35 04 06 00 DB [20:56:19]Write to MH i2c: E2 02 01 82 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 74 57 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 63 02 00 35 04 06 00 DB 00 00 9D [20:56:19]Write i2c OK [20:56:19]MH_I2C_Read... [20:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:19]Read from MH i2c: E2 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 03 00 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 03 00 82 2B 00 90 00 21 [20:56:19]RAPDU: 90 00 [20:56:19]wFMCommunicate OK [20:56:19]wFMCommunicate request_size=10 [20:56:19]MH_SAM_APDU [20:56:19]CAPDU: 80 0D 02 02 05 B4 9E 3F 66 C7 [20:56:19]Write to MH i2c: E2 0D 00 83 2B 80 0D 02 02 05 00 B4 9E 3F 66 C7 00 00 F0 [20:56:19]Write i2c OK [20:56:19]MH_I2C_Read... [20:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:19]Read from MH i2c: E2 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 03 00 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 03 00 83 2B 00 90 00 22 [20:56:19]RAPDU: 90 00 [20:56:19]wFMCommunicate OK [20:56:19]wFMCommunicate request_size=4 [20:56:19]MH_SAM_APDU [20:56:19]CAPDU: 80 0D 03 02 [20:56:19]Write to MH i2c: E2 08 00 84 2B 80 0D 03 02 00 00 00 00 2A [20:56:19]Write i2c OK [20:56:19]MH_I2C_Read... [20:56:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:19]Read from MH i2c: E2 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 0B 00 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 0B 00 84 2B 00 99 95 F1 FD 8B E9 AE 38 90 00 A1 [20:56:19]RAPDU: 99 95 F1 FD 8B E9 AE 38 90 00 [20:56:19]wFMCommunicate OK [20:56:19]SAM_PROTO_SignData done [20:56:19]FM_MakeSignedData done [20:56:19]CreateOFDProtocolMessage [20:56:19]wFMCommunicate request_size=4 [20:56:19]MH_SAM_APDU [20:56:19]CAPDU: 80 11 00 00 [20:56:19]Write to MH i2c: E2 08 00 85 2B 80 11 00 00 00 00 00 00 2A [20:56:19]Write i2c OK [20:56:19]MH_I2C_Read... [20:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:19]Read from MH i2c: E2 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 17 00 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: E2 17 00 85 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [20:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:56:19]wFMCommunicate OK [20:56:19]CreateOFDProtocolMessage done [20:56:19]OFDSenderStorePacket 156433 [20:56:19]StoreOFDPacket docnum=156433 [20:56:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 9C 07 01 F1 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 74 57 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 63 02 00 35 04 06 00 DB B4 9E 3F 66 C7 99 95 F1 FD 8B E9 AE 38 [20:56:19]CheckFolder [20:56:19]dirname=/storage/ofd_packets [20:56:19]CheckFolder done [20:56:19]ProducePacketName [20:56:19]name=ofd_packets/00156433 [20:56:19]NVStorageSaveData ofd_packets/00156433 [20:56:19]File name is /storage/ofd_packets/00156433 [20:56:19]Write 301 bytes [20:56:19]NVStorageSaveData done [20:56:19]OFDSenderStorePacket done [20:56:19]KKMCreateOFDPacket done [20:56:19]NVStorageSaveData kkm_last_timestamp [20:56:19]File name is /storage/kkm_last_timestamp [20:56:19]Write 4 bytes [20:56:19]NVStorageSaveData done [20:56:19]ExternCall_PrintAddStr [20:56:19]wPrintStart [20:56:19]Write to MH i2c: 01 00 00 86 2B B1 [20:56:19]Write i2c OK [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: 01 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: 01 07 00 [20:56:19]MH_I2C_Read... [20:56:19]Read from MH i2c: 01 07 00 86 2B 00 00 00 00 00 FF 0F C6 [20:56:19]RasterBufferAndPrint [20:56:19]line Счет N : (1)99248 [20:56:19]line ИНН: 02508201610067 [20:56:19]line Контрольно-Кассовый Чек [20:56:19]line ПРОДАЖА [20:56:19]line ТРК (МРК, ГНК) : 21 [20:56:19]line Товар: 2710124130 [20:56:19]line Аи-92-К-5 [20:56:19]line 3.890 * 66.90 [20:56:19]line = 260.24 [20:56:19]line НДС 12% НСП 1% [20:56:19]line > о реализуемом товаре [20:56:19]line ИТОГО: 260.24 [20:56:19]line НСП 1% : 2.30 [20:56:19]line НДС 12% : 27.64 [20:56:19]line Наличными: 0.00 [20:56:19]line Безнал.: 260.24 [20:56:19]line Место: АЗС № 143 "Партнер Нефть" [20:56:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:56:19]line СНО: Общий режим [20:56:19]line Чек 334 26.10.2024 20:56 [20:56:19]line Смена: 536 ФФД: 1.0 [20:56:19]line ЗНМ: 0300000096 [20:56:19]line РНМ: 0000000000091693 [20:56:19]line Версия ККМ: 001 [20:56:19]line Платежная система: Mbank [20:56:19]line ФМ: 0000000000871792 [20:56:19]line ФД: 156433 [20:56:19]line ФПД: 241568795551431 [20:56:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205620&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156433&fm=241568795551431&tin=02508201610067®Number=0000000000091693&sum=26024 [20:56:19]written 0, free lines is 4095 [20:56:19]OFD Sender: Processing packet 156433 [packets to send 31, broken 30] [20:56:19]ProducePacketName [20:56:19]name=ofd_packets/00156433 [20:56:19]OFD Sender: To server: pG, [20:56:19]CommunicateWithHost lk.salyk.kg:30040 [20:56:19]ConnectInit lk.salyk.kg [20:56:19]Connected sock=10 [20:56:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 9C 07 01 F1 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 74 57 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 63 02 00 35 04 06 00 DB B4 9E 3F 66 C7 99 95 F1 FD 8B E9 AE 38 [20:56:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 96 D3 47 00 B2 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 63 02 00 F4 03 04 00 E5 FC 1C 67 B6 04 01 00 00 37 D4 76 A4 D3 CA C4 93 [20:56:20]CommunicateWithHost err = 0 [20:56:20]CheckOFDResponse [20:56:20]1017 (14) - 77093643461234 [20:56:20]1041 (16) - 0000000000871792 [20:56:20]1040 (4) - 156433 [20:56:20]1012 (4) - 26.10.2024 14:29 [20:56:20]1206 (1) - 0 [20:56:20]OFD Sender: Remove packet 156433 [20:56:20]ProducePacketName [20:56:20]name=ofd_packets/00156433 [20:56:20]NVStorageDeleteData [20:56:20]Write to MH i2c: 01 00 00 AF 2B DA [20:56:20]Write i2c OK [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: 01 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: 01 07 00 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: 01 07 00 AF 2B 00 00 00 00 00 1C 0D 0A [20:56:20]RasterBufferAndPrint [20:56:20]line [20:56:20]line [20:56:20]line [20:56:20]line [20:56:20]line [20:56:20]written 0, free lines is 3361 [20:56:20]process_action close_receipt done [20:56:20]requested_data is exist [20:56:20]produce_requested_data [20:56:20]requested_item fm.sn is exist - process it [20:56:20]wFMCommunicate request_size=4 [20:56:20]MH_SAM_APDU [20:56:20]CAPDU: 80 11 00 00 [20:56:20]Write to MH i2c: E2 08 00 B6 2B 80 11 00 00 00 00 00 00 5B [20:56:20]Write i2c OK [20:56:20]MH_I2C_Read... [20:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:20]Read from MH i2c: E2 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: E2 17 00 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: E2 17 00 B6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [20:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:56:20]wFMCommunicate OK [20:56:20]requested_item fd.num is exist - process it [20:56:20]SAM_PROTO_GetFieldsCounters [20:56:20]wFMCommunicate request_size=4 [20:56:20]MH_SAM_APDU [20:56:20]CAPDU: 80 13 00 00 [20:56:20]Write to MH i2c: E2 08 00 B7 2B 80 13 00 00 00 00 00 00 5E [20:56:20]Write i2c OK [20:56:20]MH_I2C_Read... [20:56:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:20]Read from MH i2c: E2 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: E2 62 00 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: E2 62 00 B7 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 11 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [20:56:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 11 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:20]wFMCommunicate OK [20:56:20]SAM_PROTO_GetFieldsCounters done [20:56:20]requested_item shift.num is exist - process it [20:56:20]requested_item shift.opened is exist - process it [20:56:20]req_shift_opened [20:56:20]FM_GetShiftState [20:56:20]SAM_PROTO_GetShiftState [20:56:20]wFMCommunicate request_size=4 [20:56:20]MH_SAM_APDU [20:56:20]CAPDU: 80 13 01 00 [20:56:20]Write to MH i2c: E2 08 00 B8 2B 80 13 01 00 00 00 00 00 60 [20:56:20]Write i2c OK [20:56:20]MH_I2C_Read... [20:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:20]Read from MH i2c: E2 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: E2 0E 00 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: E2 0E 00 B8 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 95 [20:56:20]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:56:20]wFMCommunicate OK [20:56:20]SAM_PROTO_GetShiftState done [20:56:20]FM_GetShiftState done [20:56:20]req_shift_opened done [20:56:20]requested_item shift.open_date is exist - process it [20:56:20]req_shift_open_date [20:56:20]req_shift_open_date done [20:56:20]produce_requested_data done [20:56:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156433,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:56:20]process_action_free close_receipt [20:56:20]json_value_free [20:56:20]json_value_free done [20:56:20]process_json_proto returns [20:56:20]Send response to host [20:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156433,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:56:20]free response buf [20:56:20]execute_script done [20:56:20]execute_script returns [20:56:20]free content buf [20:56:20]Sock 8.Close socket [20:56:20]Sock 8.Thread stoped [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:39]accept exits with 9 [20:56:39]New connection [20:56:39]New thread 3066834276 created [20:56:39]Thread 3066977636 joined [20:56:39]Waiting for new connection... [20:56:39] Sock 9.Parse request [20:56:39]Sock 9.Check first char [20:56:39]Sock 9.First char is OK [20:56:39]request: POST /json_proto HTTP/1.0 [20:56:39]Method: POST [20:56:39]URL: /json_proto [20:56:39]Method is POST - this is cgi request [20:56:39]url: /json_proto [20:56:39]query_string will be loaded in cgi processing [20:56:39]execute_cgi json_proto POST (null) [20:56:39]execute_cgi path=json_proto method=POST [20:56:39]POST find Content-Length [20:56:39]Host: 172.17.63.3:8080 [20:56:39]Content-Length: 676 [20:56:39]Content-Type: application/json [20:56:39] [20:56:39]POST finish read [20:56:39]Found Content-Length = 676 [20:56:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:39]execute_script... [20:56:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:39]POST & json_proto [20:56:39]process_json_proto [20:56:39]json parsed OK: [20:56:39]protocol is kg_v1.0 [20:56:39]action value=close_receipt [20:56:39]process_action close_receipt [20:56:39]cmd_close_receipt [20:56:39]MH_GetDate [20:56:39]Write to MH i2c: F0 00 00 B9 2B D3 [20:56:39]Write i2c OK [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: F0 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: F0 09 00 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: F0 09 00 B9 2B 00 89 57 1D 67 50 D1 6C 64 31 [20:56:39]GetLastDocTimeStamp 1729976180 [20:56:39]current date 1729976201 [20:56:39]FM_GetShiftState [20:56:39]SAM_PROTO_GetShiftState [20:56:39]wFMCommunicate request_size=4 [20:56:39]MH_SAM_APDU [20:56:39]CAPDU: 80 13 01 00 [20:56:39]Write to MH i2c: E2 08 00 BA 2B 80 13 01 00 00 00 00 00 62 [20:56:39]Write i2c OK [20:56:39]MH_I2C_Read... [20:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:39]Read from MH i2c: E2 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 0E 00 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 0E 00 BA 2B 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 97 [20:56:39]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:56:39]wFMCommunicate OK [20:56:39]SAM_PROTO_GetShiftState done [20:56:39]FM_GetShiftState done [20:56:39]opened in 1729902702 [20:56:39]opened+sec_in_day 1729989102 [20:56:39]quantity*price = 40006 [20:56:39]sum+1 = 40007 [20:56:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 335 26.10.2024 20:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156434 ФПД: 144324018276290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205641&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156434&fm=144324018276290&tin=02508201610067®Number=0000000000091693&sum=40000 [20:56:40]StoreToDocumentArchive [20:56:40]shift 536 fd 156434 [20:56:40]save to /storage/0536/doc_00156434 [20:56:40]save last doc name /storage/0536/doc_00156434 to /storage/kkm_last_doc_name [20:56:40]save OK [20:56:40]Clear old archive folders... [20:56:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:40]tlvbuf is 016BAAA0 [20:56:40]SAM_PROTO_ClearQueue [20:56:40]wFMCommunicate request_size=4 [20:56:40]MH_SAM_APDU [20:56:40]CAPDU: 80 09 00 00 [20:56:40]Write to MH i2c: E2 08 00 C7 2B 80 09 00 00 00 00 00 00 64 [20:56:40]Write i2c OK [20:56:40]MH_I2C_Read... [20:56:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:40]Read from MH i2c: E2 [20:56:40]MH_I2C_Read... [20:56:40]Read from MH i2c: E2 03 00 [20:56:40]MH_I2C_Read... [20:56:40]Read from MH i2c: E2 03 00 C7 2B 00 90 00 66 [20:56:40]RAPDU: 90 00 [20:56:40]wFMCommunicate OK [20:56:40]SAM_PROTO_ClearQueue done [20:56:40]KKMCreateOFDPacket [20:56:40]OFDProtocolAddRootSTLVToBuf [20:56:40]FM_MakeSignedData [20:56:40]FM_MakeSignedData [20:56:40]SAM_PROTO_SignData [20:56:40]wFMCommunicate request_size=4 [20:56:40]MH_SAM_APDU [20:56:40]CAPDU: 80 0D 01 02 [20:56:40]Write to MH i2c: E2 08 00 C8 2B 80 0D 01 02 00 00 00 00 6C [20:56:40]Write i2c OK [20:56:40]MH_I2C_Read... [20:56:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:40]Read from MH i2c: E2 [20:56:40]MH_I2C_Read... [20:56:40]Read from MH i2c: E2 03 00 [20:56:40]MH_I2C_Read... [20:56:40]Read from MH i2c: E2 03 00 C8 2B 00 90 00 67 [20:56:40]RAPDU: 90 00 [20:56:40]wFMCommunicate OK [20:56:40]wFMCommunicate request_size=255 [20:56:40]MH_SAM_APDU [20:56:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 89 57 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 63 02 00 35 04 06 00 83 [20:56:40]Write to MH i2c: E2 02 01 C9 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 89 57 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 63 02 00 35 04 06 00 83 00 00 97 [20:56:40]Write i2c OK [20:56:40]MH_I2C_Read... [20:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:41]Read from MH i2c: E2 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 03 00 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 03 00 C9 2B 00 90 00 68 [20:56:41]RAPDU: 90 00 [20:56:41]wFMCommunicate OK [20:56:41]wFMCommunicate request_size=10 [20:56:41]MH_SAM_APDU [20:56:41]CAPDU: 80 0D 02 02 05 43 0D D7 87 C2 [20:56:41]Write to MH i2c: E2 0D 00 CA 2B 80 0D 02 02 05 00 43 0D D7 87 C2 00 00 E9 [20:56:41]Write i2c OK [20:56:41]MH_I2C_Read... [20:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:41]Read from MH i2c: E2 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 03 00 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 03 00 CA 2B 00 90 00 69 [20:56:41]RAPDU: 90 00 [20:56:41]wFMCommunicate OK [20:56:41]wFMCommunicate request_size=4 [20:56:41]MH_SAM_APDU [20:56:41]CAPDU: 80 0D 03 02 [20:56:41]Write to MH i2c: E2 08 00 CB 2B 80 0D 03 02 00 00 00 00 71 [20:56:41]Write i2c OK [20:56:41]MH_I2C_Read... [20:56:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:41]Read from MH i2c: E2 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 0B 00 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 0B 00 CB 2B 00 5E 42 DA AA E8 23 E5 4A 90 00 D0 [20:56:41]RAPDU: 5E 42 DA AA E8 23 E5 4A 90 00 [20:56:41]wFMCommunicate OK [20:56:41]SAM_PROTO_SignData done [20:56:41]FM_MakeSignedData done [20:56:41]CreateOFDProtocolMessage [20:56:41]wFMCommunicate request_size=4 [20:56:41]MH_SAM_APDU [20:56:41]CAPDU: 80 11 00 00 [20:56:41]Write to MH i2c: E2 08 00 CC 2B 80 11 00 00 00 00 00 00 71 [20:56:41]Write i2c OK [20:56:41]MH_I2C_Read... [20:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:41]Read from MH i2c: E2 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 17 00 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 17 00 CC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [20:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:56:41]wFMCommunicate OK [20:56:41]CreateOFDProtocolMessage done [20:56:41]OFDSenderStorePacket 156434 [20:56:41]StoreOFDPacket docnum=156434 [20:56:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C 1F 07 01 D0 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 89 57 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 63 02 00 35 04 06 00 83 43 0D D7 87 C2 5E 42 DA AA E8 23 E5 4A [20:56:41]CheckFolder [20:56:41]dirname=/storage/ofd_packets [20:56:41]CheckFolder done [20:56:41]ProducePacketName [20:56:41]name=ofd_packets/00156434 [20:56:41]NVStorageSaveData ofd_packets/00156434 [20:56:41]File name is /storage/ofd_packets/00156434 [20:56:41]Write 301 bytes [20:56:41]NVStorageSaveData done [20:56:41]OFDSenderStorePacket done [20:56:41]KKMCreateOFDPacket done [20:56:41]NVStorageSaveData kkm_last_timestamp [20:56:41]File name is /storage/kkm_last_timestamp [20:56:41]Write 4 bytes [20:56:41]NVStorageSaveData done [20:56:41]ExternCall_PrintAddStr [20:56:41]wPrintStart [20:56:41]Write to MH i2c: 01 00 00 CD 2B F8 [20:56:41]Write i2c OK [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: 01 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: 01 07 00 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: 01 07 00 CD 2B 00 00 00 00 00 FF 0F 0D [20:56:41]RasterBufferAndPrint [20:56:41]line Счет N : (1)99249 [20:56:41]line ИНН: 02508201610067 [20:56:41]line Контрольно-Кассовый Чек [20:56:41]line ПРОДАЖА [20:56:41]line ТРК (МРК, ГНК) : 31 [20:56:41]line Товар: 2710124130 [20:56:41]line Аи-92-К-5 [20:56:41]line 5.980 * 66.90 [20:56:41]line = 400.06 [20:56:41]line НДС 12% НСП 1% [20:56:41]line > о реализуемом товаре [20:56:41]line ОКРУГЛЕНИЕ: -0.06 [20:56:41]line ИТОГО: 400.00 [20:56:41]line Внесено: 400.00 [20:56:41]line СДАЧА: 0.00 [20:56:41]line НСП 1% : 3.54 [20:56:41]line НДС 12% : 42.48 [20:56:41]line Наличными: 400.00 [20:56:41]line Безнал.: 0.00 [20:56:41]line Место: АЗС № 143 "Партнер Нефть" [20:56:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:56:41]line СНО: Общий режим [20:56:41]line Чек 335 26.10.2024 20:56 [20:56:41]line Смена: 536 ФФД: 1.0 [20:56:41]line ЗНМ: 0300000096 [20:56:41]line РНМ: 0000000000091693 [20:56:41]line Версия ККМ: 001 [20:56:41]line ФМ: 0000000000871792 [20:56:41]line ФД: 156434 [20:56:41]line ФПД: 144324018276290 [20:56:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205641&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156434&fm=144324018276290&tin=02508201610067®Number=0000000000091693&sum=40000 [20:56:41]written 0, free lines is 4095 [20:56:41]OFD Sender: Processing packet 156434 [packets to send 31, broken 30] [20:56:41]ProducePacketName [20:56:41]name=ofd_packets/00156434 [20:56:41]OFD Sender: To server: pG, [20:56:41]CommunicateWithHost lk.salyk.kg:30040 [20:56:41]ConnectInit lk.salyk.kg [20:56:41]Connected sock=11 [20:56:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C 1F 07 01 D0 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 89 57 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 63 02 00 35 04 06 00 83 43 0D D7 87 C2 5E 42 DA AA E8 23 E5 4A [20:56:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7E AD 47 00 5B 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 63 02 00 F4 03 04 00 FB FC 1C 67 B6 04 01 00 00 AB F3 A9 72 B8 87 F3 45 [20:56:41]CommunicateWithHost err = 0 [20:56:41]CheckOFDResponse [20:56:41]1017 (14) - 77093643461234 [20:56:41]1041 (16) - 0000000000871792 [20:56:41]1040 (4) - 156434 [20:56:41]1012 (4) - 26.10.2024 14:30 [20:56:41]1206 (1) - 0 [20:56:41]OFD Sender: Remove packet 156434 [20:56:41]ProducePacketName [20:56:41]name=ofd_packets/00156434 [20:56:41]NVStorageDeleteData [20:56:41]Write to MH i2c: 01 00 00 F8 2B 23 [20:56:41]Write i2c OK [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: 01 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: 01 07 00 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: 01 07 00 F8 2B 00 00 00 00 00 F9 0C 2F [20:56:41]RasterBufferAndPrint [20:56:41]line [20:56:41]line [20:56:41]line [20:56:41]line [20:56:41]line [20:56:41]written 0, free lines is 3327 [20:56:41]process_action close_receipt done [20:56:41]requested_data is exist [20:56:41]produce_requested_data [20:56:41]requested_item fm.sn is exist - process it [20:56:41]wFMCommunicate request_size=4 [20:56:41]MH_SAM_APDU [20:56:41]CAPDU: 80 11 00 00 [20:56:41]Write to MH i2c: E2 08 00 FF 2B 80 11 00 00 00 00 00 00 A4 [20:56:41]Write i2c OK [20:56:41]MH_I2C_Read... [20:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:41]Read from MH i2c: E2 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 17 00 [20:56:41]MH_I2C_Read... [20:56:41]Read from MH i2c: E2 17 00 FF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [20:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:56:41]wFMCommunicate OK [20:56:41]requested_item fd.num is exist - process it [20:56:41]SAM_PROTO_GetFieldsCounters [20:56:41]wFMCommunicate request_size=4 [20:56:41]MH_SAM_APDU [20:56:41]CAPDU: 80 13 00 00 [20:56:41]Write to MH i2c: E2 08 00 00 2C 80 13 00 00 00 00 00 00 A8 [20:56:41]Write i2c OK [20:56:41]MH_I2C_Read... [20:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:42]Read from MH i2c: E2 [20:56:42]MH_I2C_Read... [20:56:42]Read from MH i2c: E2 62 00 [20:56:42]MH_I2C_Read... [20:56:42]Read from MH i2c: E2 62 00 00 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 12 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [20:56:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 12 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:42]wFMCommunicate OK [20:56:42]SAM_PROTO_GetFieldsCounters done [20:56:42]requested_item shift.num is exist - process it [20:56:42]requested_item shift.opened is exist - process it [20:56:42]req_shift_opened [20:56:42]FM_GetShiftState [20:56:42]SAM_PROTO_GetShiftState [20:56:42]wFMCommunicate request_size=4 [20:56:42]MH_SAM_APDU [20:56:42]CAPDU: 80 13 01 00 [20:56:42]Write to MH i2c: E2 08 00 01 2C 80 13 01 00 00 00 00 00 AA [20:56:42]Write i2c OK [20:56:42]MH_I2C_Read... [20:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:42]Read from MH i2c: E2 [20:56:42]MH_I2C_Read... [20:56:42]Read from MH i2c: E2 0E 00 [20:56:42]MH_I2C_Read... [20:56:42]Read from MH i2c: E2 0E 00 01 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 DF [20:56:42]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [20:56:42]wFMCommunicate OK [20:56:42]SAM_PROTO_GetShiftState done [20:56:42]FM_GetShiftState done [20:56:42]req_shift_opened done [20:56:42]requested_item shift.open_date is exist - process it [20:56:42]req_shift_open_date [20:56:42]req_shift_open_date done [20:56:42]produce_requested_data done [20:56:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156434,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [20:56:42]process_action_free close_receipt [20:56:42]json_value_free [20:56:42]json_value_free done [20:56:42]process_json_proto returns [20:56:42]Send response to host [20:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156434,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [20:56:42]free response buf [20:56:42]execute_script done [20:56:42]execute_script returns [20:56:42]free content buf [20:56:42]Sock 9.Close socket [20:56:42]Sock 9.Thread stoped [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:10]accept exits with 8 [21:05:10]New connection [21:05:10]New thread 3066977636 created [21:05:10]Thread 3066834276 joined [21:05:10]Waiting for new connection... [21:05:10] Sock 8.Parse request [21:05:10]Sock 8.Check first char [21:05:10]Sock 8.First char is OK [21:05:10]request: POST /json_proto HTTP/1.0 [21:05:10]Method: POST [21:05:10]URL: /json_proto [21:05:10]Method is POST - this is cgi request [21:05:10]url: /json_proto [21:05:10]query_string will be loaded in cgi processing [21:05:10]execute_cgi json_proto POST (null) [21:05:10]execute_cgi path=json_proto method=POST [21:05:10]POST find Content-Length [21:05:10]Host: 172.17.63.3:8080 [21:05:10]Content-Length: 673 [21:05:10]Content-Type: application/json [21:05:10] [21:05:10]POST finish read [21:05:10]Found Content-Length = 673 [21:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.970, "sum" : 150.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:10]execute_script... [21:05:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.970, "sum" : 150.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:10]POST & json_proto [21:05:10]process_json_proto [21:05:10]json parsed OK: [21:05:10]protocol is kg_v1.0 [21:05:10]action value=close_receipt [21:05:10]process_action close_receipt [21:05:10]cmd_close_receipt [21:05:10]MH_GetDate [21:05:10]Write to MH i2c: F0 00 00 02 2C 1D [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: F0 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: F0 09 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: F0 09 00 02 2C 00 88 59 1D 67 50 D1 6C 64 7C [21:05:10]GetLastDocTimeStamp 1729976201 [21:05:10]current date 1729976712 [21:05:10]FM_GetShiftState [21:05:10]SAM_PROTO_GetShiftState [21:05:10]wFMCommunicate request_size=4 [21:05:10]MH_SAM_APDU [21:05:10]CAPDU: 80 13 01 00 [21:05:10]Write to MH i2c: E2 08 00 03 2C 80 13 01 00 00 00 00 00 AC [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:10]Read from MH i2c: E2 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 0E 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 0E 00 03 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E1 [21:05:10]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:05:10]wFMCommunicate OK [21:05:10]SAM_PROTO_GetShiftState done [21:05:10]FM_GetShiftState done [21:05:10]opened in 1729902702 [21:05:10]opened+sec_in_day 1729989102 [21:05:10]quantity*price = 15011 [21:05:10]sum+1 = 15012 [21:05:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 336 26.10.2024 21:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156435 ФПД: 253097288144135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210512&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156435&fm=253097288144135&tin=02508201610067®Number=0000000000091693&sum=15000 [21:05:11]StoreToDocumentArchive [21:05:11]shift 536 fd 156435 [21:05:11]save to /storage/0536/doc_00156435 [21:05:11]save last doc name /storage/0536/doc_00156435 to /storage/kkm_last_doc_name [21:05:11]save OK [21:05:11]Clear old archive folders... [21:05:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:05:11]tlvbuf is 016EA050 [21:05:11]SAM_PROTO_ClearQueue [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 09 00 00 [21:05:11]Write to MH i2c: E2 08 00 10 2C 80 09 00 00 00 00 00 00 AE [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 10 2C 00 90 00 B0 [21:05:11]RAPDU: 90 00 [21:05:11]wFMCommunicate OK [21:05:11]SAM_PROTO_ClearQueue done [21:05:11]KKMCreateOFDPacket [21:05:11]OFDProtocolAddRootSTLVToBuf [21:05:11]FM_MakeSignedData [21:05:11]FM_MakeSignedData [21:05:11]SAM_PROTO_SignData [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 0D 01 02 [21:05:11]Write to MH i2c: E2 08 00 11 2C 80 0D 01 02 00 00 00 00 B6 [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 11 2C 00 90 00 B1 [21:05:11]RAPDU: 90 00 [21:05:11]wFMCommunicate OK [21:05:11]wFMCommunicate request_size=255 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 88 59 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 63 02 00 35 04 06 00 E6 30 CD F4 [21:05:11]Write to MH i2c: E2 02 01 12 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 88 59 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 63 02 00 35 04 06 00 E6 30 CD F4 00 00 17 [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:12]Read from MH i2c: E2 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 03 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 03 00 12 2C 00 90 00 B2 [21:05:12]RAPDU: 90 00 [21:05:12]wFMCommunicate OK [21:05:12]wFMCommunicate request_size=7 [21:05:12]MH_SAM_APDU [21:05:12]CAPDU: 80 0D 02 02 02 15 07 [21:05:12]Write to MH i2c: E2 0A 00 13 2C 80 0D 02 02 02 00 15 07 00 00 D9 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:12]Read from MH i2c: E2 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 03 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 03 00 13 2C 00 90 00 B3 [21:05:12]RAPDU: 90 00 [21:05:12]wFMCommunicate OK [21:05:12]wFMCommunicate request_size=4 [21:05:12]MH_SAM_APDU [21:05:12]CAPDU: 80 0D 03 02 [21:05:12]Write to MH i2c: E2 08 00 14 2C 80 0D 03 02 00 00 00 00 BB [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:12]Read from MH i2c: E2 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 0B 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 0B 00 14 2C 00 DE FC 97 16 38 FA 52 37 90 00 FE [21:05:12]RAPDU: DE FC 97 16 38 FA 52 37 90 00 [21:05:12]wFMCommunicate OK [21:05:12]SAM_PROTO_SignData done [21:05:12]FM_MakeSignedData done [21:05:12]CreateOFDProtocolMessage [21:05:12]wFMCommunicate request_size=4 [21:05:12]MH_SAM_APDU [21:05:12]CAPDU: 80 11 00 00 [21:05:12]Write to MH i2c: E2 08 00 15 2C 80 11 00 00 00 00 00 00 BB [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:12]Read from MH i2c: E2 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 17 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 17 00 15 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [21:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:05:12]wFMCommunicate OK [21:05:12]CreateOFDProtocolMessage done [21:05:12]OFDSenderStorePacket 156435 [21:05:12]StoreOFDPacket docnum=156435 [21:05:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9B AF 04 01 4A DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 88 59 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 63 02 00 35 04 06 00 E6 30 CD F4 15 07 DE FC 97 16 38 FA 52 37 [21:05:12]CheckFolder [21:05:12]dirname=/storage/ofd_packets [21:05:12]CheckFolder done [21:05:12]ProducePacketName [21:05:12]name=ofd_packets/00156435 [21:05:12]NVStorageSaveData ofd_packets/00156435 [21:05:12]File name is /storage/ofd_packets/00156435 [21:05:12]Write 298 bytes [21:05:12]NVStorageSaveData done [21:05:12]OFDSenderStorePacket done [21:05:12]KKMCreateOFDPacket done [21:05:12]NVStorageSaveData kkm_last_timestamp [21:05:12]File name is /storage/kkm_last_timestamp [21:05:12]Write 4 bytes [21:05:12]NVStorageSaveData done [21:05:12]ExternCall_PrintAddStr [21:05:12]wPrintStart [21:05:12]Write to MH i2c: 01 00 00 16 2C 42 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 07 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 07 00 16 2C 00 00 00 00 00 FF 0F 57 [21:05:12]RasterBufferAndPrint [21:05:12]line Счет N : (1)99250 [21:05:12]line ИНН: 02508201610067 [21:05:12]line Контрольно-Кассовый Чек [21:05:12]line ПРОДАЖА [21:05:12]line ТРК (МРК, ГНК) : 32 [21:05:12]line Товар: 2710194210 [21:05:12]line ДТ-К-5 [21:05:12]line 1.970 * 76.20 [21:05:12]line = 150.11 [21:05:12]line НДС 12% НСП 1% [21:05:12]line > о реализуемом товаре [21:05:12]line ОКРУГЛЕНИЕ: -0.11 [21:05:12]line ИТОГО: 150.00 [21:05:12]line Внесено: 150.00 [21:05:12]line СДАЧА: 0.00 [21:05:12]line НСП 1% : 1.33 [21:05:12]line НДС 12% : 15.94 [21:05:12]line Наличными: 150.00 [21:05:12]line Безнал.: 0.00 [21:05:12]line Место: АЗС № 143 "Партнер Нефть" [21:05:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:05:12]line СНО: Общий режим [21:05:12]line Чек 336 26.10.2024 21:05 [21:05:12]line Смена: 536 ФФД: 1.0 [21:05:12]line ЗНМ: 0300000096 [21:05:12]line РНМ: 0000000000091693 [21:05:12]line Версия ККМ: 001 [21:05:12]line ФМ: 0000000000871792 [21:05:12]line ФД: 156435 [21:05:12]line ФПД: 253097288144135 [21:05:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210512&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156435&fm=253097288144135&tin=02508201610067®Number=0000000000091693&sum=15000 [21:05:12]OFD Sender: Processing packet 156435 [packets to send 31, broken 30] [21:05:12]ProducePacketName [21:05:12]name=ofd_packets/00156435 [21:05:12]OFD Sender: To server: pG, [21:05:12]CommunicateWithHost lk.salyk.kg:30040 [21:05:12]ConnectInit lk.salyk.kg [21:05:12]written 0, free lines is 4095 [21:05:12]Connected sock=10 [21:05:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9B AF 04 01 4A DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 88 59 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 63 02 00 35 04 06 00 E6 30 CD F4 15 07 DE FC 97 16 38 FA 52 37 [21:05:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 12 7C 47 00 D5 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 63 02 00 F4 03 04 00 FA FE 1C 67 B6 04 01 00 00 E1 68 24 42 B3 D1 B6 9D [21:05:12]CommunicateWithHost err = 0 [21:05:12]CheckOFDResponse [21:05:12]1017 (14) - 77093643461234 [21:05:12]1041 (16) - 0000000000871792 [21:05:12]1040 (4) - 156435 [21:05:12]1012 (4) - 26.10.2024 14:38 [21:05:12]1206 (1) - 0 [21:05:12]OFD Sender: Remove packet 156435 [21:05:12]ProducePacketName [21:05:12]name=ofd_packets/00156435 [21:05:12]NVStorageDeleteData [21:05:13]Write to MH i2c: 01 00 00 41 2C 6D [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: 01 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: 01 07 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: 01 07 00 41 2C 00 00 00 00 00 EE 0C 6E [21:05:13]RasterBufferAndPrint [21:05:13]line [21:05:13]line [21:05:13]line [21:05:13]line [21:05:13]line [21:05:13]written 0, free lines is 3316 [21:05:13]process_action close_receipt done [21:05:13]requested_data is exist [21:05:13]produce_requested_data [21:05:13]requested_item fm.sn is exist - process it [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 11 00 00 [21:05:13]Write to MH i2c: E2 08 00 48 2C 80 11 00 00 00 00 00 00 EE [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 17 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 17 00 48 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [21:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:05:13]wFMCommunicate OK [21:05:13]requested_item fd.num is exist - process it [21:05:13]SAM_PROTO_GetFieldsCounters [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 13 00 00 [21:05:13]Write to MH i2c: E2 08 00 49 2C 80 13 00 00 00 00 00 00 F1 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 62 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 62 00 49 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 13 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [21:05: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 13 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:13]wFMCommunicate OK [21:05:13]SAM_PROTO_GetFieldsCounters done [21:05:13]requested_item shift.num is exist - process it [21:05:13]requested_item shift.opened is exist - process it [21:05:13]req_shift_opened [21:05:13]FM_GetShiftState [21:05:13]SAM_PROTO_GetShiftState [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 13 01 00 [21:05:13]Write to MH i2c: E2 08 00 4A 2C 80 13 01 00 00 00 00 00 F3 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 0E 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 0E 00 4A 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 28 [21:05:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:05:13]wFMCommunicate OK [21:05:13]SAM_PROTO_GetShiftState done [21:05:13]FM_GetShiftState done [21:05:13]req_shift_opened done [21:05:13]requested_item shift.open_date is exist - process it [21:05:13]req_shift_open_date [21:05:13]req_shift_open_date done [21:05:13]produce_requested_data done [21:05:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156435,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [21:05:13]process_action_free close_receipt [21:05:13]json_value_free [21:05:13]json_value_free done [21:05:13]process_json_proto returns [21:05:13]Send response to host [21:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156435,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [21:05:13]free response buf [21:05:13]execute_script done [21:05:13]execute_script returns [21:05:13]free content buf [21:05:13]Sock 8.Close socket [21:05:13]Sock 8.Thread stoped [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:11]accept exits with 9 [21:18:11]New connection [21:18:11]New thread 3066834276 created [21:18:11]Thread 3066977636 joined [21:18:11]Waiting for new connection... [21:18:11] Sock 9.Parse request [21:18:11]Sock 9.Check first char [21:18:11]Sock 9.First char is OK [21:18:11]request: POST /json_proto HTTP/1.0 [21:18:11]Method: POST [21:18:11]URL: /json_proto [21:18:11]Method is POST - this is cgi request [21:18:11]url: /json_proto [21:18:11]query_string will be loaded in cgi processing [21:18:11]execute_cgi json_proto POST (null) [21:18:11]execute_cgi path=json_proto method=POST [21:18:11]POST find Content-Length [21:18:11]Host: 172.17.63.3:8080 [21:18:11]Content-Length: 676 [21:18:11]Content-Type: application/json [21:18:11] [21:18:11]POST finish read [21:18:11]Found Content-Length = 676 [21:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:11]execute_script... [21:18:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:11]POST & json_proto [21:18:11]process_json_proto [21:18:11]json parsed OK: [21:18:11]protocol is kg_v1.0 [21:18:11]action value=close_receipt [21:18:11]process_action close_receipt [21:18:11]cmd_close_receipt [21:18:11]MH_GetDate [21:18:11]Write to MH i2c: F0 00 00 4B 2C 66 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: F0 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: F0 09 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: F0 09 00 4B 2C 00 95 5C 1D 67 50 D1 6C 64 D5 [21:18:11]GetLastDocTimeStamp 1729976712 [21:18:11]current date 1729977493 [21:18:11]FM_GetShiftState [21:18:11]SAM_PROTO_GetShiftState [21:18:11]wFMCommunicate request_size=4 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 13 01 00 [21:18:11]Write to MH i2c: E2 08 00 4C 2C 80 13 01 00 00 00 00 00 F5 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 0E 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 0E 00 4C 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2A [21:18:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:18:11]wFMCommunicate OK [21:18:11]SAM_PROTO_GetShiftState done [21:18:11]FM_GetShiftState done [21:18:11]opened in 1729902702 [21:18:11]opened+sec_in_day 1729989102 [21:18:11]quantity*price = 30038 [21:18:11]sum+1 = 30039 [21:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 337 26.10.2024 21:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156436 ФПД: 53281839654884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211813&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156436&fm=53281839654884&tin=02508201610067®Number=0000000000091693&sum=30000 [21:18:12]StoreToDocumentArchive [21:18:12]shift 536 fd 156436 [21:18:12]save to /storage/0536/doc_00156436 [21:18:12]save last doc name /storage/0536/doc_00156436 to /storage/kkm_last_doc_name [21:18:12]save OK [21:18:12]Clear old archive folders... [21:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:12]tlvbuf is 01711DD0 [21:18:12]SAM_PROTO_ClearQueue [21:18:12]wFMCommunicate request_size=4 [21:18:12]MH_SAM_APDU [21:18:12]CAPDU: 80 09 00 00 [21:18:12]Write to MH i2c: E2 08 00 59 2C 80 09 00 00 00 00 00 00 F7 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:12]Read from MH i2c: E2 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 59 2C 00 90 00 F9 [21:18:12]RAPDU: 90 00 [21:18:12]wFMCommunicate OK [21:18:12]SAM_PROTO_ClearQueue done [21:18:12]KKMCreateOFDPacket [21:18:12]OFDProtocolAddRootSTLVToBuf [21:18:12]FM_MakeSignedData [21:18:12]FM_MakeSignedData [21:18:12]SAM_PROTO_SignData [21:18:12]wFMCommunicate request_size=4 [21:18:12]MH_SAM_APDU [21:18:12]CAPDU: 80 0D 01 02 [21:18:12]Write to MH i2c: E2 08 00 5A 2C 80 0D 01 02 00 00 00 00 FF [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:12]Read from MH i2c: E2 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 5A 2C 00 90 00 FA [21:18:12]RAPDU: 90 00 [21:18:12]wFMCommunicate OK [21:18:12]wFMCommunicate request_size=255 [21:18:12]MH_SAM_APDU [21:18:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 95 5C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 63 02 00 35 04 06 00 30 [21:18:12]Write to MH i2c: E2 02 01 5B 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 95 5C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 63 02 00 35 04 06 00 30 00 00 11 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:12]Read from MH i2c: E2 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 5B 2C 00 90 00 FB [21:18:12]RAPDU: 90 00 [21:18:12]wFMCommunicate OK [21:18:12]wFMCommunicate request_size=10 [21:18:12]MH_SAM_APDU [21:18:12]CAPDU: 80 0D 02 02 05 75 A5 20 27 E4 [21:18:12]Write to MH i2c: E2 0D 00 5C 2C 80 0D 02 02 05 00 75 A5 20 27 E4 00 00 51 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:12]Read from MH i2c: E2 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 5C 2C 00 90 00 FC [21:18:12]RAPDU: 90 00 [21:18:12]wFMCommunicate OK [21:18:12]wFMCommunicate request_size=4 [21:18:12]MH_SAM_APDU [21:18:12]CAPDU: 80 0D 03 02 [21:18:12]Write to MH i2c: E2 08 00 5D 2C 80 0D 03 02 00 00 00 00 04 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:12]Read from MH i2c: E2 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 0B 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 0B 00 5D 2C 00 7F A2 A6 F1 CF 39 B0 1E 90 00 93 [21:18:12]RAPDU: 7F A2 A6 F1 CF 39 B0 1E 90 00 [21:18:12]wFMCommunicate OK [21:18:12]SAM_PROTO_SignData done [21:18:12]FM_MakeSignedData done [21:18:12]CreateOFDProtocolMessage [21:18:12]wFMCommunicate request_size=4 [21:18:12]MH_SAM_APDU [21:18:12]CAPDU: 80 11 00 00 [21:18:12]Write to MH i2c: E2 08 00 5E 2C 80 11 00 00 00 00 00 00 04 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:12]Read from MH i2c: E2 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 17 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 17 00 5E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [21:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:18:12]wFMCommunicate OK [21:18:12]CreateOFDProtocolMessage done [21:18:12]OFDSenderStorePacket 156436 [21:18:12]StoreOFDPacket docnum=156436 [21:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 71 94 07 01 DE B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 95 5C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 63 02 00 35 04 06 00 30 75 A5 20 27 E4 7F A2 A6 F1 CF 39 B0 1E [21:18:12]CheckFolder [21:18:12]dirname=/storage/ofd_packets [21:18:12]CheckFolder done [21:18:12]ProducePacketName [21:18:12]name=ofd_packets/00156436 [21:18:12]NVStorageSaveData ofd_packets/00156436 [21:18:12]File name is /storage/ofd_packets/00156436 [21:18:12]Write 301 bytes [21:18:12]NVStorageSaveData done [21:18:12]OFDSenderStorePacket done [21:18:12]KKMCreateOFDPacket done [21:18:12]NVStorageSaveData kkm_last_timestamp [21:18:12]File name is /storage/kkm_last_timestamp [21:18:12]Write 4 bytes [21:18:12]NVStorageSaveData done [21:18:12]ExternCall_PrintAddStr [21:18:12]wPrintStart [21:18:12]Write to MH i2c: 01 00 00 5F 2C 8B [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 07 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 07 00 5F 2C 00 00 00 00 00 FF 0F A0 [21:18:12]RasterBufferAndPrint [21:18:12]line Счет N : (1)99251 [21:18:12]line ИНН: 02508201610067 [21:18:12]line Контрольно-Кассовый Чек [21:18:12]line ПРОДАЖА [21:18:12]line ТРК (МРК, ГНК) : 21 [21:18:12]line Товар: 2710124130 [21:18:12]line Аи-92-К-5 [21:18:12]line 4.490 * 66.90 [21:18:12]line = 300.38 [21:18:12]line НДС 12% НСП 1% [21:18:12]line > о реализуемом товаре [21:18:12]line ОКРУГЛЕНИЕ: -0.38 [21:18:12]line ИТОГО: 300.00 [21:18:12]line Внесено: 300.00 [21:18:12]line СДАЧА: 0.00 [21:18:12]line НСП 1% : 2.66 [21:18:12]line НДС 12% : 31.90 [21:18:12]line Наличными: 300.00 [21:18:12]line Безнал.: 0.00 [21:18:12]line Место: АЗС № 143 "Партнер Нефть" [21:18:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:18:12]line СНО: Общий режим [21:18:12]line Чек 337 26.10.2024 21:18 [21:18:12]line Смена: 536 ФФД: 1.0 [21:18:12]line ЗНМ: 0300000096 [21:18:12]line РНМ: 0000000000091693 [21:18:12]line Версия ККМ: 001 [21:18:12]line ФМ: 0000000000871792 [21:18:12]line ФД: 156436 [21:18:12]line ФПД: 53281839654884 [21:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211813&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156436&fm=53281839654884&tin=02508201610067®Number=0000000000091693&sum=30000 [21:18:13]OFD Sender: Processing packet 156436 [packets to send 31, broken 30] [21:18:13]ProducePacketName [21:18:13]name=ofd_packets/00156436 [21:18:13]OFD Sender: To server: pG, [21:18:13]CommunicateWithHost lk.salyk.kg:30040 [21:18:13]ConnectInit lk.salyk.kg [21:18:13]written 0, free lines is 4095 [21:18:13]Connected sock=10 [21:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 71 94 07 01 DE B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 95 5C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 63 02 00 35 04 06 00 30 75 A5 20 27 E4 7F A2 A6 F1 CF 39 B0 1E [21:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 80 12 47 00 CD DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 63 02 00 F4 03 04 00 07 02 1D 67 B6 04 01 00 00 2E B6 6B EC 9F 99 DE CD [21:18:13]CommunicateWithHost err = 0 [21:18:13]CheckOFDResponse [21:18:13]1017 (14) - 77093643461234 [21:18:13]1041 (16) - 0000000000871792 [21:18:13]1040 (4) - 156436 [21:18:13]1012 (4) - 26.10.2024 14:51 [21:18:13]1206 (1) - 0 [21:18:13]OFD Sender: Remove packet 156436 [21:18:13]ProducePacketName [21:18:13]name=ofd_packets/00156436 [21:18:13]NVStorageDeleteData [21:18:13]Write to MH i2c: 01 00 00 8A 2C B6 [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: 01 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: 01 07 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: 01 07 00 8A 2C 00 00 00 00 00 DC 0C A5 [21:18:13]RasterBufferAndPrint [21:18:13]line [21:18:13]line [21:18:13]line [21:18:13]line [21:18:13]line [21:18:13]written 0, free lines is 3298 [21:18:13]process_action close_receipt done [21:18:13]requested_data is exist [21:18:13]produce_requested_data [21:18:13]requested_item fm.sn is exist - process it [21:18:13]wFMCommunicate request_size=4 [21:18:13]MH_SAM_APDU [21:18:13]CAPDU: 80 11 00 00 [21:18:13]Write to MH i2c: E2 08 00 91 2C 80 11 00 00 00 00 00 00 37 [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:13]Read from MH i2c: E2 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 17 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 17 00 91 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [21:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:18:13]wFMCommunicate OK [21:18:13]requested_item fd.num is exist - process it [21:18:13]SAM_PROTO_GetFieldsCounters [21:18:13]wFMCommunicate request_size=4 [21:18:13]MH_SAM_APDU [21:18:13]CAPDU: 80 13 00 00 [21:18:13]Write to MH i2c: E2 08 00 92 2C 80 13 00 00 00 00 00 00 3A [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:13]Read from MH i2c: E2 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 62 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 62 00 92 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 14 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [21:18: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 14 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:13]wFMCommunicate OK [21:18:13]SAM_PROTO_GetFieldsCounters done [21:18:13]requested_item shift.num is exist - process it [21:18:13]requested_item shift.opened is exist - process it [21:18:13]req_shift_opened [21:18:13]FM_GetShiftState [21:18:13]SAM_PROTO_GetShiftState [21:18:13]wFMCommunicate request_size=4 [21:18:13]MH_SAM_APDU [21:18:13]CAPDU: 80 13 01 00 [21:18:13]Write to MH i2c: E2 08 00 93 2C 80 13 01 00 00 00 00 00 3C [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:13]Read from MH i2c: E2 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 0E 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 0E 00 93 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 71 [21:18:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:18:13]wFMCommunicate OK [21:18:13]SAM_PROTO_GetShiftState done [21:18:13]FM_GetShiftState done [21:18:13]req_shift_opened done [21:18:13]requested_item shift.open_date is exist - process it [21:18:13]req_shift_open_date [21:18:13]req_shift_open_date done [21:18:13]produce_requested_data done [21:18:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156436,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [21:18:13]process_action_free close_receipt [21:18:13]json_value_free [21:18:13]json_value_free done [21:18:13]process_json_proto returns [21:18:13]Send response to host [21:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156436,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [21:18:13]free response buf [21:18:13]execute_script done [21:18:13]execute_script returns [21:18:13]free content buf [21:18:13]Sock 9.Close socket [21:18:13]Sock 9.Thread stoped [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]accept exits with 8 [21:21:29]New connection [21:21:29]New thread 3066977636 created [21:21:29]Thread 3066834276 joined [21:21:29]Waiting for new connection... [21:21:29] Sock 8.Parse request [21:21:29]Sock 8.Check first char [21:21:29]Sock 8.First char is OK [21:21:29]request: POST /json_proto HTTP/1.0 [21:21:29]Method: POST [21:21:29]URL: /json_proto [21:21:29]Method is POST - this is cgi request [21:21:29]url: /json_proto [21:21:29]query_string will be loaded in cgi processing [21:21:29]execute_cgi json_proto POST (null) [21:21:29]execute_cgi path=json_proto method=POST [21:21:29]POST find Content-Length [21:21:29]Host: 172.17.63.3:8080 [21:21:29]Content-Length: 676 [21:21:29]Content-Type: application/json [21:21:29] [21:21:29]POST finish read [21:21:29]Found Content-Length = 676 [21:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:29]execute_script... [21:21:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:29]POST & json_proto [21:21:29]process_json_proto [21:21:29]json parsed OK: [21:21:29]protocol is kg_v1.0 [21:21:29]action value=close_receipt [21:21:29]process_action close_receipt [21:21:29]cmd_close_receipt [21:21:29]MH_GetDate [21:21:29]Write to MH i2c: F0 00 00 94 2C AF [21:21:29]Write i2c OK [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: F0 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: F0 09 00 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: F0 09 00 94 2C 00 5B 5D 1D 67 50 D1 6C 64 E5 [21:21:29]GetLastDocTimeStamp 1729977493 [21:21:29]current date 1729977691 [21:21:29]FM_GetShiftState [21:21:29]SAM_PROTO_GetShiftState [21:21:29]wFMCommunicate request_size=4 [21:21:29]MH_SAM_APDU [21:21:29]CAPDU: 80 13 01 00 [21:21:29]Write to MH i2c: E2 08 00 95 2C 80 13 01 00 00 00 00 00 3E [21:21:29]Write i2c OK [21:21:29]MH_I2C_Read... [21:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:29]Read from MH i2c: E2 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 0E 00 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 0E 00 95 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 73 [21:21:29]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:21:29]wFMCommunicate OK [21:21:29]SAM_PROTO_GetShiftState done [21:21:29]FM_GetShiftState done [21:21:29]opened in 1729902702 [21:21:29]opened+sec_in_day 1729989102 [21:21:29]quantity*price = 20003 [21:21:29]sum+1 = 20004 [21:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 338 26.10.2024 21:21 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156437 ФПД: 204920000773531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212131&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156437&fm=204920000773531&tin=02508201610067®Number=0000000000091693&sum=20000 [21:21:30]StoreToDocumentArchive [21:21:30]shift 536 fd 156437 [21:21:30]save to /storage/0536/doc_00156437 [21:21:30]save last doc name /storage/0536/doc_00156437 to /storage/kkm_last_doc_name [21:21:30]save OK [21:21:30]Clear old archive folders... [21:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:21:30]tlvbuf is 01794BF0 [21:21:30]SAM_PROTO_ClearQueue [21:21:30]wFMCommunicate request_size=4 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 09 00 00 [21:21:30]Write to MH i2c: E2 08 00 A2 2C 80 09 00 00 00 00 00 00 40 [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 A2 2C 00 90 00 42 [21:21:30]RAPDU: 90 00 [21:21:30]wFMCommunicate OK [21:21:30]SAM_PROTO_ClearQueue done [21:21:30]KKMCreateOFDPacket [21:21:30]OFDProtocolAddRootSTLVToBuf [21:21:30]FM_MakeSignedData [21:21:30]FM_MakeSignedData [21:21:30]SAM_PROTO_SignData [21:21:30]wFMCommunicate request_size=4 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 0D 01 02 [21:21:30]Write to MH i2c: E2 08 00 A3 2C 80 0D 01 02 00 00 00 00 48 [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 A3 2C 00 90 00 43 [21:21:30]RAPDU: 90 00 [21:21:30]wFMCommunicate OK [21:21:30]wFMCommunicate request_size=255 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 5B 5D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 63 02 00 35 04 06 00 BA [21:21:30]Write to MH i2c: E2 02 01 A4 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 5B 5D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 63 02 00 35 04 06 00 BA 00 00 7B [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 A4 2C 00 90 00 44 [21:21:30]RAPDU: 90 00 [21:21:30]wFMCommunicate OK [21:21:30]wFMCommunicate request_size=10 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 0D 02 02 05 5F A7 DA 7D 9B [21:21:30]Write to MH i2c: E2 0D 00 A5 2C 80 0D 02 02 05 00 5F A7 DA 7D 9B 00 00 4D [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 A5 2C 00 90 00 45 [21:21:30]RAPDU: 90 00 [21:21:30]wFMCommunicate OK [21:21:30]wFMCommunicate request_size=4 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 0D 03 02 [21:21:30]Write to MH i2c: E2 08 00 A6 2C 80 0D 03 02 00 00 00 00 4D [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 0B 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 0B 00 A6 2C 00 27 3F 2C 87 BD C9 0C 2A 90 00 23 [21:21:30]RAPDU: 27 3F 2C 87 BD C9 0C 2A 90 00 [21:21:30]wFMCommunicate OK [21:21:30]SAM_PROTO_SignData done [21:21:30]FM_MakeSignedData done [21:21:30]CreateOFDProtocolMessage [21:21:30]wFMCommunicate request_size=4 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 11 00 00 [21:21:30]Write to MH i2c: E2 08 00 A7 2C 80 11 00 00 00 00 00 00 4D [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 17 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 17 00 A7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [21:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:21:30]wFMCommunicate OK [21:21:30]CreateOFDProtocolMessage done [21:21:30]OFDSenderStorePacket 156437 [21:21:30]StoreOFDPacket docnum=156437 [21:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9A FB 07 01 46 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 5B 5D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 63 02 00 35 04 06 00 BA 5F A7 DA 7D 9B 27 3F 2C 87 BD C9 0C 2A [21:21:30]CheckFolder [21:21:30]dirname=/storage/ofd_packets [21:21:30]CheckFolder done [21:21:30]ProducePacketName [21:21:30]name=ofd_packets/00156437 [21:21:30]NVStorageSaveData ofd_packets/00156437 [21:21:30]File name is /storage/ofd_packets/00156437 [21:21:30]Write 301 bytes [21:21:30]NVStorageSaveData done [21:21:30]OFDSenderStorePacket done [21:21:30]KKMCreateOFDPacket done [21:21:30]NVStorageSaveData kkm_last_timestamp [21:21:30]File name is /storage/kkm_last_timestamp [21:21:30]Write 4 bytes [21:21:30]NVStorageSaveData done [21:21:30]ExternCall_PrintAddStr [21:21:30]wPrintStart [21:21:30]Write to MH i2c: 01 00 00 A8 2C D4 [21:21:30]OFD Sender: Processing packet 156437 [packets to send 31, broken 30] [21:21:30]ProducePacketName [21:21:30]name=ofd_packets/00156437 [21:21:30]OFD Sender: To server: pG, [21:21:30]CommunicateWithHost lk.salyk.kg:30040 [21:21:30]ConnectInit lk.salyk.kg [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: 01 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: 01 07 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: 01 07 00 A8 2C 00 00 00 00 00 FF 0F E9 [21:21:30]RasterBufferAndPrint [21:21:30]line Счет N : (1)99252 [21:21:30]line ИНН: 02508201610067 [21:21:30]line Контрольно-Кассовый Чек [21:21:30]line ПРОДАЖА [21:21:30]line ТРК (МРК, ГНК) : 11 [21:21:30]line Товар: 2710124130 [21:21:30]line Аи-92-К-5 [21:21:30]line 2.990 * 66.90 [21:21:30]line = 200.03 [21:21:30]line НДС 12% НСП 1% [21:21:30]line > о реализуемом товаре [21:21:30]line ОКРУГЛЕНИЕ: -0.03 [21:21:30]line ИТОГО: 200.00 [21:21:30]line Внесено: 200.00 [21:21:30]line СДАЧА: 0.00 [21:21:30]line НСП 1% : 1.77 [21:21:30]line НДС 12% : 21.24 [21:21:30]line Наличными: 200.00 [21:21:30]line Безнал.: 0.00 [21:21:30]line Место: АЗС № 143 "Партнер Нефть" [21:21:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:21:30]line СНО: Общий режим [21:21:30]line Чек 338 26.10.2024 21:21 [21:21:30]line Смена: 536 ФФД: 1.0 [21:21:30]line ЗНМ: 0300000096 [21:21:30]line РНМ: 0000000000091693 [21:21:30]line Версия ККМ: 001 [21:21:30]line ФМ: 0000000000871792 [21:21:30]line ФД: 156437 [21:21:30]line ФПД: 204920000773531 [21:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212131&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156437&fm=204920000773531&tin=02508201610067®Number=0000000000091693&sum=20000 [21:21:31]Connected sock=10 [21:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9A FB 07 01 46 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 5B 5D 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 63 02 00 35 04 06 00 BA 5F A7 DA 7D 9B 27 3F 2C 87 BD C9 0C 2A [21:21:31]written 0, free lines is 4095 [21:21:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 99 5B 47 00 F3 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 31 37 39 32 10 04 04 00 15 63 02 00 F4 03 04 00 CC 02 1D 67 B6 04 01 00 00 C3 F4 E8 36 D3 5F C5 1E [21:21:31]CommunicateWithHost err = 0 [21:21:31]CheckOFDResponse [21:21:31]1017 (14) - 77093643461234 [21:21:31]1041 (16) - 0000000000871792 [21:21:31]1040 (4) - 156437 [21:21:31]1012 (4) - 26.10.2024 14:55 [21:21:31]1206 (1) - 0 [21:21:31]OFD Sender: Remove packet 156437 [21:21:31]ProducePacketName [21:21:31]name=ofd_packets/00156437 [21:21:31]NVStorageDeleteData [21:21:31]Write to MH i2c: 01 00 00 D3 2C FF [21:21:31]Write i2c OK [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: 01 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: 01 07 00 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: 01 07 00 D3 2C 00 00 00 00 00 E4 0C F6 [21:21:31]RasterBufferAndPrint [21:21:31]line [21:21:31]line [21:21:31]line [21:21:31]line [21:21:31]line [21:21:31]written 0, free lines is 3306 [21:21:31]process_action close_receipt done [21:21:31]requested_data is exist [21:21:31]produce_requested_data [21:21:31]requested_item fm.sn is exist - process it [21:21:31]wFMCommunicate request_size=4 [21:21:31]MH_SAM_APDU [21:21:31]CAPDU: 80 11 00 00 [21:21:31]Write to MH i2c: E2 08 00 DA 2C 80 11 00 00 00 00 00 00 80 [21:21:31]Write i2c OK [21:21:31]MH_I2C_Read... [21:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:31]Read from MH i2c: E2 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: E2 17 00 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: E2 17 00 DA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [21:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:21:31]wFMCommunicate OK [21:21:31]requested_item fd.num is exist - process it [21:21:31]SAM_PROTO_GetFieldsCounters [21:21:31]wFMCommunicate request_size=4 [21:21:31]MH_SAM_APDU [21:21:31]CAPDU: 80 13 00 00 [21:21:31]Write to MH i2c: E2 08 00 DB 2C 80 13 00 00 00 00 00 00 83 [21:21:31]Write i2c OK [21:21:31]MH_I2C_Read... [21:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:31]OFD Sender: No OFD packet to send [21:21:31]Read from MH i2c: E2 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: E2 62 00 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: E2 62 00 DB 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 15 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [21:21:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 15 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:31]wFMCommunicate OK [21:21:31]SAM_PROTO_GetFieldsCounters done [21:21:31]requested_item shift.num is exist - process it [21:21:31]requested_item shift.opened is exist - process it [21:21:31]req_shift_opened [21:21:31]FM_GetShiftState [21:21:31]SAM_PROTO_GetShiftState [21:21:31]wFMCommunicate request_size=4 [21:21:31]MH_SAM_APDU [21:21:31]CAPDU: 80 13 01 00 [21:21:31]Write to MH i2c: E2 08 00 DC 2C 80 13 01 00 00 00 00 00 85 [21:21:31]Write i2c OK [21:21:31]MH_I2C_Read... [21:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:31]Read from MH i2c: E2 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: E2 0E 00 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: E2 0E 00 DC 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BA [21:21:31]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:21:31]wFMCommunicate OK [21:21:31]SAM_PROTO_GetShiftState done [21:21:31]FM_GetShiftState done [21:21:31]req_shift_opened done [21:21:31]requested_item shift.open_date is exist - process it [21:21:31]req_shift_open_date [21:21:31]req_shift_open_date done [21:21:31]produce_requested_data done [21:21:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156437,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [21:21:31]process_action_free close_receipt [21:21:31]json_value_free [21:21:31]json_value_free done [21:21:31]process_json_proto returns [21:21:31]Send response to host [21:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156437,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [21:21:31]free response buf [21:21:31]execute_script done [21:21:31]execute_script returns [21:21:31]free content buf [21:21:31]Sock 8.Close socket [21:21:31]Sock 8.Thread stoped [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:02]OFD Sender: No OFD packet to send [21:27:07]OFD Sender: No OFD packet to send [21:27:12]OFD Sender: No OFD packet to send [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:06]accept exits with 9 [21:41:06]New connection [21:41:06]New thread 3066834276 created [21:41:06]Thread 3066977636 joined [21:41:06]Waiting for new connection... [21:41:06] Sock 9.Parse request [21:41:06]Sock 9.Check first char [21:41:06]Sock 9.First char is OK [21:41:06]request: POST /json_proto HTTP/1.0 [21:41:06]Method: POST [21:41:06]URL: /json_proto [21:41:06]Method is POST - this is cgi request [21:41:06]url: /json_proto [21:41:06]query_string will be loaded in cgi processing [21:41:06]execute_cgi json_proto POST (null) [21:41:06]execute_cgi path=json_proto method=POST [21:41:06]POST find Content-Length [21:41:06]Host: 172.17.63.3:8080 [21:41:06]Content-Length: 676 [21:41:06]Content-Type: application/json [21:41:06] [21:41:06]POST finish read [21:41:06]Found Content-Length = 676 [21:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:06]execute_script... [21:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:06]POST & json_proto [21:41:06]process_json_proto [21:41:06]json parsed OK: [21:41:06]protocol is kg_v1.0 [21:41:06]action value=close_receipt [21:41:06]process_action close_receipt [21:41:06]cmd_close_receipt [21:41:06]MH_GetDate [21:41:06]Write to MH i2c: F0 00 00 DD 2C F8 [21:41:06]Write i2c OK [21:41:06]MH_I2C_Read... [21:41:06]Read from MH i2c: F0 [21:41:06]MH_I2C_Read... [21:41:06]Read from MH i2c: F0 09 00 [21:41:06]MH_I2C_Read... [21:41:06]Read from MH i2c: F0 09 00 DD 2C 00 F4 61 1D 67 50 D1 6C 64 CB [21:41:06]GetLastDocTimeStamp 1729977691 [21:41:06]current date 1729978868 [21:41:06]FM_GetShiftState [21:41:06]SAM_PROTO_GetShiftState [21:41:06]wFMCommunicate request_size=4 [21:41:06]MH_SAM_APDU [21:41:06]CAPDU: 80 13 01 00 [21:41:06]Write to MH i2c: E2 08 00 DE 2C 80 13 01 00 00 00 00 00 87 [21:41:06]Write i2c OK [21:41:06]MH_I2C_Read... [21:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:06]Read from MH i2c: E2 [21:41:06]MH_I2C_Read... [21:41:06]Read from MH i2c: E2 0E 00 [21:41:06]MH_I2C_Read... [21:41:06]Read from MH i2c: E2 0E 00 DE 2C 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BC [21:41:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:41:06]wFMCommunicate OK [21:41:06]SAM_PROTO_GetShiftState done [21:41:06]FM_GetShiftState done [21:41:06]opened in 1729902702 [21:41:06]opened+sec_in_day 1729989102 [21:41:06]quantity*price = 30038 [21:41:06]sum+1 = 30039 [21:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 339 26.10.2024 21:41 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156438 ФПД: 196041975034137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T214108&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156438&fm=196041975034137&tin=02508201610067®Number=0000000000091693&sum=30000 [21:41:07]StoreToDocumentArchive [21:41:07]shift 536 fd 156438 [21:41:07]save to /storage/0536/doc_00156438 [21:41:07]save last doc name /storage/0536/doc_00156438 to /storage/kkm_last_doc_name [21:41:07]save OK [21:41:07]Clear old archive folders... [21:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:07]tlvbuf is 016BCE00 [21:41:07]SAM_PROTO_ClearQueue [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 09 00 00 [21:41:07]Write to MH i2c: E2 08 00 EB 2C 80 09 00 00 00 00 00 00 89 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 EB 2C 00 90 00 8B [21:41:07]RAPDU: 90 00 [21:41:07]wFMCommunicate OK [21:41:07]SAM_PROTO_ClearQueue done [21:41:07]KKMCreateOFDPacket [21:41:07]OFDProtocolAddRootSTLVToBuf [21:41:07]FM_MakeSignedData [21:41:07]FM_MakeSignedData [21:41:07]SAM_PROTO_SignData [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 0D 01 02 [21:41:07]Write to MH i2c: E2 08 00 EC 2C 80 0D 01 02 00 00 00 00 91 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 EC 2C 00 90 00 8C [21:41:07]RAPDU: 90 00 [21:41:07]wFMCommunicate OK [21:41:07]wFMCommunicate request_size=255 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 F4 61 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 63 02 00 35 04 06 00 B2 [21:41:07]Write to MH i2c: E2 02 01 ED 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 F4 61 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 63 02 00 35 04 06 00 B2 00 00 8D [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 ED 2C 00 90 00 8D [21:41:07]RAPDU: 90 00 [21:41:07]wFMCommunicate OK [21:41:07]wFMCommunicate request_size=10 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 0D 02 02 05 4C 94 48 71 19 [21:41:07]Write to MH i2c: E2 0D 00 EE 2C 80 0D 02 02 05 00 4C 94 48 71 19 00 00 50 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [21:41:07]RAPDU: 90 00 [21:41:07]wFMCommunicate OK [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 0D 03 02 [21:41:07]Write to MH i2c: E2 08 00 EF 2C 80 0D 03 02 00 00 00 00 96 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]OFD Sender: No OFD packet to send [21:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 0B 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 0B 00 EF 2C 00 DF 78 B1 1F 93 B3 DE 52 90 00 34 [21:41:07]RAPDU: DF 78 B1 1F 93 B3 DE 52 90 00 [21:41:07]wFMCommunicate OK [21:41:07]SAM_PROTO_SignData done [21:41:07]FM_MakeSignedData done [21:41:07]CreateOFDProtocolMessage [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 11 00 00 [21:41:07]Write to MH i2c: E2 08 00 F0 2C 80 11 00 00 00 00 00 00 96 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 17 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 17 00 F0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EB [21:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:41:07]wFMCommunicate OK [21:41:07]CreateOFDProtocolMessage done [21:41:07]OFDSenderStorePacket 156438 [21:41:07]StoreOFDPacket docnum=156438 [21:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6D 59 07 01 74 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 F4 61 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 63 02 00 35 04 06 00 B2 4C 94 48 71 19 DF 78 B1 1F 93 B3 DE 52 [21:41:07]CheckFolder [21:41:07]dirname=/storage/ofd_packets [21:41:07]CheckFolder done [21:41:07]ProducePacketName [21:41:07]name=ofd_packets/00156438 [21:41:07]NVStorageSaveData ofd_packets/00156438 [21:41:07]File name is /storage/ofd_packets/00156438 [21:41:07]Write 301 bytes [21:41:07]NVStorageSaveData done [21:41:07]OFDSenderStorePacket done [21:41:07]KKMCreateOFDPacket done [21:41:07]NVStorageSaveData kkm_last_timestamp [21:41:07]File name is /storage/kkm_last_timestamp [21:41:07]Write 4 bytes [21:41:07]NVStorageSaveData done [21:41:07]ExternCall_PrintAddStr [21:41:07]wPrintStart [21:41:07]Write to MH i2c: 01 00 00 F1 2C 1D [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: 01 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: 01 07 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 FF 0F 32 [21:41:07]RasterBufferAndPrint [21:41:07]line Счет N : (1)99253 [21:41:07]line ИНН: 02508201610067 [21:41:07]line Контрольно-Кассовый Чек [21:41:07]line ПРОДАЖА [21:41:07]line ТРК (МРК, ГНК) : 31 [21:41:07]line Товар: 2710124130 [21:41:07]line Аи-92-К-5 [21:41:07]line 4.490 * 66.90 [21:41:07]line = 300.38 [21:41:07]line НДС 12% НСП 1% [21:41:07]line > о реализуемом товаре [21:41:07]line ОКРУГЛЕНИЕ: -0.38 [21:41:07]line ИТОГО: 300.00 [21:41:07]line Внесено: 300.00 [21:41:07]line СДАЧА: 0.00 [21:41:07]line НСП 1% : 2.66 [21:41:07]line НДС 12% : 31.90 [21:41:07]line Наличными: 300.00 [21:41:07]line Безнал.: 0.00 [21:41:07]line Место: АЗС № 143 "Партнер Нефть" [21:41:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:41:07]line СНО: Общий режим [21:41:07]line Чек 339 26.10.2024 21:41 [21:41:07]line Смена: 536 ФФД: 1.0 [21:41:07]line ЗНМ: 0300000096 [21:41:07]line РНМ: 0000000000091693 [21:41:07]line Версия ККМ: 001 [21:41:07]line ФМ: 0000000000871792 [21:41:07]line ФД: 156438 [21:41:07]line ФПД: 196041975034137 [21:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T214108&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156438&fm=196041975034137&tin=02508201610067®Number=0000000000091693&sum=30000 [21:41:08]OFD Sender: Processing packet 156438 [packets to send 31, broken 30] [21:41:08]ProducePacketName [21:41:08]name=ofd_packets/00156438 [21:41:08]OFD Sender: To server: pG, [21:41:08]CommunicateWithHost lk.salyk.kg:30040 [21:41:08]ConnectInit lk.salyk.kg [21:41:08]written 0, free lines is 4095 [21:41:08]Connected sock=10 [21:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6D 59 07 01 74 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 F4 61 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 63 02 00 35 04 06 00 B2 4C 94 48 71 19 DF 78 B1 1F 93 B3 DE 52 [21:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B6 39 47 00 56 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 31 37 39 32 10 04 04 00 16 63 02 00 F4 03 04 00 66 07 1D 67 B6 04 01 00 00 1A 4E 23 45 B4 E4 5D A7 [21:41:08]CommunicateWithHost err = 0 [21:41:08]CheckOFDResponse [21:41:08]1017 (14) - 77093643461234 [21:41:08]1041 (16) - 0000000000871792 [21:41:08]1040 (4) - 156438 [21:41:08]1012 (4) - 26.10.2024 15:14 [21:41:08]1206 (1) - 0 [21:41:08]OFD Sender: Remove packet 156438 [21:41:08]ProducePacketName [21:41:08]name=ofd_packets/00156438 [21:41:08]NVStorageDeleteData [21:41:08]Write to MH i2c: 01 00 00 1C 2D 49 [21:41:08]Write i2c OK [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: 01 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: 01 07 00 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: 01 07 00 1C 2D 00 00 00 00 00 E4 0C 40 [21:41:08]RasterBufferAndPrint [21:41:08]line [21:41:08]line [21:41:08]line [21:41:08]line [21:41:08]line [21:41:08]written 0, free lines is 3306 [21:41:08]process_action close_receipt done [21:41:08]requested_data is exist [21:41:08]produce_requested_data [21:41:08]requested_item fm.sn is exist - process it [21:41:08]wFMCommunicate request_size=4 [21:41:08]MH_SAM_APDU [21:41:08]CAPDU: 80 11 00 00 [21:41:08]Write to MH i2c: E2 08 00 23 2D 80 11 00 00 00 00 00 00 CA [21:41:08]Write i2c OK [21:41:08]MH_I2C_Read... [21:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:08]Read from MH i2c: E2 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: E2 17 00 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: E2 17 00 23 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [21:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:41:08]wFMCommunicate OK [21:41:08]requested_item fd.num is exist - process it [21:41:08]SAM_PROTO_GetFieldsCounters [21:41:08]wFMCommunicate request_size=4 [21:41:08]MH_SAM_APDU [21:41:08]CAPDU: 80 13 00 00 [21:41:08]Write to MH i2c: E2 08 00 24 2D 80 13 00 00 00 00 00 00 CD [21:41:08]Write i2c OK [21:41:08]MH_I2C_Read... [21:41:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:08]Read from MH i2c: E2 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: E2 62 00 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: E2 62 00 24 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 16 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [21:41:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 16 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:08]wFMCommunicate OK [21:41:08]SAM_PROTO_GetFieldsCounters done [21:41:08]requested_item shift.num is exist - process it [21:41:08]requested_item shift.opened is exist - process it [21:41:08]req_shift_opened [21:41:08]FM_GetShiftState [21:41:08]SAM_PROTO_GetShiftState [21:41:08]wFMCommunicate request_size=4 [21:41:08]MH_SAM_APDU [21:41:08]CAPDU: 80 13 01 00 [21:41:08]Write to MH i2c: E2 08 00 25 2D 80 13 01 00 00 00 00 00 CF [21:41:08]Write i2c OK [21:41:08]MH_I2C_Read... [21:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:08]Read from MH i2c: E2 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: E2 0E 00 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: E2 0E 00 25 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 04 [21:41:08]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:41:08]wFMCommunicate OK [21:41:08]SAM_PROTO_GetShiftState done [21:41:08]FM_GetShiftState done [21:41:08]req_shift_opened done [21:41:08]requested_item shift.open_date is exist - process it [21:41:08]req_shift_open_date [21:41:08]req_shift_open_date done [21:41:08]produce_requested_data done [21:41:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156438,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [21:41:08]process_action_free close_receipt [21:41:08]json_value_free [21:41:08]json_value_free done [21:41:08]process_json_proto returns [21:41:08]Send response to host [21:41:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156438,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [21:41:08]free response buf [21:41:08]execute_script done [21:41:08]execute_script returns [21:41:08]free content buf [21:41:08]Sock 9.Close socket [21:41:08]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [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:47]accept exits with 8 [21:54:47]New connection [21:54:47]New thread 3066977636 created [21:54:47]Thread 3066834276 joined [21:54:47]Waiting for new connection... [21:54:47] Sock 8.Parse request [21:54:47]Sock 8.Check first char [21:54:47]Sock 8.First char is OK [21:54:47]request: POST /json_proto HTTP/1.0 [21:54:47]Method: POST [21:54:47]URL: /json_proto [21:54:47]Method is POST - this is cgi request [21:54:47]url: /json_proto [21:54:47]query_string will be loaded in cgi processing [21:54:47]execute_cgi json_proto POST (null) [21:54:47]execute_cgi path=json_proto method=POST [21:54:47]POST find Content-Length [21:54:47]Host: 172.17.63.3:8080 [21:54:47]Content-Length: 677 [21:54:47]Content-Type: application/json [21:54:47] [21:54:47]POST finish read [21:54:47]Found Content-Length = 677 [21:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:47]execute_script... [21:54:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:47]POST & json_proto [21:54:47]process_json_proto [21:54:47]json parsed OK: [21:54:47]protocol is kg_v1.0 [21:54:47]action value=close_receipt [21:54:47]process_action close_receipt [21:54:47]cmd_close_receipt [21:54:47]MH_GetDate [21:54:47]Write to MH i2c: F0 00 00 26 2D 42 [21:54:47]Write i2c OK [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: F0 [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: F0 09 00 [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: F0 09 00 26 2D 00 29 65 1D 67 50 D1 6C 64 4E [21:54:47]GetLastDocTimeStamp 1729978868 [21:54:47]current date 1729979689 [21:54:47]FM_GetShiftState [21:54:47]SAM_PROTO_GetShiftState [21:54:47]wFMCommunicate request_size=4 [21:54:47]MH_SAM_APDU [21:54:47]CAPDU: 80 13 01 00 [21:54:47]Write to MH i2c: E2 08 00 27 2D 80 13 01 00 00 00 00 00 D1 [21:54:47]Write i2c OK [21:54:47]MH_I2C_Read... [21:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:47]Read from MH i2c: E2 [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: E2 0E 00 [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: E2 0E 00 27 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 06 [21:54:47]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:54:47]wFMCommunicate OK [21:54:47]SAM_PROTO_GetShiftState done [21:54:47]FM_GetShiftState done [21:54:47]opened in 1729902702 [21:54:47]opened+sec_in_day 1729989102 [21:54:47]quantity*price = 70044 [21:54:47]sum+1 = 70045 [21:54:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 340 26.10.2024 21:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156439 ФПД: 154571590119389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215449&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156439&fm=154571590119389&tin=02508201610067®Number=0000000000091693&sum=70000 [21:54:48]StoreToDocumentArchive [21:54:48]shift 536 fd 156439 [21:54:48]save to /storage/0536/doc_00156439 [21:54:48]save last doc name /storage/0536/doc_00156439 to /storage/kkm_last_doc_name [21:54:48]save OK [21:54:48]Clear old archive folders... [21:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:48]tlvbuf is 01680F10 [21:54:48]SAM_PROTO_ClearQueue [21:54:48]wFMCommunicate request_size=4 [21:54:48]MH_SAM_APDU [21:54:48]CAPDU: 80 09 00 00 [21:54:48]Write to MH i2c: E2 08 00 34 2D 80 09 00 00 00 00 00 00 D3 [21:54:48]Write i2c OK [21:54:48]MH_I2C_Read... [21:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:48]Read from MH i2c: E2 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 03 00 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 03 00 34 2D 00 90 00 D5 [21:54:48]RAPDU: 90 00 [21:54:48]wFMCommunicate OK [21:54:48]SAM_PROTO_ClearQueue done [21:54:48]KKMCreateOFDPacket [21:54:48]OFDProtocolAddRootSTLVToBuf [21:54:48]FM_MakeSignedData [21:54:48]FM_MakeSignedData [21:54:48]SAM_PROTO_SignData [21:54:48]wFMCommunicate request_size=4 [21:54:48]MH_SAM_APDU [21:54:48]CAPDU: 80 0D 01 02 [21:54:48]Write to MH i2c: E2 08 00 35 2D 80 0D 01 02 00 00 00 00 DB [21:54:48]Write i2c OK [21:54:48]MH_I2C_Read... [21:54:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:48]Read from MH i2c: E2 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 03 00 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 03 00 35 2D 00 90 00 D6 [21:54:48]RAPDU: 90 00 [21:54:48]wFMCommunicate OK [21:54:48]wFMCommunicate request_size=255 [21:54:48]MH_SAM_APDU [21:54:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 29 65 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 63 02 00 35 04 06 00 8C [21:54:48]Write to MH i2c: E2 02 01 36 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 29 65 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 63 02 00 35 04 06 00 8C 00 00 08 [21:54:48]Write i2c OK [21:54:48]MH_I2C_Read... [21:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:48]Read from MH i2c: E2 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 03 00 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 03 00 36 2D 00 90 00 D7 [21:54:48]RAPDU: 90 00 [21:54:48]wFMCommunicate OK [21:54:48]wFMCommunicate request_size=10 [21:54:48]MH_SAM_APDU [21:54:48]CAPDU: 80 0D 02 02 05 95 00 B8 AF DD [21:54:48]Write to MH i2c: E2 0D 00 37 2D 80 0D 02 02 05 00 95 00 B8 AF DD 00 00 C1 [21:54:48]Write i2c OK [21:54:48]MH_I2C_Read... [21:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:49]Read from MH i2c: E2 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: E2 03 00 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: E2 03 00 37 2D 00 90 00 D8 [21:54:49]RAPDU: 90 00 [21:54:49]wFMCommunicate OK [21:54:49]wFMCommunicate request_size=4 [21:54:49]MH_SAM_APDU [21:54:49]CAPDU: 80 0D 03 02 [21:54:49]Write to MH i2c: E2 08 00 38 2D 80 0D 03 02 00 00 00 00 E0 [21:54:49]Write i2c OK [21:54:49]MH_I2C_Read... [21:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:49]Read from MH i2c: E2 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: E2 0B 00 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: E2 0B 00 38 2D 00 2B D2 86 19 DF A9 D0 00 90 00 D5 [21:54:49]RAPDU: 2B D2 86 19 DF A9 D0 00 90 00 [21:54:49]wFMCommunicate OK [21:54:49]SAM_PROTO_SignData done [21:54:49]FM_MakeSignedData done [21:54:49]CreateOFDProtocolMessage [21:54:49]wFMCommunicate request_size=4 [21:54:49]MH_SAM_APDU [21:54:49]CAPDU: 80 11 00 00 [21:54:49]Write to MH i2c: E2 08 00 39 2D 80 11 00 00 00 00 00 00 E0 [21:54:49]Write i2c OK [21:54:49]MH_I2C_Read... [21:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:49]Read from MH i2c: E2 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: E2 17 00 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: E2 17 00 39 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [21:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:54:49]wFMCommunicate OK [21:54:49]CreateOFDProtocolMessage done [21:54:49]OFDSenderStorePacket 156439 [21:54:49]StoreOFDPacket docnum=156439 [21:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C 46 07 01 9B 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 29 65 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 63 02 00 35 04 06 00 8C 95 00 B8 AF DD 2B D2 86 19 DF A9 D0 00 [21:54:49]CheckFolder [21:54:49]dirname=/storage/ofd_packets [21:54:49]CheckFolder done [21:54:49]ProducePacketName [21:54:49]name=ofd_packets/00156439 [21:54:49]NVStorageSaveData ofd_packets/00156439 [21:54:49]File name is /storage/ofd_packets/00156439 [21:54:49]Write 301 bytes [21:54:49]NVStorageSaveData done [21:54:49]OFDSenderStorePacket done [21:54:49]KKMCreateOFDPacket done [21:54:49]NVStorageSaveData kkm_last_timestamp [21:54:49]File name is /storage/kkm_last_timestamp [21:54:49]Write 4 bytes [21:54:49]NVStorageSaveData done [21:54:49]ExternCall_PrintAddStr [21:54:49]wPrintStart [21:54:49]Write to MH i2c: 01 00 00 3A 2D 67 [21:54:49]Write i2c OK [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: 01 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: 01 07 00 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: 01 07 00 3A 2D 00 00 00 00 00 FF 0F 7C [21:54:49]RasterBufferAndPrint [21:54:49]line Счет N : (1)99254 [21:54:49]line ИНН: 02508201610067 [21:54:49]line Контрольно-Кассовый Чек [21:54:49]line ПРОДАЖА [21:54:49]line ТРК (МРК, ГНК) : 31 [21:54:49]line Товар: 2710124130 [21:54:49]line Аи-92-К-5 [21:54:49]line 10.470 * 66.90 [21:54:49]line = 700.44 [21:54:49]line НДС 12% НСП 1% [21:54:49]line > о реализуемом товаре [21:54:49]line ОКРУГЛЕНИЕ: -0.44 [21:54:49]line ИТОГО: 700.00 [21:54:49]line Внесено: 700.00 [21:54:49]line СДАЧА: 0.00 [21:54:49]line НСП 1% : 6.20 [21:54:49]line НДС 12% : 74.38 [21:54:49]line Наличными: 700.00 [21:54:49]line Безнал.: 0.00 [21:54:49]line Место: АЗС № 143 "Партнер Нефть" [21:54:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:54:49]line СНО: Общий режим [21:54:49]line Чек 340 26.10.2024 21:54 [21:54:49]line Смена: 536 ФФД: 1.0 [21:54:49]line ЗНМ: 0300000096 [21:54:49]line РНМ: 0000000000091693 [21:54:49]line Версия ККМ: 001 [21:54:49]line ФМ: 0000000000871792 [21:54:49]line ФД: 156439 [21:54:49]line ФПД: 154571590119389 [21:54:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215449&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156439&fm=154571590119389&tin=02508201610067®Number=0000000000091693&sum=70000 [21:54:49]OFD Sender: Processing packet 156439 [packets to send 31, broken 30] [21:54:49]ProducePacketName [21:54:49]name=ofd_packets/00156439 [21:54:49]OFD Sender: To server: pG, [21:54:49]CommunicateWithHost lk.salyk.kg:30040 [21:54:49]ConnectInit lk.salyk.kg [21:54:49]written 0, free lines is 4095 [21:54:49]Connected sock=10 [21:54:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C 46 07 01 9B 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 29 65 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 63 02 00 35 04 06 00 8C 95 00 B8 AF DD 2B D2 86 19 DF A9 D0 00 [21:54:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 77 AE 47 00 B7 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 63 02 00 F4 03 04 00 9B 0A 1D 67 B6 04 01 00 00 08 AC 61 64 FE 56 D2 16 [21:54:49]CommunicateWithHost err = 0 [21:54:49]CheckOFDResponse [21:54:49]1017 (14) - 77093643461234 [21:54:49]1041 (16) - 0000000000871792 [21:54:49]1040 (4) - 156439 [21:54:49]1012 (4) - 26.10.2024 15:28 [21:54:49]1206 (1) - 0 [21:54:49]OFD Sender: Remove packet 156439 [21:54:49]ProducePacketName [21:54:49]name=ofd_packets/00156439 [21:54:49]NVStorageDeleteData [21:54:49]Write to MH i2c: 01 00 00 65 2D 92 [21:54:49]Write i2c OK [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: 01 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: 01 07 00 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: 01 07 00 65 2D 00 00 00 00 00 E5 0C 8A [21:54:49]RasterBufferAndPrint [21:54:49]line [21:54:49]line [21:54:49]line [21:54:49]line [21:54:49]line [21:54:49]written 0, free lines is 3307 [21:54:49]process_action close_receipt done [21:54:49]requested_data is exist [21:54:49]produce_requested_data [21:54:49]requested_item fm.sn is exist - process it [21:54:49]wFMCommunicate request_size=4 [21:54:49]MH_SAM_APDU [21:54:49]CAPDU: 80 11 00 00 [21:54:49]Write to MH i2c: E2 08 00 6C 2D 80 11 00 00 00 00 00 00 13 [21:54:49]Write i2c OK [21:54:49]MH_I2C_Read... [21:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:49]Read from MH i2c: E2 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: E2 17 00 [21:54:49]MH_I2C_Read... [21:54:49]Read from MH i2c: E2 17 00 6C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [21:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:54:49]wFMCommunicate OK [21:54:49]requested_item fd.num is exist - process it [21:54:49]SAM_PROTO_GetFieldsCounters [21:54:49]wFMCommunicate request_size=4 [21:54:49]MH_SAM_APDU [21:54:49]CAPDU: 80 13 00 00 [21:54:49]Write to MH i2c: E2 08 00 6D 2D 80 13 00 00 00 00 00 00 16 [21:54:49]Write i2c OK [21:54:49]MH_I2C_Read... [21:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:50]Read from MH i2c: E2 [21:54:50]MH_I2C_Read... [21:54:50]Read from MH i2c: E2 62 00 [21:54:50]MH_I2C_Read... [21:54:50]Read from MH i2c: E2 62 00 6D 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 17 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [21:54: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 17 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:50]wFMCommunicate OK [21:54:50]SAM_PROTO_GetFieldsCounters done [21:54:50]requested_item shift.num is exist - process it [21:54:50]requested_item shift.opened is exist - process it [21:54:50]req_shift_opened [21:54:50]FM_GetShiftState [21:54:50]SAM_PROTO_GetShiftState [21:54:50]wFMCommunicate request_size=4 [21:54:50]MH_SAM_APDU [21:54:50]CAPDU: 80 13 01 00 [21:54:50]Write to MH i2c: E2 08 00 6E 2D 80 13 01 00 00 00 00 00 18 [21:54:50]Write i2c OK [21:54:50]MH_I2C_Read... [21:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:50]Read from MH i2c: E2 [21:54:50]MH_I2C_Read... [21:54:50]Read from MH i2c: E2 0E 00 [21:54:50]MH_I2C_Read... [21:54:50]Read from MH i2c: E2 0E 00 6E 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4D [21:54:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:54:50]wFMCommunicate OK [21:54:50]SAM_PROTO_GetShiftState done [21:54:50]FM_GetShiftState done [21:54:50]req_shift_opened done [21:54:50]requested_item shift.open_date is exist - process it [21:54:50]req_shift_open_date [21:54:50]req_shift_open_date done [21:54:50]produce_requested_data done [21:54:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156439,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [21:54:50]process_action_free close_receipt [21:54:50]json_value_free [21:54:50]json_value_free done [21:54:50]process_json_proto returns [21:54:50]Send response to host [21:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156439,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [21:54:50]free response buf [21:54:50]execute_script done [21:54:50]execute_script returns [21:54:50]free content buf [21:54:50]Sock 8.Close socket [21:54:50]Sock 8.Thread stoped [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:11]accept exits with 9 [21:55:11]New connection [21:55:11]New thread 3066834276 created [21:55:11]Thread 3066977636 joined [21:55:11]Waiting for new connection... [21:55:11] Sock 9.Parse request [21:55:11]Sock 9.Check first char [21:55:11]Sock 9.First char is OK [21:55:11]request: POST /json_proto HTTP/1.0 [21:55:11]Method: POST [21:55:11]URL: /json_proto [21:55:11]Method is POST - this is cgi request [21:55:11]url: /json_proto [21:55:11]query_string will be loaded in cgi processing [21:55:11]execute_cgi json_proto POST (null) [21:55:11]execute_cgi path=json_proto method=POST [21:55:11]POST find Content-Length [21:55:11]Host: 172.17.63.3:8080 [21:55:11]Content-Length: 677 [21:55:11]Content-Type: application/json [21:55:11] [21:55:11]POST finish read [21:55:11]Found Content-Length = 677 [21:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:11]execute_script... [21:55:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:11]POST & json_proto [21:55:11]process_json_proto [21:55:11]json parsed OK: [21:55:11]protocol is kg_v1.0 [21:55:11]action value=close_receipt [21:55:11]process_action close_receipt [21:55:11]cmd_close_receipt [21:55:11]MH_GetDate [21:55:11]Write to MH i2c: F0 00 00 6F 2D 8B [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: F0 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: F0 09 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: F0 09 00 6F 2D 00 41 65 1D 67 50 D1 6C 64 AF [21:55:11]GetLastDocTimeStamp 1729979689 [21:55:11]current date 1729979713 [21:55:11]FM_GetShiftState [21:55:11]SAM_PROTO_GetShiftState [21:55:11]wFMCommunicate request_size=4 [21:55:11]MH_SAM_APDU [21:55:11]CAPDU: 80 13 01 00 [21:55:11]Write to MH i2c: E2 08 00 70 2D 80 13 01 00 00 00 00 00 1A [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 0E 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 0E 00 70 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4F [21:55:11]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:55:11]wFMCommunicate OK [21:55:11]SAM_PROTO_GetShiftState done [21:55:11]FM_GetShiftState done [21:55:11]opened in 1729902702 [21:55:11]opened+sec_in_day 1729989102 [21:55:11]quantity*price = 80012 [21:55:11]sum+1 = 80013 [21:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 341 26.10.2024 21:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156440 ФПД: 59560292173142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215513&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156440&fm=59560292173142&tin=02508201610067®Number=0000000000091693&sum=80000 [21:55:12]StoreToDocumentArchive [21:55:12]shift 536 fd 156440 [21:55:12]save to /storage/0536/doc_00156440 [21:55:12]save last doc name /storage/0536/doc_00156440 to /storage/kkm_last_doc_name [21:55:12]save OK [21:55:12]Clear old archive folders... [21:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:12]tlvbuf is 017825B0 [21:55:12]SAM_PROTO_ClearQueue [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 09 00 00 [21:55:12]Write to MH i2c: E2 08 00 7D 2D 80 09 00 00 00 00 00 00 1C [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 7D 2D 00 90 00 1E [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]SAM_PROTO_ClearQueue done [21:55:12]KKMCreateOFDPacket [21:55:12]OFDProtocolAddRootSTLVToBuf [21:55:12]FM_MakeSignedData [21:55:12]FM_MakeSignedData [21:55:12]SAM_PROTO_SignData [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 01 02 [21:55:12]Write to MH i2c: E2 08 00 7E 2D 80 0D 01 02 00 00 00 00 24 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 7E 2D 00 90 00 1F [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]wFMCommunicate request_size=255 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 41 65 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 63 02 00 35 04 06 00 36 [21:55:12]Write to MH i2c: E2 02 01 7F 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 41 65 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 63 02 00 35 04 06 00 36 00 00 F1 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 7F 2D 00 90 00 20 [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]wFMCommunicate request_size=10 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 02 02 05 2B 76 0E C5 56 [21:55:12]Write to MH i2c: E2 0D 00 80 2D 80 0D 02 02 05 00 2B 76 0E C5 56 00 00 FB [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 80 2D 00 90 00 21 [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 03 02 [21:55:12]Write to MH i2c: E2 08 00 81 2D 80 0D 03 02 00 00 00 00 29 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 0B 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 0B 00 81 2D 00 CE DD 9F 8D F7 E9 09 CD 90 00 B7 [21:55:12]RAPDU: CE DD 9F 8D F7 E9 09 CD 90 00 [21:55:12]wFMCommunicate OK [21:55:12]SAM_PROTO_SignData done [21:55:12]FM_MakeSignedData done [21:55:12]CreateOFDProtocolMessage [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 11 00 00 [21:55:12]Write to MH i2c: E2 08 00 82 2D 80 11 00 00 00 00 00 00 29 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 17 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 17 00 82 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [21:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:55:12]wFMCommunicate OK [21:55:12]CreateOFDProtocolMessage done [21:55:12]OFDSenderStorePacket 156440 [21:55:12]StoreOFDPacket docnum=156440 [21:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FE 3A 07 01 63 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 41 65 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 63 02 00 35 04 06 00 36 2B 76 0E C5 56 CE DD 9F 8D F7 E9 09 CD [21:55:12]CheckFolder [21:55:12]dirname=/storage/ofd_packets [21:55:12]CheckFolder done [21:55:12]ProducePacketName [21:55:12]name=ofd_packets/00156440 [21:55:12]NVStorageSaveData ofd_packets/00156440 [21:55:12]File name is /storage/ofd_packets/00156440 [21:55:12]Write 301 bytes [21:55:12]NVStorageSaveData done [21:55:12]OFDSenderStorePacket done [21:55:12]KKMCreateOFDPacket done [21:55:12]NVStorageSaveData kkm_last_timestamp [21:55:12]File name is /storage/kkm_last_timestamp [21:55:12]Write 4 bytes [21:55:12]NVStorageSaveData done [21:55:12]ExternCall_PrintAddStr [21:55:12]wPrintStart [21:55:12]Write to MH i2c: 01 00 00 83 2D B0 [21:55:12]OFD Sender: Processing packet 156440 [packets to send 31, broken 30] [21:55:12]ProducePacketName [21:55:12]name=ofd_packets/00156440 [21:55:12]OFD Sender: To server: pG, [21:55:12]CommunicateWithHost lk.salyk.kg:30040 [21:55:12]ConnectInit lk.salyk.kg [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 83 2D 00 00 00 00 00 FF 0F C5 [21:55:12]RasterBufferAndPrint [21:55:12]line Счет N : (1)99255 [21:55:12]line ИНН: 02508201610067 [21:55:12]line Контрольно-Кассовый Чек [21:55:12]line ПРОДАЖА [21:55:12]line ТРК (МРК, ГНК) : 21 [21:55:12]line Товар: 2710124130 [21:55:12]line Аи-92-К-5 [21:55:12]line 11.960 * 66.90 [21:55:12]line = 800.12 [21:55:12]line НДС 12% НСП 1% [21:55:12]line > о реализуемом товаре [21:55:12]line ОКРУГЛЕНИЕ: -0.12 [21:55:12]line ИТОГО: 800.00 [21:55:12]line Внесено: 800.00 [21:55:12]line СДАЧА: 0.00 [21:55:12]line НСП 1% : 7.08 [21:55:12]line НДС 12% : 84.97 [21:55:12]line Наличными: 800.00 [21:55:12]line Безнал.: 0.00 [21:55:12]line Место: АЗС № 143 "Партнер Нефть" [21:55:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:55:12]line СНО: Общий режим [21:55:12]line Чек 341 26.10.2024 21:55 [21:55:12]line Смена: 536 ФФД: 1.0 [21:55:12]line ЗНМ: 0300000096 [21:55:12]line РНМ: 0000000000091693 [21:55:12]line Версия ККМ: 001 [21:55:12]line ФМ: 0000000000871792 [21:55:12]line ФД: 156440 [21:55:12]line ФПД: 59560292173142 [21:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215513&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156440&fm=59560292173142&tin=02508201610067®Number=0000000000091693&sum=80000 [21:55:13]Connected sock=10 [21:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FE 3A 07 01 63 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 41 65 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 63 02 00 35 04 06 00 36 2B 76 0E C5 56 CE DD 9F 8D F7 E9 09 CD [21:55:13]written 0, free lines is 4095 [21:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4B 4C 47 00 27 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 63 02 00 F4 03 04 00 B2 0A 1D 67 B6 04 01 00 00 76 00 7D 00 8B 8F 5E D1 [21:55:13]CommunicateWithHost err = 0 [21:55:13]CheckOFDResponse [21:55:13]1017 (14) - 77093643461234 [21:55:13]1041 (16) - 0000000000871792 [21:55:13]1040 (4) - 156440 [21:55:13]1012 (4) - 26.10.2024 15:28 [21:55:13]1206 (1) - 0 [21:55:13]OFD Sender: Remove packet 156440 [21:55:13]ProducePacketName [21:55:13]name=ofd_packets/00156440 [21:55:13]NVStorageDeleteData [21:55:13]Write to MH i2c: 01 00 00 AE 2D DB [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: 01 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: 01 07 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: 01 07 00 AE 2D 00 00 00 00 00 EB 0C D9 [21:55:13]RasterBufferAndPrint [21:55:13]line [21:55:13]line [21:55:13]line [21:55:13]line [21:55:13]line [21:55:13]written 0, free lines is 3313 [21:55:13]process_action close_receipt done [21:55:13]requested_data is exist [21:55:13]produce_requested_data [21:55:13]requested_item fm.sn is exist - process it [21:55:13]wFMCommunicate request_size=4 [21:55:13]MH_SAM_APDU [21:55:13]CAPDU: 80 11 00 00 [21:55:13]Write to MH i2c: E2 08 00 B5 2D 80 11 00 00 00 00 00 00 5C [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:13]Read from MH i2c: E2 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 17 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 17 00 B5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [21:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:55:13]wFMCommunicate OK [21:55:13]requested_item fd.num is exist - process it [21:55:13]SAM_PROTO_GetFieldsCounters [21:55:13]wFMCommunicate request_size=4 [21:55:13]MH_SAM_APDU [21:55:13]CAPDU: 80 13 00 00 [21:55:13]Write to MH i2c: E2 08 00 B6 2D 80 13 00 00 00 00 00 00 5F [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:13]Read from MH i2c: E2 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 62 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 62 00 B6 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 18 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [21:55: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 18 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:13]wFMCommunicate OK [21:55:13]SAM_PROTO_GetFieldsCounters done [21:55:13]requested_item shift.num is exist - process it [21:55:13]requested_item shift.opened is exist - process it [21:55:13]req_shift_opened [21:55:13]FM_GetShiftState [21:55:13]SAM_PROTO_GetShiftState [21:55:13]wFMCommunicate request_size=4 [21:55:13]MH_SAM_APDU [21:55:13]CAPDU: 80 13 01 00 [21:55:13]Write to MH i2c: E2 08 00 B7 2D 80 13 01 00 00 00 00 00 61 [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]OFD Sender: No OFD packet to send [21:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:13]Read from MH i2c: E2 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 0E 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 0E 00 B7 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 96 [21:55:13]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:55:13]wFMCommunicate OK [21:55:13]SAM_PROTO_GetShiftState done [21:55:13]FM_GetShiftState done [21:55:13]req_shift_opened done [21:55:13]requested_item shift.open_date is exist - process it [21:55:13]req_shift_open_date [21:55:13]req_shift_open_date done [21:55:13]produce_requested_data done [21:55:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156440,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [21:55:13]process_action_free close_receipt [21:55:13]json_value_free [21:55:13]json_value_free done [21:55:13]process_json_proto returns [21:55:13]Send response to host [21:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156440,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [21:55:13]free response buf [21:55:13]execute_script done [21:55:13]execute_script returns [21:55:13]free content buf [21:55:13]Sock 9.Close socket [21:55:13]Sock 9.Thread stoped [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:57]accept exits with 8 [21:58:57]New connection [21:58:57]New thread 3066977636 created [21:58:57]Thread 3066834276 joined [21:58:57]Waiting for new connection... [21:58:57] Sock 8.Parse request [21:58:57]Sock 8.Check first char [21:58:57]Sock 8.First char is OK [21:58:57]request: POST /json_proto HTTP/1.0 [21:58:57]Method: POST [21:58:57]URL: /json_proto [21:58:57]Method is POST - this is cgi request [21:58:57]url: /json_proto [21:58:57]query_string will be loaded in cgi processing [21:58:57]execute_cgi json_proto POST (null) [21:58:57]execute_cgi path=json_proto method=POST [21:58:57]POST find Content-Length [21:58:57]Host: 172.17.63.3:8080 [21:58:57]Content-Length: 676 [21:58:57]Content-Type: application/json [21:58:57] [21:58:57]POST finish read [21:58:57]Found Content-Length = 676 [21:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:57]execute_script... [21:58:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:57]POST & json_proto [21:58:57]process_json_proto [21:58:57]json parsed OK: [21:58:57]protocol is kg_v1.0 [21:58:57]action value=close_receipt [21:58:57]process_action close_receipt [21:58:57]cmd_close_receipt [21:58:57]MH_GetDate [21:58:57]Write to MH i2c: F0 00 00 B8 2D D4 [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: F0 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: F0 09 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: F0 09 00 B8 2D 00 24 66 1D 67 50 D1 6C 64 DC [21:58:57]GetLastDocTimeStamp 1729979713 [21:58:57]current date 1729979940 [21:58:57]FM_GetShiftState [21:58:57]SAM_PROTO_GetShiftState [21:58:57]wFMCommunicate request_size=4 [21:58:57]MH_SAM_APDU [21:58:57]CAPDU: 80 13 01 00 [21:58:57]Write to MH i2c: E2 08 00 B9 2D 80 13 01 00 00 00 00 00 63 [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:57]Read from MH i2c: E2 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 0E 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: E2 0E 00 B9 2D 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 98 [21:58:57]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:58:57]wFMCommunicate OK [21:58:57]SAM_PROTO_GetShiftState done [21:58:57]FM_GetShiftState done [21:58:57]opened in 1729902702 [21:58:57]opened+sec_in_day 1729989102 [21:58:57]quantity*price = 40006 [21:58:57]sum+1 = 40007 [21:58:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 342 26.10.2024 21:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156441 ФПД: 231523574713854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215900&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156441&fm=231523574713854&tin=02508201610067®Number=0000000000091693&sum=40000 [21:58:59]StoreToDocumentArchive [21:58:59]shift 536 fd 156441 [21:58:59]save to /storage/0536/doc_00156441 [21:58:59]save last doc name /storage/0536/doc_00156441 to /storage/kkm_last_doc_name [21:58:59]save OK [21:58:59]Clear old archive folders... [21:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:59]tlvbuf is B6DAE2C0 [21:58:59]SAM_PROTO_ClearQueue [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 09 00 00 [21:58:59]Write to MH i2c: E2 08 00 C6 2D 80 09 00 00 00 00 00 00 65 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]OFD Sender: No OFD packet to send [21:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 C6 2D 00 90 00 67 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]SAM_PROTO_ClearQueue done [21:58:59]KKMCreateOFDPacket [21:58:59]OFDProtocolAddRootSTLVToBuf [21:58:59]FM_MakeSignedData [21:58:59]FM_MakeSignedData [21:58:59]SAM_PROTO_SignData [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 01 02 [21:58:59]Write to MH i2c: E2 08 00 C7 2D 80 0D 01 02 00 00 00 00 6D [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 C7 2D 00 90 00 68 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]wFMCommunicate request_size=255 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 24 66 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 63 02 00 35 04 06 00 D2 [21:58:59]Write to MH i2c: E2 02 01 C8 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 24 66 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 63 02 00 35 04 06 00 D2 00 00 9F [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 C8 2D 00 90 00 69 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]wFMCommunicate request_size=10 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 02 02 05 91 C8 6D 8D FE [21:58:59]Write to MH i2c: E2 0D 00 C9 2D 80 0D 02 02 05 00 91 C8 6D 8D FE 00 00 CB [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 C9 2D 00 90 00 6A [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 03 02 [21:58:59]Write to MH i2c: E2 08 00 CA 2D 80 0D 03 02 00 00 00 00 72 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 0B 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 0B 00 CA 2D 00 B0 0E 36 39 F0 5E 53 E7 90 00 28 [21:58:59]RAPDU: B0 0E 36 39 F0 5E 53 E7 90 00 [21:58:59]wFMCommunicate OK [21:58:59]SAM_PROTO_SignData done [21:58:59]FM_MakeSignedData done [21:58:59]CreateOFDProtocolMessage [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 11 00 00 [21:58:59]Write to MH i2c: E2 08 00 CB 2D 80 11 00 00 00 00 00 00 72 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 17 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 17 00 CB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C7 [21:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:58:59]wFMCommunicate OK [21:58:59]CreateOFDProtocolMessage done [21:58:59]OFDSenderStorePacket 156441 [21:58:59]StoreOFDPacket docnum=156441 [21:58:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C0 8C 07 01 85 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 24 66 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 63 02 00 35 04 06 00 D2 91 C8 6D 8D FE B0 0E 36 39 F0 5E 53 E7 [21:58:59]CheckFolder [21:58:59]dirname=/storage/ofd_packets [21:58:59]CheckFolder done [21:58:59]ProducePacketName [21:58:59]name=ofd_packets/00156441 [21:58:59]NVStorageSaveData ofd_packets/00156441 [21:58:59]File name is /storage/ofd_packets/00156441 [21:58:59]Write 301 bytes [21:58:59]NVStorageSaveData done [21:58:59]OFDSenderStorePacket done [21:58:59]KKMCreateOFDPacket done [21:58:59]NVStorageSaveData kkm_last_timestamp [21:58:59]File name is /storage/kkm_last_timestamp [21:58:59]Write 4 bytes [21:58:59]NVStorageSaveData done [21:58:59]ExternCall_PrintAddStr [21:58:59]wPrintStart [21:58:59]Write to MH i2c: 01 00 00 CC 2D F9 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: 01 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: 01 07 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: 01 07 00 CC 2D 00 00 00 00 00 FF 0F 0E [21:58:59]RasterBufferAndPrint [21:58:59]line Счет N : (1)99256 [21:58:59]line ИНН: 02508201610067 [21:58:59]line Контрольно-Кассовый Чек [21:58:59]line ПРОДАЖА [21:58:59]line ТРК (МРК, ГНК) : 11 [21:58:59]line Товар: 2710124130 [21:58:59]line Аи-92-К-5 [21:58:59]line 5.980 * 66.90 [21:58:59]line = 400.06 [21:58:59]line НДС 12% НСП 1% [21:58:59]line > о реализуемом товаре [21:58:59]line ОКРУГЛЕНИЕ: -0.06 [21:58:59]line ИТОГО: 400.00 [21:58:59]line Внесено: 400.00 [21:58:59]line СДАЧА: 0.00 [21:58:59]line НСП 1% : 3.54 [21:58:59]line НДС 12% : 42.48 [21:58:59]line Наличными: 400.00 [21:58:59]line Безнал.: 0.00 [21:58:59]line Место: АЗС № 143 "Партнер Нефть" [21:58:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:58:59]line СНО: Общий режим [21:58:59]line Чек 342 26.10.2024 21:59 [21:58:59]line Смена: 536 ФФД: 1.0 [21:58:59]line ЗНМ: 0300000096 [21:58:59]line РНМ: 0000000000091693 [21:58:59]line Версия ККМ: 001 [21:58:59]line ФМ: 0000000000871792 [21:58:59]line ФД: 156441 [21:58:59]line ФПД: 231523574713854 [21:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215900&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156441&fm=231523574713854&tin=02508201610067®Number=0000000000091693&sum=40000 [21:58:59]written 0, free lines is 4095 [21:58:59]OFD Sender: Processing packet 156441 [packets to send 31, broken 30] [21:58:59]ProducePacketName [21:58:59]name=ofd_packets/00156441 [21:58:59]OFD Sender: To server: pG, [21:58:59]CommunicateWithHost lk.salyk.kg:30040 [21:58:59]ConnectInit lk.salyk.kg [21:59:00]Connected sock=10 [21:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C0 8C 07 01 85 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 24 66 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 63 02 00 35 04 06 00 D2 91 C8 6D 8D FE B0 0E 36 39 F0 5E 53 E7 [21:59:00]Write to MH i2c: 01 00 00 F7 2D 24 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 07 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 07 00 F7 2D 00 00 00 00 00 E4 0C 1B [21:59:00]RasterBufferAndPrint [21:59:00]line [21:59:00]line [21:59:00]line [21:59:00]line [21:59:00]line [21:59:00]written 0, free lines is 3306 [21:59:00]process_action close_receipt done [21:59:00]requested_data is exist [21:59:00]produce_requested_data [21:59:00]requested_item fm.sn is exist - process it [21:59:00]wFMCommunicate request_size=4 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 11 00 00 [21:59:00]Write to MH i2c: E2 08 00 FE 2D 80 11 00 00 00 00 00 00 A5 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 17 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 17 00 FE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [21:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:59:00]wFMCommunicate OK [21:59:00]requested_item fd.num is exist - process it [21:59:00]SAM_PROTO_GetFieldsCounters [21:59:00]wFMCommunicate request_size=4 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 13 00 00 [21:59:00]Write to MH i2c: E2 08 00 FF 2D 80 13 00 00 00 00 00 00 A8 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 62 00 [21:59:00]MH_I2C_Read... [21:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 26 36 47 00 21 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 63 02 00 F4 03 04 00 95 0B 1D 67 B6 04 01 00 00 CF EB 5B 1F 06 DE 9C 8A [21:59:00]CommunicateWithHost err = 0 [21:59:00]CheckOFDResponse [21:59:00]1017 (14) - 77093643461234 [21:59:00]1041 (16) - 0000000000871792 [21:59:00]1040 (4) - 156441 [21:59:00]1012 (4) - 26.10.2024 15:32 [21:59:00]1206 (1) - 0 [21:59:00]OFD Sender: Remove packet 156441 [21:59:00]ProducePacketName [21:59:00]name=ofd_packets/00156441 [21:59:00]NVStorageDeleteData [21:59:00]Read from MH i2c: E2 62 00 FF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 19 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [21:59: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 19 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:00]wFMCommunicate OK [21:59:00]SAM_PROTO_GetFieldsCounters done [21:59:00]requested_item shift.num is exist - process it [21:59:00]requested_item shift.opened is exist - process it [21:59:00]req_shift_opened [21:59:00]FM_GetShiftState [21:59:00]SAM_PROTO_GetShiftState [21:59:00]wFMCommunicate request_size=4 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 13 01 00 [21:59:00]Write to MH i2c: E2 08 00 00 2E 80 13 01 00 00 00 00 00 AB [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 0E 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 0E 00 00 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E0 [21:59:00]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [21:59:00]wFMCommunicate OK [21:59:00]SAM_PROTO_GetShiftState done [21:59:00]FM_GetShiftState done [21:59:00]req_shift_opened done [21:59:00]requested_item shift.open_date is exist - process it [21:59:00]req_shift_open_date [21:59:00]req_shift_open_date done [21:59:00]produce_requested_data done [21:59:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156441,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [21:59:00]process_action_free close_receipt [21:59:00]json_value_free [21:59:00]json_value_free done [21:59:00]process_json_proto returns [21:59:00]Send response to host [21:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156441,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [21:59:00]free response buf [21:59:00]execute_script done [21:59:00]execute_script returns [21:59:00]free content buf [21:59:00]Sock 8.Close socket [21:59:00]Sock 8.Thread stoped [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:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]accept exits with 9 [22:10:51]New connection [22:10:51]New thread 3066834276 created [22:10:51]Thread 3066977636 joined [22:10:51]Waiting for new connection... [22:10:51] Sock 9.Parse request [22:10:51]Sock 9.Check first char [22:10:51]Sock 9.First char is OK [22:10:51]request: POST /json_proto HTTP/1.0 [22:10:51]Method: POST [22:10:51]URL: /json_proto [22:10:51]Method is POST - this is cgi request [22:10:51]url: /json_proto [22:10:51]query_string will be loaded in cgi processing [22:10:51]execute_cgi json_proto POST (null) [22:10:51]execute_cgi path=json_proto method=POST [22:10:51]POST find Content-Length [22:10:51]Host: 172.17.63.3:8080 [22:10:51]Content-Length: 676 [22:10:51]Content-Type: application/json [22:10:51] [22:10:51]POST finish read [22:10:51]Found Content-Length = 676 [22:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:51]execute_script... [22:10:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:51]POST & json_proto [22:10:51]process_json_proto [22:10:51]json parsed OK: [22:10:51]protocol is kg_v1.0 [22:10:51]action value=close_receipt [22:10:51]process_action close_receipt [22:10:51]cmd_close_receipt [22:10:51]MH_GetDate [22:10:51]Write to MH i2c: F0 00 00 01 2E 1E [22:10:51]Write i2c OK [22:10:51]MH_I2C_Read... [22:10:51]Read from MH i2c: F0 [22:10:51]MH_I2C_Read... [22:10:51]Read from MH i2c: F0 09 00 [22:10:51]MH_I2C_Read... [22:10:51]Read from MH i2c: F0 09 00 01 2E 00 ED 68 1D 67 50 D1 6C 64 F1 [22:10:51]GetLastDocTimeStamp 1729979940 [22:10:51]current date 1729980653 [22:10:51]FM_GetShiftState [22:10:51]SAM_PROTO_GetShiftState [22:10:51]wFMCommunicate request_size=4 [22:10:51]MH_SAM_APDU [22:10:51]CAPDU: 80 13 01 00 [22:10:51]Write to MH i2c: E2 08 00 02 2E 80 13 01 00 00 00 00 00 AD [22:10:51]Write i2c OK [22:10:51]MH_I2C_Read... [22:10:51]OFD Sender: No OFD packet to send [22:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:51]Read from MH i2c: E2 [22:10:51]MH_I2C_Read... [22:10:51]Read from MH i2c: E2 0E 00 [22:10:51]MH_I2C_Read... [22:10:51]Read from MH i2c: E2 0E 00 02 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 E2 [22:10:51]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [22:10:51]wFMCommunicate OK [22:10:51]SAM_PROTO_GetShiftState done [22:10:51]FM_GetShiftState done [22:10:51]opened in 1729902702 [22:10:51]opened+sec_in_day 1729989102 [22:10:51]quantity*price = 45023 [22:10:51]sum+1 = 45025 [22:10:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 343 26.10.2024 22:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156442 ФПД: 157379790434433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221053&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156442&fm=157379790434433&tin=02508201610067®Number=0000000000091693&sum=45000 [22:10:52]StoreToDocumentArchive [22:10:52]shift 536 fd 156442 [22:10:52]save to /storage/0536/doc_00156442 [22:10:52]save last doc name /storage/0536/doc_00156442 to /storage/kkm_last_doc_name [22:10:52]save OK [22:10:52]Clear old archive folders... [22:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:10:52]tlvbuf is B6F5B5F0 [22:10:52]SAM_PROTO_ClearQueue [22:10:52]wFMCommunicate request_size=4 [22:10:52]MH_SAM_APDU [22:10:52]CAPDU: 80 09 00 00 [22:10:52]Write to MH i2c: E2 08 00 0F 2E 80 09 00 00 00 00 00 00 AF [22:10:52]Write i2c OK [22:10:52]MH_I2C_Read... [22:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:52]Read from MH i2c: E2 [22:10:52]MH_I2C_Read... [22:10:52]Read from MH i2c: E2 03 00 [22:10:52]MH_I2C_Read... [22:10:52]Read from MH i2c: E2 03 00 0F 2E 00 90 00 B1 [22:10:52]RAPDU: 90 00 [22:10:52]wFMCommunicate OK [22:10:52]SAM_PROTO_ClearQueue done [22:10:52]KKMCreateOFDPacket [22:10:52]OFDProtocolAddRootSTLVToBuf [22:10:52]FM_MakeSignedData [22:10:52]FM_MakeSignedData [22:10:52]SAM_PROTO_SignData [22:10:52]wFMCommunicate request_size=4 [22:10:52]MH_SAM_APDU [22:10:52]CAPDU: 80 0D 01 02 [22:10:52]Write to MH i2c: E2 08 00 10 2E 80 0D 01 02 00 00 00 00 B7 [22:10:52]Write i2c OK [22:10:52]MH_I2C_Read... [22:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:52]Read from MH i2c: E2 [22:10:52]MH_I2C_Read... [22:10:52]Read from MH i2c: E2 03 00 [22:10:52]MH_I2C_Read... [22:10:52]Read from MH i2c: E2 03 00 10 2E 00 90 00 B2 [22:10:52]RAPDU: 90 00 [22:10:52]wFMCommunicate OK [22:10:52]wFMCommunicate request_size=255 [22:10:52]MH_SAM_APDU [22:10:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 ED 68 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 63 02 00 35 04 06 00 8F [22:10:52]Write to MH i2c: E2 02 01 11 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 ED 68 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 63 02 00 35 04 06 00 8F 00 00 8A [22:10:52]Write i2c OK [22:10:52]MH_I2C_Read... [22:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:52]Read from MH i2c: E2 [22:10:52]MH_I2C_Read... [22:10:52]Read from MH i2c: E2 03 00 [22:10:52]MH_I2C_Read... [22:10:52]Read from MH i2c: E2 03 00 11 2E 00 90 00 B3 [22:10:52]RAPDU: 90 00 [22:10:52]wFMCommunicate OK [22:10:52]wFMCommunicate request_size=10 [22:10:52]MH_SAM_APDU [22:10:52]CAPDU: 80 0D 02 02 05 22 D6 80 F0 81 [22:10:52]Write to MH i2c: E2 0D 00 12 2E 80 0D 02 02 05 00 22 D6 80 F0 81 00 00 AD [22:10:52]Write i2c OK [22:10:52]MH_I2C_Read... [22:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:53]Read from MH i2c: E2 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: E2 03 00 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: E2 03 00 12 2E 00 90 00 B4 [22:10:53]RAPDU: 90 00 [22:10:53]wFMCommunicate OK [22:10:53]wFMCommunicate request_size=4 [22:10:53]MH_SAM_APDU [22:10:53]CAPDU: 80 0D 03 02 [22:10:53]Write to MH i2c: E2 08 00 13 2E 80 0D 03 02 00 00 00 00 BC [22:10:53]Write i2c OK [22:10:53]MH_I2C_Read... [22:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:53]Read from MH i2c: E2 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: E2 0B 00 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: E2 0B 00 13 2E 00 B1 C0 57 07 25 59 FA D9 90 00 DD [22:10:53]RAPDU: B1 C0 57 07 25 59 FA D9 90 00 [22:10:53]wFMCommunicate OK [22:10:53]SAM_PROTO_SignData done [22:10:53]FM_MakeSignedData done [22:10:53]CreateOFDProtocolMessage [22:10:53]wFMCommunicate request_size=4 [22:10:53]MH_SAM_APDU [22:10:53]CAPDU: 80 11 00 00 [22:10:53]Write to MH i2c: E2 08 00 14 2E 80 11 00 00 00 00 00 00 BC [22:10:53]Write i2c OK [22:10:53]MH_I2C_Read... [22:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:53]Read from MH i2c: E2 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: E2 17 00 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: E2 17 00 14 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 11 [22:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:10:53]wFMCommunicate OK [22:10:53]CreateOFDProtocolMessage done [22:10:53]OFDSenderStorePacket 156442 [22:10:53]StoreOFDPacket docnum=156442 [22:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3B A3 07 01 4C 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 ED 68 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 63 02 00 35 04 06 00 8F 22 D6 80 F0 81 B1 C0 57 07 25 59 FA D9 [22:10:53]CheckFolder [22:10:53]dirname=/storage/ofd_packets [22:10:53]CheckFolder done [22:10:53]ProducePacketName [22:10:53]name=ofd_packets/00156442 [22:10:53]NVStorageSaveData ofd_packets/00156442 [22:10:53]File name is /storage/ofd_packets/00156442 [22:10:53]Write 301 bytes [22:10:53]NVStorageSaveData done [22:10:53]OFDSenderStorePacket done [22:10:53]KKMCreateOFDPacket done [22:10:53]NVStorageSaveData kkm_last_timestamp [22:10:53]File name is /storage/kkm_last_timestamp [22:10:53]Write 4 bytes [22:10:53]NVStorageSaveData done [22:10:53]ExternCall_PrintAddStr [22:10:53]wPrintStart [22:10:53]Write to MH i2c: 01 00 00 15 2E 43 [22:10:53]Write i2c OK [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: 01 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: 01 07 00 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: 01 07 00 15 2E 00 00 00 00 00 FF 0F 58 [22:10:53]RasterBufferAndPrint [22:10:53]line Счет N : (1)99257 [22:10:53]line ИНН: 02508201610067 [22:10:53]line Контрольно-Кассовый Чек [22:10:53]line ПРОДАЖА [22:10:53]line ТРК (МРК, ГНК) : 31 [22:10:53]line Товар: 2710124130 [22:10:53]line Аи-92-К-5 [22:10:53]line 6.730 * 66.90 [22:10:53]line = 450.24 [22:10:53]line НДС 12% НСП 1% [22:10:53]line > о реализуемом товаре [22:10:53]line ОКРУГЛЕНИЕ: -0.24 [22:10:53]line ИТОГО: 450.00 [22:10:53]line Внесено: 450.00 [22:10:53]line СДАЧА: 0.00 [22:10:53]line НСП 1% : 3.98 [22:10:53]line НДС 12% : 47.81 [22:10:53]line Наличными: 450.00 [22:10:53]line Безнал.: 0.00 [22:10:53]line Место: АЗС № 143 "Партнер Нефть" [22:10:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:10:53]line СНО: Общий режим [22:10:53]line Чек 343 26.10.2024 22:10 [22:10:53]line Смена: 536 ФФД: 1.0 [22:10:53]line ЗНМ: 0300000096 [22:10:53]line РНМ: 0000000000091693 [22:10:53]line Версия ККМ: 001 [22:10:53]line ФМ: 0000000000871792 [22:10:53]line ФД: 156442 [22:10:53]line ФПД: 157379790434433 [22:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221053&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156442&fm=157379790434433&tin=02508201610067®Number=0000000000091693&sum=45000 [22:10:53]OFD Sender: Processing packet 156442 [packets to send 31, broken 30] [22:10:53]ProducePacketName [22:10:53]name=ofd_packets/00156442 [22:10:53]OFD Sender: To server: pG, [22:10:53]CommunicateWithHost lk.salyk.kg:30040 [22:10:53]ConnectInit lk.salyk.kg [22:10:53]written 0, free lines is 4095 [22:10:53]Connected sock=10 [22:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3B A3 07 01 4C 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 ED 68 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 63 02 00 35 04 06 00 8F 22 D6 80 F0 81 B1 C0 57 07 25 59 FA D9 [22:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 28 0E 47 00 6C D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 63 02 00 F4 03 04 00 5F 0E 1D 67 B6 04 01 00 00 07 71 60 B6 50 D0 EA 55 [22:10:53]CommunicateWithHost err = 0 [22:10:53]CheckOFDResponse [22:10:53]1017 (14) - 77093643461234 [22:10:53]1041 (16) - 0000000000871792 [22:10:53]1040 (4) - 156442 [22:10:53]1012 (4) - 26.10.2024 15:44 [22:10:53]1206 (1) - 0 [22:10:53]OFD Sender: Remove packet 156442 [22:10:53]ProducePacketName [22:10:53]name=ofd_packets/00156442 [22:10:53]NVStorageDeleteData [22:10:53]Write to MH i2c: 01 00 00 40 2E 6E [22:10:53]Write i2c OK [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: 01 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: 01 07 00 [22:10:53]MH_I2C_Read... [22:10:53]Read from MH i2c: 01 07 00 40 2E 00 00 00 00 00 EF 0C 70 [22:10:53]RasterBufferAndPrint [22:10:53]line [22:10:53]line [22:10:53]line [22:10:53]line [22:10:53]line [22:10:53]written 0, free lines is 3320 [22:10:53]process_action close_receipt done [22:10:53]requested_data is exist [22:10:53]produce_requested_data [22:10:53]requested_item fm.sn is exist - process it [22:10:53]wFMCommunicate request_size=4 [22:10:53]MH_SAM_APDU [22:10:53]CAPDU: 80 11 00 00 [22:10:53]Write to MH i2c: E2 08 00 47 2E 80 11 00 00 00 00 00 00 EF [22:10:53]Write i2c OK [22:10:53]MH_I2C_Read... [22:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:54]Read from MH i2c: E2 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: E2 17 00 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: E2 17 00 47 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [22:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:10:54]wFMCommunicate OK [22:10:54]requested_item fd.num is exist - process it [22:10:54]SAM_PROTO_GetFieldsCounters [22:10:54]wFMCommunicate request_size=4 [22:10:54]MH_SAM_APDU [22:10:54]CAPDU: 80 13 00 00 [22:10:54]Write to MH i2c: E2 08 00 48 2E 80 13 00 00 00 00 00 00 F2 [22:10:54]Write i2c OK [22:10:54]MH_I2C_Read... [22:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:54]Read from MH i2c: E2 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: E2 62 00 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: E2 62 00 48 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1A 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [22:10: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1A 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:54]wFMCommunicate OK [22:10:54]SAM_PROTO_GetFieldsCounters done [22:10:54]requested_item shift.num is exist - process it [22:10:54]requested_item shift.opened is exist - process it [22:10:54]req_shift_opened [22:10:54]FM_GetShiftState [22:10:54]SAM_PROTO_GetShiftState [22:10:54]wFMCommunicate request_size=4 [22:10:54]MH_SAM_APDU [22:10:54]CAPDU: 80 13 01 00 [22:10:54]Write to MH i2c: E2 08 00 49 2E 80 13 01 00 00 00 00 00 F4 [22:10:54]Write i2c OK [22:10:54]MH_I2C_Read... [22:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:54]Read from MH i2c: E2 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: E2 0E 00 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: E2 0E 00 49 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 29 [22:10:54]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [22:10:54]wFMCommunicate OK [22:10:54]SAM_PROTO_GetShiftState done [22:10:54]FM_GetShiftState done [22:10:54]req_shift_opened done [22:10:54]requested_item shift.open_date is exist - process it [22:10:54]req_shift_open_date [22:10:54]req_shift_open_date done [22:10:54]produce_requested_data done [22:10:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156442,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [22:10:54]process_action_free close_receipt [22:10:54]json_value_free [22:10:54]json_value_free done [22:10:54]process_json_proto returns [22:10:54]Send response to host [22:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156442,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [22:10:54]free response buf [22:10:54]execute_script done [22:10:54]execute_script returns [22:10:54]free content buf [22:10:54]Sock 9.Close socket [22:10:54]Sock 9.Thread stoped [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23: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:45]accept exits with 8 [22:24:45]New connection [22:24:45]New thread 3066977636 created [22:24:45]Thread 3066834276 joined [22:24:45]Waiting for new connection... [22:24:45] Sock 8.Parse request [22:24:45]Sock 8.Check first char [22:24:45]Sock 8.First char is OK [22:24:45]request: POST /json_proto HTTP/1.0 [22:24:45]Method: POST [22:24:45]URL: /json_proto [22:24:45]Method is POST - this is cgi request [22:24:45]url: /json_proto [22:24:45]query_string will be loaded in cgi processing [22:24:45]execute_cgi json_proto POST (null) [22:24:45]execute_cgi path=json_proto method=POST [22:24:45]POST find Content-Length [22:24:45]Host: 172.17.63.3:8080 [22:24:45]Content-Length: 676 [22:24:45]Content-Type: application/json [22:24:45] [22:24:45]POST finish read [22:24:45]Found Content-Length = 676 [22:24:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:45]execute_script... [22:24: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)99258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:45]POST & json_proto [22:24:45]process_json_proto [22:24:45]json parsed OK: [22:24:45]protocol is kg_v1.0 [22:24:45]action value=close_receipt [22:24:45]process_action close_receipt [22:24:45]cmd_close_receipt [22:24:45]MH_GetDate [22:24:45]Write to MH i2c: F0 00 00 4A 2E 67 [22:24:45]Write i2c OK [22:24:45]MH_I2C_Read... [22:24:45]Read from MH i2c: F0 [22:24:45]MH_I2C_Read... [22:24:45]Read from MH i2c: F0 09 00 [22:24:45]MH_I2C_Read... [22:24:45]Read from MH i2c: F0 09 00 4A 2E 00 2F 6C 1D 67 50 D1 6C 64 80 [22:24:45]GetLastDocTimeStamp 1729980653 [22:24:45]current date 1729981487 [22:24:45]FM_GetShiftState [22:24:45]SAM_PROTO_GetShiftState [22:24:45]wFMCommunicate request_size=4 [22:24:45]MH_SAM_APDU [22:24:45]CAPDU: 80 13 01 00 [22:24:45]Write to MH i2c: E2 08 00 4B 2E 80 13 01 00 00 00 00 00 F6 [22:24:45]Write i2c OK [22:24:45]MH_I2C_Read... [22:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:45]Read from MH i2c: E2 [22:24:45]MH_I2C_Read... [22:24:45]Read from MH i2c: E2 0E 00 [22:24:45]MH_I2C_Read... [22:24:45]Read from MH i2c: E2 0E 00 4B 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 2B [22:24:45]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [22:24:45]wFMCommunicate OK [22:24:45]SAM_PROTO_GetShiftState done [22:24:45]FM_GetShiftState done [22:24:45]opened in 1729902702 [22:24:45]opened+sec_in_day 1729989102 [22:24:45]quantity*price = 30038 [22:24:45]sum+1 = 30039 [22:24:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 344 26.10.2024 22:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156443 ФПД: 100338052347547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T222447&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156443&fm=100338052347547&tin=02508201610067®Number=0000000000091693&sum=30000 [22:24:46]StoreToDocumentArchive [22:24:46]shift 536 fd 156443 [22:24:46]save to /storage/0536/doc_00156443 [22:24:46]save last doc name /storage/0536/doc_00156443 to /storage/kkm_last_doc_name [22:24:46]save OK [22:24:46]Clear old archive folders... [22:24:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:46]tlvbuf is B6EE0A40 [22:24:46]SAM_PROTO_ClearQueue [22:24:46]wFMCommunicate request_size=4 [22:24:46]MH_SAM_APDU [22:24:46]CAPDU: 80 09 00 00 [22:24:46]Write to MH i2c: E2 08 00 58 2E 80 09 00 00 00 00 00 00 F8 [22:24:46]Write i2c OK [22:24:46]MH_I2C_Read... [22:24:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:46]Read from MH i2c: E2 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 03 00 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 03 00 58 2E 00 90 00 FA [22:24:46]RAPDU: 90 00 [22:24:46]wFMCommunicate OK [22:24:46]SAM_PROTO_ClearQueue done [22:24:46]KKMCreateOFDPacket [22:24:46]OFDProtocolAddRootSTLVToBuf [22:24:46]FM_MakeSignedData [22:24:46]FM_MakeSignedData [22:24:46]SAM_PROTO_SignData [22:24:46]wFMCommunicate request_size=4 [22:24:46]MH_SAM_APDU [22:24:46]CAPDU: 80 0D 01 02 [22:24:46]Write to MH i2c: E2 08 00 59 2E 80 0D 01 02 00 00 00 00 00 [22:24:46]Write i2c OK [22:24:46]MH_I2C_Read... [22:24:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:46]Read from MH i2c: E2 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 03 00 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 03 00 59 2E 00 90 00 FB [22:24:46]RAPDU: 90 00 [22:24:46]wFMCommunicate OK [22:24:46]wFMCommunicate request_size=255 [22:24:46]MH_SAM_APDU [22:24:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 2F 6C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 63 02 00 35 04 06 00 5B [22:24:46]Write to MH i2c: E2 02 01 5A 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 2F 6C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 63 02 00 35 04 06 00 5B 00 00 F5 [22:24:46]Write i2c OK [22:24:46]MH_I2C_Read... [22:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:47]Read from MH i2c: E2 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 03 00 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 03 00 5A 2E 00 90 00 FC [22:24:47]RAPDU: 90 00 [22:24:47]wFMCommunicate OK [22:24:47]wFMCommunicate request_size=10 [22:24:47]MH_SAM_APDU [22:24:47]CAPDU: 80 0D 02 02 05 41 C5 F7 B6 9B [22:24:47]Write to MH i2c: E2 0D 00 5B 2E 80 0D 02 02 05 00 41 C5 F7 B6 9B 00 00 5B [22:24:47]Write i2c OK [22:24:47]MH_I2C_Read... [22:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:47]Read from MH i2c: E2 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 03 00 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 03 00 5B 2E 00 90 00 FD [22:24:47]RAPDU: 90 00 [22:24:47]wFMCommunicate OK [22:24:47]wFMCommunicate request_size=4 [22:24:47]MH_SAM_APDU [22:24:47]CAPDU: 80 0D 03 02 [22:24:47]Write to MH i2c: E2 08 00 5C 2E 80 0D 03 02 00 00 00 00 05 [22:24:47]Write i2c OK [22:24:47]MH_I2C_Read... [22:24:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:47]Read from MH i2c: E2 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 0B 00 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 0B 00 5C 2E 00 58 AE 36 30 CB 26 D5 48 90 00 80 [22:24:47]RAPDU: 58 AE 36 30 CB 26 D5 48 90 00 [22:24:47]wFMCommunicate OK [22:24:47]SAM_PROTO_SignData done [22:24:47]FM_MakeSignedData done [22:24:47]CreateOFDProtocolMessage [22:24:47]wFMCommunicate request_size=4 [22:24:47]MH_SAM_APDU [22:24:47]CAPDU: 80 11 00 00 [22:24:47]Write to MH i2c: E2 08 00 5D 2E 80 11 00 00 00 00 00 00 05 [22:24:47]Write i2c OK [22:24:47]MH_I2C_Read... [22:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:47]Read from MH i2c: E2 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 17 00 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 17 00 5D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [22:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:24:47]wFMCommunicate OK [22:24:47]CreateOFDProtocolMessage done [22:24:47]OFDSenderStorePacket 156443 [22:24:47]StoreOFDPacket docnum=156443 [22:24:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 47 0E 07 01 80 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 2F 6C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 63 02 00 35 04 06 00 5B 41 C5 F7 B6 9B 58 AE 36 30 CB 26 D5 48 [22:24:47]CheckFolder [22:24:47]dirname=/storage/ofd_packets [22:24:47]CheckFolder done [22:24:47]ProducePacketName [22:24:47]name=ofd_packets/00156443 [22:24:47]NVStorageSaveData ofd_packets/00156443 [22:24:47]File name is /storage/ofd_packets/00156443 [22:24:47]Write 301 bytes [22:24:47]NVStorageSaveData done [22:24:47]OFDSenderStorePacket done [22:24:47]KKMCreateOFDPacket done [22:24:47]NVStorageSaveData kkm_last_timestamp [22:24:47]File name is /storage/kkm_last_timestamp [22:24:47]Write 4 bytes [22:24:47]NVStorageSaveData done [22:24:47]ExternCall_PrintAddStr [22:24:47]wPrintStart [22:24:47]Write to MH i2c: 01 00 00 5E 2E 8C [22:24:47]Write i2c OK [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: 01 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: 01 07 00 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: 01 07 00 5E 2E 00 00 00 00 00 FF 0F A1 [22:24:47]RasterBufferAndPrint [22:24:47]line Счет N : (1)99258 [22:24:47]line ИНН: 02508201610067 [22:24:47]line Контрольно-Кассовый Чек [22:24:47]line ПРОДАЖА [22:24:47]line ТРК (МРК, ГНК) : 31 [22:24:47]line Товар: 2710124130 [22:24:47]line Аи-92-К-5 [22:24:47]line 4.490 * 66.90 [22:24:47]line = 300.38 [22:24:47]line НДС 12% НСП 1% [22:24:47]line > о реализуемом товаре [22:24:47]line ОКРУГЛЕНИЕ: -0.38 [22:24:47]line ИТОГО: 300.00 [22:24:47]line Внесено: 300.00 [22:24:47]line СДАЧА: 0.00 [22:24:47]line НСП 1% : 2.66 [22:24:47]line НДС 12% : 31.90 [22:24:47]line Наличными: 300.00 [22:24:47]line Безнал.: 0.00 [22:24:47]line Место: АЗС № 143 "Партнер Нефть" [22:24:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:24:47]line СНО: Общий режим [22:24:47]line Чек 344 26.10.2024 22:24 [22:24:47]line Смена: 536 ФФД: 1.0 [22:24:47]line ЗНМ: 0300000096 [22:24:47]line РНМ: 0000000000091693 [22:24:47]line Версия ККМ: 001 [22:24:47]line ФМ: 0000000000871792 [22:24:47]line ФД: 156443 [22:24:47]line ФПД: 100338052347547 [22:24:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T222447&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156443&fm=100338052347547&tin=02508201610067®Number=0000000000091693&sum=30000 [22:24:47]written 0, free lines is 4095 [22:24:47]OFD Sender: Processing packet 156443 [packets to send 31, broken 30] [22:24:47]ProducePacketName [22:24:47]name=ofd_packets/00156443 [22:24:47]OFD Sender: To server: pG, [22:24:47]CommunicateWithHost lk.salyk.kg:30040 [22:24:47]ConnectInit lk.salyk.kg [22:24:47]Connected sock=10 [22:24:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 47 0E 07 01 80 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 2F 6C 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 63 02 00 35 04 06 00 5B 41 C5 F7 B6 9B 58 AE 36 30 CB 26 D5 48 [22:24:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F2 8D 47 00 CE 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 31 37 39 32 10 04 04 00 1B 63 02 00 F4 03 04 00 A1 11 1D 67 B6 04 01 00 00 EE 62 78 4D E3 80 CB 52 [22:24:47]CommunicateWithHost err = 0 [22:24:47]CheckOFDResponse [22:24:47]1017 (14) - 77093643461234 [22:24:47]1041 (16) - 0000000000871792 [22:24:47]1040 (4) - 156443 [22:24:47]1012 (4) - 26.10.2024 15:58 [22:24:47]1206 (1) - 0 [22:24:47]OFD Sender: Remove packet 156443 [22:24:47]ProducePacketName [22:24:47]name=ofd_packets/00156443 [22:24:47]NVStorageDeleteData [22:24:47]Write to MH i2c: 01 00 00 89 2E B7 [22:24:47]Write i2c OK [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: 01 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: 01 07 00 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: 01 07 00 89 2E 00 00 00 00 00 F3 0C BD [22:24:47]RasterBufferAndPrint [22:24:47]line [22:24:47]line [22:24:47]line [22:24:47]line [22:24:47]line [22:24:47]written 0, free lines is 3324 [22:24:47]process_action close_receipt done [22:24:47]requested_data is exist [22:24:47]produce_requested_data [22:24:47]requested_item fm.sn is exist - process it [22:24:47]wFMCommunicate request_size=4 [22:24:47]MH_SAM_APDU [22:24:47]CAPDU: 80 11 00 00 [22:24:47]Write to MH i2c: E2 08 00 90 2E 80 11 00 00 00 00 00 00 38 [22:24:47]Write i2c OK [22:24:47]MH_I2C_Read... [22:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:47]Read from MH i2c: E2 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 17 00 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 17 00 90 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [22:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:24:47]wFMCommunicate OK [22:24:47]requested_item fd.num is exist - process it [22:24:47]SAM_PROTO_GetFieldsCounters [22:24:47]wFMCommunicate request_size=4 [22:24:47]MH_SAM_APDU [22:24:47]CAPDU: 80 13 00 00 [22:24:47]Write to MH i2c: E2 08 00 91 2E 80 13 00 00 00 00 00 00 3B [22:24:47]Write i2c OK [22:24:47]MH_I2C_Read... [22:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:47]Read from MH i2c: E2 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 62 00 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 62 00 91 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1B 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [22:24: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1B 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:47]wFMCommunicate OK [22:24:47]SAM_PROTO_GetFieldsCounters done [22:24:47]requested_item shift.num is exist - process it [22:24:47]requested_item shift.opened is exist - process it [22:24:47]req_shift_opened [22:24:47]FM_GetShiftState [22:24:47]SAM_PROTO_GetShiftState [22:24:47]wFMCommunicate request_size=4 [22:24:47]MH_SAM_APDU [22:24:47]CAPDU: 80 13 01 00 [22:24:47]Write to MH i2c: E2 08 00 92 2E 80 13 01 00 00 00 00 00 3D [22:24:47]Write i2c OK [22:24:47]MH_I2C_Read... [22:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:47]Read from MH i2c: E2 [22:24:47]MH_I2C_Read... [22:24:47]Read from MH i2c: E2 0E 00 [22:24:48]MH_I2C_Read... [22:24:48]Read from MH i2c: E2 0E 00 92 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 72 [22:24:48]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [22:24:48]wFMCommunicate OK [22:24:48]SAM_PROTO_GetShiftState done [22:24:48]FM_GetShiftState done [22:24:48]req_shift_opened done [22:24:48]requested_item shift.open_date is exist - process it [22:24:48]req_shift_open_date [22:24:48]req_shift_open_date done [22:24:48]produce_requested_data done [22:24:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156443,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [22:24:48]process_action_free close_receipt [22:24:48]json_value_free [22:24:48]json_value_free done [22:24:48]process_json_proto returns [22:24:48]Send response to host [22:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156443,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [22:24:48]free response buf [22:24:48]execute_script done [22:24:48]execute_script returns [22:24:48]free content buf [22:24:48]Sock 8.Close socket [22:24:48]Sock 8.Thread stoped [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:36]accept exits with 9 [22:47:36]New connection [22:47:36]New thread 3066834276 created [22:47:36]Thread 3066977636 joined [22:47:36]Waiting for new connection... [22:47:36] Sock 9.Parse request [22:47:36]Sock 9.Check first char [22:47:36]Sock 9.First char is OK [22:47:36]request: POST /json_proto HTTP/1.0 [22:47:36]Method: POST [22:47:36]URL: /json_proto [22:47:36]Method is POST - this is cgi request [22:47:36]url: /json_proto [22:47:36]query_string will be loaded in cgi processing [22:47:36]execute_cgi json_proto POST (null) [22:47:36]execute_cgi path=json_proto method=POST [22:47:36]POST find Content-Length [22:47:36]Host: 172.17.63.3:8080 [22:47:36]Content-Length: 765 [22:47:36]Content-Type: application/json [22:47:36] [22:47:36]POST finish read [22:47:36]Found Content-Length = 765 [22:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:36]execute_script... [22: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 : (1)99259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:36]POST & json_proto [22:47:36]process_json_proto [22:47:36]json parsed OK: [22:47:36]protocol is kg_v1.0 [22:47:36]action value=close_receipt [22:47:36]process_action close_receipt [22:47:36]cmd_close_receipt [22:47:36]MH_GetDate [22:47:36]Write to MH i2c: F0 00 00 93 2E B0 [22:47:36]Write i2c OK [22:47:36]MH_I2C_Read... [22:47:36]Read from MH i2c: F0 [22:47:36]MH_I2C_Read... [22:47:36]Read from MH i2c: F0 09 00 [22:47:36]MH_I2C_Read... [22:47:36]Read from MH i2c: F0 09 00 93 2E 00 8A 71 1D 67 50 D1 6C 64 29 [22:47:36]GetLastDocTimeStamp 1729981487 [22:47:36]current date 1729982858 [22:47:36]FM_GetShiftState [22:47:36]SAM_PROTO_GetShiftState [22:47:36]wFMCommunicate request_size=4 [22:47:36]MH_SAM_APDU [22:47:36]CAPDU: 80 13 01 00 [22:47:36]Write to MH i2c: E2 08 00 94 2E 80 13 01 00 00 00 00 00 3F [22:47:36]Write i2c OK [22:47:36]MH_I2C_Read... [22:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:36]Read from MH i2c: E2 [22:47:36]MH_I2C_Read... [22:47:36]Read from MH i2c: E2 0E 00 [22:47:36]MH_I2C_Read... [22:47:36]Read from MH i2c: E2 0E 00 94 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 74 [22:47:36]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [22:47:36]wFMCommunicate OK [22:47:36]SAM_PROTO_GetShiftState done [22:47:36]FM_GetShiftState done [22:47:36]opened in 1729902702 [22:47:36]opened+sec_in_day 1729989102 [22:47:36]quantity*price = 50041 [22:47:36]sum+1 = 50042 [22:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 345 26.10.2024 22:47 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156444 ФПД: 274826005652573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T224739&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156444&fm=274826005652573&tin=02508201610067®Number=0000000000091693&sum=50041 [22:47:37]StoreToDocumentArchive [22:47:37]shift 536 fd 156444 [22:47:37]save to /storage/0536/doc_00156444 [22:47:37]save last doc name /storage/0536/doc_00156444 to /storage/kkm_last_doc_name [22:47:37]save OK [22:47:37]Clear old archive folders... [22:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:37]tlvbuf is 016B3D20 [22:47:37]SAM_PROTO_ClearQueue [22:47:37]wFMCommunicate request_size=4 [22:47:37]MH_SAM_APDU [22:47:37]CAPDU: 80 09 00 00 [22:47:37]Write to MH i2c: E2 08 00 A1 2E 80 09 00 00 00 00 00 00 41 [22:47:37]Write i2c OK [22:47:37]MH_I2C_Read... [22:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:37]Read from MH i2c: E2 [22:47:37]MH_I2C_Read... [22:47:37]Read from MH i2c: E2 03 00 [22:47:37]MH_I2C_Read... [22:47:37]Read from MH i2c: E2 03 00 A1 2E 00 90 00 43 [22:47:37]RAPDU: 90 00 [22:47:37]wFMCommunicate OK [22:47:37]SAM_PROTO_ClearQueue done [22:47:37]KKMCreateOFDPacket [22:47:37]OFDProtocolAddRootSTLVToBuf [22:47:37]FM_MakeSignedData [22:47:37]FM_MakeSignedData [22:47:37]SAM_PROTO_SignData [22:47:37]wFMCommunicate request_size=4 [22:47:37]MH_SAM_APDU [22:47:37]CAPDU: 80 0D 01 02 [22:47:37]Write to MH i2c: E2 08 00 A2 2E 80 0D 01 02 00 00 00 00 49 [22:47:37]Write i2c OK [22:47:37]MH_I2C_Read... [22:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:37]Read from MH i2c: E2 [22:47:37]MH_I2C_Read... [22:47:37]Read from MH i2c: E2 03 00 [22:47:37]MH_I2C_Read... [22:47:37]Read from MH i2c: E2 03 00 A2 2E 00 90 00 44 [22:47:37]RAPDU: 90 00 [22:47:37]wFMCommunicate OK [22:47:37]wFMCommunicate request_size=255 [22:47:37]MH_SAM_APDU [22:47:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 8B 71 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 63 02 00 35 04 06 00 F9 [22:47:37]Write to MH i2c: E2 02 01 A3 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 8B 71 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 63 02 00 35 04 06 00 F9 00 00 9D [22:47:37]Write i2c OK [22:47:37]MH_I2C_Read... [22:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:38]Read from MH i2c: E2 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 03 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 03 00 A3 2E 00 90 00 45 [22:47:38]RAPDU: 90 00 [22:47:38]wFMCommunicate OK [22:47:38]wFMCommunicate request_size=10 [22:47:38]MH_SAM_APDU [22:47:38]CAPDU: 80 0D 02 02 05 F3 EA 71 24 5D [22:47:38]Write to MH i2c: E2 0D 00 A4 2E 80 0D 02 02 05 00 F3 EA 71 24 5D 00 00 25 [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:38]Read from MH i2c: E2 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 03 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 03 00 A4 2E 00 90 00 46 [22:47:38]RAPDU: 90 00 [22:47:38]wFMCommunicate OK [22:47:38]wFMCommunicate request_size=4 [22:47:38]MH_SAM_APDU [22:47:38]CAPDU: 80 0D 03 02 [22:47:38]Write to MH i2c: E2 08 00 A5 2E 80 0D 03 02 00 00 00 00 4E [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:38]Read from MH i2c: E2 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 0B 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 0B 00 A5 2E 00 1D B6 17 5D 03 64 34 2A 90 00 5B [22:47:38]RAPDU: 1D B6 17 5D 03 64 34 2A 90 00 [22:47:38]wFMCommunicate OK [22:47:38]SAM_PROTO_SignData done [22:47:38]FM_MakeSignedData done [22:47:38]CreateOFDProtocolMessage [22:47:38]wFMCommunicate request_size=4 [22:47:38]MH_SAM_APDU [22:47:38]CAPDU: 80 11 00 00 [22:47:38]Write to MH i2c: E2 08 00 A6 2E 80 11 00 00 00 00 00 00 4E [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:38]Read from MH i2c: E2 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 17 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 17 00 A6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [22:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:47:38]wFMCommunicate OK [22:47:38]CreateOFDProtocolMessage done [22:47:38]OFDSenderStorePacket 156444 [22:47:38]StoreOFDPacket docnum=156444 [22:47:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 85 2D 07 01 A1 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 8B 71 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 63 02 00 35 04 06 00 F9 F3 EA 71 24 5D 1D B6 17 5D 03 64 34 2A [22:47:38]CheckFolder [22:47:38]dirname=/storage/ofd_packets [22:47:38]CheckFolder done [22:47:38]ProducePacketName [22:47:38]name=ofd_packets/00156444 [22:47:38]NVStorageSaveData ofd_packets/00156444 [22:47:38]File name is /storage/ofd_packets/00156444 [22:47:38]Write 301 bytes [22:47:38]NVStorageSaveData done [22:47:38]OFDSenderStorePacket done [22:47:38]KKMCreateOFDPacket done [22:47:38]NVStorageSaveData kkm_last_timestamp [22:47:38]File name is /storage/kkm_last_timestamp [22:47:38]Write 4 bytes [22:47:38]NVStorageSaveData done [22:47:38]ExternCall_PrintAddStr [22:47:38]wPrintStart [22:47:38]Write to MH i2c: 01 00 00 A7 2E D5 [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: 01 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: 01 07 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: 01 07 00 A7 2E 00 00 00 00 00 FF 0F EA [22:47:38]RasterBufferAndPrint [22:47:38]line Счет N : (1)99259 [22:47:38]line ИНН: 02508201610067 [22:47:38]line Контрольно-Кассовый Чек [22:47:38]line ПРОДАЖА [22:47:38]line ТРК (МРК, ГНК) : 31 [22:47:38]line Товар: 2710124130 [22:47:38]line Аи-92-К-5 [22:47:38]line 7.480 * 66.90 [22:47:38]line = 500.41 [22:47:38]line НДС 12% НСП 1% [22:47:38]line > о реализуемом товаре [22:47:38]line ИТОГО: 500.41 [22:47:38]line НСП 1% : 4.43 [22:47:38]line НДС 12% : 53.14 [22:47:38]line Наличными: 0.00 [22:47:38]line Безнал.: 500.41 [22:47:38]line Место: АЗС № 143 "Партнер Нефть" [22:47:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:47:38]line СНО: Общий режим [22:47:38]line Чек 345 26.10.2024 22:47 [22:47:38]line Смена: 536 ФФД: 1.0 [22:47:38]line ЗНМ: 0300000096 [22:47:38]line РНМ: 0000000000091693 [22:47:38]line Версия ККМ: 001 [22:47:38]line Платежная система: Mbank [22:47:38]line ФМ: 0000000000871792 [22:47:38]line ФД: 156444 [22:47:38]line ФПД: 274826005652573 [22:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T224739&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156444&fm=274826005652573&tin=02508201610067®Number=0000000000091693&sum=50041 [22:47:38]written 0, free lines is 4095 [22:47:38]OFD Sender: Processing packet 156444 [packets to send 31, broken 30] [22:47:38]ProducePacketName [22:47:38]name=ofd_packets/00156444 [22:47:38]OFD Sender: To server: pG, [22:47:38]CommunicateWithHost lk.salyk.kg:30040 [22:47:38]ConnectInit lk.salyk.kg [22:47:38]Write to MH i2c: 01 00 00 D0 2E FE [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: 01 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: 01 07 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: 01 07 00 D0 2E 00 00 00 00 00 FC 0C 0D [22:47:38]RasterBufferAndPrint [22:47:38]line [22:47:38]line [22:47:38]line [22:47:38]line [22:47:38]line [22:47:38]Connected sock=10 [22: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 31 37 39 32 0F 01 00 00 85 2D 07 01 A1 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 8B 71 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 63 02 00 35 04 06 00 F9 F3 EA 71 24 5D 1D B6 17 5D 03 64 34 2A [22:47:38]written 0, free lines is 3330 [22:47:38]process_action close_receipt done [22:47:38]requested_data is exist [22:47:38]produce_requested_data [22:47:38]requested_item fm.sn is exist - process it [22:47:38]wFMCommunicate request_size=4 [22:47:38]MH_SAM_APDU [22:47:38]CAPDU: 80 11 00 00 [22:47:38]Write to MH i2c: E2 08 00 D7 2E 80 11 00 00 00 00 00 00 7F [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:38]Read from MH i2c: E2 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 17 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 17 00 D7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [22:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:47:38]wFMCommunicate OK [22:47:38]requested_item fd.num is exist - process it [22:47:38]SAM_PROTO_GetFieldsCounters [22:47:38]wFMCommunicate request_size=4 [22:47:38]MH_SAM_APDU [22:47:38]CAPDU: 80 13 00 00 [22:47:38]Write to MH i2c: E2 08 00 D8 2E 80 13 00 00 00 00 00 00 82 [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:38]Read from MH i2c: E2 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 62 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 62 00 D8 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1C 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [22:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1C 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:38]wFMCommunicate OK [22:47:38]SAM_PROTO_GetFieldsCounters done [22:47:38]requested_item shift.num is exist - process it [22:47:38]requested_item shift.opened is exist - process it [22:47:38]req_shift_opened [22:47:38]FM_GetShiftState [22:47:38]SAM_PROTO_GetShiftState [22:47:38]wFMCommunicate request_size=4 [22:47:38]MH_SAM_APDU [22:47:38]CAPDU: 80 13 01 00 [22:47:38]Write to MH i2c: E2 08 00 D9 2E 80 13 01 00 00 00 00 00 84 [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EE FE 47 00 C5 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 63 02 00 F4 03 04 00 FC 16 1D 67 B6 04 01 00 00 5B D7 24 26 42 55 3F 71 [22:47:38]CommunicateWithHost err = 0 [22:47:38]CheckOFDResponse [22:47:38]1017 (14) - 77093643461234 [22:47:38]1041 (16) - 0000000000871792 [22:47:38]1040 (4) - 156444 [22:47:38]1012 (4) - 26.10.2024 16:21 [22:47:38]1206 (1) - 0 [22:47:38]OFD Sender: Remove packet 156444 [22:47:38]ProducePacketName [22:47:38]name=ofd_packets/00156444 [22:47:38]NVStorageDeleteData [22:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:38]Read from MH i2c: E2 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 0E 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 0E 00 D9 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 B9 [22:47:38]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [22:47:38]wFMCommunicate OK [22:47:38]SAM_PROTO_GetShiftState done [22:47:38]FM_GetShiftState done [22:47:38]req_shift_opened done [22:47:38]requested_item shift.open_date is exist - process it [22:47:38]req_shift_open_date [22:47:38]req_shift_open_date done [22:47:38]produce_requested_data done [22:47:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156444,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [22:47:38]process_action_free close_receipt [22:47:38]json_value_free [22:47:38]json_value_free done [22:47:38]process_json_proto returns [22:47:38]Send response to host [22:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156444,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [22:47:38]free response buf [22:47:38]execute_script done [22:47:38]execute_script returns [22:47:38]free content buf [22:47:38]Sock 9.Close socket [22:47:38]Sock 9.Thread stoped [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:08:56]accept exits with 8 [23:08:56]New connection [23:08:56]New thread 3066977636 created [23:08:56]Thread 3066834276 joined [23:08:56]Waiting for new connection... [23:08:56] Sock 8.Parse request [23:08:56]Sock 8.Check first char [23:08:56]Sock 8.First char is OK [23:08:56]request: POST /json_proto HTTP/1.0 [23:08:56]Method: POST [23:08:56]URL: /json_proto [23:08:56]Method is POST - this is cgi request [23:08:56]url: /json_proto [23:08:56]query_string will be loaded in cgi processing [23:08:56]execute_cgi json_proto POST (null) [23:08:56]execute_cgi path=json_proto method=POST [23:08:56]POST find Content-Length [23:08:56]Host: 172.17.63.3:8080 [23:08:56]Content-Length: 676 [23:08:56]Content-Type: application/json [23:08:56] [23:08:56]POST finish read [23:08:56]Found Content-Length = 676 [23:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:56]execute_script... [23:08: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)99260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:56]POST & json_proto [23:08:56]process_json_proto [23:08:56]json parsed OK: [23:08:56]protocol is kg_v1.0 [23:08:56]action value=close_receipt [23:08:56]process_action close_receipt [23:08:56]cmd_close_receipt [23:08:56]MH_GetDate [23:08:56]Write to MH i2c: F0 00 00 DA 2E F7 [23:08:56]Write i2c OK [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: F0 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: F0 09 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: F0 09 00 DA 2E 00 8A 76 1D 67 50 D1 6C 64 75 [23:08:56]GetLastDocTimeStamp 1729982859 [23:08:56]current date 1729984138 [23:08:56]FM_GetShiftState [23:08:56]SAM_PROTO_GetShiftState [23:08:56]wFMCommunicate request_size=4 [23:08:56]MH_SAM_APDU [23:08:56]CAPDU: 80 13 01 00 [23:08:56]Write to MH i2c: E2 08 00 DB 2E 80 13 01 00 00 00 00 00 86 [23:08:56]Write i2c OK [23:08:56]MH_I2C_Read... [23:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:56]Read from MH i2c: E2 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 0E 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 0E 00 DB 2E 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BB [23:08:56]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [23:08:56]wFMCommunicate OK [23:08:56]SAM_PROTO_GetShiftState done [23:08:56]FM_GetShiftState done [23:08:56]opened in 1729902702 [23:08:56]opened+sec_in_day 1729989102 [23:08:56]quantity*price = 30038 [23:08:56]sum+1 = 30039 [23:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 346 26.10.2024 23:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156445 ФПД: 3491556013291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230858&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156445&fm=3491556013291&tin=02508201610067®Number=0000000000091693&sum=30000 [23:08:57]StoreToDocumentArchive [23:08:57]shift 536 fd 156445 [23:08:57]save to /storage/0536/doc_00156445 [23:08:57]save last doc name /storage/0536/doc_00156445 to /storage/kkm_last_doc_name [23:08:57]save OK [23:08:57]Clear old archive folders... [23:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:57]tlvbuf is 016E9DC0 [23:08:57]SAM_PROTO_ClearQueue [23:08:57]wFMCommunicate request_size=4 [23:08:57]MH_SAM_APDU [23:08:57]CAPDU: 80 09 00 00 [23:08:57]Write to MH i2c: E2 08 00 E8 2E 80 09 00 00 00 00 00 00 88 [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:57]Read from MH i2c: E2 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 03 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 03 00 E8 2E 00 90 00 8A [23:08:57]RAPDU: 90 00 [23:08:57]wFMCommunicate OK [23:08:57]SAM_PROTO_ClearQueue done [23:08:57]KKMCreateOFDPacket [23:08:57]OFDProtocolAddRootSTLVToBuf [23:08:57]FM_MakeSignedData [23:08:57]FM_MakeSignedData [23:08:57]SAM_PROTO_SignData [23:08:57]wFMCommunicate request_size=4 [23:08:57]MH_SAM_APDU [23:08:57]CAPDU: 80 0D 01 02 [23:08:57]Write to MH i2c: E2 08 00 E9 2E 80 0D 01 02 00 00 00 00 90 [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:57]Read from MH i2c: E2 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 03 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 03 00 E9 2E 00 90 00 8B [23:08:57]RAPDU: 90 00 [23:08:57]wFMCommunicate OK [23:08:57]wFMCommunicate request_size=255 [23:08:57]MH_SAM_APDU [23:08:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 8A 76 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 63 02 00 35 04 06 00 03 [23:08:57]Write to MH i2c: E2 02 01 EA 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 8A 76 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 63 02 00 35 04 06 00 03 00 00 96 [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:57]Read from MH i2c: E2 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 03 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 03 00 EA 2E 00 90 00 8C [23:08:57]RAPDU: 90 00 [23:08:57]wFMCommunicate OK [23:08:57]wFMCommunicate request_size=10 [23:08:57]MH_SAM_APDU [23:08:57]CAPDU: 80 0D 02 02 05 2C F0 F4 B4 EB [23:08:57]Write to MH i2c: E2 0D 00 EB 2E 80 0D 02 02 05 00 2C F0 F4 B4 EB 00 00 4C [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:57]Read from MH i2c: E2 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 03 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 03 00 EB 2E 00 90 00 8D [23:08:57]RAPDU: 90 00 [23:08:57]wFMCommunicate OK [23:08:57]wFMCommunicate request_size=4 [23:08:57]MH_SAM_APDU [23:08:57]CAPDU: 80 0D 03 02 [23:08:57]Write to MH i2c: E2 08 00 EC 2E 80 0D 03 02 00 00 00 00 95 [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:57]Read from MH i2c: E2 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 0B 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 0B 00 EC 2E 00 31 92 F1 C4 B1 4F F0 B0 90 00 AE [23:08:57]RAPDU: 31 92 F1 C4 B1 4F F0 B0 90 00 [23:08:57]wFMCommunicate OK [23:08:57]SAM_PROTO_SignData done [23:08:57]FM_MakeSignedData done [23:08:57]CreateOFDProtocolMessage [23:08:57]wFMCommunicate request_size=4 [23:08:57]MH_SAM_APDU [23:08:57]CAPDU: 80 11 00 00 [23:08:57]Write to MH i2c: E2 08 00 ED 2E 80 11 00 00 00 00 00 00 95 [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:57]Read from MH i2c: E2 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 17 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: E2 17 00 ED 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [23:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:08:57]wFMCommunicate OK [23:08:57]CreateOFDProtocolMessage done [23:08:57]OFDSenderStorePacket 156445 [23:08:57]StoreOFDPacket docnum=156445 [23:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 F1 07 01 75 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 8A 76 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 63 02 00 35 04 06 00 03 2C F0 F4 B4 EB 31 92 F1 C4 B1 4F F0 B0 [23:08:57]CheckFolder [23:08:57]dirname=/storage/ofd_packets [23:08:57]CheckFolder done [23:08:57]ProducePacketName [23:08:57]name=ofd_packets/00156445 [23:08:57]NVStorageSaveData ofd_packets/00156445 [23:08:57]File name is /storage/ofd_packets/00156445 [23:08:57]Write 301 bytes [23:08:57]NVStorageSaveData done [23:08:57]OFDSenderStorePacket done [23:08:57]KKMCreateOFDPacket done [23:08:57]NVStorageSaveData kkm_last_timestamp [23:08:57]File name is /storage/kkm_last_timestamp [23:08:57]Write 4 bytes [23:08:57]NVStorageSaveData done [23:08:57]ExternCall_PrintAddStr [23:08:57]wPrintStart [23:08:57]Write to MH i2c: 01 00 00 EE 2E 1C [23:08:57]Write i2c OK [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: 01 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: 01 07 00 [23:08:57]MH_I2C_Read... [23:08:57]Read from MH i2c: 01 07 00 EE 2E 00 00 00 00 00 FF 0F 31 [23:08:57]RasterBufferAndPrint [23:08:57]line Счет N : (1)99260 [23:08:57]line ИНН: 02508201610067 [23:08:57]line Контрольно-Кассовый Чек [23:08:57]line ПРОДАЖА [23:08:57]line ТРК (МРК, ГНК) : 21 [23:08:57]line Товар: 2710124130 [23:08:57]line Аи-92-К-5 [23:08:57]line 4.490 * 66.90 [23:08:57]line = 300.38 [23:08:57]line НДС 12% НСП 1% [23:08:57]line > о реализуемом товаре [23:08:57]line ОКРУГЛЕНИЕ: -0.38 [23:08:57]line ИТОГО: 300.00 [23:08:57]line Внесено: 300.00 [23:08:57]line СДАЧА: 0.00 [23:08:57]line НСП 1% : 2.66 [23:08:57]line НДС 12% : 31.90 [23:08:57]line Наличными: 300.00 [23:08:57]line Безнал.: 0.00 [23:08:57]line Место: АЗС № 143 "Партнер Нефть" [23:08:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:08:57]line СНО: Общий режим [23:08:57]line Чек 346 26.10.2024 23:08 [23:08:57]line Смена: 536 ФФД: 1.0 [23:08:57]line ЗНМ: 0300000096 [23:08:57]line РНМ: 0000000000091693 [23:08:57]line Версия ККМ: 001 [23:08:57]line ФМ: 0000000000871792 [23:08:57]line ФД: 156445 [23:08:57]line ФПД: 3491556013291 [23:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230858&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156445&fm=3491556013291&tin=02508201610067®Number=0000000000091693&sum=30000 [23:08:58]OFD Sender: Processing packet 156445 [packets to send 31, broken 30] [23:08:58]ProducePacketName [23:08:58]name=ofd_packets/00156445 [23:08:58]OFD Sender: To server: pG, [23:08:58]CommunicateWithHost lk.salyk.kg:30040 [23:08:58]ConnectInit lk.salyk.kg [23:08:58]written 0, free lines is 4095 [23:08:58]Connected sock=10 [23:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 F1 07 01 75 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 8A 76 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 63 02 00 35 04 06 00 03 2C F0 F4 B4 EB 31 92 F1 C4 B1 4F F0 B0 [23:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F4 88 47 00 9A 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 63 02 00 F4 03 04 00 FC 1B 1D 67 B6 04 01 00 00 C0 C5 87 5E 12 5B 55 15 [23:08:58]CommunicateWithHost err = 0 [23:08:58]CheckOFDResponse [23:08:58]1017 (14) - 77093643461234 [23:08:58]1041 (16) - 0000000000871792 [23:08:58]1040 (4) - 156445 [23:08:58]1012 (4) - 26.10.2024 16:42 [23:08:58]1206 (1) - 0 [23:08:58]OFD Sender: Remove packet 156445 [23:08:58]ProducePacketName [23:08:58]name=ofd_packets/00156445 [23:08:58]NVStorageDeleteData [23:08:58]Write to MH i2c: 01 00 00 19 2F 48 [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: 01 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: 01 07 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: 01 07 00 19 2F 00 00 00 00 00 D8 0C 33 [23:08:58]RasterBufferAndPrint [23:08:58]line [23:08:58]line [23:08:58]line [23:08:58]line [23:08:58]line [23:08:58]written 0, free lines is 3295 [23:08:58]process_action close_receipt done [23:08:58]requested_data is exist [23:08:58]produce_requested_data [23:08:58]requested_item fm.sn is exist - process it [23:08:58]wFMCommunicate request_size=4 [23:08:58]MH_SAM_APDU [23:08:58]CAPDU: 80 11 00 00 [23:08:58]Write to MH i2c: E2 08 00 20 2F 80 11 00 00 00 00 00 00 C9 [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:58]Read from MH i2c: E2 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 17 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 17 00 20 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [23:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:08:58]wFMCommunicate OK [23:08:58]requested_item fd.num is exist - process it [23:08:58]SAM_PROTO_GetFieldsCounters [23:08:58]wFMCommunicate request_size=4 [23:08:58]MH_SAM_APDU [23:08:58]CAPDU: 80 13 00 00 [23:08:58]Write to MH i2c: E2 08 00 21 2F 80 13 00 00 00 00 00 00 CC [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:58]Read from MH i2c: E2 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 62 00 [23:08:58]MH_I2C_Read... [23:08:58]Read from MH i2c: E2 62 00 21 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1D 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [23:08: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1D 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:58]wFMCommunicate OK [23:08:58]SAM_PROTO_GetFieldsCounters done [23:08:58]requested_item shift.num is exist - process it [23:08:58]requested_item shift.opened is exist - process it [23:08:58]req_shift_opened [23:08:58]FM_GetShiftState [23:08:58]SAM_PROTO_GetShiftState [23:08:58]wFMCommunicate request_size=4 [23:08:58]MH_SAM_APDU [23:08:58]CAPDU: 80 13 01 00 [23:08:58]Write to MH i2c: E2 08 00 22 2F 80 13 01 00 00 00 00 00 CE [23:08:58]Write i2c OK [23:08:58]MH_I2C_Read... [23:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:59]Read from MH i2c: E2 [23:08:59]MH_I2C_Read... [23:08:59]Read from MH i2c: E2 0E 00 [23:08:59]MH_I2C_Read... [23:08:59]Read from MH i2c: E2 0E 00 22 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 03 [23:08:59]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [23:08:59]wFMCommunicate OK [23:08:59]SAM_PROTO_GetShiftState done [23:08:59]FM_GetShiftState done [23:08:59]req_shift_opened done [23:08:59]requested_item shift.open_date is exist - process it [23:08:59]req_shift_open_date [23:08:59]req_shift_open_date done [23:08:59]produce_requested_data done [23:08:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156445,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [23:08:59]process_action_free close_receipt [23:08:59]json_value_free [23:08:59]json_value_free done [23:08:59]process_json_proto returns [23:08:59]Send response to host [23:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156445,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [23:08:59]free response buf [23:08:59]execute_script done [23:08:59]execute_script returns [23:08:59]free content buf [23:08:59]Sock 8.Close socket [23:08:59]Sock 8.Thread stoped [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:50]accept exits with 9 [23:13:50]New connection [23:13:50]New thread 3066834276 created [23:13:50]Thread 3066977636 joined [23:13:50]Waiting for new connection... [23:13:50] Sock 9.Parse request [23:13:50]Sock 9.Check first char [23:13:50]Sock 9.First char is OK [23:13:50]request: POST /json_proto HTTP/1.0 [23:13:50]Method: POST [23:13:50]URL: /json_proto [23:13:50]Method is POST - this is cgi request [23:13:50]url: /json_proto [23:13:50]query_string will be loaded in cgi processing [23:13:50]execute_cgi json_proto POST (null) [23:13:50]execute_cgi path=json_proto method=POST [23:13:50]POST find Content-Length [23:13:50]Host: 172.17.63.3:8080 [23:13:50]Content-Length: 765 [23:13:50]Content-Type: application/json [23:13:50] [23:13:50]POST finish read [23:13:50]Found Content-Length = 765 [23:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:50]execute_script... [23:13:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:50]POST & json_proto [23:13:50]process_json_proto [23:13:50]json parsed OK: [23:13:50]protocol is kg_v1.0 [23:13:50]action value=close_receipt [23:13:50]process_action close_receipt [23:13:50]cmd_close_receipt [23:13:50]MH_GetDate [23:13:50]Write to MH i2c: F0 00 00 23 2F 41 [23:13:50]Write i2c OK [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: F0 [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: F0 09 00 [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: F0 09 00 23 2F 00 B0 77 1D 67 50 D1 6C 64 E6 [23:13:50]GetLastDocTimeStamp 1729984138 [23:13:50]current date 1729984432 [23:13:50]FM_GetShiftState [23:13:50]SAM_PROTO_GetShiftState [23:13:50]wFMCommunicate request_size=4 [23:13:50]MH_SAM_APDU [23:13:50]CAPDU: 80 13 01 00 [23:13:50]Write to MH i2c: E2 08 00 24 2F 80 13 01 00 00 00 00 00 D0 [23:13:50]Write i2c OK [23:13:50]MH_I2C_Read... [23:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:50]Read from MH i2c: E2 [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: E2 0E 00 [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: E2 0E 00 24 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 05 [23:13:50]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [23:13:50]wFMCommunicate OK [23:13:50]SAM_PROTO_GetShiftState done [23:13:50]FM_GetShiftState done [23:13:50]opened in 1729902702 [23:13:50]opened+sec_in_day 1729989102 [23:13:50]quantity*price = 40006 [23:13:50]sum+1 = 40007 [23:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 347 26.10.2024 23:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156446 ФПД: 34879003193851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T231352&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156446&fm=34879003193851&tin=02508201610067®Number=0000000000091693&sum=40006 [23:13:51]StoreToDocumentArchive [23:13:51]shift 536 fd 156446 [23:13:51]save to /storage/0536/doc_00156446 [23:13:51]save last doc name /storage/0536/doc_00156446 to /storage/kkm_last_doc_name [23:13:51]save OK [23:13:51]Clear old archive folders... [23:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:51]tlvbuf is 01712110 [23:13:51]SAM_PROTO_ClearQueue [23:13:51]wFMCommunicate request_size=4 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 09 00 00 [23:13:51]Write to MH i2c: E2 08 00 31 2F 80 09 00 00 00 00 00 00 D2 [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 31 2F 00 90 00 D4 [23:13:51]RAPDU: 90 00 [23:13:51]wFMCommunicate OK [23:13:51]SAM_PROTO_ClearQueue done [23:13:51]KKMCreateOFDPacket [23:13:51]OFDProtocolAddRootSTLVToBuf [23:13:51]FM_MakeSignedData [23:13:51]FM_MakeSignedData [23:13:51]SAM_PROTO_SignData [23:13:51]wFMCommunicate request_size=4 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 0D 01 02 [23:13:51]Write to MH i2c: E2 08 00 32 2F 80 0D 01 02 00 00 00 00 DA [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 32 2F 00 90 00 D5 [23:13:51]RAPDU: 90 00 [23:13:51]wFMCommunicate OK [23:13:51]wFMCommunicate request_size=255 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 B0 77 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 63 02 00 35 04 06 00 1F [23:13:51]Write to MH i2c: E2 02 01 33 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 B0 77 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 63 02 00 35 04 06 00 1F 00 00 0C [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 33 2F 00 90 00 D6 [23:13:51]RAPDU: 90 00 [23:13:51]wFMCommunicate OK [23:13:51]wFMCommunicate request_size=10 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 0D 02 02 05 B8 E6 98 71 FB [23:13:51]Write to MH i2c: E2 0D 00 34 2F 80 0D 02 02 05 00 B8 E6 98 71 FB 00 00 89 [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 34 2F 00 90 00 D7 [23:13:51]RAPDU: 90 00 [23:13:51]wFMCommunicate OK [23:13:51]wFMCommunicate request_size=4 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 0D 03 02 [23:13:51]Write to MH i2c: E2 08 00 35 2F 80 0D 03 02 00 00 00 00 DF [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 0B 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 0B 00 35 2F 00 8D 09 E1 D0 64 DE D8 5C 90 00 9D [23:13:51]RAPDU: 8D 09 E1 D0 64 DE D8 5C 90 00 [23:13:51]wFMCommunicate OK [23:13:51]SAM_PROTO_SignData done [23:13:51]FM_MakeSignedData done [23:13:51]CreateOFDProtocolMessage [23:13:51]wFMCommunicate request_size=4 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 11 00 00 [23:13:51]Write to MH i2c: E2 08 00 36 2F 80 11 00 00 00 00 00 00 DF [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 17 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 17 00 36 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [23:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:13:51]wFMCommunicate OK [23:13:51]CreateOFDProtocolMessage done [23:13:51]OFDSenderStorePacket 156446 [23:13:51]StoreOFDPacket docnum=156446 [23:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CD 6A 07 01 63 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 B0 77 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 63 02 00 35 04 06 00 1F B8 E6 98 71 FB 8D 09 E1 D0 64 DE D8 5C [23:13:51]CheckFolder [23:13:51]dirname=/storage/ofd_packets [23:13:51]CheckFolder done [23:13:51]ProducePacketName [23:13:51]name=ofd_packets/00156446 [23:13:51]NVStorageSaveData ofd_packets/00156446 [23:13:51]File name is /storage/ofd_packets/00156446 [23:13:51]Write 301 bytes [23:13:51]NVStorageSaveData done [23:13:51]OFDSenderStorePacket done [23:13:51]KKMCreateOFDPacket done [23:13:51]NVStorageSaveData kkm_last_timestamp [23:13:51]File name is /storage/kkm_last_timestamp [23:13:51]Write 4 bytes [23:13:51]NVStorageSaveData done [23:13:51]ExternCall_PrintAddStr [23:13:51]wPrintStart [23:13:51]Write to MH i2c: 01 00 00 37 2F 66 [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: 01 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: 01 07 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: 01 07 00 37 2F 00 00 00 00 00 FF 0F 7B [23:13:51]RasterBufferAndPrint [23:13:51]line Счет N : (1)99261 [23:13:51]line ИНН: 02508201610067 [23:13:51]line Контрольно-Кассовый Чек [23:13:51]line ПРОДАЖА [23:13:51]line ТРК (МРК, ГНК) : 21 [23:13:51]line Товар: 2710124130 [23:13:51]line Аи-92-К-5 [23:13:51]line 5.980 * 66.90 [23:13:51]line = 400.06 [23:13:51]line НДС 12% НСП 1% [23:13:51]line > о реализуемом товаре [23:13:51]line ИТОГО: 400.06 [23:13:51]line НСП 1% : 3.54 [23:13:51]line НДС 12% : 42.48 [23:13:51]line Наличными: 0.00 [23:13:51]line Безнал.: 400.06 [23:13:51]line Место: АЗС № 143 "Партнер Нефть" [23:13:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:13:51]line СНО: Общий режим [23:13:51]line Чек 347 26.10.2024 23:13 [23:13:51]line Смена: 536 ФФД: 1.0 [23:13:51]line ЗНМ: 0300000096 [23:13:51]line РНМ: 0000000000091693 [23:13:51]line Версия ККМ: 001 [23:13:51]line Платежная система: Mbank [23:13:51]line ФМ: 0000000000871792 [23:13:51]line ФД: 156446 [23:13:51]line ФПД: 34879003193851 [23:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T231352&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156446&fm=34879003193851&tin=02508201610067®Number=0000000000091693&sum=40006 [23:13:52]OFD Sender: Processing packet 156446 [packets to send 31, broken 30] [23:13:52]ProducePacketName [23:13:52]name=ofd_packets/00156446 [23:13:52]OFD Sender: To server: pG, [23:13:52]CommunicateWithHost lk.salyk.kg:30040 [23:13:52]ConnectInit lk.salyk.kg [23:13:52]written 0, free lines is 4095 [23:13:52]Connected sock=10 [23:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CD 6A 07 01 63 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 B0 77 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 63 02 00 35 04 06 00 1F B8 E6 98 71 FB 8D 09 E1 D0 64 DE D8 5C [23:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 22 5D 47 00 F5 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 31 37 39 32 10 04 04 00 1E 63 02 00 F4 03 04 00 22 1D 1D 67 B6 04 01 00 00 88 21 15 03 06 48 0C 84 [23:13:52]CommunicateWithHost err = 0 [23:13:52]CheckOFDResponse [23:13:52]1017 (14) - 77093643461234 [23:13:52]1041 (16) - 0000000000871792 [23:13:52]1040 (4) - 156446 [23:13:52]1012 (4) - 26.10.2024 16:47 [23:13:52]1206 (1) - 0 [23:13:52]OFD Sender: Remove packet 156446 [23:13:52]ProducePacketName [23:13:52]name=ofd_packets/00156446 [23:13:52]NVStorageDeleteData [23:13:52]Write to MH i2c: 01 00 00 60 2F 8F [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 07 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 07 00 60 2F 00 00 00 00 00 FB 0C 9D [23:13:52]RasterBufferAndPrint [23:13:52]line [23:13:52]line [23:13:52]line [23:13:52]line [23:13:52]line [23:13:52]written 0, free lines is 3332 [23:13:52]process_action close_receipt done [23:13:52]requested_data is exist [23:13:52]produce_requested_data [23:13:52]requested_item fm.sn is exist - process it [23:13:52]wFMCommunicate request_size=4 [23:13:52]MH_SAM_APDU [23:13:52]CAPDU: 80 11 00 00 [23:13:52]Write to MH i2c: E2 08 00 67 2F 80 11 00 00 00 00 00 00 10 [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:52]Read from MH i2c: E2 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 17 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 17 00 67 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [23:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:13:52]wFMCommunicate OK [23:13:52]requested_item fd.num is exist - process it [23:13:52]SAM_PROTO_GetFieldsCounters [23:13:52]wFMCommunicate request_size=4 [23:13:52]MH_SAM_APDU [23:13:52]CAPDU: 80 13 00 00 [23:13:52]Write to MH i2c: E2 08 00 68 2F 80 13 00 00 00 00 00 00 13 [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:52]Read from MH i2c: E2 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 62 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 62 00 68 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1E 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [23:13: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1E 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:52]wFMCommunicate OK [23:13:52]SAM_PROTO_GetFieldsCounters done [23:13:52]requested_item shift.num is exist - process it [23:13:52]requested_item shift.opened is exist - process it [23:13:52]req_shift_opened [23:13:52]FM_GetShiftState [23:13:52]SAM_PROTO_GetShiftState [23:13:52]wFMCommunicate request_size=4 [23:13:52]MH_SAM_APDU [23:13:52]CAPDU: 80 13 01 00 [23:13:52]Write to MH i2c: E2 08 00 69 2F 80 13 01 00 00 00 00 00 15 [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:52]Read from MH i2c: E2 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 0E 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 0E 00 69 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 4A [23:13:52]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [23:13:52]wFMCommunicate OK [23:13:52]SAM_PROTO_GetShiftState done [23:13:52]FM_GetShiftState done [23:13:52]req_shift_opened done [23:13:52]requested_item shift.open_date is exist - process it [23:13:52]req_shift_open_date [23:13:52]req_shift_open_date done [23:13:52]produce_requested_data done [23:13:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156446,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [23:13:52]process_action_free close_receipt [23:13:52]json_value_free [23:13:52]json_value_free done [23:13:52]process_json_proto returns [23:13:52]Send response to host [23:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156446,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [23:13:52]free response buf [23:13:52]execute_script done [23:13:52]execute_script returns [23:13:52]free content buf [23:13:52]Sock 9.Close socket [23:13:52]Sock 9.Thread stoped [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51: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:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:28]int [00:03:28]Write to MH i2c: 01 00 00 6A 2F 99 [00:03:28]*** FLAG_PRN_KEY set [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 07 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 07 00 6A 2F 00 08 00 00 00 FF 0F B6 [00:03:28]state=0 [00:03:28]Key pressed [00:03:28]Feed [00:03:28]Write to MH i2c: D8 00 00 6B 2F 71 [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: D8 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: D8 01 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: D8 01 00 6B 2F 00 72 [00:03:28]int [00:03:28]Write to MH i2c: 01 00 00 6C 2F 9B [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 07 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 07 00 6C 2F 00 48 00 00 00 3D 00 27 [00:03:28]state=2 [00:03:28]Key pressed [00:03:28]int [00:03:28]Write to MH i2c: 01 00 00 6D 2F 9C [00:03:28]*** FLAG_PRN_KEY reset [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 07 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: 01 07 00 6D 2F 00 00 00 00 00 F5 0F A7 [00:03:28]state=2 [00:03:28]Stop feed [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]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:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:06]accept exits with 8 [00:12:06]New connection [00:12:06]New thread 3066977636 created [00:12:06]Thread 3066834276 joined [00:12:06]Waiting for new connection... [00:12:06] Sock 8.Parse request [00:12:06]Sock 8.Check first char [00:12:06]Sock 8.First char is OK [00:12:06]request: POST /json_proto HTTP/1.0 [00:12:06]Method: POST [00:12:06]URL: /json_proto [00:12:06]Method is POST - this is cgi request [00:12:06]url: /json_proto [00:12:06]query_string will be loaded in cgi processing [00:12:06]execute_cgi json_proto POST (null) [00:12:06]execute_cgi path=json_proto method=POST [00:12:06]POST find Content-Length [00:12:06]Host: 172.17.63.3:8080 [00:12:06]Content-Length: 676 [00:12:06]Content-Type: application/json [00:12:06] [00:12:06]POST finish read [00:12:06]Found Content-Length = 676 [00:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:06]execute_script... [00:12:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:06]POST & json_proto [00:12:06]process_json_proto [00:12:06]json parsed OK: [00:12:06]protocol is kg_v1.0 [00:12:06]action value=close_receipt [00:12:06]process_action close_receipt [00:12:06]cmd_close_receipt [00:12:06]MH_GetDate [00:12:06]Write to MH i2c: F0 00 00 6E 2F 8C [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: F0 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: F0 09 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: F0 09 00 6E 2F 00 59 85 1D 67 50 D1 6C 64 E8 [00:12:06]GetLastDocTimeStamp 1729984432 [00:12:06]current date 1729987929 [00:12:06]FM_GetShiftState [00:12:06]SAM_PROTO_GetShiftState [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 13 01 00 [00:12:06]Write to MH i2c: E2 08 00 6F 2F 80 13 01 00 00 00 00 00 1B [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 0E 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 0E 00 6F 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 50 [00:12:06]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [00:12:06]wFMCommunicate OK [00:12:06]SAM_PROTO_GetShiftState done [00:12:06]FM_GetShiftState done [00:12:06]opened in 1729902702 [00:12:06]opened+sec_in_day 1729989102 [00:12:06]quantity*price = 20003 [00:12:06]sum+1 = 20004 [00:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 348 27.10.2024 00:12 Смена: 536 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156447 ФПД: 8302520207458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T001209&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156447&fm=8302520207458&tin=02508201610067®Number=0000000000091693&sum=20000 [00:12:07]StoreToDocumentArchive [00:12:07]shift 536 fd 156447 [00:12:07]save to /storage/0536/doc_00156447 [00:12:07]save last doc name /storage/0536/doc_00156447 to /storage/kkm_last_doc_name [00:12:07]save OK [00:12:07]Clear old archive folders... [00:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:12:07]tlvbuf is 01754030 [00:12:07]SAM_PROTO_ClearQueue [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 09 00 00 [00:12:07]Write to MH i2c: E2 08 00 7C 2F 80 09 00 00 00 00 00 00 1D [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 03 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 03 00 7C 2F 00 90 00 1F [00:12:07]RAPDU: 90 00 [00:12:07]wFMCommunicate OK [00:12:07]SAM_PROTO_ClearQueue done [00:12:07]KKMCreateOFDPacket [00:12:07]OFDProtocolAddRootSTLVToBuf [00:12:07]FM_MakeSignedData [00:12:07]FM_MakeSignedData [00:12:07]SAM_PROTO_SignData [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 0D 01 02 [00:12:07]Write to MH i2c: E2 08 00 7D 2F 80 0D 01 02 00 00 00 00 25 [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 03 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 03 00 7D 2F 00 90 00 20 [00:12:07]RAPDU: 90 00 [00:12:07]wFMCommunicate OK [00:12:07]wFMCommunicate request_size=255 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 59 85 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 63 02 00 35 04 06 00 07 [00:12:07]Write to MH i2c: E2 02 01 7E 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 59 85 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 63 02 00 35 04 06 00 07 00 00 DF [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 03 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 03 00 7E 2F 00 90 00 21 [00:12:07]RAPDU: 90 00 [00:12:07]wFMCommunicate OK [00:12:07]wFMCommunicate request_size=10 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 0D 02 02 05 8D 14 C4 88 62 [00:12:07]Write to MH i2c: E2 0D 00 7F 2F 80 0D 02 02 05 00 8D 14 C4 88 62 00 00 81 [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 03 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 03 00 7F 2F 00 90 00 22 [00:12:07]RAPDU: 90 00 [00:12:07]wFMCommunicate OK [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 0D 03 02 [00:12:07]Write to MH i2c: E2 08 00 80 2F 80 0D 03 02 00 00 00 00 2A [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 0B 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 0B 00 80 2F 00 7E EF 84 5F E9 A6 93 26 90 00 C3 [00:12:07]RAPDU: 7E EF 84 5F E9 A6 93 26 90 00 [00:12:07]wFMCommunicate OK [00:12:07]SAM_PROTO_SignData done [00:12:07]FM_MakeSignedData done [00:12:07]CreateOFDProtocolMessage [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 11 00 00 [00:12:07]Write to MH i2c: E2 08 00 81 2F 80 11 00 00 00 00 00 00 2A [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 17 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 17 00 81 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [00:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:12:07]wFMCommunicate OK [00:12:07]CreateOFDProtocolMessage done [00:12:07]OFDSenderStorePacket 156447 [00:12:07]StoreOFDPacket docnum=156447 [00:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 27 E5 07 01 58 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 59 85 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 63 02 00 35 04 06 00 07 8D 14 C4 88 62 7E EF 84 5F E9 A6 93 26 [00:12:07]CheckFolder [00:12:07]dirname=/storage/ofd_packets [00:12:07]CheckFolder done [00:12:07]ProducePacketName [00:12:07]name=ofd_packets/00156447 [00:12:07]NVStorageSaveData ofd_packets/00156447 [00:12:07]File name is /storage/ofd_packets/00156447 [00:12:07]Write 301 bytes [00:12:07]NVStorageSaveData done [00:12:07]OFDSenderStorePacket done [00:12:07]KKMCreateOFDPacket done [00:12:07]NVStorageSaveData kkm_last_timestamp [00:12:07]File name is /storage/kkm_last_timestamp [00:12:07]Write 4 bytes [00:12:07]NVStorageSaveData done [00:12:07]ExternCall_PrintAddStr [00:12:07]wPrintStart [00:12:07]Write to MH i2c: 01 00 00 82 2F B1 [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: 01 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: 01 07 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: 01 07 00 82 2F 00 00 00 00 00 FF 0F C6 [00:12:07]RasterBufferAndPrint [00:12:07]line Счет N : (1)99262 [00:12:07]line ИНН: 02508201610067 [00:12:07]line Контрольно-Кассовый Чек [00:12:07]line ПРОДАЖА [00:12:07]line ТРК (МРК, ГНК) : 21 [00:12:07]line Товар: 2710124130 [00:12:07]line Аи-92-К-5 [00:12:07]line 2.990 * 66.90 [00:12:07]line = 200.03 [00:12:07]line НДС 12% НСП 1% [00:12:07]line > о реализуемом товаре [00:12:07]line ОКРУГЛЕНИЕ: -0.03 [00:12:07]line ИТОГО: 200.00 [00:12:07]line Внесено: 200.00 [00:12:07]line СДАЧА: 0.00 [00:12:07]line НСП 1% : 1.77 [00:12:07]line НДС 12% : 21.24 [00:12:07]line Наличными: 200.00 [00:12:07]line Безнал.: 0.00 [00:12:07]line Место: АЗС № 143 "Партнер Нефть" [00:12:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:12:07]line СНО: Общий режим [00:12:07]line Чек 348 27.10.2024 00:12 [00:12:07]line Смена: 536 ФФД: 1.0 [00:12:07]line ЗНМ: 0300000096 [00:12:07]line РНМ: 0000000000091693 [00:12:07]line Версия ККМ: 001 [00:12:07]line ФМ: 0000000000871792 [00:12:07]line ФД: 156447 [00:12:07]line ФПД: 8302520207458 [00:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T001209&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156447&fm=8302520207458&tin=02508201610067®Number=0000000000091693&sum=20000 [00:12:08]OFD Sender: Processing packet 156447 [packets to send 31, broken 30] [00:12:08]ProducePacketName [00:12:08]name=ofd_packets/00156447 [00:12:08]OFD Sender: To server: pG, [00:12:08]CommunicateWithHost lk.salyk.kg:30040 [00:12:08]ConnectInit lk.salyk.kg [00:12:08]written 0, free lines is 4095 [00:12:08]Connected sock=10 [00:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 27 E5 07 01 58 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 59 85 1D 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 63 02 00 35 04 06 00 07 8D 14 C4 88 62 7E EF 84 5F E9 A6 93 26 [00:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1B A2 47 00 C6 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 63 02 00 F4 03 04 00 CA 2A 1D 67 B6 04 01 00 00 86 BF 2E 56 34 76 41 DC [00:12:08]CommunicateWithHost err = 0 [00:12:08]CheckOFDResponse [00:12:08]1017 (14) - 77093643461234 [00:12:08]1041 (16) - 0000000000871792 [00:12:08]1040 (4) - 156447 [00:12:08]1012 (4) - 26.10.2024 17:45 [00:12:08]1206 (1) - 0 [00:12:08]OFD Sender: Remove packet 156447 [00:12:08]ProducePacketName [00:12:08]name=ofd_packets/00156447 [00:12:08]NVStorageDeleteData [00:12:08]Write to MH i2c: 01 00 00 AD 2F DC [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: 01 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: 01 07 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: 01 07 00 AD 2F 00 00 00 00 00 D4 0C C3 [00:12:08]RasterBufferAndPrint [00:12:08]line [00:12:08]line [00:12:08]line [00:12:08]line [00:12:08]line [00:12:08]written 0, free lines is 3292 [00:12:08]process_action close_receipt done [00:12:08]requested_data is exist [00:12:08]produce_requested_data [00:12:08]requested_item fm.sn is exist - process it [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 11 00 00 [00:12:08]Write to MH i2c: E2 08 00 B4 2F 80 11 00 00 00 00 00 00 5D [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:08]Read from MH i2c: E2 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 17 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 17 00 B4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B2 [00:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:12:08]wFMCommunicate OK [00:12:08]requested_item fd.num is exist - process it [00:12:08]SAM_PROTO_GetFieldsCounters [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 13 00 00 [00:12:08]Write to MH i2c: E2 08 00 B5 2F 80 13 00 00 00 00 00 00 60 [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:08]Read from MH i2c: E2 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 62 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 62 00 B5 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [00:12:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:08]wFMCommunicate OK [00:12:08]SAM_PROTO_GetFieldsCounters done [00:12:08]requested_item shift.num is exist - process it [00:12:08]requested_item shift.opened is exist - process it [00:12:08]req_shift_opened [00:12:08]FM_GetShiftState [00:12:08]SAM_PROTO_GetShiftState [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 13 01 00 [00:12:08]Write to MH i2c: E2 08 00 B6 2F 80 13 01 00 00 00 00 00 62 [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:09]Read from MH i2c: E2 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 0E 00 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 0E 00 B6 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 97 [00:12:09]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [00:12:09]wFMCommunicate OK [00:12:09]SAM_PROTO_GetShiftState done [00:12:09]FM_GetShiftState done [00:12:09]req_shift_opened done [00:12:09]requested_item shift.open_date is exist - process it [00:12:09]req_shift_open_date [00:12:09]req_shift_open_date done [00:12:09]produce_requested_data done [00:12:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156447,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [00:12:09]process_action_free close_receipt [00:12:09]json_value_free [00:12:09]json_value_free done [00:12:09]process_json_proto returns [00:12:09]Send response to host [00:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156447,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [00:12:09]free response buf [00:12:09]execute_script done [00:12:09]execute_script returns [00:12:09]free content buf [00:12:09]Sock 8.Close socket [00:12:09]Sock 8.Thread stoped [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:07]int [00:20:07]Write to MH i2c: 01 00 00 B7 2F E6 [00:20:07]*** FLAG_PRN_KEY set [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 07 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 07 00 B7 2F 00 08 00 00 00 FF 0F 03 [00:20:07]state=0 [00:20:07]Key pressed [00:20:07]Feed [00:20:07]Write to MH i2c: D8 00 00 B8 2F BE [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: D8 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: D8 01 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: D8 01 00 B8 2F 00 BF [00:20:07]int [00:20:07]Write to MH i2c: 01 00 00 B9 2F E8 [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 07 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 07 00 B9 2F 00 48 00 00 00 3D 00 74 [00:20:07]state=2 [00:20:07]Key pressed [00:20:07]int [00:20:07]Write to MH i2c: 01 00 00 BA 2F E9 [00:20:07]*** FLAG_PRN_KEY reset [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 07 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: 01 07 00 BA 2F 00 00 00 00 00 F5 0F F4 [00:20:07]state=2 [00:20:07]Stop feed [00:20:08]int [00:20:08]Write to MH i2c: 01 00 00 BB 2F EA [00:20:08]*** FLAG_PRN_KEY set [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 07 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 07 00 BB 2F 00 08 00 00 00 FF 0F 07 [00:20:08]state=0 [00:20:08]Key pressed [00:20:08]Feed [00:20:08]Write to MH i2c: D8 00 00 BC 2F C2 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: D8 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: D8 01 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: D8 01 00 BC 2F 00 C3 [00:20:08]int [00:20:08]Write to MH i2c: 01 00 00 BD 2F EC [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 07 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 07 00 BD 2F 00 48 00 00 00 3C 00 77 [00:20:08]state=2 [00:20:08]Key pressed [00:20:08]int [00:20:08]Write to MH i2c: 01 00 00 BE 2F ED [00:20:08]*** FLAG_PRN_KEY reset [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 07 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: 01 07 00 BE 2F 00 00 00 00 00 F6 0F F9 [00:20:08]state=2 [00:20:08]Stop feed [00:20:09]OFD Sender: No OFD packet to send [00:20:12]int [00:20:12]Write to MH i2c: 01 00 00 BF 2F EE [00:20:12]*** FLAG_PRN_PAP1 set [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 07 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 07 00 BF 2F 00 01 00 00 00 FF 0F 04 [00:20:12]state=0 [00:20:12]No paper [00:20:12]int [00:20:12]Write to MH i2c: 01 00 00 C0 2F EF [00:20:12]*** FLAG_PRN_PAP2 set [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 07 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 07 00 C0 2F 00 03 00 00 00 FF 0F 07 [00:20:12]state=0 [00:20:12]No paper [00:20:12]Cover opened [00:20:14]OFD Sender: No OFD packet to send [00:20:15]int [00:20:15]Write to MH i2c: 01 00 00 C1 2F F0 [00:20:15]*** FLAG_PRN_PAP2 reset [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 C1 2F 00 01 00 00 00 FF 0F 06 [00:20:15]state=3 [00:20:15]No paper [00:20:15]Cover closed [00:20:15]int [00:20:15]Write to MH i2c: 01 00 00 C2 2F F1 [00:20:15]*** FLAG_PRN_PAP1 reset [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 C2 2F 00 00 00 00 00 FF 0F 06 [00:20:15]state=0 [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20: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:46]accept exits with 9 [00:25:46]New connection [00:25:46]New thread 3066834276 created [00:25:46]Thread 3066977636 joined [00:25:46]Waiting for new connection... [00:25:46] Sock 9.Parse request [00:25:46]Sock 9.Check first char [00:25:46]Sock 9.First char is OK [00:25:46]request: POST /json_proto HTTP/1.0 [00:25:46]Method: POST [00:25:46]URL: /json_proto [00:25:46]Method is POST - this is cgi request [00:25:46]url: /json_proto [00:25:46]query_string will be loaded in cgi processing [00:25:46]execute_cgi json_proto POST (null) [00:25:46]execute_cgi path=json_proto method=POST [00:25:46]POST find Content-Length [00:25:46]Host: 172.17.63.3:8080 [00:25:46]Content-Length: 215 [00:25:46]Content-Type: application/json [00:25:46] [00:25:46]POST finish read [00:25:46]Found Content-Length = 215 [00:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:46]execute_script... [00:25:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:46]POST & json_proto [00:25:46]process_json_proto [00:25:46]json parsed OK: [00:25:46]protocol is kg_v1.0 [00:25:46]action value=get_value [00:25:46]process_action get_value [00:25:46]cmd_get_value [00:25:46]process_action get_value done [00:25:46]requested_data is exist [00:25:46]produce_requested_data [00:25:46]requested_item kkm.sn is exist - process it [00:25:46]requested_item kkm.ver is exist - process it [00:25:46]requested_item fm.sn is exist - process it [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 11 00 00 [00:25:46]Write to MH i2c: E2 08 00 C3 2F 80 11 00 00 00 00 00 00 6C [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 17 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 17 00 C3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C1 [00:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:25:46]wFMCommunicate OK [00:25:46]requested_item fd.num is exist - process it [00:25:46]SAM_PROTO_GetFieldsCounters [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 13 00 00 [00:25:46]Write to MH i2c: E2 08 00 C4 2F 80 13 00 00 00 00 00 00 6F [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 62 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 62 00 C4 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [00:25:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:46]wFMCommunicate OK [00:25:46]SAM_PROTO_GetFieldsCounters done [00:25:46]requested_item shift.num is exist - process it [00:25:46]requested_item shift.opened is exist - process it [00:25:46]req_shift_opened [00:25:46]FM_GetShiftState [00:25:46]SAM_PROTO_GetShiftState [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 13 01 00 [00:25:46]Write to MH i2c: E2 08 00 C5 2F 80 13 01 00 00 00 00 00 71 [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 0E 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 0E 00 C5 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 A6 [00:25:46]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [00:25:46]wFMCommunicate OK [00:25:46]SAM_PROTO_GetShiftState done [00:25:46]FM_GetShiftState done [00:25:46]req_shift_opened done [00:25:46]requested_item shift.open_date is exist - process it [00:25:46]req_shift_open_date [00:25:46]req_shift_open_date done [00:25:46]produce_requested_data done [00:25:46]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156447,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [00:25:46]process_action_free get_value [00:25:46]json_value_free [00:25:46]json_value_free done [00:25:46]process_json_proto returns [00:25:46]Send response to host [00:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156447,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [00:25:46]free response buf [00:25:46]execute_script done [00:25:46]execute_script returns [00:25:46]free content buf [00:25:46]Sock 9.Close socket [00:25:46]Sock 9.Thread stoped [00:25:46]accept exits with 8 [00:25:46]New connection [00:25:46]New thread 3066977636 created [00:25:46]Thread 3066834276 joined [00:25:46]Waiting for new connection... [00:25:46] Sock 8.Parse request [00:25:46]Sock 8.Check first char [00:25:46]Sock 8.First char is OK [00:25:46]request: POST /json_proto HTTP/1.0 [00:25:46]Method: POST [00:25:46]URL: /json_proto [00:25:46]Method is POST - this is cgi request [00:25:46]url: /json_proto [00:25:46]query_string will be loaded in cgi processing [00:25:46]execute_cgi json_proto POST (null) [00:25:46]execute_cgi path=json_proto method=POST [00:25:46]POST find Content-Length [00:25:46]Host: 172.17.63.3:8080 [00:25:46]Content-Length: 331 [00:25:46]Content-Type: application/json [00:25:46] [00:25:46]POST finish read [00:25:46]Found Content-Length = 331 [00:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:46]execute_script... [00:25:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:47]POST & json_proto [00:25:47]process_json_proto [00:25:47]json parsed OK: [00:25:47]protocol is kg_v1.0 [00:25:47]action value=get_value [00:25:47]process_action get_value [00:25:47]cmd_get_value [00:25:47]process_action get_value done [00:25:47]requested_data is exist [00:25:47]produce_requested_data [00:25:47]requested_item fm.sale.total is exist - process it [00:25:47]SAM_PROTO_GetFMData [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 13 03 00 [00:25:47]Write to MH i2c: E2 08 00 C6 2F 80 13 03 00 00 00 00 00 74 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:47]Read from MH i2c: E2 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 C6 2F 00 C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 A8 [00:25:47]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:25:47]wFMCommunicate OK [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 17 00 00 [00:25:47]Write to MH i2c: E2 08 00 C7 2F 80 17 00 00 00 00 00 00 76 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:47]Read from MH i2c: E2 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 C7 2F 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E5 [00:25:47]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:25:47]wFMCommunicate OK [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 17 00 00 [00:25:47]Write to MH i2c: E2 08 00 C8 2F 80 17 00 00 00 00 00 00 77 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 C8 2F 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [00:25:48]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:48]wFMCommunicate OK [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 17 00 00 [00:25:48]Write to MH i2c: E2 08 00 C9 2F 80 17 00 00 00 00 00 00 78 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 C9 2F 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F3 [00:25:48]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:48]wFMCommunicate OK [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 17 00 00 [00:25:48]Write to MH i2c: E2 08 00 CA 2F 80 17 00 00 00 00 00 00 79 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 DF 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 DF 00 CA 2F 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [00:25:48]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:48]wFMCommunicate OK [00:25:48]SAM_PROTO_GetFMData done [00:25:48]requested_item fm.sale_refund.total is exist - process it [00:25:48]requested_item fm.buy.total is exist - process it [00:25:48]requested_item shift.sale.total is exist - process it [00:25:48]SAM_PROTO_GetShiftData [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 13 02 00 [00:25:48]Write to MH i2c: E2 08 00 CB 2F 80 13 02 00 00 00 00 00 78 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 CB 2F 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 26 [00:25:49]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:49]wFMCommunicate OK [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 17 00 00 [00:25:49]Write to MH i2c: E2 08 00 CC 2F 80 17 00 00 00 00 00 00 7B [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 CC 2F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [00:25:49]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:49]wFMCommunicate OK [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 17 00 00 [00:25:49]Write to MH i2c: E2 08 00 CD 2F 80 17 00 00 00 00 00 00 7C [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 CD 2F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [00:25:49]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:49]wFMCommunicate OK [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 17 00 00 [00:25:49]Write to MH i2c: E2 08 00 CE 2F 80 17 00 00 00 00 00 00 7D [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]OFD Sender: No OFD packet to send [00:25:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 FD 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 FD 00 CE 2F 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 90 00 F5 [00:25:50]RAPDU: 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 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=4 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 17 00 00 [00:25:50]Write to MH i2c: E2 08 00 CF 2F 80 17 00 00 00 00 00 00 7E [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 CE 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 CE 00 CF 2F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [00:25:50]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:50]wFMCommunicate OK [00:25:50]SAM_PROTO_GetShiftData done [00:25:50]requested_item shift.sale.total_cash is exist - process it [00:25:50]requested_item shift.sale_refund.total is exist - process it [00:25:50]requested_item shift.sale_refund.total_cash is exist - process it [00:25:50]requested_item shift.buy.total is exist - process it [00:25:50]requested_item shift.buy.total_cash is exist - process it [00:25:50]produce_requested_data done [00:25:50]produce_requested_data return {"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.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:25:50]process_action_free get_value [00:25:50]json_value_free [00:25:50]json_value_free done [00:25:50]process_json_proto returns [00:25:50]Send response to host [00:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.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:25:50]free response buf [00:25:50]execute_script done [00:25:50]execute_script returns [00:25:50]free content buf [00:25:50]Sock 8.Close socket [00:25:50]Sock 8.Thread stoped [00:25:50]accept exits with 9 [00:25:50]New connection [00:25:50]New thread 3066834276 created [00:25:50]Thread 3066977636 joined [00:25:50]Waiting for new connection... [00:25:50] Sock 9.Parse request [00:25:50]Sock 9.Check first char [00:25:50]Sock 9.First char is OK [00:25:50]request: POST /json_proto HTTP/1.0 [00:25:50]Method: POST [00:25:50]URL: /json_proto [00:25:50]Method is POST - this is cgi request [00:25:50]url: /json_proto [00:25:50]query_string will be loaded in cgi processing [00:25:50]execute_cgi json_proto POST (null) [00:25:50]execute_cgi path=json_proto method=POST [00:25:50]POST find Content-Length [00:25:50]Host: 172.17.63.3:8080 [00:25:50]Content-Length: 331 [00:25:50]Content-Type: application/json [00:25:50] [00:25:50]POST finish read [00:25:50]Found Content-Length = 331 [00:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:50]execute_script... [00:25:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:50]POST & json_proto [00:25:50]process_json_proto [00:25:50]json parsed OK: [00:25:50]protocol is kg_v1.0 [00:25:50]action value=get_value [00:25:50]process_action get_value [00:25:50]cmd_get_value [00:25:50]process_action get_value done [00:25:50]requested_data is exist [00:25:50]produce_requested_data [00:25:50]requested_item fm.sale.total is exist - process it [00:25:50]SAM_PROTO_GetFMData [00:25:50]wFMCommunicate request_size=4 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 13 03 00 [00:25:50]Write to MH i2c: E2 08 00 D0 2F 80 13 03 00 00 00 00 00 7E [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 FD 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 FD 00 D0 2F 00 C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 B2 [00:25:50]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=4 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 17 00 00 [00:25:50]Write to MH i2c: E2 08 00 D1 2F 80 17 00 00 00 00 00 00 80 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 D1 2F 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 EF [00:25:51]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:25:51]wFMCommunicate OK [00:25:51]wFMCommunicate request_size=4 [00:25:51]MH_SAM_APDU [00:25:51]CAPDU: 80 17 00 00 [00:25:51]Write to MH i2c: E2 08 00 D2 2F 80 17 00 00 00 00 00 00 81 [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 D2 2F 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [00:25:51]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:51]wFMCommunicate OK [00:25:51]wFMCommunicate request_size=4 [00:25:51]MH_SAM_APDU [00:25:51]CAPDU: 80 17 00 00 [00:25:51]Write to MH i2c: E2 08 00 D3 2F 80 17 00 00 00 00 00 00 82 [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 D3 2F 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [00:25:52]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:52]wFMCommunicate OK [00:25:52]wFMCommunicate request_size=4 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 17 00 00 [00:25:52]Write to MH i2c: E2 08 00 D4 2F 80 17 00 00 00 00 00 00 83 [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 DF 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 DF 00 D4 2F 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [00:25:52]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:52]wFMCommunicate OK [00:25:52]SAM_PROTO_GetFMData done [00:25:52]requested_item fm.sale_refund.total is exist - process it [00:25:52]requested_item fm.buy.total is exist - process it [00:25:52]requested_item shift.sale.total is exist - process it [00:25:52]SAM_PROTO_GetShiftData [00:25:52]wFMCommunicate request_size=4 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 13 02 00 [00:25:52]Write to MH i2c: E2 08 00 D5 2F 80 13 02 00 00 00 00 00 82 [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 FD 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 FD 00 D5 2F 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 30 [00:25:52]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 17 00 00 [00:25:53]Write to MH i2c: E2 08 00 D6 2F 80 17 00 00 00 00 00 00 85 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 FD 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 FD 00 D6 2F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [00:25:53]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 17 00 00 [00:25:53]Write to MH i2c: E2 08 00 D7 2F 80 17 00 00 00 00 00 00 86 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 FD 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 FD 00 D7 2F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [00:25:53]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 17 00 00 [00:25:53]Write to MH i2c: E2 08 00 D8 2F 80 17 00 00 00 00 00 00 87 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 FD 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 FD 00 D8 2F 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 90 00 FF [00:25:54]RAPDU: 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 90 00 [00:25:54]wFMCommunicate OK [00:25:54]wFMCommunicate request_size=4 [00:25:54]MH_SAM_APDU [00:25:54]CAPDU: 80 17 00 00 [00:25:54]Write to MH i2c: E2 08 00 D9 2F 80 17 00 00 00 00 00 00 88 [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 CE 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 CE 00 D9 2F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6D [00:25:54]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:54]wFMCommunicate OK [00:25:54]SAM_PROTO_GetShiftData done [00:25:54]requested_item shift.sale.total_cash is exist - process it [00:25:54]requested_item shift.sale_refund.total is exist - process it [00:25:54]requested_item shift.sale_refund.total_cash is exist - process it [00:25:54]requested_item shift.buy.total is exist - process it [00:25:54]requested_item shift.buy.total_cash is exist - process it [00:25:54]produce_requested_data done [00:25:54]produce_requested_data return {"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.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:25:54]process_action_free get_value [00:25:54]json_value_free [00:25:54]json_value_free done [00:25:54]process_json_proto returns [00:25:54]Send response to host [00:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.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:25:54]free response buf [00:25:54]execute_script done [00:25:54]execute_script returns [00:25:54]free content buf [00:25:54]Sock 9.Close socket [00:25:54]Sock 9.Thread stoped [00:25:54]accept exits with 8 [00:25:54]New connection [00:25:54]New thread 3066977636 created [00:25:54]Thread 3066834276 joined [00:25:54]Waiting for new connection... [00:25:54] Sock 8.Parse request [00:25:54]Sock 8.Check first char [00:25:54]Sock 8.First char is OK [00:25:54]request: POST /json_proto HTTP/1.0 [00:25:54]Method: POST [00:25:54]URL: /json_proto [00:25:54]Method is POST - this is cgi request [00:25:54]url: /json_proto [00:25:54]query_string will be loaded in cgi processing [00:25:54]execute_cgi json_proto POST (null) [00:25:54]execute_cgi path=json_proto method=POST [00:25:54]POST find Content-Length [00:25:54]Host: 172.17.63.3:8080 [00:25:54]Content-Length: 251 [00:25:54]Content-Type: application/json [00:25:54] [00:25:54]POST finish read [00:25:54]Found Content-Length = 251 [00:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0420\u043E\u043C\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:54]execute_script... [00:25:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0420\u043E\u043C\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:54]POST & json_proto [00:25:54]process_json_proto [00:25:54]json parsed OK: [00:25:54]protocol is kg_v1.0 [00:25:54]action value=x_report [00:25:54]process_action x_report [00:25:54]cmd_x_report [00:25:54]MH_GetDate [00:25:54]Write to MH i2c: F0 00 00 DA 2F F8 [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: F0 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: F0 09 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: F0 09 00 DA 2F 00 95 88 1D 67 50 D1 6C 64 93 [00:25:54]GetLastDocTimeStamp 1729987929 [00:25:54]current date 1729988757 [00:25:54]FM_GetShiftState [00:25:54]SAM_PROTO_GetShiftState [00:25:54]wFMCommunicate request_size=4 [00:25:54]MH_SAM_APDU [00:25:54]CAPDU: 80 13 01 00 [00:25:54]Write to MH i2c: E2 08 00 DB 2F 80 13 01 00 00 00 00 00 87 [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 0E 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 0E 00 DB 2F 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 BC [00:25:54]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [00:25:54]wFMCommunicate OK [00:25:54]SAM_PROTO_GetShiftState done [00:25:54]FM_GetShiftState done [00:25:54]KKMCreateXReportDocument [00:25:54]Load OK [00:25:54]Malloc new data [00:25:54]MH_GetDate [00:25:54]Write to MH i2c: F0 00 00 DC 2F FA [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: F0 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: F0 09 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: F0 09 00 DC 2F 00 95 88 1D 67 50 D1 6C 64 95 [00:25:54]Malloc new data [00:25:54]Malloc new data [00:25:54]wFMCommunicate request_size=4 [00:25:54]MH_SAM_APDU [00:25:54]CAPDU: 80 11 00 00 [00:25:54]Write to MH i2c: E2 08 00 DD 2F 80 11 00 00 00 00 00 00 86 [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:54]Read from MH i2c: E2 17 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 17 00 DD 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DB [00:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:25:54]wFMCommunicate OK [00:25:54]SAM_PROTO_GetFieldsCounters [00:25:54]wFMCommunicate request_size=4 [00:25:54]MH_SAM_APDU [00:25:54]CAPDU: 80 13 00 00 [00:25:54]Write to MH i2c: E2 08 00 DE 2F 80 13 00 00 00 00 00 00 89 [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:55]OFD Sender: No OFD packet to send [00:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 62 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 62 00 DE 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [00:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:55]wFMCommunicate OK [00:25:55]SAM_PROTO_GetFieldsCounters done [00:25:55]Malloc new data [00:25:55]Malloc new data [00:25:55]Malloc new data [00:25:55]KKMCreateXReportDocument OK [00:25:55]KKMSetXReportData OK [00:25:55]KKMPrepareXReportFMData [00:25:55]SAM_PROTO_GetShiftData [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 13 02 00 [00:25:55]Write to MH i2c: E2 08 00 DF 2F 80 13 02 00 00 00 00 00 8C [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 FD 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 FD 00 DF 2F 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3A [00:25:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:55]wFMCommunicate OK [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 17 00 00 [00:25:55]Write to MH i2c: E2 08 00 E0 2F 80 17 00 00 00 00 00 00 8F [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 E0 2F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [00:25:56]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:56]wFMCommunicate OK [00:25:56]wFMCommunicate request_size=4 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 17 00 00 [00:25:56]Write to MH i2c: E2 08 00 E1 2F 80 17 00 00 00 00 00 00 90 [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 E1 2F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 49 [00:25:56]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:56]wFMCommunicate OK [00:25:56]wFMCommunicate request_size=4 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 17 00 00 [00:25:56]Write to MH i2c: E2 08 00 E2 2F 80 17 00 00 00 00 00 00 91 [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 FD 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 FD 00 E2 2F 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 90 00 09 [00:25:57]RAPDU: 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 90 00 [00:25:57]wFMCommunicate OK [00:25:57]wFMCommunicate request_size=4 [00:25:57]MH_SAM_APDU [00:25:57]CAPDU: 80 17 00 00 [00:25:57]Write to MH i2c: E2 08 00 E3 2F 80 17 00 00 00 00 00 00 92 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 CE 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 CE 00 E3 2F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [00:25:57]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:57]wFMCommunicate OK [00:25:57]SAM_PROTO_GetShiftData done [00:25:57]1194 (1197) - счетчики итогов смены [00:25:57] 1134 (4) - 348 - количество чеков со всеми признаками расчетов [00:25:57] 1129 (158) - счетчики операций «приход» [00:25:57] 1135 (4) - 348 - количество чеков по признаку расчетов [00:25:57] 1201 (4) - 256599.81 - общая итоговая сумма в чеках [00:25:57] 1136 (4) - 215109.00 - итоговая сумма в чеках наличными [00:25:57] 1138 (3) - 41490.81 - итоговая сумма в чеках безналичными [00:25:57] 1024 (123) - суммы налогов [00:25:57] 1006 (9) - суммы НДС [00:25:57] 1010 (1) - 0% - код ставки НДС [00:25:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:57] 1006 (12) - суммы НДС [00:25:57] 1010 (1) - 12% - код ставки НДС [00:25:57] 1011 (3) - 27258.42 - сумма НДС по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 0% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (12) - суммы НСП [00:25:57] 1014 (1) - 1% - код ставки НСП [00:25:57] 1015 (3) - 2271.56 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 2% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 3% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 5% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 0,50% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 1,50% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1130 (141) - счетчики операций «возврат прихода» [00:25:57] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:57] 1024 (117) - суммы налогов [00:25:57] 1006 (9) - суммы НДС [00:25:57] 1010 (1) - 0% - код ставки НДС [00:25:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:57] 1006 (9) - суммы НДС [00:25:57] 1010 (1) - 12% - код ставки НДС [00:25:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 0% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 1% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 2% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 3% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 5% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 0,50% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 1,50% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1131 (141) - счетчики операций «расход» [00:25:57] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:57] 1024 (117) - суммы налогов [00:25:57] 1006 (9) - суммы НДС [00:25:57] 1010 (1) - 0% - код ставки НДС [00:25:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:57] 1006 (9) - суммы НДС [00:25:57] 1010 (1) - 12% - код ставки НДС [00:25:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 0% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 1% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 2% - код ставки НСП [00:25:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:57] 1007 (9) - суммы НСП [00:25:57] 1014 (1) - 3% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 5% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 0,50% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 1,50% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1132 (141) - счетчики операций «возврат расхода» [00:25:58] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:58] 1024 (117) - суммы налогов [00:25:58] 1006 (9) - суммы НДС [00:25:58] 1010 (1) - 0% - код ставки НДС [00:25:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:58] 1006 (9) - суммы НДС [00:25:58] 1010 (1) - 12% - код ставки НДС [00:25:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 0% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 1% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 2% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 3% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 5% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 0,50% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1007 (9) - суммы НСП [00:25:58] 1014 (1) - 1,50% - код ставки НСП [00:25:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:58] 1133 (588) - - счетчики коррекции - не используются [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1194 (04AA) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1134 (046E) [00:25:58]Malloc new data [00:25:58]Processing tag 1129 (0469) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1135 (046F) [00:25:58]Malloc new data [00:25:58]Processing tag 1201 (04B1) [00:25:58]Malloc new data [00:25:58]Processing tag 1136 (0470) [00:25:58]Malloc new data [00:25:58]Processing tag 1138 (0472) [00:25:58]Malloc new data [00:25:58]Processing tag 1024 (0400) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1006 (03EE) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1010 (03F2) [00:25:58]Malloc new data [00:25:58]Processing tag 1011 (03F3) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1006 (03EE) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1010 (03F2) [00:25:58]Malloc new data [00:25:58]Processing tag 1011 (03F3) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1130 (046A) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1135 (046F) [00:25:58]Malloc new data [00:25:58]Processing tag 1201 (04B1) [00:25:58]Malloc new data [00:25:58]Processing tag 1136 (0470) [00:25:58]Malloc new data [00:25:58]Processing tag 1138 (0472) [00:25:58]Malloc new data [00:25:58]Processing tag 1024 (0400) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1006 (03EE) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1010 (03F2) [00:25:58]Malloc new data [00:25:58]Processing tag 1011 (03F3) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1006 (03EE) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1010 (03F2) [00:25:58]Malloc new data [00:25:58]Processing tag 1011 (03F3) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1131 (046B) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1135 (046F) [00:25:58]Malloc new data [00:25:58]Processing tag 1201 (04B1) [00:25:58]Malloc new data [00:25:58]Processing tag 1136 (0470) [00:25:58]Malloc new data [00:25:58]Processing tag 1138 (0472) [00:25:58]Malloc new data [00:25:58]Processing tag 1024 (0400) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1006 (03EE) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1010 (03F2) [00:25:58]Malloc new data [00:25:58]Processing tag 1011 (03F3) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1006 (03EE) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1010 (03F2) [00:25:58]Malloc new data [00:25:58]Processing tag 1011 (03F3) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1132 (046C) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1135 (046F) [00:25:58]Malloc new data [00:25:58]Processing tag 1201 (04B1) [00:25:58]Malloc new data [00:25:58]Processing tag 1136 (0470) [00:25:58]Malloc new data [00:25:58]Processing tag 1138 (0472) [00:25:58]Malloc new data [00:25:58]Processing tag 1024 (0400) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1006 (03EE) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1010 (03F2) [00:25:58]Malloc new data [00:25:58]Processing tag 1011 (03F3) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1006 (03EE) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1010 (03F2) [00:25:58]Malloc new data [00:25:58]Processing tag 1011 (03F3) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1007 (03EF) [00:25:58]Load OK [00:25:58]SetTLVBufToDocument [00:25:58]Processing tag 1014 (03F6) [00:25:58]Malloc new data [00:25:58]Processing tag 1015 (03F7) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Processing tag 1133 (046D) [00:25:58]Malloc new data [00:25:58]SetTLVBufToDocument err=0 [00:25:58]SetTLVBufToDocument err=0 [00:25:58]Malloc new data [00:25:58]SAM_PROTO_GetFMData [00:25:58]wFMCommunicate request_size=4 [00:25:58]MH_SAM_APDU [00:25:58]CAPDU: 80 13 03 00 [00:25:58]Write to MH i2c: E2 08 00 E4 2F 80 13 03 00 00 00 00 00 92 [00:25:58]Write i2c OK [00:25:58]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 E4 2F 00 C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 C6 [00:25:59]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:25:59]wFMCommunicate OK [00:25:59]wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 17 00 00 [00:25:59]Write to MH i2c: E2 08 00 E5 2F 80 17 00 00 00 00 00 00 94 [00:25:59]Write i2c OK [00:25:59]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 E5 2F 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 03 [00:26:00]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 OFD Sender: No OFD packet to send [00:26:00]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 90 00 [00:26:00]wFMCommunicate OK [00:26:00]wFMCommunicate request_size=4 [00:26:00]MH_SAM_APDU [00:26:00]CAPDU: 80 17 00 00 [00:26:00]Write to MH i2c: E2 08 00 E6 2F 80 17 00 00 00 00 00 00 95 [00:26:00]Write i2c OK [00:26:00]MH_I2C_Read... [00:26:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:00]Read from MH i2c: E2 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 FD 00 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 FD 00 E6 2F 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [00:26:00]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:00]wFMCommunicate OK [00:26:00]wFMCommunicate request_size=4 [00:26:00]MH_SAM_APDU [00:26:00]CAPDU: 80 17 00 00 [00:26:00]Write to MH i2c: E2 08 00 E7 2F 80 17 00 00 00 00 00 00 96 [00:26:00]Write i2c OK [00:26:00]MH_I2C_Read... [00:26:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:01]Read from MH i2c: E2 [00:26:01]MH_I2C_Read... [00:26:01]Read from MH i2c: E2 FD 00 [00:26:01]MH_I2C_Read... [00:26:01]Read from MH i2c: E2 FD 00 E7 2F 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [00:26:01]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:01]wFMCommunicate OK [00:26:01]wFMCommunicate request_size=4 [00:26:01]MH_SAM_APDU [00:26:01]CAPDU: 80 17 00 00 [00:26:01]Write to MH i2c: E2 08 00 E8 2F 80 17 00 00 00 00 00 00 97 [00:26:01]Write i2c OK [00:26:01]MH_I2C_Read... [00:26:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:26:01]Read from MH i2c: E2 [00:26:01]MH_I2C_Read... [00:26:01]Read from MH i2c: E2 DF 00 [00:26:01]MH_I2C_Read... [00:26:01]Read from MH i2c: E2 DF 00 E8 2F 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [00:26:01]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02]wFMCommunicate OK [00:26:02]SAM_PROTO_GetFMData done [00:26:02]FM_GetFMData:85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 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 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:26:02]oper:6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:02]total:A5 90 83 71 02 [00:26:02]Malloc new data [00:26:02]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 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 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:02]total:20 05 B7 [00:26:02]Malloc new data [00:26:02]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:26:03]total: [00:26:03]Malloc new data [00:26:03]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:26:03]total: [00:26:03]Malloc new data [00:26:03]KKMPrepareXReportFMData err=0 [00:26:03]Х отчет ИНН: 02508201610067 Кассир: Романов А. 27.10.2024 00:25 Смена: 522 РНМ: 0000000000091693 ЗНМ: 0300000096 СНО: Общий режим Всего чеков: 348 ИТОГИ ПРИХОД Чеков: 348 Общий итог: 256599.81 Итого наличными: 215109.00 Итого безнал.: 41490.81 НДС 0% : 0.00 НДС 12% : 27258.42 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2271.56 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 215109.00 НС Приход: 104943822.45 НС Возвр.Прихода: 119944.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871792 [00:26:03]StoreToDocumentArchive [00:26:03]MH_GetDate [00:26:03]Write to MH i2c: F0 00 00 E9 2F 07 [00:26:03]Write i2c OK [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: F0 [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: F0 09 00 [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: F0 09 00 E9 2F 00 9D 88 1D 67 50 D1 6C 64 AA [00:26:03]shift 522 fd 1729988765 [00:26:03]Create dir for shift 0522 [00:26:03]save to /storage/0522/doc_1729988765 [00:26:03]save last doc name /storage/0522/doc_1729988765 to /storage/kkm_last_doc_name [00:26:03]save OK [00:26:03]Clear old archive folders... [00:26:03]NVStorageSaveData kkm_last_timestamp [00:26:03]File name is /storage/kkm_last_timestamp [00:26:03]Write 4 bytes [00:26:03]NVStorageSaveData done [00:26:03]ExternCall_PrintAddStr [00:26:03]wPrintStart [00:26:03]Write to MH i2c: 01 00 00 EA 2F 19 [00:26:03]Write i2c OK [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: 01 [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: 01 07 00 [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: 01 07 00 EA 2F 00 00 00 00 00 FF 0F 2E [00:26:03]RasterBufferAndPrint [00:26:03]line Х отчет [00:26:03]line ИНН: 02508201610067 [00:26:03]line Кассир: Романов А. [00:26:03]line 27.10.2024 00:25 [00:26:03]line Смена: 522 [00:26:03]line РНМ: 0000000000091693 [00:26:03]line ЗНМ: 0300000096 [00:26:03]line СНО: Общий режим [00:26:03]line Всего чеков: 348 [00:26:03]line ИТОГИ ПРИХОД [00:26:03]line Чеков: 348 [00:26:03]line Общий итог: 256599.81 [00:26:03]line Итого наличными: 215109.00 [00:26:03]line Итого безнал.: 41490.81 [00:26:03]line НДС 0% : 0.00 [00:26:03]line НДС 12% : 27258.42 [00:26:03]line НСП 0% : 0.00 [00:26:03]line НСП 1,50% : 0.00 [00:26:03]line НСП 0,50% : 0.00 [00:26:03]line НСП 5% : 0.00 [00:26:03]line НСП 3% : 0.00 [00:26:03]line НСП 2% : 0.00 [00:26:03]line НСП 1% : 2271.56 [00:26:03]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:26:03]line Чеков: 0 [00:26:03]line Общий итог: 0.00 [00:26:03]line Итого наличными: 0.00 [00:26:03]line Итого безнал.: 0.00 [00:26:03]line НДС 0% : 0.00 [00:26:03]line НДС 12% : 0.00 [00:26:03]line НСП 0% : 0.00 [00:26:03]line НСП 1,50% : 0.00 [00:26:03]line НСП 0,50% : 0.00 [00:26:03]line НСП 5% : 0.00 [00:26:03]line НСП 3% : 0.00 [00:26:03]line НСП 2% : 0.00 [00:26:03]line НСП 1% : 0.00 [00:26:03]line ИТОГИ РАСХОД [00:26:03]line Чеков: 0 [00:26:03]line Общий итог: 0.00 [00:26:03]line Итого наличными: 0.00 [00:26:03]line Итого безнал.: 0.00 [00:26:03]line НДС 0% : 0.00 [00:26:03]line НДС 12% : 0.00 [00:26:03]line НСП 0% : 0.00 [00:26:03]line НСП 1,50% : 0.00 [00:26:03]line НСП 0,50% : 0.00 [00:26:03]line НСП 5% : 0.00 [00:26:03]line НСП 3% : 0.00 [00:26:03]line НСП 2% : 0.00 [00:26:03]line НСП 1% : 0.00 [00:26:03]line ИТОГИ ВОЗВРАТ РАСХОДА [00:26:03]line Чеков: 0 [00:26:03]line Общий итог: 0.00 [00:26:03]line Итого наличными: 0.00 [00:26:03]line Итого безнал.: 0.00 [00:26:03]line НДС 0% : 0.00 [00:26:03]line НДС 12% : 0.00 [00:26:03]line НСП 0% : 0.00 [00:26:03]line НСП 1,50% : 0.00 [00:26:03]line НСП 0,50% : 0.00 [00:26:03]line НСП 5% : 0.00 [00:26:03]line НСП 3% : 0.00 [00:26:03]line НСП 2% : 0.00 [00:26:03]line НСП 1% : 0.00 [00:26:03]line Сумма внесений: 0.00 [00:26:03]line Сумма выплат: 0.00 [00:26:03]line Нал. в кассе: 215109.00 [00:26:03]line НС Приход: 104943822.45 [00:26:03]line НС Возвр.Прихода: 119944.00 [00:26:03]line НС Расход: 0.00 [00:26:03]line НС Возвр.Расхода: 0.00 [00:26:03]line ФМ: 0000000000871792 [00:26:03]written 0, free lines is 4095 [00:26:03]Write to MH i2c: 01 00 00 35 30 65 [00:26:03]Write i2c OK [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: 01 [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: 01 07 00 [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: 01 07 00 35 30 00 00 00 00 00 B1 0A 27 [00:26:03]RasterBufferAndPrint [00:26:03]line [00:26:03]line [00:26:03]line [00:26:03]line [00:26:03]line [00:26:04]written 0, free lines is 2775 [00:26:04]process_action x_report done [00:26:04]requested_data is exist [00:26:04]produce_requested_data [00:26:04]requested_item fd.num is exist - process it [00:26:04]SAM_PROTO_GetFieldsCounters [00:26:04]wFMCommunicate request_size=4 [00:26:04]MH_SAM_APDU [00:26:04]CAPDU: 80 13 00 00 [00:26:04]Write to MH i2c: E2 08 00 3C 30 80 13 00 00 00 00 00 00 E8 [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:04]Read from MH i2c: E2 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 62 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 62 00 3C 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [00:26:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:04]wFMCommunicate OK [00:26:04]SAM_PROTO_GetFieldsCounters done [00:26:04]requested_item shift.num is exist - process it [00:26:04]requested_item shift.opened is exist - process it [00:26:04]req_shift_opened [00:26:04]FM_GetShiftState [00:26:04]SAM_PROTO_GetShiftState [00:26:04]wFMCommunicate request_size=4 [00:26:04]MH_SAM_APDU [00:26:04]CAPDU: 80 13 01 00 [00:26:04]Write to MH i2c: E2 08 00 3D 30 80 13 01 00 00 00 00 00 EA [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:04]Read from MH i2c: E2 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 0E 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 0E 00 3D 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 1F [00:26:04]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [00:26:04]wFMCommunicate OK [00:26:04]SAM_PROTO_GetShiftState done [00:26:04]FM_GetShiftState done [00:26:04]req_shift_opened done [00:26:04]requested_item shift.open_date is exist - process it [00:26:04]req_shift_open_date [00:26:04]req_shift_open_date done [00:26:04]produce_requested_data done [00:26:04]produce_requested_data return {"fd.num":156447,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [00:26:04]process_action_free x_report [00:26:04]json_value_free [00:26:04]json_value_free done [00:26:04]process_json_proto returns [00:26:04]Send response to host [00:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":156447,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [00:26:04]free response buf [00:26:04]execute_script done [00:26:04]execute_script returns [00:26:04]free content buf [00:26:04]Sock 8.Close socket [00:26:04]Sock 8.Thread stoped [00:26:05]OFD Sender: No OFD packet to send [00:26:06]int [00:26:06]Write to MH i2c: 01 00 00 3E 30 6E [00:26:06]*** FLAG_PRN_KEY set [00:26:06]Write i2c OK [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 07 00 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 07 00 3E 30 00 08 00 00 00 FF 0F 8B [00:26:06]state=0 [00:26:06]Key pressed [00:26:06]Feed [00:26:06]Write to MH i2c: D8 00 00 3F 30 46 [00:26:06]Write i2c OK [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: D8 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: D8 01 00 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: D8 01 00 3F 30 00 47 [00:26:06]int line is 0 - check status [00:26:06]Write to MH i2c: 01 00 00 40 30 70 [00:26:06]Write i2c OK [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 07 00 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 07 00 40 30 00 48 00 00 00 3C 00 FB [00:26:06]state=2 [00:26:06]Key pressed [00:26:06]int [00:26:06]Write to MH i2c: 01 00 00 41 30 71 [00:26:06]Write i2c OK [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 07 00 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 07 00 41 30 00 48 00 00 00 3C 00 FC [00:26:06]state=2 [00:26:06]Key pressed [00:26:06]int [00:26:06]Write to MH i2c: 01 00 00 42 30 72 [00:26:06]*** FLAG_PRN_KEY reset [00:26:06]Write i2c OK [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 07 00 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: 01 07 00 42 30 00 00 00 00 00 FF 0F 87 [00:26:06]state=2 [00:26:06]Stop feed [00:26:10]OFD Sender: No OFD packet to send [00:26:11]accept exits with 9 [00:26:11]New connection [00:26:11]New thread 3066834276 created [00:26:11]Thread 3066977636 joined [00:26:11]Waiting for new connection... [00:26:11] Sock 9.Parse request [00:26:11]Sock 9.Check first char [00:26:11]Sock 9.First char is OK [00:26:11]request: POST /json_proto HTTP/1.0 [00:26:11]Method: POST [00:26:11]URL: /json_proto [00:26:11]Method is POST - this is cgi request [00:26:11]url: /json_proto [00:26:11]query_string will be loaded in cgi processing [00:26:11]execute_cgi json_proto POST (null) [00:26:11]execute_cgi path=json_proto method=POST [00:26:11]POST find Content-Length [00:26:12]Host: 172.17.63.3:8080 [00:26:12]Content-Length: 215 [00:26:12]Content-Type: application/json [00:26:12] [00:26:12]POST finish read [00:26:12]Found Content-Length = 215 [00:26:12]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:12]execute_script... [00:26:12]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:12]POST & json_proto [00:26:12]process_json_proto [00:26:12]json parsed OK: [00:26:12]protocol is kg_v1.0 [00:26:12]action value=get_value [00:26:12]process_action get_value [00:26:12]cmd_get_value [00:26:12]process_action get_value done [00:26:12]requested_data is exist [00:26:12]produce_requested_data [00:26:12]requested_item kkm.sn is exist - process it [00:26:12]requested_item kkm.ver is exist - process it [00:26:12]requested_item fm.sn is exist - process it [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 11 00 00 [00:26:12]Write to MH i2c: E2 08 00 43 30 80 11 00 00 00 00 00 00 ED [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 17 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 17 00 43 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [00:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:26:12]wFMCommunicate OK [00:26:12]requested_item fd.num is exist - process it [00:26:12]SAM_PROTO_GetFieldsCounters [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 13 00 00 [00:26:12]Write to MH i2c: E2 08 00 44 30 80 13 00 00 00 00 00 00 F0 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 62 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 62 00 44 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [00:26:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:12]wFMCommunicate OK [00:26:12]SAM_PROTO_GetFieldsCounters done [00:26:12]requested_item shift.num is exist - process it [00:26:12]requested_item shift.opened is exist - process it [00:26:12]req_shift_opened [00:26:12]FM_GetShiftState [00:26:12]SAM_PROTO_GetShiftState [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 13 01 00 [00:26:12]Write to MH i2c: E2 08 00 45 30 80 13 01 00 00 00 00 00 F2 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 0E 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 0E 00 45 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 27 [00:26:12]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [00:26:12]wFMCommunicate OK [00:26:12]SAM_PROTO_GetShiftState done [00:26:12]FM_GetShiftState done [00:26:12]req_shift_opened done [00:26:12]requested_item shift.open_date is exist - process it [00:26:12]req_shift_open_date [00:26:12]req_shift_open_date done [00:26:12]produce_requested_data done [00:26:12]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156447,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702} [00:26:12]process_action_free get_value [00:26:12]json_value_free [00:26:12]json_value_free done [00:26:12]process_json_proto returns [00:26:12]Send response to host [00:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156447,"shift.num":536,"shift.opened":1,"shift.open_date":1729902702}}} [00:26:12]free response buf [00:26:12]execute_script done [00:26:12]execute_script returns [00:26:12]free content buf [00:26:12]Sock 9.Close socket [00:26:12]Sock 9.Thread stoped [00:26:12]accept exits with 8 [00:26:12]New connection [00:26:12]New thread 3066977636 created [00:26:12]Thread 3066834276 joined [00:26:12]Waiting for new connection... [00:26:12] Sock 8.Parse request [00:26:12]Sock 8.Check first char [00:26:12]Sock 8.First char is OK [00:26:12]request: POST /json_proto HTTP/1.0 [00:26:12]Method: POST [00:26:12]URL: /json_proto [00:26:12]Method is POST - this is cgi request [00:26:12]url: /json_proto [00:26:12]query_string will be loaded in cgi processing [00:26:12]execute_cgi json_proto POST (null) [00:26:12]execute_cgi path=json_proto method=POST [00:26:12]POST find Content-Length [00:26:12]Host: 172.17.63.3:8080 [00:26:12]Content-Length: 331 [00:26:12]Content-Type: application/json [00:26:12] [00:26:12]POST finish read [00:26:12]Found Content-Length = 331 [00:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:12]execute_script... [00:26:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:12]POST & json_proto [00:26:12]process_json_proto [00:26:12]json parsed OK: [00:26:12]protocol is kg_v1.0 [00:26:12]action value=get_value [00:26:12]process_action get_value [00:26:12]cmd_get_value [00:26:12]process_action get_value done [00:26:12]requested_data is exist [00:26:12]produce_requested_data [00:26:12]requested_item fm.sale.total is exist - process it [00:26:12]SAM_PROTO_GetFMData [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 13 03 00 [00:26:12]Write to MH i2c: E2 08 00 46 30 80 13 03 00 00 00 00 00 F5 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 46 30 00 C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 29 [00:26:13]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 47 30 80 17 00 00 00 00 00 00 F7 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 47 30 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 66 [00:26:13]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 48 30 80 17 00 00 00 00 00 00 F8 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 48 30 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [00:26:14]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 17 00 00 [00:26:14]Write to MH i2c: E2 08 00 49 30 80 17 00 00 00 00 00 00 F9 [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 49 30 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 74 [00:26:14]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 17 00 00 [00:26:14]Write to MH i2c: E2 08 00 4A 30 80 17 00 00 00 00 00 00 FA [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 DF 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 DF 00 4A 30 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DA [00:26:15]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [00:26:15]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:15]wFMCommunicate OK [00:26:15]SAM_PROTO_GetFMData done [00:26:15]requested_item fm.sale_refund.total is exist - process it [00:26:15]requested_item fm.buy.total is exist - process it [00:26:15]requested_item shift.sale.total is exist - process it [00:26:15]SAM_PROTO_GetShiftData [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 13 02 00 [00:26:15]Write to MH i2c: E2 08 00 4B 30 80 13 02 00 00 00 00 00 F9 [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 4B 30 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 A7 [00:26:16]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=4 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 17 00 00 [00:26:16]Write to MH i2c: E2 08 00 4C 30 80 17 00 00 00 00 00 00 FC [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 4C 30 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [00:26:16]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=4 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 17 00 00 [00:26:16]Write to MH i2c: E2 08 00 4D 30 80 17 00 00 00 00 00 00 FD [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:17]Read from MH i2c: E2 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 FD 00 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 FD 00 4D 30 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B6 [00:26:17]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:17]wFMCommunicate OK [00:26:17]wFMCommunicate request_size=4 [00:26:17]MH_SAM_APDU [00:26:17]CAPDU: 80 17 00 00 [00:26:17]Write to MH i2c: E2 08 00 4E 30 80 17 00 00 00 00 00 00 FE [00:26:17]Write i2c OK [00:26:17]MH_I2C_Read... [00:26:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:17]Read from MH i2c: E2 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 FD 00 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 FD 00 4E 30 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 90 00 76 [00:26:18]RAPDU: 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 90 00 [00:26:18]wFMCommunicate OK [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 17 00 00 [00:26:18]Write to MH i2c: E2 08 00 4F 30 80 17 00 00 00 00 00 00 FF [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 CE 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 CE 00 4F 30 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [00:26:18]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18]wFMCommunicate OK [00:26:18]SAM_PROTO_GetShiftData done [00:26:18]requested_item shift.sale.total_cash is exist - process it [00:26:18]requested_item shift.sale_refund.total is exist - process it [00:26:18]requested_item shift.sale_refund.total_cash is exist - process it [00:26:18]requested_item shift.buy.total is exist - process it [00:26:18]requested_item shift.buy.total_cash is exist - process it [00:26:18]produce_requested_data done [00:26:18]produce_requested_data return {"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:18]process_action_free get_value [00:26:18]json_value_free [00:26:18]json_value_free done [00:26:18]process_json_proto returns [00:26:18]Send response to host [00:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:18]free response buf [00:26:18]execute_script done [00:26:18]execute_script returns [00:26:18]free content buf [00:26:18]Sock 8.Close socket [00:26:18]Sock 8.Thread stoped [00:26:18]accept exits with 9 [00:26:18]New connection [00:26:18]New thread 3066834276 created [00:26:18]Thread 3066977636 joined [00:26:18]Waiting for new connection... [00:26:18] Sock 9.Parse request [00:26:18]Sock 9.Check first char [00:26:18]Sock 9.First char is OK [00:26:18]request: POST /json_proto HTTP/1.0 [00:26:18]Method: POST [00:26:18]URL: /json_proto [00:26:18]Method is POST - this is cgi request [00:26:18]url: /json_proto [00:26:18]query_string will be loaded in cgi processing [00:26:18]execute_cgi json_proto POST (null) [00:26:18]execute_cgi path=json_proto method=POST [00:26:18]POST find Content-Length [00:26:18]Host: 172.17.63.3:8080 [00:26:18]Content-Length: 331 [00:26:18]Content-Type: application/json [00:26:18] [00:26:18]POST finish read [00:26:18]Found Content-Length = 331 [00:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:18]execute_script... [00:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:18]POST & json_proto [00:26:18]process_json_proto [00:26:18]json parsed OK: [00:26:18]protocol is kg_v1.0 [00:26:18]action value=get_value [00:26:18]process_action get_value [00:26:18]cmd_get_value [00:26:18]process_action get_value done [00:26:18]requested_data is exist [00:26:18]produce_requested_data [00:26:18]requested_item fm.sale.total is exist - process it [00:26:18]SAM_PROTO_GetFMData [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 13 03 00 [00:26:18]Write to MH i2c: E2 08 00 50 30 80 13 03 00 00 00 00 00 FF [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 50 30 00 C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 33 [00:26:19]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:26:19]wFMCommunicate OK [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 17 00 00 [00:26:19]Write to MH i2c: E2 08 00 51 30 80 17 00 00 00 00 00 00 01 [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 51 30 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 70 [00:26:20]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:26:20]wFMCommunicate OK [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 17 00 00 [00:26:20]Write to MH i2c: E2 08 00 52 30 80 17 00 00 00 00 00 00 02 [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 52 30 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:26:20]00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 B0 [00:26:20]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=4 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 17 00 00 [00:26:21]Write to MH i2c: E2 08 00 53 30 80 17 00 00 00 00 00 00 03 [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 53 30 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7E [00:26:21]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=4 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 17 00 00 [00:26:21]Write to MH i2c: E2 08 00 54 30 80 17 00 00 00 00 00 00 04 [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:26:21]Read from MH i2c: E2 DF 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 DF 00 54 30 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [00:26:22]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:22]wFMCommunicate OK [00:26:22]SAM_PROTO_GetFMData done [00:26:22]requested_item fm.sale_refund.total is exist - process it [00:26:22]requested_item fm.buy.total is exist - process it [00:26:22]requested_item shift.sale.total is exist - process it [00:26:22]SAM_PROTO_GetShiftData [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 13 02 00 [00:26:22]Write to MH i2c: E2 08 00 55 30 80 13 02 00 00 00 00 00 03 [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 55 30 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B1 [00:26:22]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:23]wFMCommunicate OK [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 56 30 80 17 00 00 00 00 00 00 06 [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:23]Read from MH i2c: E2 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 56 30 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [00:26:23]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:23]wFMCommunicate OK [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 57 30 80 17 00 00 00 00 00 00 07 [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 57 30 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [00:26:24]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:24]wFMCommunicate OK [00:26:24]wFMCommunicate request_size=4 [00:26:24]MH_SAM_APDU [00:26:24]CAPDU: 80 17 00 00 [00:26:24]Write to MH i2c: E2 08 00 58 30 80 17 00 00 00 00 00 00 08 [00:26:24]Write i2c OK [00:26:24]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 58 30 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 90 00 80 [00:26:24]RAPDU: 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 90 00 [00:26:25]wFMCommunicate OK [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 17 00 00 [00:26:25]Write to MH i2c: E2 08 00 59 30 80 17 00 00 00 00 00 00 09 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 CE 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 CE 00 59 30 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EE [00:26:25]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25]wFMCommunicate OK [00:26:25]SAM_PROTO_GetShiftData done [00:26:25]requested_item shift.sale.total_cash is exist - process it [00:26:25]requested_item shift.sale_refund.total is exist - process it [00:26:25]requested_item shift.sale_refund.total_cash is exist - process it [00:26:25]requested_item shift.buy.total is exist - process it [00:26:25]requested_item shift.buy.total_cash is exist - process it [00:26:25]produce_requested_data done [00:26:25]produce_requested_data return {"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:25]process_action_free get_value [00:26:25]json_value_free [00:26:25]json_value_free done [00:26:25]process_json_proto returns [00:26:25]Send response to host [00:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:25]free response buf [00:26:25]execute_script done [00:26:25]execute_script returns [00:26:25]free content buf [00:26:25]Sock 9.Close socket [00:26:25]Sock 9.Thread stoped [00:26:25]accept exits with 8 [00:26:25]New connection [00:26:25]New thread 3066977636 created [00:26:25]Thread 3066834276 joined [00:26:25]Waiting for new connection... [00:26:25] Sock 8.Parse request [00:26:25]Sock 8.Check first char [00:26:25]Sock 8.First char is OK [00:26:25]request: POST /json_proto HTTP/1.0 [00:26:25]Method: POST [00:26:25]URL: /json_proto [00:26:25]Method is POST - this is cgi request [00:26:25]url: /json_proto [00:26:25]query_string will be loaded in cgi processing [00:26:25]execute_cgi json_proto POST (null) [00:26:25]execute_cgi path=json_proto method=POST [00:26:25]POST find Content-Length [00:26:25]Host: 172.17.63.3:8080 [00:26:25]Content-Length: 254 [00:26:25]Content-Type: application/json [00:26:25] [00:26:25]POST finish read [00:26:25]Found Content-Length = 254 [00:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0420\u043E\u043C\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:25]execute_script... [00:26:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0420\u043E\u043C\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:25]POST & json_proto [00:26:25]process_json_proto [00:26:25]json parsed OK: [00:26:25]protocol is kg_v1.0 [00:26:25]action value=close_shift [00:26:25]process_action close_shift [00:26:25]cmd_close_shift [00:26:25]MH_GetDate [00:26:25]Write to MH i2c: F0 00 00 5A 30 79 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: F0 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: F0 09 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: F0 09 00 5A 30 00 B4 88 1D 67 50 D1 6C 64 33 [00:26:25]GetLastDocTimeStamp 1729988757 [00:26:25]current date 1729988788 [00:26:25]FM_GetShiftState [00:26:25]SAM_PROTO_GetShiftState [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 13 01 00 [00:26:25]Write to MH i2c: E2 08 00 5B 30 80 13 01 00 00 00 00 00 08 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]OFD Sender: No OFD packet to send [00:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 0E 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 0E 00 5B 30 00 09 00 01 6E 38 1C 67 00 00 00 00 90 00 3D [00:26:25]RAPDU: 09 00 01 6E 38 1C 67 00 00 00 00 90 00 [00:26:25]wFMCommunicate OK [00:26:25]SAM_PROTO_GetShiftState done [00:26:25]FM_GetShiftState done [00:26:25]KKMCreateCloseShiftDocument [00:26:25]Load OK [00:26:25]Malloc new data [00:26:25]MH_GetDate [00:26:25]Write to MH i2c: F0 00 00 5C 30 7B [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: F0 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: F0 09 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: F0 09 00 5C 30 00 B4 88 1D 67 50 D1 6C 64 35 [00:26:25]Malloc new data [00:26:25]Malloc new data [00:26:25]Malloc new data [00:26:25]Malloc new data [00:26:25]KKMCreateCloseShiftDocument OK [00:26:25]KKMSetCloseShiftData OK [00:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=69 [00:26:25]tlvbuf is 0178A200 [00:26:25]KKMLoadAndSignCloseShiftData [00:26:25]SAM_PROTO_ProcessDocument [00:26:25]wFMCommunicate request_size=9 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 15 01 00 04 05 00 45 00 [00:26:26]Write to MH i2c: E2 0C 00 5D 30 80 15 01 00 04 00 05 00 45 00 00 00 5E [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 5D 30 00 90 00 01 [00:26:26]RAPDU: 90 00 [00:26:26]wFMCommunicate OK [00:26:26]wFMCommunicate request_size=23 [00:26:26]MH_SAM_APDU [00:26:26]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:26]Write to MH i2c: E2 1A 00 5E 30 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 03 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 5E 30 00 90 00 02 [00:26:26]RAPDU: 90 00 [00:26:26]wFMCommunicate OK [00:26:26]wFMCommunicate request_size=28 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 [00:26:26]Write to MH i2c: E2 1F 00 5F 30 80 15 02 00 17 00 FD 03 13 00 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 00 00 C5 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 5F 30 00 90 00 03 [00:26:26]RAPDU: 90 00 [00:26:26]wFMCommunicate OK [00:26:26]wFMCommunicate request_size=13 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 15 02 00 08 F4 03 04 00 B4 88 1D 67 [00:26:26]Write to MH i2c: E2 10 00 60 30 80 15 02 00 08 00 F4 03 04 00 B4 88 1D 67 00 00 DB [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 60 30 00 90 00 04 [00:26:26]RAPDU: 90 00 [00:26:26]wFMCommunicate OK [00:26:26]wFMCommunicate request_size=25 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [00:26:26]Write to MH i2c: E2 1C 00 61 30 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 76 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 03 00 61 30 00 90 00 05 [00:26:26]RAPDU: 90 00 [00:26:26]wFMCommunicate OK [00:26:26]wFMCommunicate request_size=4 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 15 03 00 [00:26:26]Write to MH i2c: E2 08 00 62 30 80 15 03 00 00 00 00 00 13 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:27]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:26:27]Read from MH i2c: E2 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 62 30 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 63 02 00 0E 04 04 00 18 02 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 B1 [00:26:27]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 63 02 00 0E 04 04 00 18 02 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:26:27]wFMCommunicate OK [00:26:27]SAM_PROTO_ProcessDocument answer len = 1268 [00:26:27]SAM_PROTO_ProcessDocument remain to read = 1020 [00:26:27]wFMCommunicate request_size=4 [00:26:27]MH_SAM_APDU [00:26:27]CAPDU: 80 17 00 00 [00:26:27]Write to MH i2c: E2 08 00 63 30 80 17 00 00 00 00 00 00 13 [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:27]Read from MH i2c: E2 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 63 30 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 67 [00:26:28]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:28]wFMCommunicate OK [00:26:28]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:28]SAM_PROTO_ProcessDocument remain to read = 770 [00:26:28]wFMCommunicate request_size=4 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 17 00 00 [00:26:28]Write to MH i2c: E2 08 00 64 30 80 17 00 00 00 00 00 00 14 [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 FD 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 FD 00 64 30 00 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 90 00 76 [00:26:28]RAPDU: 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 90 00 [00:26:28]wFMCommunicate OK [00:26:28]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:28]SAM_PROTO_ProcessDocument remain to read = 520 [00:26:28]wFMCommunicate request_size=4 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 17 00 00 [00:26:28]Write to MH i2c: E2 08 00 65 30 80 17 00 00 00 00 00 00 15 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:29]Read from MH i2c: E2 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 FD 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 FD 00 65 30 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [00:26:29]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:29]wFMCommunicate OK [00:26:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:29]SAM_PROTO_ProcessDocument remain to read = 270 [00:26:29]wFMCommunicate request_size=4 [00:26:29]MH_SAM_APDU [00:26:29]CAPDU: 80 17 00 00 [00:26:29]Write to MH i2c: E2 08 00 66 30 80 17 00 00 00 00 00 00 16 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:29]Read from MH i2c: E2 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 FD 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 FD 00 66 30 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [00:26:30]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:30]wFMCommunicate OK [00:26:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:30]SAM_PROTO_ProcessDocument remain to read = 20 [00:26:30]wFMCommunicate request_size=4 [00:26:30]MH_SAM_APDU [00:26:30]CAPDU: 80 17 00 00 [00:26:30]Write to MH i2c: E2 08 00 67 30 80 17 00 00 00 00 00 00 17 [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:26:30]Read from MH i2c: E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 17 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 17 00 67 30 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 7E A9 C9 87 5E 58 90 00 85 [00:26:30]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 7E A9 C9 87 5E 58 90 00 [00:26:30]wFMCommunicate OK [00:26:30]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:26:30]SAM_PROTO_ProcessDocument done [00:26:30]1209 (1) - 1.0 - номер версии ФФД [00:26:30]1041 (16) - 0000000000871792 - номер ФМ [00:26:30]1040 (4) - 156448 - номер ФД [00:26:30]1038 (4) - 536 - номер смены [00:26:30]1118 (4) - 348 - количество кассовых чеков за смену [00:26:30]1111 (4) - 350 - общее количество ФД за смену [00:26:30]1194 (1197) - счетчики итогов смены [00:26:30] 1134 (4) - 348 - количество чеков со всеми признаками расчетов [00:26:30] 1129 (158) - счетчики операций «приход» [00:26:30] 1135 (4) - 348 - количество чеков по признаку расчетов [00:26:30] 1201 (4) - 256599.81 - общая итоговая сумма в чеках [00:26:30] 1136 (4) - 215109.00 - итоговая сумма в чеках наличными [00:26:30] 1138 (3) - 41490.81 - итоговая сумма в чеках безналичными [00:26:30] 1024 (123) - суммы налогов [00:26:30] 1006 (9) - суммы НДС [00:26:30] 1010 (1) - 0% - код ставки НДС [00:26:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:30] 1006 (12) - суммы НДС [00:26:30] 1010 (1) - 12% - код ставки НДС [00:26:30] 1011 (3) - 27258.42 - сумма НДС по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 0% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (12) - суммы НСП [00:26:30] 1014 (1) - 1% - код ставки НСП [00:26:30] 1015 (3) - 2271.56 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 2% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 3% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 5% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 0,50% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 1,50% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1130 (141) - счетчики операций «возврат прихода» [00:26:30] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:30] 1024 (117) - суммы налогов [00:26:30] 1006 (9) - суммы НДС [00:26:30] 1010 (1) - 0% - код ставки НДС [00:26:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:30] 1006 (9) - суммы НДС [00:26:30] 1010 (1) - 12% - код ставки НДС [00:26:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 0% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 1% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 2% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 3% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 5% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 0,50% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 1,50% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1131 (141) - счетчики операций «расход» [00:26:30] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:30] 1024 (117) - суммы налогов [00:26:30] 1006 (9) - суммы НДС [00:26:30] 1010 (1) - 0% - код ставки НДС [00:26:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:30] 1006 (9) - суммы НДС [00:26:30] OFD Sender: No OFD packet to send [00:26:30] 1010 (1) - 12% - код ставки НДС [00:26:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 0% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 1% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 2% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 3% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:30] 1014 (1) - 5% - код ставки НСП [00:26:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:30] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 0,50% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 1,50% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1132 (141) - счетчики операций «возврат расхода» [00:26:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:31] 1024 (117) - суммы налогов [00:26:31] 1006 (9) - суммы НДС [00:26:31] 1010 (1) - 0% - код ставки НДС [00:26:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:31] 1006 (9) - суммы НДС [00:26:31] 1010 (1) - 12% - код ставки НДС [00:26:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:31] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 0% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 1% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 2% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 3% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 5% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 0,50% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1007 (9) - суммы НСП [00:26:31] 1014 (1) - 1,50% - код ставки НСП [00:26:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:31] 1133 (588) - - счетчики коррекции - не используются [00:26:31]1077 (6) - 139267695664728 - ФПД [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1209 (04B9) [00:26:31]Malloc new data [00:26:31]Processing tag 1041 (0411) [00:26:31]Processing tag 1040 (0410) [00:26:31]Malloc new data [00:26:31]Processing tag 1038 (040E) [00:26:31]Malloc new data [00:26:31]Processing tag 1118 (045E) [00:26:31]Malloc new data [00:26:31]Processing tag 1111 (0457) [00:26:31]Malloc new data [00:26:31]Processing tag 1194 (04AA) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1134 (046E) [00:26:31]Malloc new data [00:26:31]Processing tag 1129 (0469) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1135 (046F) [00:26:31]Malloc new data [00:26:31]Processing tag 1201 (04B1) [00:26:31]Malloc new data [00:26:31]Processing tag 1136 (0470) [00:26:31]Malloc new data [00:26:31]Processing tag 1138 (0472) [00:26:31]Malloc new data [00:26:31]Processing tag 1024 (0400) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1006 (03EE) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1010 (03F2) [00:26:31]Malloc new data [00:26:31]Processing tag 1011 (03F3) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1006 (03EE) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1010 (03F2) [00:26:31]Malloc new data [00:26:31]Processing tag 1011 (03F3) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]SetTLVBufToDocument err=0 [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1130 (046A) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1135 (046F) [00:26:31]Malloc new data [00:26:31]Processing tag 1201 (04B1) [00:26:31]Malloc new data [00:26:31]Processing tag 1136 (0470) [00:26:31]Malloc new data [00:26:31]Processing tag 1138 (0472) [00:26:31]Malloc new data [00:26:31]Processing tag 1024 (0400) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1006 (03EE) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1010 (03F2) [00:26:31]Malloc new data [00:26:31]Processing tag 1011 (03F3) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1006 (03EE) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1010 (03F2) [00:26:31]Malloc new data [00:26:31]Processing tag 1011 (03F3) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]SetTLVBufToDocument err=0 [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1131 (046B) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1135 (046F) [00:26:31]Malloc new data [00:26:31]Processing tag 1201 (04B1) [00:26:31]Malloc new data [00:26:31]Processing tag 1136 (0470) [00:26:31]Malloc new data [00:26:31]Processing tag 1138 (0472) [00:26:31]Malloc new data [00:26:31]Processing tag 1024 (0400) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1006 (03EE) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1010 (03F2) [00:26:31]Malloc new data [00:26:31]Processing tag 1011 (03F3) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1006 (03EE) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1010 (03F2) [00:26:31]Malloc new data [00:26:31]Processing tag 1011 (03F3) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]SetTLVBufToDocument err=0 [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1132 (046C) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1135 (046F) [00:26:31]Malloc new data [00:26:31]Processing tag 1201 (04B1) [00:26:31]Malloc new data [00:26:31]Processing tag 1136 (0470) [00:26:31]Malloc new data [00:26:31]Processing tag 1138 (0472) [00:26:31]Malloc new data [00:26:31]Processing tag 1024 (0400) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1006 (03EE) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1010 (03F2) [00:26:31]Malloc new data [00:26:31]Processing tag 1011 (03F3) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1006 (03EE) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1010 (03F2) [00:26:31]Malloc new data [00:26:31]Processing tag 1011 (03F3) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1007 (03EF) [00:26:31]Load OK [00:26:31]SetTLVBufToDocument [00:26:31]Processing tag 1014 (03F6) [00:26:31]Malloc new data [00:26:31]Processing tag 1015 (03F7) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]SetTLVBufToDocument err=0 [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1133 (046D) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Processing tag 1077 (0435) [00:26:31]Malloc new data [00:26:31]SetTLVBufToDocument err=0 [00:26:31]Malloc new data [00:26:31]SAM_PROTO_GetFMData [00:26:31]wFMCommunicate request_size=4 [00:26:31]MH_SAM_APDU [00:26:31]CAPDU: 80 13 03 00 [00:26:31]Write to MH i2c: E2 08 00 68 30 80 13 03 00 00 00 00 00 17 [00:26:31]Write i2c OK [00:26:31]MH_I2C_Read... [00:26:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:32]Read from MH i2c: E2 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 FD 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 FD 00 68 30 00 C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 4B [00:26:32]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:26:32]wFMCommunicate OK [00:26:32]wFMCommunicate request_size=4 [00:26:32]MH_SAM_APDU [00:26:32]CAPDU: 80 17 00 00 [00:26:32]Write to MH i2c: E2 08 00 69 30 80 17 00 00 00 00 00 00 19 [00:26:32]Write i2c OK [00:26:32]MH_I2C_Read... [00:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:32]Read from MH i2c: E2 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 FD 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 FD 00 69 30 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 88 [00:26:33]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:26:33]wFMCommunicate OK [00:26:33]wFMCommunicate request_size=4 [00:26:33]MH_SAM_APDU [00:26:33]CAPDU: 80 17 00 00 [00:26:33]Write to MH i2c: E2 08 00 6A 30 80 17 00 00 00 00 00 00 1A [00:26:33]Write i2c OK [00:26:33]MH_I2C_Read... [00:26:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:33]Read from MH i2c: E2 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 FD 00 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 FD 00 6A 30 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [00:26:33]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:34]wFMCommunicate OK [00:26:34]wFMCommunicate request_size=4 [00:26:34]MH_SAM_APDU [00:26:34]CAPDU: 80 17 00 00 [00:26:34]Write to MH i2c: E2 08 00 6B 30 80 17 00 00 00 00 00 00 1B [00:26:34]Write i2c OK [00:26:34]MH_I2C_Read... [00:26:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:34]Read from MH i2c: E2 [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: E2 FD 00 [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: E2 FD 00 6B 30 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 96 [00:26:34]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:35]wFMCommunicate OK [00:26:35]wFMCommunicate request_size=4 [00:26:35]MH_SAM_APDU [00:26:35]CAPDU: 80 17 00 00 [00:26:35]Write to MH i2c: E2 08 00 6C 30 80 17 00 00 00 00 00 00 1C [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:26:35]Read from MH i2c: E2 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 DF 00 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 DF 00 6C 30 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [00:26:35]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35]wFMCommunicate OK [00:26:35]SAM_PROTO_GetFMData done [00:26:35]Malloc new data [00:26:35]Malloc new data [00:26:35]Malloc new data [00:26:35]Malloc new data [00:26:35]KKMLoadAndSignCloseShiftData err=0 [00:26:35]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Романов А. 27.10.2024 00:26 Смена: 536 РНМ: 0000000000091693 ЗНМ: 0300000096 СНО: Общий режим Чеков за смену: 348 ФД за смену: 350 Всего чеков: 348 ИТОГИ ПРИХОД Чеков: 348 Общий итог: 256599.81 Итого наличными: 215109.00 Итого безнал.: 41490.81 НДС 0% : 0.00 НДС 12% : 27258.42 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2271.56 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 215109.00 НС Приход: 104943822.45 НС Возвр.Прихода: 119944.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 156448 ФМ: 0000000000871792 ФПД: 139267695664728 [00:26:35]StoreToDocumentArchive [00:26:35]shift 536 fd 156448 [00:26:35]save to /storage/0536/doc_00156448 [00:26:35]save last doc name /storage/0536/doc_00156448 to /storage/kkm_last_doc_name [00:26:35]save OK [00:26:35]Clear old archive folders... [00:26:35]Remove dir /storage/0522 [00:26:35]opendir ok [00:26:35]file . [00:26:35]file .. [00:26:35]file doc_1729988765 [00:26:35]remove file /storage/0522/doc_1729988765 [00:26:35]remove dir /storage/0522 [00:26:35]NVStorageSaveData kkm_registers [00:26:35]File name is /storage/kkm_registers [00:26:35]Write 24 bytes [00:26:35]NVStorageSaveData done [00:26:35]NVStorageSaveData kkm_registers [00:26:35]File name is /storage/kkm_registers [00:26:35]Write 24 bytes [00:26:35]NVStorageSaveData done [00:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=1380 [00:26:35]tlvbuf is 01814A80 [00:26:35]SAM_PROTO_ClearQueue [00:26:35]wFMCommunicate request_size=4 [00:26:35]MH_SAM_APDU [00:26:35]CAPDU: 80 09 00 00 [00:26:35]Write to MH i2c: E2 08 00 6D 30 80 09 00 00 00 00 00 00 0F [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:35]Read from MH i2c: E2 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 03 00 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 03 00 6D 30 00 90 00 11 [00:26:35]RAPDU: 90 00 [00:26:35]wFMCommunicate OK [00:26:35]SAM_PROTO_ClearQueue done [00:26:35]KKMCreateOFDPacket [00:26:35]OFDProtocolAddRootSTLVToBuf [00:26:35]FM_MakeSignedData [00:26:35]FM_MakeSignedData [00:26:35]SAM_PROTO_SignData [00:26:35]wFMCommunicate request_size=4 [00:26:35]MH_SAM_APDU [00:26:35]CAPDU: 80 0D 01 02 [00:26:35]Write to MH i2c: E2 08 00 6E 30 80 0D 01 02 OFD Sender: No OFD packet to send [00:26:36]00 00 00 00 17 [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:36]Read from MH i2c: E2 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 03 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 03 00 6E 30 00 90 00 12 [00:26:36]RAPDU: 90 00 [00:26:36]wFMCommunicate OK [00:26:36]wFMCommunicate request_size=255 [00:26:36]MH_SAM_APDU [00:26:36]CAPDU: 80 0D 02 02 FA 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 B4 88 1D 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 D8 04 6E 04 04 00 5C 01 00 00 69 04 A5 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 97 29 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 [00:26:36]Write to MH i2c: E2 02 01 6F 30 80 0D 02 02 FA 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 B4 88 1D 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 D8 04 6E 04 04 00 5C 01 00 00 69 04 A5 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 97 29 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 9A [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:36]Read from MH i2c: E2 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 03 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 03 00 6F 30 00 90 00 13 [00:26:36]RAPDU: 90 00 [00:26:36]wFMCommunicate OK [00:26:36]wFMCommunicate request_size=255 [00:26:36]MH_SAM_APDU [00:26:36]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF [00:26:37]Write to MH i2c: E2 02 01 70 30 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 00 00 49 [00:26:37]Write i2c OK [00:26:37]MH_I2C_Read... [00:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:37]Read from MH i2c: E2 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 03 00 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 03 00 70 30 00 90 00 14 [00:26:37]RAPDU: 90 00 [00:26:37]wFMCommunicate OK [00:26:37]wFMCommunicate request_size=255 [00:26:37]MH_SAM_APDU [00:26:37]CAPDU: 80 0D 02 02 FA 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 [00:26:38]Write to MH i2c: E2 02 01 71 30 80 0D 02 02 FA 00 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 00 00 EA [00:26:38]Write i2c OK [00:26:38]MH_I2C_Read... [00:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:38]Read from MH i2c: E2 [00:26:38]MH_I2C_Read... [00:26:38]Read from MH i2c: E2 03 00 [00:26:38]MH_I2C_Read... [00:26:38]Read from MH i2c: E2 03 00 71 30 00 90 00 15 [00:26:38]RAPDU: 90 00 [00:26:38]wFMCommunicate OK [00:26:38]wFMCommunicate request_size=255 [00:26:38]MH_SAM_APDU [00:26:38]CAPDU: 80 0D 02 02 FA 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 [00:26:38]Write to MH i2c: E2 02 01 72 30 80 0D 02 02 FA 00 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 00 00 EB [00:26:39]Write i2c OK [00:26:39]MH_I2C_Read... [00:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:39]Read from MH i2c: E2 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: E2 03 00 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: E2 03 00 72 30 00 90 00 16 [00:26:39]RAPDU: 90 00 [00:26:39]wFMCommunicate OK [00:26:39]wFMCommunicate request_size=255 [00:26:39]MH_SAM_APDU [00:26:39]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:26:39]Write to MH i2c: E2 02 01 73 30 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 A6 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 73 30 00 90 00 17 [00:26:40]RAPDU: 90 00 [00:26:40]wFMCommunicate OK [00:26:40]wFMCommunicate request_size=139 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 0D 02 02 86 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 7E A9 C9 87 5E 58 [00:26:40]Write to MH i2c: E2 8E 00 74 30 80 0D 02 02 86 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 7E A9 C9 87 5E 58 00 00 0F [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 74 30 00 90 00 18 [00:26:40]RAPDU: 90 00 [00:26:40]wFMCommunicate OK [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 0D 03 02 [00:26:40]Write to MH i2c: E2 08 00 75 30 80 0D 03 02 00 00 00 00 20 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 0B 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 0B 00 75 30 00 77 09 EA 92 15 16 28 4B 90 00 BB [00:26:40]RAPDU: 77 09 EA 92 15 16 28 4B 90 00 [00:26:40]wFMCommunicate OK [00:26:40]SAM_PROTO_SignData done [00:26:40]FM_MakeSignedData done [00:26:40]CreateOFDProtocolMessage [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 11 00 00 [00:26:40]Write to MH i2c: E2 08 00 76 30 80 11 00 00 00 00 00 00 20 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:41]Read from MH i2c: E2 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 17 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 17 00 76 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 75 [00:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:26:41]wFMCommunicate OK [00:26:41]CreateOFDProtocolMessage done [00:26:41]OFDSenderStorePacket 156448 [00:26:41]StoreOFDPacket docnum=156448 [00:26:41]OFD Sender: No OFD packet to send [00:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 78 05 00 00 0F EB 70 05 0D C9 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 B4 88 1D 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 D8 04 6E 04 04 00 5C 01 00 00 69 04 A5 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 97 29 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 20 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 7E A9 C9 87 5E 58 77 09 EA 92 15 16 28 4B [00:26:41]CheckFolder [00:26:41]dirname=/storage/ofd_packets [00:26:41]CheckFolder done [00:26:41]ProducePacketName [00:26:41]name=ofd_packets/00156448 [00:26:41]NVStorageSaveData ofd_packets/00156448 [00:26:41]File name is /storage/ofd_packets/00156448 [00:26:41]Write 1430 bytes [00:26:41]NVStorageSaveData done [00:26:41]OFDSenderStorePacket done [00:26:41]KKMCreateOFDPacket done [00:26:41]NVStorageSaveData kkm_last_timestamp [00:26:41]File name is /storage/kkm_last_timestamp [00:26:41]Write 4 bytes [00:26:41]NVStorageSaveData done [00:26:41]ExternCall_PrintAddStr [00:26:41]wPrintStart [00:26:41]Write to MH i2c: 01 00 00 77 30 A7 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 77 30 00 00 00 00 00 FF 0F BC [00:26:41]RasterBufferAndPrint [00:26:41]line Отчет о закрытии смены [00:26:41]line ФФД: 1.0 [00:26:41]line ИНН: 02508201610067 [00:26:41]line Кассир: Романов А. [00:26:41]line 27.10.2024 00:26 [00:26:41]line Смена: 536 [00:26:41]line РНМ: 0000000000091693 [00:26:41]line ЗНМ: 0300000096 [00:26:41]line СНО: Общий режим [00:26:41]line Чеков за смену: 348 [00:26:41]line ФД за смену: 350 [00:26:41]line Всего чеков: 348 [00:26:41]line ИТОГИ ПРИХОД [00:26:41]line Чеков: 348 [00:26:41]line Общий итог: 256599.81 [00:26:41]line Итого наличными: 215109.00 [00:26:41]line Итого безнал.: 41490.81 [00:26:41]line НДС 0% : 0.00 [00:26:41]line НДС 12% : 27258.42 [00:26:41]line НСП 0% : 0.00 [00:26:41]line НСП 1,50% : 0.00 [00:26:41]line НСП 0,50% : 0.00 [00:26:41]line НСП 5% : 0.00 [00:26:41]line НСП 3% : 0.00 [00:26:41]line НСП 2% : 0.00 [00:26:41]line НСП 1% : 2271.56 [00:26:41]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:26:41]line Чеков: 0 [00:26:41]line Общий итог: 0.00 [00:26:41]line Итого наличными: 0.00 [00:26:41]line Итого безнал.: 0.00 [00:26:41]line НДС 0% : 0.00 [00:26:41]line НДС 12% : 0.00 [00:26:41]line НСП 0% : 0.00 [00:26:41]line НСП 1,50% : 0.00 [00:26:41]line НСП 0,50% : 0.00 [00:26:41]line НСП 5% : 0.00 [00:26:41]line НСП 3% : 0.00 [00:26:41]line НСП 2% : 0.00 [00:26:41]line НСП 1% : 0.00 [00:26:41]line ИТОГИ РАСХОД [00:26:41]line Чеков: 0 [00:26:41]line Общий итог: 0.00 [00:26:41]line Итого наличными: 0.00 [00:26:41]line Итого безнал.: 0.00 [00:26:41]line НДС 0% : 0.00 [00:26:41]line НДС 12% : 0.00 [00:26:41]line НСП 0% : 0.00 [00:26:41]line НСП 1,50% : 0.00 [00:26:41]line НСП 0,50% : 0.00 [00:26:41]line НСП 5% : 0.00 [00:26:41]line НСП 3% : 0.00 [00:26:41]line НСП 2% : 0.00 [00:26:41]line НСП 1% : 0.00 [00:26:41]line ИТОГИ ВОЗВРАТ РАСХОДА [00:26:41]line Чеков: 0 [00:26:41]line Общий итог: 0.00 [00:26:41]line Итого наличными: 0.00 [00:26:41]line Итого безнал.: 0.00 [00:26:41]line НДС 0% : 0.00 [00:26:41]line НДС 12% : 0.00 [00:26:41]line НСП 0% : 0.00 [00:26:41]line НСП 1,50% : 0.00 [00:26:41]line НСП 0,50% : 0.00 [00:26:41]OFD Sender: Processing packet 156448 [packets to send 31, broken 30] [00:26:41]line НСП 5% : 0.00 [00:26:41]ProducePacketName [00:26:41]line НСП 3% : 0.00 [00:26:41]name=ofd_packets/00156448 [00:26:41]line НСП 2% : 0.00 [00:26:41]OFD Sender: To server: pG, [00:26:41]line НСП 1% : 0.00 [00:26:41]line Сумма внесений: 0.00 [00:26:41]line Сумма выплат: 0.00 [00:26:41]line Нал. в кассе: 215109.00 [00:26:41]line НС Приход: 104943822.45 [00:26:41]line НС Возвр.Прихода: 119944.00 [00:26:41]line НС Расход: 0.00 [00:26:41]line НС Возвр.Расхода: 0.00 [00:26:41]line ФД: 156448 [00:26:41]line ФМ: 0000000000871792 [00:26:41]line ФПД: 139267695664728 [00:26:41]CommunicateWithHost lk.salyk.kg:30040 [00:26:41]ConnectInit lk.salyk.kg [00:26:41]written 0, free lines is 4095 [00:26:41]Connected sock=10 [00:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 78 05 00 00 0F EB 70 05 0D C9 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 B4 88 1D 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 D8 04 6E 04 04 00 5C 01 00 00 69 04 A5 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 97 29 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A Write to MH i2c: 00 01 F6 00 03 00 01 C7 00 30 00 F7 F7 [00:26:42]03 Write i2c OK [00:26:42]01 00 MH_I2C_Read... [00:26:42]00 EF 03 0A 00 F6 03 01 Read from MH i2c: 00 01 06 [00:26:42]F7 MH_I2C_Read... [00:26:42]03 01 00 Read from MH i2c: 00 01 EF 07 03 00 0A [00:26:42]00 MH_I2C_Read... [00:26:42]F6 03 01 00 05 F7 03 01 Read from MH i2c: 00 01 00 07 EF 00 03 C7 0A 00 F6 03 01 00 04 F7 03 01 30 00 00 00 00 EF 00 03 00 0A 00 F6 03 01 00 03 F7 03 01 00 00 0C 00 0B EF 15 03 [00:26:42]0A 00 F6 03 01 00 02 F7 03 01 RasterBufferAndPrint [00:26:42]00 line [00:26:42]00 line [00:26:42]EF line [00:26:42]03 line [00:26:42]0A line [00:26:42]00 F6 written 0, free lines is 3048 [00:26:42]03 01 00 01 F7 03 01 00 00 6C 04 99 process_action close_shift done [00:26:42]00 requested_data is exist [00:26:42]6F produce_requested_data [00:26:42]04 requested_item fd.num is exist - process it [00:26:42]04 SAM_PROTO_GetFieldsCounters [00:26:42]00 00 00 00 00 B1 04 01 00 00 70 wFMCommunicate request_size=4 [00:26:42]04 MH_SAM_APDU [00:26:42]01 CAPDU: 00 80 00 13 00 00 [00:26:42]Write to MH i2c: E2 08 00 CE 30 72 80 04 13 01 00 00 00 00 00 00 00 00 7A [00:26:42]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 Write i2c OK [00:26:42]MH_I2C_Read... [00:26:42]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 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:43]00 Read from MH i2c: EF E2 03 [00:26:43]0A 00 MH_I2C_Read... [00:26:43]F6 Read from MH i2c: 03 E2 01 62 00 00 04 [00:26:43]F7 MH_I2C_Read... [00:26:43]03 01 00 Read from MH i2c: 00 E2 EF 62 03 00 0A CE 00 30 F6 03 01 00 03 F7 03 01 00 00 00 EF 03 5D 0A 00 00 B9 F6 04 03 01 01 00 00 01 02 11 F7 03 01 00 00 EF 03 0A 00 F6 03 04 01 10 00 00 01 30 F7 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 03 00 01 5C 00 01 00 00 6D 00 04 5E 4C 04 02 04 78 00 04 5C 04 01 00 00 00 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 79 00 04 00 8D 00 00 90 6F 04 04 00 00 00 00 00 B1 04 00 00 00 57 70 [00:26:43]04 RAPDU: 00 5D 00 00 72 B9 04 04 01 00 00 00 01 00 11 04 04 75 10 00 00 EE 30 03 30 09 30 00 30 F2 03 01 00 00 F3 03 00 00 EE 30 03 30 09 30 00 30 F2 30 03 01 00 01 F3 03 00 00 EF 03 30 09 38 00 37 F6 31 03 37 01 39 00 32 00 0D F7 04 03 10 00 00 00 30 EF 30 03 30 09 00 F6 03 01 00 01 F7 03 00 30 00 30 EF 30 03 30 09 30 00 F6 03 01 00 02 F7 03 00 00 30 EF 30 03 30 09 39 00 31 F6 36 03 39 01 33 00 10 03 04 04 00 20 63 02 00 0E 04 04 F7 00 03 18 00 02 00 00 EF 00 12 03 04 09 04 00 00 F6 5C 03 01 01 00 00 00 04 5E F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 04 00 04 F6 00 03 5C 01 01 00 00 06 00 F7 57 03 04 00 04 00 00 D0 5E 04 01 8D 00 00 6F 04 04 00 00 00 00 00 B1 00 04 19 00 04 00 04 70 00 04 00 00 72 04 00 00 00 04 75 00 00 00 EE 00 03 00 09 90 00 00 F2 [00:26:43]03 wFMCommunicate OK [00:26:43]01 SAM_PROTO_GetFieldsCounters done [00:26:43]00 00 F3 03 00 00 EE 03 09 00 requested_item shift.num is exist - process it [00:26:43]F2 requested_item shift.opened is exist - process it [00:26:43]03 req_shift_opened [00:26:43]01 FM_GetShiftState [00:26:43]00 SAM_PROTO_GetShiftState [00:26:43]01 wFMCommunicate request_size=4 [00:26:43]MH_SAM_APDU [00:26:43]F3 CAPDU: 03 80 00 13 01 00 [00:26:43]Write to MH i2c: E2 08 00 CF 30 80 13 01 00 00 00 00 00 7C [00:26:43]00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 Write i2c OK [00:26:43]F7 MH_I2C_Read... [00:26:43]03 Read from MH i2c: 00 E2 00 [00:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:43]MH_I2C_Read... [00:26:43]EF 03 09 00 F6 03 Read from MH i2c: 01 E2 00 0E 02 00 [00:26:43]F7 MH_I2C_Read... [00:26:43]03 Read from MH i2c: 00 E2 00 0E EF 00 03 09 00 F6 03 01 00 03 F7 03 CF 00 30 00 00 EF 09 03 00 09 00 00 00 F6 00 03 00 01 00 04 F7 03 00 00 EF 03 09 00 00 00 F6 00 03 00 01 00 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 90 00 F2 87 03 [00:26:44]01 RAPDU: 00 09 01 00 F3 00 03 00 00 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 00 03 00 01 00 00 00 01 00 F7 00 03 90 00 00 00 [00:26:44]EF 03 09 00 F6 03 01 00 02 F7 wFMCommunicate OK [00:26:44]03 SAM_PROTO_GetShiftState done [00:26:44]00 FM_GetShiftState done [00:26:44]00 req_shift_opened done [00:26:44]EF requested_item shift.open_date is exist - process it [00:26:44]03 req_shift_open_date [00:26:44]09 FM_GetShiftState [00:26:44]00 SAM_PROTO_GetShiftState [00:26:44]F6 wFMCommunicate request_size=4 [00:26:44]03 01 00 03 F7 03 00 00 EF 03 MH_SAM_APDU [00:26:44]09 CAPDU: 00 80 F6 13 03 01 01 00 00 [00:26:44]04 Write to MH i2c: F7 E2 03 00 00 EF 03 09 00 F6 03 01 08 00 00 05 D0 F7 30 03 80 00 13 00 01 EF 00 03 00 09 00 F6 03 01 00 06 F7 03 00 00 00 00 D1 00 04 7D 8D [00:26:44]00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 Write i2c OK [00:26:44]F7 MH_I2C_Read... [00:26:44]03 00 00 EF 03 09 Read from MH i2c: 00 E2 F6 03 01 00 05 F7 [00:26:44]03 MH_I2C_Read... [00:26:44]00 00 EF 03 09 00 Read from MH i2c: F6 E2 03 0E 01 00 00 [00:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:44]MH_I2C_Read... [00:26:44]06 F7 03 00 00 10 Read from MH i2c: 04 E2 04 0E 00 00 20 D0 63 30 02 00 00 09 11 00 04 00 10 00 00 00 30 00 30 00 30 30 30 30 30 30 30 30 38 37 00 31 00 37 00 39 00 32 90 35 00 04 88 06 [00:26:44]RAPDU: 00 09 7E 00 A9 00 C9 00 87 00 5E 58 77 09 EA 92 15 16 28 4B 00 [00:26:44]00 00 00 00 00 90 00 [00:26:44]wFMCommunicate OK [00:26:44]SAM_PROTO_GetShiftState done [00:26:44]FM_GetShiftState done [00:26:44]req_shift_open_date done [00:26:44]produce_requested_data done [00:26:44]produce_requested_data return {"fd.num":156448,"shift.num":536,"shift.opened":0,"shift.open_date":0} [00:26:44]process_action_free close_shift [00:26:44]json_value_free [00:26:44]json_value_free done [00:26:44]process_json_proto returns [00:26:44]Send response to host [00:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":156448,"shift.num":536,"shift.opened":0,"shift.open_date":0}}} [00:26:44]free response buf [00:26:44]execute_script done [00:26:44]execute_script returns [00:26:44]free content buf [00:26:44]Sock 8.Close socket [00:26:44]Sock 8.Thread stoped [00:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 41 BA 47 00 E9 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 63 02 00 F4 03 04 00 36 2E 1D 67 B6 04 01 00 00 E6 DB 41 1E 62 F9 B2 5C [00:26:45]CommunicateWithHost err = 0 [00:26:45]CheckOFDResponse [00:26:45]1017 (14) - 77093643461234 [00:26:45]1041 (16) - 0000000000871792 [00:26:45]1040 (4) - 156448 [00:26:45]1012 (4) - 26.10.2024 18:00 [00:26:45]1206 (1) - 0 [00:26:45]OFD Sender: Remove packet 156448 [00:26:45]ProducePacketName [00:26:45]name=ofd_packets/00156448 [00:26:45]NVStorageDeleteData [00:26:45]OFD Sender: No OFD packet to send [00:26:46]int [00:26:46]Write to MH i2c: 01 00 00 D1 30 01 [00:26:46]*** FLAG_PRN_KEY set [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 07 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 07 00 D1 30 00 08 00 00 00 FF 0F 1E [00:26:46]state=0 [00:26:46]Key pressed [00:26:46]Feed [00:26:46]Write to MH i2c: D8 00 00 D2 30 D9 [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: D8 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: D8 01 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: D8 01 00 D2 30 00 DA [00:26:46]int line is 0 - check status [00:26:46]Write to MH i2c: 01 00 00 D3 30 03 [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 07 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 07 00 D3 30 00 48 00 00 00 3C 00 8E [00:26:46]state=2 [00:26:46]Key pressed [00:26:46]int [00:26:46]Write to MH i2c: 01 00 00 D4 30 04 [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 07 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 07 00 D4 30 00 48 00 00 00 3C 00 8F [00:26:46]state=2 [00:26:46]Key pressed [00:26:46]int [00:26:46]Write to MH i2c: 01 00 00 D5 30 05 [00:26:46]*** FLAG_PRN_KEY reset [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 07 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: 01 07 00 D5 30 00 00 00 00 00 FF 0F 1A [00:26:46]state=2 [00:26:46]Stop feed [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:37]accept exits with 9 [00:30:37]New connection [00:30:37]New thread 3066834276 created [00:30:37]Thread 3066977636 joined [00:30:37]Waiting for new connection... [00:30:37] Sock 9.Parse request [00:30:37]Sock 9.Check first char [00:30:37]Sock 9.First char is OK [00:30:37]request: POST /json_proto HTTP/1.0 [00:30:37]Method: POST [00:30:37]URL: /json_proto [00:30:37]Method is POST - this is cgi request [00:30:37]url: /json_proto [00:30:37]query_string will be loaded in cgi processing [00:30:37]execute_cgi json_proto POST (null) [00:30:37]execute_cgi path=json_proto method=POST [00:30:37]POST find Content-Length [00:30:37]Host: 172.17.63.3:8080 [00:30:37]Content-Length: 215 [00:30:37]Content-Type: application/json [00:30:37] [00:30:37]POST finish read [00:30:37]Found Content-Length = 215 [00:30:37]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:30:37]execute_script... [00:30:37]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:30:37]POST & json_proto [00:30:37]process_json_proto [00:30:37]json parsed OK: [00:30:37]protocol is kg_v1.0 [00:30:37]action value=get_value [00:30:37]process_action get_value [00:30:37]cmd_get_value [00:30:37]process_action get_value done [00:30:37]requested_data is exist [00:30:37]produce_requested_data [00:30:37]requested_item kkm.sn is exist - process it [00:30:37]requested_item kkm.ver is exist - process it [00:30:37]requested_item fm.sn is exist - process it [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 11 00 00 [00:30:37]Write to MH i2c: E2 08 00 D6 30 80 11 00 00 00 00 00 00 80 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 17 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 17 00 D6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [00:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:30:37]wFMCommunicate OK [00:30:37]requested_item fd.num is exist - process it [00:30:37]SAM_PROTO_GetFieldsCounters [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 13 00 00 [00:30:37]Write to MH i2c: E2 08 00 D7 30 80 13 00 00 00 00 00 00 83 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 62 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 62 00 D7 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [00:30: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 63 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:37]wFMCommunicate OK [00:30:37]SAM_PROTO_GetFieldsCounters done [00:30:37]requested_item shift.num is exist - process it [00:30:37]requested_item shift.opened is exist - process it [00:30:37]req_shift_opened [00:30:37]FM_GetShiftState [00:30:37]SAM_PROTO_GetShiftState [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 13 01 00 [00:30:37]Write to MH i2c: E2 08 00 D8 30 80 13 01 00 00 00 00 00 85 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 0E 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 0E 00 D8 30 00 09 00 00 00 00 00 00 00 00 00 00 90 00 90 [00:30:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:37]wFMCommunicate OK [00:30:37]SAM_PROTO_GetShiftState done [00:30:37]FM_GetShiftState done [00:30:37]req_shift_opened done [00:30:37]requested_item shift.open_date is exist - process it [00:30:37]req_shift_open_date [00:30:37]FM_GetShiftState [00:30:37]SAM_PROTO_GetShiftState [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 13 01 00 [00:30:37]Write to MH i2c: E2 08 00 D9 30 80 13 01 00 00 00 00 00 86 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:38]Read from MH i2c: E2 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 0E 00 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 0E 00 D9 30 00 09 00 00 00 00 00 00 00 00 00 00 90 00 91 [00:30:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:38]wFMCommunicate OK [00:30:38]SAM_PROTO_GetShiftState done [00:30:38]FM_GetShiftState done [00:30:38]req_shift_open_date done [00:30:38]produce_requested_data done [00:30:38]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156448,"shift.num":536,"shift.opened":0,"shift.open_date":0} [00:30:38]process_action_free get_value [00:30:38]json_value_free [00:30:38]json_value_free done [00:30:38]process_json_proto returns [00:30:38]Send response to host [00:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156448,"shift.num":536,"shift.opened":0,"shift.open_date":0}}} [00:30:38]free response buf [00:30:38]execute_script done [00:30:38]execute_script returns [00:30:38]free content buf [00:30:38]Sock 9.Close socket [00:30:38]Sock 9.Thread stoped [00:30:38]accept exits with 8 [00:30:38]New connection [00:30:38]New thread 3066977636 created [00:30:38]Thread 3066834276 joined [00:30:38]Waiting for new connection... [00:30:38] Sock 8.Parse request [00:30:38]Sock 8.Check first char [00:30:38]Sock 8.First char is OK [00:30:38]request: POST /json_proto HTTP/1.0 [00:30:38]Method: POST [00:30:38]URL: /json_proto [00:30:38]Method is POST - this is cgi request [00:30:38]url: /json_proto [00:30:38]query_string will be loaded in cgi processing [00:30:38]execute_cgi json_proto POST (null) [00:30:38]execute_cgi path=json_proto method=POST [00:30:38]POST find Content-Length [00:30:38]Host: 172.17.63.3:8080 [00:30:38]Content-Length: 331 [00:30:38]Content-Type: application/json [00:30:38] [00:30:38]POST finish read [00:30:38]Found Content-Length = 331 [00:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:38]execute_script... [00:30:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:38]POST & json_proto [00:30:38]process_json_proto [00:30:38]json parsed OK: [00:30:38]protocol is kg_v1.0 [00:30:38]action value=get_value [00:30:38]process_action get_value [00:30:38]cmd_get_value [00:30:38]process_action get_value done [00:30:38]requested_data is exist [00:30:38]produce_requested_data [00:30:38]requested_item fm.sale.total is exist - process it [00:30:38]SAM_PROTO_GetFMData [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 13 03 00 [00:30:38]Write to MH i2c: E2 08 00 DA 30 80 13 03 00 00 00 00 00 89 [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:38]Read from MH i2c: E2 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 FD 00 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 FD 00 DA 30 00 C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 BD [00:30:38]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:30:38]wFMCommunicate OK [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 17 00 00 [00:30:38]Write to MH i2c: E2 08 00 DB 30 80 17 00 00 00 00 00 00 8B [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 DB 30 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 FA [00:30:39]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:39]wFMCommunicate OK [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 17 00 00 [00:30:39]Write to MH i2c: E2 08 00 DC 30 80 17 00 00 00 00 00 00 8C [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 DC 30 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [00:30:39]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:39]wFMCommunicate OK [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 17 00 00 [00:30:39]Write to MH i2c: E2 08 00 DD 30 80 17 00 00 00 00 00 00 8D [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 DD 30 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [00:30:39]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:39]wFMCommunicate OK [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 17 00 00 [00:30:39]Write to MH i2c: E2 08 00 DE 30 80 17 00 00 00 00 00 00 8E [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 DF 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 DF 00 DE 30 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6E [00:30:39]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:39]wFMCommunicate OK [00:30:39]SAM_PROTO_GetFMData done [00:30:39]requested_item fm.sale_refund.total is exist - process it [00:30:39]requested_item fm.buy.total is exist - process it [00:30:39]requested_item shift.sale.total is exist - process it [00:30:39]SAM_PROTO_GetShiftData [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 13 02 00 [00:30:39]Write to MH i2c: E2 08 00 DF 30 80 13 02 00 00 00 00 00 8D [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 DF 30 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3B [00:30:40]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 4D 8A 87 01 70 04 04 00 F4 3A 48 01 72 04 03 00 59 4F 3F 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 D2 97 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 54 77 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:40]wFMCommunicate OK [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 17 00 00 [00:30:40]Write to MH i2c: E2 08 00 E0 30 80 17 00 00 00 00 00 00 90 [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 E0 30 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [00:30:40]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:40]wFMCommunicate OK [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 17 00 00 [00:30:40]Write to MH i2c: E2 08 00 E1 30 80 17 00 00 00 00 00 00 91 [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 E1 30 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [00:30:40]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:40]wFMCommunicate OK [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 17 00 00 [00:30:40]Write to MH i2c: E2 08 00 E2 30 80 17 00 00 00 00 00 00 92 [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]OFD Sender: No OFD packet to send [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 E2 30 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 90 00 0A [00:30:41]RAPDU: 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 90 00 [00:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 17 00 00 [00:30:41]Write to MH i2c: E2 08 00 E3 30 80 17 00 00 00 00 00 00 93 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:41]Read from MH i2c: E2 CE 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 CE 00 E3 30 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [00:30:41]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:41]wFMCommunicate OK [00:30:41]SAM_PROTO_GetShiftData done [00:30:41]requested_item shift.sale.total_cash is exist - process it [00:30:41]requested_item shift.sale_refund.total is exist - process it [00:30:41]requested_item shift.sale_refund.total_cash is exist - process it [00:30:41]requested_item shift.buy.total is exist - process it [00:30:41]requested_item shift.buy.total_cash is exist - process it [00:30:41]produce_requested_data done [00:30:41]produce_requested_data return {"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.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:30:41]process_action_free get_value [00:30:41]json_value_free [00:30:41]json_value_free done [00:30:41]process_json_proto returns [00:30:41]Send response to host [00:30:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":256599.81,"shift.sale.total_cash":215109.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:30:41]free response buf [00:30:41]execute_script done [00:30:41]execute_script returns [00:30:41]free content buf [00:30:41]Sock 8.Close socket [00:30:41]Sock 8.Thread stoped [00:30:41]accept exits with 9 [00:30:41]New connection [00:30:41]New thread 3066834276 created [00:30:41]Thread 3066977636 joined [00:30:41]Waiting for new connection... [00:30:41] Sock 9.Parse request [00:30:41]Sock 9.Check first char [00:30:41]Sock 9.First char is OK [00:30:41]request: POST /json_proto HTTP/1.0 [00:30:41]Method: POST [00:30:41]URL: /json_proto [00:30:41]Method is POST - this is cgi request [00:30:41]url: /json_proto [00:30:41]query_string will be loaded in cgi processing [00:30:41]execute_cgi json_proto POST (null) [00:30:41]execute_cgi path=json_proto method=POST [00:30:41]POST find Content-Length [00:30:41]Host: 172.17.63.3:8080 [00:30:41]Content-Length: 271 [00:30:41]Content-Type: application/json [00:30:41] [00:30:41]POST finish read [00:30:41]Found Content-Length = 271 [00:30:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:41]execute_script... [00:30:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:41]POST & json_proto [00:30:41]process_json_proto [00:30:41]json parsed OK: [00:30:41]protocol is kg_v1.0 [00:30:41]action value=open_shift [00:30:41]process_action open_shift [00:30:41]cmd_open_shift [00:30:41]MH_GetDate [00:30:41]Write to MH i2c: F0 00 00 E4 30 03 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 09 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 09 00 E4 30 00 B4 89 1D 67 50 D1 6C 64 BE [00:30:41]GetLastDocTimeStamp 1729988788 [00:30:41]current date 1729989044 [00:30:41]FM_GetShiftState [00:30:41]SAM_PROTO_GetShiftState [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 13 01 00 [00:30:41]Write to MH i2c: E2 08 00 E5 30 80 13 01 00 00 00 00 00 92 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 0E 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 0E 00 E5 30 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9D [00:30:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:41]wFMCommunicate OK [00:30:41]SAM_PROTO_GetShiftState done [00:30:41]FM_GetShiftState done [00:30:41]KKMCreateOpenShiftDocument [00:30:41]Load OK [00:30:41]Malloc new data [00:30:41]MH_GetDate [00:30:41]Write to MH i2c: F0 00 00 E6 30 05 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 09 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 09 00 E6 30 00 B4 89 1D 67 50 D1 6C 64 C0 [00:30:41]Malloc new data [00:30:41]KKMCreateOpenShiftDocument OK [00:30:41]KKMSetOpenShiftData OK [00:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=208 [00:30:41]tlvbuf is 017AE8A0 [00:30:41]KKMLoadAndSignOpenShiftData [00:30:41]SAM_PROTO_ProcessDocument [00:30:41]wFMCommunicate request_size=9 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 15 01 00 04 02 00 D0 00 [00:30:41]Write to MH i2c: E2 0C 00 E7 30 80 15 01 00 04 00 02 00 D0 00 00 00 70 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 E7 30 00 90 00 8B [00:30:41]RAPDU: 90 00 [00:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=23 [00:30:41]MH_SAM_APDU [00:30:41]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:30:41]Write to MH i2c: E2 1A 00 E8 30 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 8D [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [00:30:41]RAPDU: 90 00 [00:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=34 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:30:41]Write to MH i2c: E2 25 00 E9 30 80 15 02 00 1D 00 FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 6B [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 E9 30 00 90 00 8D [00:30:41]RAPDU: 90 00 [00:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=92 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 [00:30:41]Write to MH i2c: E2 5F 00 EA 30 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 00 00 9A [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 EA 30 00 90 00 8E [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=51 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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:30:42]Write to MH i2c: E2 36 00 EB 30 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 45 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 EB 30 00 90 00 8F [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=13 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 15 02 00 08 F4 03 04 00 B4 89 1D 67 [00:30:42]Write to MH i2c: E2 10 00 EC 30 80 15 02 00 08 00 F4 03 04 00 B4 89 1D 67 00 00 68 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 EC 30 00 90 00 90 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=25 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [00:30:42]Write to MH i2c: E2 1C 00 ED 30 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 02 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 ED 30 00 90 00 91 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=4 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 15 03 00 [00:30:42]Write to MH i2c: E2 08 00 EE 30 80 15 03 00 00 00 00 00 9F [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 38 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 38 00 EE 30 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 63 02 00 0E 04 04 00 19 02 00 00 35 04 06 00 F1 62 A8 D9 7B 08 90 00 65 [00:30:42]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 63 02 00 0E 04 04 00 19 02 00 00 35 04 06 00 F1 62 A8 D9 7B 08 90 00 [00:30:42]wFMCommunicate OK [00:30:42]SAM_PROTO_ProcessDocument answer len = 51 [00:30:42]SAM_PROTO_ProcessDocument done [00:30:42]SetTLVBufToDocument [00:30:42]Processing tag 1209 (04B9) [00:30:42]Malloc new data [00:30:42]Processing tag 1041 (0411) [00:30:42]Processing tag 1040 (0410) [00:30:42]Malloc new data [00:30:42]Processing tag 1038 (040E) [00:30:42]Malloc new data [00:30:42]Processing tag 1077 (0435) [00:30:42]Malloc new data [00:30:42]SetTLVBufToDocument err=0 [00:30:42]KKMLoadAndSignOpenShiftData store KKM data [00:30:42]KKMLoadAndSignOpenShiftData err=0 [00:30:42]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Куранбаева Н. Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 Место: АЗС № 143 "Партнер Нефть" 27.10.2024 00:30 Смена: 537 РНМ: 0000000000091693 ЗНМ: 0300000096 ФД: 156449 ФМ: 0000000000871792 ФПД: 265406041914120 [00:30:42]StoreToDocumentArchive [00:30:42]shift 537 fd 156449 [00:30:42]Create dir for shift 0537 [00:30:42]save to /storage/0537/doc_00156449 [00:30:42]save last doc name /storage/0537/doc_00156449 to /storage/kkm_last_doc_name [00:30:42]save OK [00:30:42]Clear old archive folders... [00:30:42]Remove dir /storage/0536 [00:30:42]opendir ok [00:30:42]file . [00:30:42]file .. [00:30:42]file doc_00156099 [00:30:42]remove file /storage/0536/doc_00156099 [00:30:42]file doc_00156100 [00:30:42]remove file /storage/0536/doc_00156100 [00:30:42]file doc_00156101 [00:30:42]remove file /storage/0536/doc_00156101 [00:30:42]file doc_00156102 [00:30:42]remove file /storage/0536/doc_00156102 [00:30:42]file doc_00156103 [00:30:42]remove file /storage/0536/doc_00156103 [00:30:42]file doc_00156104 [00:30:42]remove file /storage/0536/doc_00156104 [00:30:42]file doc_00156105 [00:30:42]remove file /storage/0536/doc_00156105 [00:30:42]file doc_00156106 [00:30:42]remove file /storage/0536/doc_00156106 [00:30:42]file doc_00156107 [00:30:42]remove file /storage/0536/doc_00156107 [00:30:42]file doc_00156108 [00:30:42]remove file /storage/0536/doc_00156108 [00:30:42]file doc_00156109 [00:30:42]remove file /storage/0536/doc_00156109 [00:30:42]file doc_00156110 [00:30:42]remove file /storage/0536/doc_00156110 [00:30:42]file doc_00156111 [00:30:42]remove file /storage/0536/doc_00156111 [00:30:42]file doc_00156112 [00:30:42]remove file /storage/0536/doc_00156112 [00:30:42]file doc_00156113 [00:30:42]remove file /storage/0536/doc_00156113 [00:30:42]file doc_00156114 [00:30:42]remove file /storage/0536/doc_00156114 [00:30:42]file doc_00156115 [00:30:42]remove file /storage/0536/doc_00156115 [00:30:42]file doc_00156116 [00:30:42]remove file /storage/0536/doc_00156116 [00:30:42]file doc_00156117 [00:30:42]remove file /storage/0536/doc_00156117 [00:30:42]file doc_00156118 [00:30:42]remove file /storage/0536/doc_00156118 [00:30:42]file doc_00156119 [00:30:42]remove file /storage/0536/doc_00156119 [00:30:42]file doc_00156120 [00:30:42]remove file /storage/0536/doc_00156120 [00:30:42]file doc_00156121 [00:30:42]remove file /storage/0536/doc_00156121 [00:30:42]file doc_00156122 [00:30:42]remove file /storage/0536/doc_00156122 [00:30:42]file doc_00156123 [00:30:42]remove file /storage/0536/doc_00156123 [00:30:42]file doc_00156124 [00:30:42]remove file /storage/0536/doc_00156124 [00:30:42]file doc_00156125 [00:30:42]remove file /storage/0536/doc_00156125 [00:30:42]file doc_00156126 [00:30:42]remove file /storage/0536/doc_00156126 [00:30:42]file doc_00156127 [00:30:42]remove file /storage/0536/doc_00156127 [00:30:42]file doc_00156128 [00:30:42]remove file /storage/0536/doc_00156128 [00:30:42]file doc_00156129 [00:30:42]remove file /storage/0536/doc_00156129 [00:30:42]file doc_00156130 [00:30:42]remove file /storage/0536/doc_00156130 [00:30:42]file doc_00156131 [00:30:42]remove file /storage/0536/doc_00156131 [00:30:42]file doc_00156132 [00:30:42]remove file /storage/0536/doc_00156132 [00:30:42]file doc_00156133 [00:30:42]remove file /storage/0536/doc_00156133 [00:30:42]file doc_00156134 [00:30:42]remove file /storage/0536/doc_00156134 [00:30:42]file doc_00156135 [00:30:42]remove file /storage/0536/doc_00156135 [00:30:42]file doc_00156136 [00:30:42]remove file /storage/0536/doc_00156136 [00:30:42]file doc_00156137 [00:30:42]remove file /storage/0536/doc_00156137 [00:30:42]file doc_00156138 [00:30:42]remove file /storage/0536/doc_00156138 [00:30:42]file doc_00156139 [00:30:42]remove file /storage/0536/doc_00156139 [00:30:42]file doc_00156140 [00:30:42]remove file /storage/0536/doc_00156140 [00:30:42]file doc_00156141 [00:30:42]remove file /storage/0536/doc_00156141 [00:30:42]file doc_00156142 [00:30:42]remove file /storage/0536/doc_00156142 [00:30:42]file doc_00156143 [00:30:42]remove file /storage/0536/doc_00156143 [00:30:42]file doc_00156144 [00:30:42]remove file /storage/0536/doc_00156144 [00:30:42]file doc_00156145 [00:30:42]remove file /storage/0536/doc_00156145 [00:30:42]file doc_00156146 [00:30:42]remove file /storage/0536/doc_00156146 [00:30:42]file doc_00156147 [00:30:42]remove file /storage/0536/doc_00156147 [00:30:42]file doc_00156148 [00:30:42]remove file /storage/0536/doc_00156148 [00:30:42]file doc_00156149 [00:30:42]remove file /storage/0536/doc_00156149 [00:30:42]file doc_00156150 [00:30:42]remove file /storage/0536/doc_00156150 [00:30:42]file doc_00156151 [00:30:42]remove file /storage/0536/doc_00156151 [00:30:42]file doc_00156152 [00:30:42]remove file /storage/0536/doc_00156152 [00:30:42]file doc_00156153 [00:30:42]remove file /storage/0536/doc_00156153 [00:30:42]file doc_00156154 [00:30:42]remove file /storage/0536/doc_00156154 [00:30:42]file doc_00156155 [00:30:42]remove file /storage/0536/doc_00156155 [00:30:42]file doc_00156156 [00:30:42]remove file /storage/0536/doc_00156156 [00:30:42]file doc_00156157 [00:30:42]remove file /storage/0536/doc_00156157 [00:30:42]file doc_00156158 [00:30:42]remove file /storage/0536/doc_00156158 [00:30:42]file doc_00156159 [00:30:42]remove file /storage/0536/doc_00156159 [00:30:42]file doc_00156160 [00:30:42]remove file /storage/0536/doc_00156160 [00:30:42]file doc_00156161 [00:30:42]remove file /storage/0536/doc_00156161 [00:30:42]file doc_00156162 [00:30:42]remove file /storage/0536/doc_00156162 [00:30:42]file doc_00156163 [00:30:42]remove file /storage/0536/doc_00156163 [00:30:42]file doc_00156164 [00:30:42]remove file /storage/0536/doc_00156164 [00:30:42]file doc_00156165 [00:30:42]remove file /storage/0536/doc_00156165 [00:30:42]file doc_00156166 [00:30:42]remove file /storage/0536/doc_00156166 [00:30:42]file doc_00156167 [00:30:42]remove file /storage/0536/doc_00156167 [00:30:42]file doc_00156168 [00:30:42]remove file /storage/0536/doc_00156168 [00:30:42]file doc_00156169 [00:30:42]remove file /storage/0536/doc_00156169 [00:30:42]file doc_00156170 [00:30:42]remove file /storage/0536/doc_00156170 [00:30:42]file doc_00156171 [00:30:42]remove file /storage/0536/doc_00156171 [00:30:42]file doc_00156172 [00:30:42]remove file /storage/0536/doc_00156172 [00:30:42]file doc_00156173 [00:30:42]remove file /storage/0536/doc_00156173 [00:30:42]file doc_00156174 [00:30:42]remove file /storage/0536/doc_00156174 [00:30:42]file doc_00156175 [00:30:42]remove file /storage/0536/doc_00156175 [00:30:42]file doc_00156176 [00:30:42]remove file /storage/0536/doc_00156176 [00:30:42]file doc_00156177 [00:30:42]remove file /storage/0536/doc_00156177 [00:30:42]file doc_00156178 [00:30:42]remove file /storage/0536/doc_00156178 [00:30:42]file doc_00156179 [00:30:42]remove file /storage/0536/doc_00156179 [00:30:42]file doc_00156180 [00:30:43]remove file /storage/0536/doc_00156180 [00:30:43]file doc_00156181 [00:30:43]remove file /storage/0536/doc_00156181 [00:30:43]file doc_00156182 [00:30:43]remove file /storage/0536/doc_00156182 [00:30:43]file doc_00156183 [00:30:43]remove file /storage/0536/doc_00156183 [00:30:43]file doc_00156184 [00:30:43]remove file /storage/0536/doc_00156184 [00:30:43]file doc_00156185 [00:30:43]remove file /storage/0536/doc_00156185 [00:30:43]file doc_00156186 [00:30:43]remove file /storage/0536/doc_00156186 [00:30:43]file doc_00156187 [00:30:43]remove file /storage/0536/doc_00156187 [00:30:43]file doc_00156188 [00:30:43]remove file /storage/0536/doc_00156188 [00:30:43]file doc_00156189 [00:30:43]remove file /storage/0536/doc_00156189 [00:30:43]file doc_00156190 [00:30:43]remove file /storage/0536/doc_00156190 [00:30:43]file doc_00156191 [00:30:43]remove file /storage/0536/doc_00156191 [00:30:43]file doc_00156192 [00:30:43]remove file /storage/0536/doc_00156192 [00:30:43]file doc_00156193 [00:30:43]remove file /storage/0536/doc_00156193 [00:30:43]file doc_00156194 [00:30:43]remove file /storage/0536/doc_00156194 [00:30:43]file doc_00156195 [00:30:43]remove file /storage/0536/doc_00156195 [00:30:43]file doc_00156196 [00:30:43]remove file /storage/0536/doc_00156196 [00:30:43]file doc_00156197 [00:30:43]remove file /storage/0536/doc_00156197 [00:30:43]file doc_00156198 [00:30:43]remove file /storage/0536/doc_00156198 [00:30:43]file doc_00156199 [00:30:43]remove file /storage/0536/doc_00156199 [00:30:43]file doc_00156200 [00:30:43]remove file /storage/0536/doc_00156200 [00:30:43]file doc_00156201 [00:30:43]remove file /storage/0536/doc_00156201 [00:30:43]file doc_00156202 [00:30:43]remove file /storage/0536/doc_00156202 [00:30:43]file doc_00156203 [00:30:43]remove file /storage/0536/doc_00156203 [00:30:43]file doc_00156204 [00:30:43]remove file /storage/0536/doc_00156204 [00:30:43]file doc_00156205 [00:30:43]remove file /storage/0536/doc_00156205 [00:30:43]file doc_00156206 [00:30:43]remove file /storage/0536/doc_00156206 [00:30:43]file doc_00156207 [00:30:43]remove file /storage/0536/doc_00156207 [00:30:43]file doc_00156208 [00:30:43]remove file /storage/0536/doc_00156208 [00:30:43]file doc_00156209 [00:30:43]remove file /storage/0536/doc_00156209 [00:30:43]file doc_00156210 [00:30:43]remove file /storage/0536/doc_00156210 [00:30:43]file doc_00156211 [00:30:43]remove file /storage/0536/doc_00156211 [00:30:43]file doc_00156212 [00:30:43]remove file /storage/0536/doc_00156212 [00:30:43]file doc_00156213 [00:30:43]remove file /storage/0536/doc_00156213 [00:30:43]file doc_00156214 [00:30:43]remove file /storage/0536/doc_00156214 [00:30:43]file doc_00156215 [00:30:43]remove file /storage/0536/doc_00156215 [00:30:43]file doc_00156216 [00:30:43]remove file /storage/0536/doc_00156216 [00:30:43]file doc_00156217 [00:30:43]remove file /storage/0536/doc_00156217 [00:30:43]file doc_00156218 [00:30:43]remove file /storage/0536/doc_00156218 [00:30:43]file doc_00156219 [00:30:43]remove file /storage/0536/doc_00156219 [00:30:43]file doc_00156220 [00:30:43]remove file /storage/0536/doc_00156220 [00:30:43]file doc_00156221 [00:30:43]remove file /storage/0536/doc_00156221 [00:30:43]file doc_00156222 [00:30:43]remove file /storage/0536/doc_00156222 [00:30:43]file doc_00156223 [00:30:43]remove file /storage/0536/doc_00156223 [00:30:43]file doc_00156224 [00:30:43]remove file /storage/0536/doc_00156224 [00:30:43]file doc_00156225 [00:30:43]remove file /storage/0536/doc_00156225 [00:30:43]file doc_00156226 [00:30:43]remove file /storage/0536/doc_00156226 [00:30:43]file doc_00156227 [00:30:43]remove file /storage/0536/doc_00156227 [00:30:43]file doc_00156228 [00:30:43]remove file /storage/0536/doc_00156228 [00:30:43]file doc_00156229 [00:30:43]remove file /storage/0536/doc_00156229 [00:30:43]file doc_00156230 [00:30:43]remove file /storage/0536/doc_00156230 [00:30:43]file doc_00156231 [00:30:43]remove file /storage/0536/doc_00156231 [00:30:43]file doc_00156232 [00:30:43]remove file /storage/0536/doc_00156232 [00:30:43]file doc_00156233 [00:30:43]remove file /storage/0536/doc_00156233 [00:30:43]file doc_00156234 [00:30:43]remove file /storage/0536/doc_00156234 [00:30:43]file doc_00156235 [00:30:43]remove file /storage/0536/doc_00156235 [00:30:43]file doc_00156236 [00:30:43]remove file /storage/0536/doc_00156236 [00:30:43]file doc_00156237 [00:30:43]remove file /storage/0536/doc_00156237 [00:30:43]file doc_00156238 [00:30:43]remove file /storage/0536/doc_00156238 [00:30:43]file doc_00156239 [00:30:43]remove file /storage/0536/doc_00156239 [00:30:43]file doc_00156240 [00:30:43]remove file /storage/0536/doc_00156240 [00:30:43]file doc_00156241 [00:30:43]remove file /storage/0536/doc_00156241 [00:30:43]file doc_00156242 [00:30:43]remove file /storage/0536/doc_00156242 [00:30:43]file doc_00156243 [00:30:43]remove file /storage/0536/doc_00156243 [00:30:43]file doc_00156244 [00:30:43]remove file /storage/0536/doc_00156244 [00:30:43]file doc_00156245 [00:30:43]remove file /storage/0536/doc_00156245 [00:30:43]file doc_00156246 [00:30:43]remove file /storage/0536/doc_00156246 [00:30:43]file doc_00156247 [00:30:43]remove file /storage/0536/doc_00156247 [00:30:43]file doc_00156248 [00:30:43]remove file /storage/0536/doc_00156248 [00:30:43]file doc_00156249 [00:30:43]remove file /storage/0536/doc_00156249 [00:30:43]file doc_00156250 [00:30:43]remove file /storage/0536/doc_00156250 [00:30:43]file doc_00156251 [00:30:43]remove file /storage/0536/doc_00156251 [00:30:43]file doc_00156252 [00:30:43]remove file /storage/0536/doc_00156252 [00:30:43]file doc_00156253 [00:30:43]remove file /storage/0536/doc_00156253 [00:30:43]file doc_00156254 [00:30:43]remove file /storage/0536/doc_00156254 [00:30:43]file doc_00156255 [00:30:43]remove file /storage/0536/doc_00156255 [00:30:43]file doc_00156256 [00:30:43]remove file /storage/0536/doc_00156256 [00:30:43]file doc_00156257 [00:30:43]remove file /storage/0536/doc_00156257 [00:30:43]file doc_00156258 [00:30:43]remove file /storage/0536/doc_00156258 [00:30:43]file doc_00156259 [00:30:43]remove file /storage/0536/doc_00156259 [00:30:43]file doc_00156260 [00:30:43]remove file /storage/0536/doc_00156260 [00:30:43]file doc_00156261 [00:30:43]remove file /storage/0536/doc_00156261 [00:30:43]file doc_00156262 [00:30:43]remove file /storage/0536/doc_00156262 [00:30:43]file doc_00156263 [00:30:43]remove file /storage/0536/doc_00156263 [00:30:43]file doc_00156264 [00:30:43]remove file /storage/0536/doc_00156264 [00:30:43]file doc_00156265 [00:30:43]remove file /storage/0536/doc_00156265 [00:30:43]file doc_00156266 [00:30:43]remove file /storage/0536/doc_00156266 [00:30:43]file doc_00156267 [00:30:43]remove file /storage/0536/doc_00156267 [00:30:43]file doc_00156268 [00:30:43]remove file /storage/0536/doc_00156268 [00:30:43]file doc_00156269 [00:30:43]remove file /storage/0536/doc_00156269 [00:30:43]file doc_00156270 [00:30:43]remove file /storage/0536/doc_00156270 [00:30:43]file doc_00156271 [00:30:43]remove file /storage/0536/doc_00156271 [00:30:43]file doc_00156272 [00:30:43]remove file /storage/0536/doc_00156272 [00:30:43]file doc_00156273 [00:30:43]remove file /storage/0536/doc_00156273 [00:30:43]file doc_00156274 [00:30:43]remove file /storage/0536/doc_00156274 [00:30:43]file doc_00156275 [00:30:43]remove file /storage/0536/doc_00156275 [00:30:43]file doc_00156276 [00:30:43]remove file /storage/0536/doc_00156276 [00:30:43]file doc_00156277 [00:30:43]remove file /storage/0536/doc_00156277 [00:30:43]file doc_00156278 [00:30:43]remove file /storage/0536/doc_00156278 [00:30:43]file doc_00156279 [00:30:43]remove file /storage/0536/doc_00156279 [00:30:43]file doc_00156280 [00:30:43]remove file /storage/0536/doc_00156280 [00:30:43]file doc_00156281 [00:30:43]remove file /storage/0536/doc_00156281 [00:30:43]file doc_00156282 [00:30:43]remove file /storage/0536/doc_00156282 [00:30:43]file doc_00156283 [00:30:43]remove file /storage/0536/doc_00156283 [00:30:43]file doc_00156284 [00:30:43]remove file /storage/0536/doc_00156284 [00:30:43]file doc_00156285 [00:30:43]remove file /storage/0536/doc_00156285 [00:30:43]file doc_00156286 [00:30:43]remove file /storage/0536/doc_00156286 [00:30:43]file doc_00156287 [00:30:43]remove file /storage/0536/doc_00156287 [00:30:43]file doc_00156288 [00:30:43]remove file /storage/0536/doc_00156288 [00:30:43]file doc_00156289 [00:30:43]remove file /storage/0536/doc_00156289 [00:30:43]file doc_00156290 [00:30:43]remove file /storage/0536/doc_00156290 [00:30:43]file doc_00156291 [00:30:43]remove file /storage/0536/doc_00156291 [00:30:43]file doc_00156292 [00:30:43]remove file /storage/0536/doc_00156292 [00:30:43]file doc_00156293 [00:30:43]remove file /storage/0536/doc_00156293 [00:30:43]file doc_00156294 [00:30:43]remove file /storage/0536/doc_00156294 [00:30:43]file doc_00156295 [00:30:43]remove file /storage/0536/doc_00156295 [00:30:43]file doc_00156296 [00:30:43]remove file /storage/0536/doc_00156296 [00:30:43]file doc_00156297 [00:30:43]remove file /storage/0536/doc_00156297 [00:30:43]file doc_00156298 [00:30:43]remove file /storage/0536/doc_00156298 [00:30:43]file doc_00156299 [00:30:43]remove file /storage/0536/doc_00156299 [00:30:43]file doc_00156300 [00:30:43]remove file /storage/0536/doc_00156300 [00:30:43]file doc_00156301 [00:30:43]remove file /storage/0536/doc_00156301 [00:30:43]file doc_00156302 [00:30:43]remove file /storage/0536/doc_00156302 [00:30:43]file doc_00156303 [00:30:43]remove file /storage/0536/doc_00156303 [00:30:43]file doc_00156304 [00:30:43]remove file /storage/0536/doc_00156304 [00:30:43]file doc_00156305 [00:30:43]remove file /storage/0536/doc_00156305 [00:30:43]file doc_00156306 [00:30:43]remove file /storage/0536/doc_00156306 [00:30:43]file doc_00156307 [00:30:43]remove file /storage/0536/doc_00156307 [00:30:43]file doc_00156308 [00:30:43]remove file /storage/0536/doc_00156308 [00:30:43]file doc_00156309 [00:30:43]remove file /storage/0536/doc_00156309 [00:30:43]file doc_00156310 [00:30:43]remove file /storage/0536/doc_00156310 [00:30:43]file doc_00156311 [00:30:43]remove file /storage/0536/doc_00156311 [00:30:43]file doc_00156312 [00:30:43]remove file /storage/0536/doc_00156312 [00:30:43]file doc_00156313 [00:30:43]remove file /storage/0536/doc_00156313 [00:30:43]file doc_00156314 [00:30:43]remove file /storage/0536/doc_00156314 [00:30:43]file doc_00156315 [00:30:43]remove file /storage/0536/doc_00156315 [00:30:43]file doc_00156316 [00:30:43]remove file /storage/0536/doc_00156316 [00:30:43]file doc_00156317 [00:30:43]remove file /storage/0536/doc_00156317 [00:30:43]file doc_00156318 [00:30:43]remove file /storage/0536/doc_00156318 [00:30:43]file doc_00156319 [00:30:43]remove file /storage/0536/doc_00156319 [00:30:43]file doc_00156320 [00:30:43]remove file /storage/0536/doc_00156320 [00:30:43]file doc_00156321 [00:30:43]remove file /storage/0536/doc_00156321 [00:30:43]file doc_00156322 [00:30:43]remove file /storage/0536/doc_00156322 [00:30:43]file doc_00156323 [00:30:43]remove file /storage/0536/doc_00156323 [00:30:43]file doc_00156324 [00:30:43]remove file /storage/0536/doc_00156324 [00:30:43]file doc_00156325 [00:30:43]remove file /storage/0536/doc_00156325 [00:30:43]file doc_00156326 [00:30:43]remove file /storage/0536/doc_00156326 [00:30:43]file doc_00156327 [00:30:43]remove file /storage/0536/doc_00156327 [00:30:43]file doc_00156328 [00:30:43]remove file /storage/0536/doc_00156328 [00:30:43]file doc_00156329 [00:30:43]remove file /storage/0536/doc_00156329 [00:30:43]file doc_00156330 [00:30:43]remove file /storage/0536/doc_00156330 [00:30:43]file doc_00156331 [00:30:43]remove file /storage/0536/doc_00156331 [00:30:43]file doc_00156332 [00:30:43]remove file /storage/0536/doc_00156332 [00:30:43]file doc_00156333 [00:30:43]remove file /storage/0536/doc_00156333 [00:30:43]file doc_00156334 [00:30:43]remove file /storage/0536/doc_00156334 [00:30:43]file doc_00156335 [00:30:43]remove file /storage/0536/doc_00156335 [00:30:43]file doc_00156336 [00:30:43]remove file /storage/0536/doc_00156336 [00:30:43]file doc_00156337 [00:30:43]remove file /storage/0536/doc_00156337 [00:30:43]file doc_00156338 [00:30:43]remove file /storage/0536/doc_00156338 [00:30:43]file doc_00156339 [00:30:44]remove file /storage/0536/doc_00156339 [00:30:44]file doc_00156340 [00:30:44]remove file /storage/0536/doc_00156340 [00:30:44]file doc_00156341 [00:30:44]remove file /storage/0536/doc_00156341 [00:30:44]file doc_00156342 [00:30:44]remove file /storage/0536/doc_00156342 [00:30:44]file doc_00156343 [00:30:44]remove file /storage/0536/doc_00156343 [00:30:44]file doc_00156344 [00:30:44]remove file /storage/0536/doc_00156344 [00:30:44]file doc_00156345 [00:30:44]remove file /storage/0536/doc_00156345 [00:30:44]file doc_00156346 [00:30:44]remove file /storage/0536/doc_00156346 [00:30:44]file doc_00156347 [00:30:44]remove file /storage/0536/doc_00156347 [00:30:44]file doc_00156348 [00:30:44]remove file /storage/0536/doc_00156348 [00:30:44]file doc_00156349 [00:30:44]remove file /storage/0536/doc_00156349 [00:30:44]file doc_00156350 [00:30:44]remove file /storage/0536/doc_00156350 [00:30:44]file doc_00156351 [00:30:44]remove file /storage/0536/doc_00156351 [00:30:44]file doc_00156352 [00:30:44]remove file /storage/0536/doc_00156352 [00:30:44]file doc_00156353 [00:30:44]remove file /storage/0536/doc_00156353 [00:30:44]file doc_00156354 [00:30:44]remove file /storage/0536/doc_00156354 [00:30:44]file doc_00156355 [00:30:44]remove file /storage/0536/doc_00156355 [00:30:44]file doc_00156356 [00:30:44]remove file /storage/0536/doc_00156356 [00:30:44]file doc_00156357 [00:30:44]remove file /storage/0536/doc_00156357 [00:30:44]file doc_00156358 [00:30:44]remove file /storage/0536/doc_00156358 [00:30:44]file doc_00156359 [00:30:44]remove file /storage/0536/doc_00156359 [00:30:44]file doc_00156360 [00:30:44]remove file /storage/0536/doc_00156360 [00:30:44]file doc_00156361 [00:30:44]remove file /storage/0536/doc_00156361 [00:30:44]file doc_00156362 [00:30:44]remove file /storage/0536/doc_00156362 [00:30:44]file doc_00156363 [00:30:44]remove file /storage/0536/doc_00156363 [00:30:44]file doc_00156364 [00:30:44]remove file /storage/0536/doc_00156364 [00:30:44]file doc_00156365 [00:30:44]remove file /storage/0536/doc_00156365 [00:30:44]file doc_00156366 [00:30:44]remove file /storage/0536/doc_00156366 [00:30:44]file doc_00156367 [00:30:44]remove file /storage/0536/doc_00156367 [00:30:44]file doc_00156368 [00:30:44]remove file /storage/0536/doc_00156368 [00:30:44]file doc_00156369 [00:30:44]remove file /storage/0536/doc_00156369 [00:30:44]file doc_00156370 [00:30:44]remove file /storage/0536/doc_00156370 [00:30:44]file doc_00156371 [00:30:44]remove file /storage/0536/doc_00156371 [00:30:44]file doc_00156372 [00:30:44]remove file /storage/0536/doc_00156372 [00:30:44]file doc_00156373 [00:30:44]remove file /storage/0536/doc_00156373 [00:30:44]file doc_00156374 [00:30:44]remove file /storage/0536/doc_00156374 [00:30:44]file doc_00156375 [00:30:44]remove file /storage/0536/doc_00156375 [00:30:44]file doc_00156376 [00:30:44]remove file /storage/0536/doc_00156376 [00:30:44]file doc_00156377 [00:30:44]remove file /storage/0536/doc_00156377 [00:30:44]file doc_00156378 [00:30:44]remove file /storage/0536/doc_00156378 [00:30:44]file doc_00156379 [00:30:44]remove file /storage/0536/doc_00156379 [00:30:44]file doc_00156380 [00:30:44]remove file /storage/0536/doc_00156380 [00:30:44]file doc_00156381 [00:30:44]remove file /storage/0536/doc_00156381 [00:30:44]file doc_00156382 [00:30:44]remove file /storage/0536/doc_00156382 [00:30:44]file doc_00156383 [00:30:44]remove file /storage/0536/doc_00156383 [00:30:44]file doc_00156384 [00:30:44]remove file /storage/0536/doc_00156384 [00:30:44]file doc_00156385 [00:30:44]remove file /storage/0536/doc_00156385 [00:30:44]file doc_00156386 [00:30:44]remove file /storage/0536/doc_00156386 [00:30:44]file doc_00156387 [00:30:44]remove file /storage/0536/doc_00156387 [00:30:44]file doc_00156388 [00:30:44]remove file /storage/0536/doc_00156388 [00:30:44]file doc_00156389 [00:30:44]remove file /storage/0536/doc_00156389 [00:30:44]file doc_00156390 [00:30:44]remove file /storage/0536/doc_00156390 [00:30:44]file doc_00156391 [00:30:44]remove file /storage/0536/doc_00156391 [00:30:44]file doc_00156392 [00:30:44]remove file /storage/0536/doc_00156392 [00:30:44]file doc_00156393 [00:30:44]remove file /storage/0536/doc_00156393 [00:30:44]file doc_00156394 [00:30:44]remove file /storage/0536/doc_00156394 [00:30:44]file doc_00156395 [00:30:44]remove file /storage/0536/doc_00156395 [00:30:44]file doc_00156396 [00:30:44]remove file /storage/0536/doc_00156396 [00:30:44]file doc_00156397 [00:30:44]remove file /storage/0536/doc_00156397 [00:30:44]file doc_00156398 [00:30:44]remove file /storage/0536/doc_00156398 [00:30:44]file doc_00156399 [00:30:44]remove file /storage/0536/doc_00156399 [00:30:44]file doc_00156400 [00:30:44]remove file /storage/0536/doc_00156400 [00:30:44]file doc_00156401 [00:30:44]remove file /storage/0536/doc_00156401 [00:30:44]file doc_00156402 [00:30:44]remove file /storage/0536/doc_00156402 [00:30:44]file doc_00156403 [00:30:44]remove file /storage/0536/doc_00156403 [00:30:44]file doc_00156404 [00:30:44]remove file /storage/0536/doc_00156404 [00:30:44]file doc_00156405 [00:30:44]remove file /storage/0536/doc_00156405 [00:30:44]file doc_00156406 [00:30:44]remove file /storage/0536/doc_00156406 [00:30:44]file doc_00156407 [00:30:44]remove file /storage/0536/doc_00156407 [00:30:44]file doc_00156408 [00:30:44]remove file /storage/0536/doc_00156408 [00:30:44]file doc_00156409 [00:30:44]remove file /storage/0536/doc_00156409 [00:30:44]file doc_00156410 [00:30:44]remove file /storage/0536/doc_00156410 [00:30:44]file doc_00156411 [00:30:44]remove file /storage/0536/doc_00156411 [00:30:44]file doc_00156412 [00:30:44]remove file /storage/0536/doc_00156412 [00:30:44]file doc_00156413 [00:30:44]remove file /storage/0536/doc_00156413 [00:30:44]file doc_00156414 [00:30:44]remove file /storage/0536/doc_00156414 [00:30:44]file doc_00156415 [00:30:44]remove file /storage/0536/doc_00156415 [00:30:44]file doc_00156416 [00:30:44]remove file /storage/0536/doc_00156416 [00:30:44]file doc_00156417 [00:30:44]remove file /storage/0536/doc_00156417 [00:30:44]file doc_00156418 [00:30:44]remove file /storage/0536/doc_00156418 [00:30:44]file doc_00156419 [00:30:44]remove file /storage/0536/doc_00156419 [00:30:44]file doc_00156420 [00:30:44]remove file /storage/0536/doc_00156420 [00:30:44]file doc_00156421 [00:30:44]remove file /storage/0536/doc_00156421 [00:30:44]file doc_00156422 [00:30:44]remove file /storage/0536/doc_00156422 [00:30:44]file doc_00156423 [00:30:44]remove file /storage/0536/doc_00156423 [00:30:44]file doc_00156424 [00:30:44]remove file /storage/0536/doc_00156424 [00:30:44]file doc_00156425 [00:30:44]remove file /storage/0536/doc_00156425 [00:30:44]file doc_00156426 [00:30:44]remove file /storage/0536/doc_00156426 [00:30:44]file doc_00156427 [00:30:44]remove file /storage/0536/doc_00156427 [00:30:44]file doc_00156428 [00:30:44]remove file /storage/0536/doc_00156428 [00:30:44]file doc_00156429 [00:30:44]remove file /storage/0536/doc_00156429 [00:30:44]file doc_00156430 [00:30:44]remove file /storage/0536/doc_00156430 [00:30:44]file doc_00156431 [00:30:44]remove file /storage/0536/doc_00156431 [00:30:44]file doc_00156432 [00:30:44]remove file /storage/0536/doc_00156432 [00:30:44]file doc_00156433 [00:30:44]remove file /storage/0536/doc_00156433 [00:30:44]file doc_00156434 [00:30:44]remove file /storage/0536/doc_00156434 [00:30:44]file doc_00156435 [00:30:44]remove file /storage/0536/doc_00156435 [00:30:44]file doc_00156436 [00:30:44]remove file /storage/0536/doc_00156436 [00:30:44]file doc_00156437 [00:30:44]remove file /storage/0536/doc_00156437 [00:30:44]file doc_00156438 [00:30:44]remove file /storage/0536/doc_00156438 [00:30:44]file doc_00156439 [00:30:44]remove file /storage/0536/doc_00156439 [00:30:44]file doc_00156440 [00:30:44]remove file /storage/0536/doc_00156440 [00:30:44]file doc_00156441 [00:30:44]remove file /storage/0536/doc_00156441 [00:30:44]file doc_00156442 [00:30:44]remove file /storage/0536/doc_00156442 [00:30:44]file doc_00156443 [00:30:44]remove file /storage/0536/doc_00156443 [00:30:44]file doc_00156444 [00:30:44]remove file /storage/0536/doc_00156444 [00:30:44]file doc_00156445 [00:30:44]remove file /storage/0536/doc_00156445 [00:30:44]file doc_00156446 [00:30:44]remove file /storage/0536/doc_00156446 [00:30:44]file doc_00156447 [00:30:44]remove file /storage/0536/doc_00156447 [00:30:44]file doc_00156448 [00:30:44]remove file /storage/0536/doc_00156448 [00:30:44]remove dir /storage/0536 [00:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=259 [00:30:44]tlvbuf is 01697EF0 [00:30:44]SAM_PROTO_ClearQueue [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 09 00 00 [00:30:44]Write to MH i2c: E2 08 00 EF 30 80 09 00 00 00 00 00 00 91 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 EF 30 00 90 00 93 [00:30:44]RAPDU: 90 00 [00:30:44]wFMCommunicate OK [00:30:44]SAM_PROTO_ClearQueue done [00:30:44]KKMCreateOFDPacket [00:30:44]OFDProtocolAddRootSTLVToBuf [00:30:44]FM_MakeSignedData [00:30:44]FM_MakeSignedData [00:30:44]SAM_PROTO_SignData [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 0D 01 02 [00:30:44]Write to MH i2c: E2 08 00 F0 30 80 0D 01 02 00 00 00 00 99 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 F0 30 00 90 00 94 [00:30:44]RAPDU: 90 00 [00:30:44]wFMCommunicate OK [00:30:44]wFMCommunicate request_size=255 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 0D 02 02 FA 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 B4 89 1D 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 [00:30:44]Write to MH i2c: E2 02 01 F1 30 80 0D 02 02 FA 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 B4 89 1D 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 00 00 CB [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 F1 30 00 90 00 95 [00:30:44]RAPDU: 90 00 [00:30:44]wFMCommunicate OK [00:30:44]wFMCommunicate request_size=18 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 0D 02 02 0D 37 39 32 35 04 06 00 F1 62 A8 D9 7B 08 [00:30:44]Write to MH i2c: E2 15 00 F2 30 80 0D 02 02 0D 00 37 39 32 35 04 06 00 F1 62 A8 D9 7B 08 00 00 EE [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 03 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 03 00 F2 30 00 90 00 96 [00:30:45]RAPDU: 90 00 [00:30:45]wFMCommunicate OK [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 0D 03 02 [00:30:45]Write to MH i2c: E2 08 00 F3 30 80 0D 03 02 00 00 00 00 9E [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 0B 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 0B 00 F3 30 00 50 16 60 14 2A F1 10 82 90 00 26 [00:30:45]RAPDU: 50 16 60 14 2A F1 10 82 90 00 [00:30:45]wFMCommunicate OK [00:30:45]SAM_PROTO_SignData done [00:30:45]FM_MakeSignedData done [00:30:45]CreateOFDProtocolMessage [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 11 00 00 [00:30:45]Write to MH i2c: E2 08 00 F4 30 80 11 00 00 00 00 00 00 9E [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 17 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 17 00 F4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [00:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:30:45]wFMCommunicate OK [00:30:45]CreateOFDProtocolMessage done [00:30:45]OFDSenderStorePacket 156449 [00:30:45]StoreOFDPacket docnum=156449 [00:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 17 01 00 00 D4 B6 0F 01 05 DE 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 B4 89 1D 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 F1 62 A8 D9 7B 08 50 16 60 14 2A F1 10 82 [00:30:45]CheckFolder [00:30:45]dirname=/storage/ofd_packets [00:30:45]CheckFolder done [00:30:45]ProducePacketName [00:30:45]name=ofd_packets/00156449 [00:30:45]NVStorageSaveData ofd_packets/00156449 [00:30:45]File name is /storage/ofd_packets/00156449 [00:30:45]Write 309 bytes [00:30:45]NVStorageSaveData done [00:30:45]OFDSenderStorePacket done [00:30:45]KKMCreateOFDPacket done [00:30:45]NVStorageSaveData kkm_last_timestamp [00:30:45]File name is /storage/kkm_last_timestamp [00:30:45]Write 4 bytes [00:30:45]NVStorageSaveData done [00:30:45]ExternCall_PrintAddStr [00:30:45]wPrintStart [00:30:45]Write to MH i2c: 01 00 00 F5 30 25 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 07 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 07 00 F5 30 00 00 00 00 00 FF 0F 3A [00:30:45]RasterBufferAndPrint [00:30:45]line Отчет об открытии смены [00:30:45]line ФФД: 1.0 [00:30:45]line ИНН: 02508201610067 [00:30:45]line Кассир: Куранбаева Н. [00:30:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:30:45]line Место: АЗС № 143 "Партнер Нефть" [00:30:45]line 27.10.2024 00:30 [00:30:45]line Смена: 537 [00:30:45]line РНМ: 0000000000091693 [00:30:45]line ЗНМ: 0300000096 [00:30:45]line ФД: 156449 [00:30:45]line ФМ: 0000000000871792 [00:30:45]line ФПД: 265406041914120 [00:30:45]written 0, free lines is 4095 [00:30:45]OFD Sender: Processing packet 156449 [packets to send 31, broken 30] [00:30:45]ProducePacketName [00:30:45]name=ofd_packets/00156449 [00:30:45]OFD Sender: To server: pG, [00:30:45]CommunicateWithHost lk.salyk.kg:30040 [00:30:45]ConnectInit lk.salyk.kg [00:30:45]Connected sock=10 [00: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 31 37 39 32 17 01 00 00 D4 B6 0F 01 05 DE 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 B4 89 1D 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 F1 62 A8 D9 7B 08 50 16 60 14 2A F1 10 82 [00:30:45]Write to MH i2c: 01 00 00 07 31 38 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 07 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 07 00 07 31 00 00 00 00 00 76 0E C3 [00:30:45]RasterBufferAndPrint [00:30:45]line [00:30:45]line [00:30:45]line [00:30:45]line [00:30:45]line [00:30:45]written 0, free lines is 3716 [00:30:45]process_action open_shift done [00:30:45]requested_data is exist [00:30:45]produce_requested_data [00:30:45]requested_item fd.num is exist - process it [00:30:45]SAM_PROTO_GetFieldsCounters [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 13 00 00 [00:30:45]Write to MH i2c: E2 08 00 0E 31 80 13 00 00 00 00 00 00 BB [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 62 00 [00:30:45]MH_I2C_Read... [00:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BE DA 47 00 02 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 31 37 39 32 10 04 04 00 21 63 02 00 F4 03 04 00 27 2F 1D 67 B6 04 01 00 00 35 F7 49 14 6F D3 2C C9 [00:30:45]CommunicateWithHost err = 0 [00:30:45]CheckOFDResponse [00:30:45]1017 (14) - 77093643461234 [00:30:45]1041 (16) - 0000000000871792 [00:30:45]1040 (4) - 156449 [00:30:45]1012 (4) - 26.10.2024 18:04 [00:30:45]1206 (1) - 0 [00:30:45]OFD Sender: Remove packet 156449 [00:30:45]ProducePacketName [00:30:45]name=ofd_packets/00156449 [00:30:45]NVStorageDeleteData [00:30:45]Read from MH i2c: E2 62 00 0E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 63 02 00 0E 04 04 00 19 02 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 82 [00:30: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 63 02 00 0E 04 04 00 19 02 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:30:45]wFMCommunicate OK [00:30:45]SAM_PROTO_GetFieldsCounters done [00:30:45]requested_item shift.num is exist - process it [00:30:45]requested_item shift.opened is exist - process it [00:30:45]req_shift_opened [00:30:45]FM_GetShiftState [00:30:45]SAM_PROTO_GetShiftState [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 13 01 00 [00:30:45]Write to MH i2c: E2 08 00 0F 31 80 13 01 00 00 00 00 00 BD [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 0E 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 0E 00 0F 31 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 8A [00:30:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [00:30:45]wFMCommunicate OK [00:30:45]SAM_PROTO_GetShiftState done [00:30:45]FM_GetShiftState done [00:30:45]req_shift_opened done [00:30:45]requested_item shift.open_date is exist - process it [00:30:45]req_shift_open_date [00:30:45]req_shift_open_date done [00:30:45]produce_requested_data done [00:30:45]produce_requested_data return {"fd.num":156449,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [00:30:45]process_action_free open_shift [00:30:45]json_value_free [00:30:45]json_value_free done [00:30:45]process_json_proto returns [00:30:45]Send response to host [00:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":156449,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [00:30:45]free response buf [00:30:45]execute_script done [00:30:45]execute_script returns [00:30:45]free content buf [00:30:45]Sock 9.Close socket [00:30:45]Sock 9.Thread stoped [00:30:45]accept exits with 8 [00:30:45]New connection [00:30:45]New thread 3066977636 created [00:30:45]Thread 3066834276 joined [00:30:45]Waiting for new connection... [00:30:45] Sock 8.Parse request [00:30:45]Sock 8.Check first char [00:30:45]Sock 8.First char is OK [00:30:45]request: POST /json_proto HTTP/1.0 [00:30:45]Method: POST [00:30:45]URL: /json_proto [00:30:45]Method is POST - this is cgi request [00:30:45]url: /json_proto [00:30:45]query_string will be loaded in cgi processing [00:30:45]execute_cgi json_proto POST (null) [00:30:45]execute_cgi path=json_proto method=POST [00:30:45]POST find Content-Length [00:30:45]Host: 172.17.63.3:8080 [00:30:45]Content-Length: 331 [00:30:45]Content-Type: application/json [00:30:45] [00:30:45]POST finish read [00:30:45]Found Content-Length = 331 [00:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:45]execute_script... [00:30:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:45]POST & json_proto [00:30:45]process_json_proto [00:30:45]json parsed OK: [00:30:45]protocol is kg_v1.0 [00:30:45]action value=get_value [00:30:45]process_action get_value [00:30:45]cmd_get_value [00:30:45]process_action get_value done [00:30:45]requested_data is exist [00:30:45]produce_requested_data [00:30:45]requested_item fm.sale.total is exist - process it [00:30:45]SAM_PROTO_GetFMData [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 13 03 00 [00:30:45]Write to MH i2c: E2 08 00 10 31 80 13 03 00 00 00 00 00 C0 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:46]OFD Sender: No OFD packet to send [00:30:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:46]Read from MH i2c: E2 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 FD 00 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 FD 00 10 31 00 C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 F4 [00:30:46]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 EF 5E 02 00 69 04 A3 00 6F 04 04 00 E0 5E 02 00 B1 04 05 00 A5 90 83 71 02 70 04 05 00 3C 53 57 30 02 72 04 04 00 69 3D 2C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 85 74 42 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 99 89 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:30:46]wFMCommunicate OK [00:30:46]wFMCommunicate request_size=4 [00:30:46]MH_SAM_APDU [00:30:46]CAPDU: 80 17 00 00 [00:30:46]Write to MH i2c: E2 08 00 11 31 80 17 00 00 00 00 00 00 C2 [00:30:46]Write i2c OK [00:30:46]MH_I2C_Read... [00:30:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:46]Read from MH i2c: E2 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 FD 00 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 FD 00 11 31 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 31 [00:30:46]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:46]wFMCommunicate OK [00:30:46]wFMCommunicate request_size=4 [00:30:46]MH_SAM_APDU [00:30:46]CAPDU: 80 17 00 00 [00:30:46]Write to MH i2c: E2 08 00 12 31 80 17 00 00 00 00 00 00 C3 [00:30:46]Write i2c OK [00:30:46]MH_I2C_Read... [00:30:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:47]Read from MH i2c: E2 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 12 31 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [00:30:47]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:47]wFMCommunicate OK [00:30:47]wFMCommunicate request_size=4 [00:30:47]MH_SAM_APDU [00:30:47]CAPDU: 80 17 00 00 [00:30:47]Write to MH i2c: E2 08 00 13 31 80 17 00 00 00 00 00 00 C4 [00:30:47]Write i2c OK [00:30:47]MH_I2C_Read... [00:30:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:47]Read from MH i2c: E2 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 13 31 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [00:30:47]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:47]wFMCommunicate OK [00:30:47]wFMCommunicate request_size=4 [00:30:47]MH_SAM_APDU [00:30:47]CAPDU: 80 17 00 00 [00:30:47]Write to MH i2c: E2 08 00 14 31 80 17 00 00 00 00 00 00 C5 [00:30:47]Write i2c OK [00:30:47]MH_I2C_Read... [00:30:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:30:47]Read from MH i2c: E2 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 DF 00 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 DF 00 14 31 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A5 [00:30:48]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:48]wFMCommunicate OK [00:30:48]SAM_PROTO_GetFMData done [00:30:48]requested_item fm.sale_refund.total is exist - process it [00:30:48]requested_item fm.buy.total is exist - process it [00:30:48]requested_item shift.sale.total is exist - process it [00:30:48]SAM_PROTO_GetShiftData [00:30:48]wFMCommunicate request_size=4 [00:30:48]MH_SAM_APDU [00:30:48]CAPDU: 80 13 02 00 [00:30:48]Write to MH i2c: E2 08 00 15 31 80 13 02 00 00 00 00 00 C4 [00:30:48]Write i2c OK [00:30:48]MH_I2C_Read... [00:30:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:48]Read from MH i2c: E2 [00:30:48]MH_I2C_Read... [00:30:48]Read from MH i2c: E2 FD 00 [00:30:48]MH_I2C_Read... [00:30:48]Read from MH i2c: E2 FD 00 15 31 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 37 [00:30:48]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:30:48]wFMCommunicate OK [00:30:48]wFMCommunicate request_size=4 [00:30:48]MH_SAM_APDU [00:30:48]CAPDU: 80 17 00 00 [00:30:48]Write to MH i2c: E2 08 00 16 31 80 17 00 00 00 00 00 00 C7 [00:30:48]Write i2c OK [00:30:48]MH_I2C_Read... [00:30:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:49]Read from MH i2c: E2 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 FD 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 FD 00 16 31 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 CF [00:30:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:30:49]wFMCommunicate OK [00:30:49]wFMCommunicate request_size=4 [00:30:49]MH_SAM_APDU [00:30:49]CAPDU: 80 17 00 00 [00:30:49]Write to MH i2c: E2 08 00 17 31 80 17 00 00 00 00 00 00 C8 [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:49]Read from MH i2c: E2 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 FD 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 FD 00 17 31 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 9A [00:30:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:30:49]wFMCommunicate OK [00:30:49]wFMCommunicate request_size=4 [00:30:49]MH_SAM_APDU [00:30:49]CAPDU: 80 17 00 00 [00:30:49]Write to MH i2c: E2 08 00 18 31 80 17 00 00 00 00 00 00 C9 [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:49]Read from MH i2c: E2 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 FD 00 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 FD 00 18 31 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 3B [00:30:50]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:30:50]wFMCommunicate OK [00:30:50]wFMCommunicate request_size=4 [00:30:50]MH_SAM_APDU [00:30:50]CAPDU: 80 17 00 00 [00:30:50]Write to MH i2c: E2 08 00 19 31 80 17 00 00 00 00 00 00 CA [00:30:50]Write i2c OK [00:30:50]MH_I2C_Read... [00:30:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:30:50]Read from MH i2c: E2 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 BD 00 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 BD 00 19 31 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 B0 [00:30:50]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:30:50]wFMCommunicate OK [00:30:50]SAM_PROTO_GetShiftData done [00:30:50]requested_item shift.sale.total_cash is exist - process it [00:30:50]requested_item shift.sale_refund.total is exist - process it [00:30:50]requested_item shift.sale_refund.total_cash is exist - process it [00:30:50]requested_item shift.buy.total is exist - process it [00:30:50]requested_item shift.buy.total_cash is exist - process it [00:30:50]produce_requested_data done [00:30:50]produce_requested_data return {"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.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:30:50]process_action_free get_value [00:30:50]json_value_free [00:30:50]json_value_free done [00:30:50]process_json_proto returns [00:30:50]Send response to host [00:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104943822.45,"fm.sale_refund.total":119944.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:30:50]free response buf [00:30:50]execute_script done [00:30:50]execute_script returns [00:30:50]free content buf [00:30:50]Sock 8.Close socket [00:30:50]Sock 8.Thread stoped [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:09]accept exits with 9 [01:02:09]New connection [01:02:09]New thread 3066834276 created [01:02:09]Thread 3066977636 joined [01:02:09]Waiting for new connection... [01:02:09] Sock 9.Parse request [01:02:09]Sock 9.Check first char [01:02:09]Sock 9.First char is OK [01:02:09]request: POST /json_proto HTTP/1.0 [01:02:09]Method: POST [01:02:09]URL: /json_proto [01:02:09]Method is POST - this is cgi request [01:02:09]url: /json_proto [01:02:09]query_string will be loaded in cgi processing [01:02:09]execute_cgi json_proto POST (null) [01:02:09]execute_cgi path=json_proto method=POST [01:02:09]POST find Content-Length [01:02:09]Host: 172.17.63.3:8080 [01:02:09]Content-Length: 762 [01:02:09]Content-Type: application/json [01:02:09] [01:02:09]POST finish read [01:02:09]Found Content-Length = 762 [01:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.220, "sum" : 550.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 550.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:09]execute_script... [01:02:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.220, "sum" : 550.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 550.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:09]POST & json_proto [01:02:09]process_json_proto [01:02:09]json parsed OK: [01:02:09]protocol is kg_v1.0 [01:02:09]action value=close_receipt [01:02:09]process_action close_receipt [01:02:09]cmd_close_receipt [01:02:09]MH_GetDate [01:02:09]Write to MH i2c: F0 00 00 1A 31 3A [01:02:09]Write i2c OK [01:02:09]MH_I2C_Read... [01:02:09]Read from MH i2c: F0 [01:02:09]MH_I2C_Read... [01:02:09]Read from MH i2c: F0 09 00 [01:02:09]MH_I2C_Read... [01:02:09]Read from MH i2c: F0 09 00 1A 31 00 14 91 1D 67 50 D1 6C 64 5D [01:02:09]GetLastDocTimeStamp 1729989044 [01:02:09]current date 1729990932 [01:02:09]FM_GetShiftState [01:02:09]SAM_PROTO_GetShiftState [01:02:09]wFMCommunicate request_size=4 [01:02:09]MH_SAM_APDU [01:02:09]CAPDU: 80 13 01 00 [01:02:09]Write to MH i2c: E2 08 00 1B 31 80 13 01 00 00 00 00 00 C9 [01:02:09]Write i2c OK [01:02:09]MH_I2C_Read... [01:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:09]Read from MH i2c: E2 [01:02:09]MH_I2C_Read... [01:02:09]Read from MH i2c: E2 0E 00 [01:02:09]MH_I2C_Read... [01:02:09]Read from MH i2c: E2 0E 00 1B 31 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 96 [01:02:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [01:02:09]wFMCommunicate OK [01:02:09]SAM_PROTO_GetShiftState done [01:02:09]FM_GetShiftState done [01:02:09]opened in 1729989044 [01:02:09]opened+sec_in_day 1730075444 [01:02:09]quantity*price = 55016 [01:02:09]sum+1 = 55017 [01:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.16 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 0.00 Безнал.: 550.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 1 27.10.2024 01:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156450 ФПД: 170956881724714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010212&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156450&fm=170956881724714&tin=02508201610067®Number=0000000000091693&sum=55016 [01:02:10]StoreToDocumentArchive [01:02:10]shift 537 fd 156450 [01:02:10]save to /storage/0537/doc_00156450 [01:02:10]save last doc name /storage/0537/doc_00156450 to /storage/kkm_last_doc_name [01:02:10]save OK [01:02:10]Clear old archive folders... [01:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:02:10]tlvbuf is 016B3880 [01:02:10]SAM_PROTO_ClearQueue [01:02:10]wFMCommunicate request_size=4 [01:02:10]MH_SAM_APDU [01:02:10]CAPDU: 80 09 00 00 [01:02:10]Write to MH i2c: E2 08 00 28 31 80 09 00 00 00 00 00 00 CB [01:02:10]Write i2c OK [01:02:10]MH_I2C_Read... [01:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:10]Read from MH i2c: E2 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 03 00 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 03 00 28 31 00 90 00 CD [01:02:10]RAPDU: 90 00 [01:02:10]wFMCommunicate OK [01:02:10]SAM_PROTO_ClearQueue done [01:02:10]KKMCreateOFDPacket [01:02:10]OFDProtocolAddRootSTLVToBuf [01:02:10]FM_MakeSignedData [01:02:10]FM_MakeSignedData [01:02:10]SAM_PROTO_SignData [01:02:10]wFMCommunicate request_size=4 [01:02:10]MH_SAM_APDU [01:02:10]CAPDU: 80 0D 01 02 [01:02:10]Write to MH i2c: E2 08 00 29 31 80 0D 01 02 00 00 00 00 D3 [01:02:10]Write i2c OK [01:02:10]MH_I2C_Read... [01:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:10]Read from MH i2c: E2 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 03 00 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 03 00 29 31 00 90 00 CE [01:02:10]RAPDU: 90 00 [01:02:10]wFMCommunicate OK [01:02:10]wFMCommunicate request_size=255 [01:02:10]MH_SAM_APDU [01:02:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 14 91 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 63 02 00 35 04 06 00 9B 7C 00 35 [01:02:10]Write to MH i2c: E2 02 01 2A 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 14 91 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 63 02 00 35 04 06 00 9B 7C 00 35 00 00 88 [01:02:10]Write i2c OK [01:02:10]MH_I2C_Read... [01:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:10]Read from MH i2c: E2 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 03 00 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 03 00 2A 31 00 90 00 CF [01:02:10]RAPDU: 90 00 [01:02:10]wFMCommunicate OK [01:02:10]wFMCommunicate request_size=7 [01:02:10]MH_SAM_APDU [01:02:10]CAPDU: 80 0D 02 02 02 05 2A [01:02:10]Write to MH i2c: E2 0A 00 2B 31 80 0D 02 02 02 00 05 2A 00 00 09 [01:02:10]Write i2c OK [01:02:10]MH_I2C_Read... [01:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:10]Read from MH i2c: E2 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 03 00 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 03 00 2B 31 00 90 00 D0 [01:02:10]RAPDU: 90 00 [01:02:10]wFMCommunicate OK [01:02:10]wFMCommunicate request_size=4 [01:02:10]MH_SAM_APDU [01:02:10]CAPDU: 80 0D 03 02 [01:02:10]Write to MH i2c: E2 08 00 2C 31 80 0D 03 02 00 00 00 00 D8 [01:02:10]Write i2c OK [01:02:10]MH_I2C_Read... [01:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:10]Read from MH i2c: E2 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 0B 00 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 0B 00 2C 31 00 BF 3D F1 55 5B CC FD 14 90 00 53 [01:02:10]RAPDU: BF 3D F1 55 5B CC FD 14 90 00 [01:02:10]wFMCommunicate OK [01:02:10]SAM_PROTO_SignData done [01:02:10]FM_MakeSignedData done [01:02:10]CreateOFDProtocolMessage [01:02:10]wFMCommunicate request_size=4 [01:02:10]MH_SAM_APDU [01:02:10]CAPDU: 80 11 00 00 [01:02:10]Write to MH i2c: E2 08 00 2D 31 80 11 00 00 00 00 00 00 D8 [01:02:10]Write i2c OK [01:02:10]MH_I2C_Read... [01:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:10]Read from MH i2c: E2 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 17 00 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: E2 17 00 2D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2D [01:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:02:10]wFMCommunicate OK [01:02:10]CreateOFDProtocolMessage done [01:02:10]OFDSenderStorePacket 156450 [01:02:10]StoreOFDPacket docnum=156450 [01:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 75 6F 04 01 F2 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 14 91 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 63 02 00 35 04 06 00 9B 7C 00 35 05 2A BF 3D F1 55 5B CC FD 14 [01:02:10]CheckFolder [01:02:10]dirname=/storage/ofd_packets [01:02:10]CheckFolder done [01:02:10]ProducePacketName [01:02:10]name=ofd_packets/00156450 [01:02:10]NVStorageSaveData ofd_packets/00156450 [01:02:10]File name is /storage/ofd_packets/00156450 [01:02:10]Write 298 bytes [01:02:10]NVStorageSaveData done [01:02:10]OFDSenderStorePacket done [01:02:10]KKMCreateOFDPacket done [01:02:10]NVStorageSaveData kkm_last_timestamp [01:02:10]File name is /storage/kkm_last_timestamp [01:02:10]Write 4 bytes [01:02:10]NVStorageSaveData done [01:02:10]ExternCall_PrintAddStr [01:02:10]wPrintStart [01:02:10]Write to MH i2c: 01 00 00 2E 31 5F [01:02:10]Write i2c OK [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: 01 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: 01 07 00 [01:02:10]MH_I2C_Read... [01:02:10]Read from MH i2c: 01 07 00 2E 31 00 00 00 00 00 FF 0F 74 [01:02:10]RasterBufferAndPrint [01:02:10]line Счет N : (1)99263 [01:02:10]line ИНН: 02508201610067 [01:02:10]line Контрольно-Кассовый Чек [01:02:10]line ПРОДАЖА [01:02:10]line ТРК (МРК, ГНК) : 32 [01:02:10]line Товар: 2710194210 [01:02:10]line ДТ-К-5 [01:02:10]line 7.220 * 76.20 [01:02:10]line = 550.16 [01:02:10]line НДС 12% НСП 1% [01:02:10]line > о реализуемом товаре [01:02:10]line ИТОГО: 550.16 [01:02:10]line НСП 1% : 4.87 [01:02:10]line НДС 12% : 58.42 [01:02:10]line Наличными: 0.00 [01:02:10]line Безнал.: 550.16 [01:02:10]line Место: АЗС № 143 "Партнер Нефть" [01:02:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [01:02:10]line СНО: Общий режим [01:02:10]line Чек 1 27.10.2024 01:02 [01:02:10]line Смена: 537 ФФД: 1.0 [01:02:10]line ЗНМ: 0300000096 [01:02:10]line РНМ: 0000000000091693 [01:02:10]line Версия ККМ: 001 [01:02:10]line Платежная система: Mbank [01:02:10]line ФМ: 0000000000871792 [01:02:10]line ФД: 156450 [01:02:10]line ФПД: 170956881724714 [01:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010212&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156450&fm=170956881724714&tin=02508201610067®Number=0000000000091693&sum=55016 [01:02:11]OFD Sender: Processing packet 156450 [packets to send 31, broken 30] [01:02:11]ProducePacketName [01:02:11]name=ofd_packets/00156450 [01:02:11]OFD Sender: To server: pG, [01:02:11]CommunicateWithHost lk.salyk.kg:30040 [01:02:11]ConnectInit lk.salyk.kg [01:02:11]written 0, free lines is 4095 [01:02:11]Connected sock=10 [01:02:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 75 6F 04 01 F2 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 14 91 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 63 02 00 35 04 06 00 9B 7C 00 35 05 2A BF 3D F1 55 5B CC FD 14 [01:02:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 59 04 47 00 D3 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 31 37 39 32 10 04 04 00 22 63 02 00 F4 03 04 00 85 36 1D 67 B6 04 01 00 00 C7 31 34 35 A9 EC 03 F2 [01:02:11]CommunicateWithHost err = 0 [01:02:11]CheckOFDResponse [01:02:11]1017 (14) - 77093643461234 [01:02:11]1041 (16) - 0000000000871792 [01:02:11]1040 (4) - 156450 [01:02:11]1012 (4) - 26.10.2024 18:35 [01:02:11]1206 (1) - 0 [01:02:11]OFD Sender: Remove packet 156450 [01:02:11]ProducePacketName [01:02:11]name=ofd_packets/00156450 [01:02:11]NVStorageDeleteData [01:02:11]Write to MH i2c: 01 00 00 57 31 88 [01:02:11]Write i2c OK [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: 01 [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: 01 07 00 [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: 01 07 00 57 31 00 00 00 00 00 F5 0C 90 [01:02:11]RasterBufferAndPrint [01:02:11]line [01:02:11]line [01:02:11]line [01:02:11]line [01:02:11]line [01:02:11]written 0, free lines is 3327 [01:02:11]process_action close_receipt done [01:02:11]requested_data is exist [01:02:11]produce_requested_data [01:02:11]requested_item fm.sn is exist - process it [01:02:11]wFMCommunicate request_size=4 [01:02:11]MH_SAM_APDU [01:02:11]CAPDU: 80 11 00 00 [01:02:11]Write to MH i2c: E2 08 00 5E 31 80 11 00 00 00 00 00 00 09 [01:02:11]Write i2c OK [01:02:11]MH_I2C_Read... [01:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:11]Read from MH i2c: E2 [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: E2 17 00 [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: E2 17 00 5E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [01:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:02:11]wFMCommunicate OK [01:02:11]requested_item fd.num is exist - process it [01:02:11]SAM_PROTO_GetFieldsCounters [01:02:11]wFMCommunicate request_size=4 [01:02:11]MH_SAM_APDU [01:02:11]CAPDU: 80 13 00 00 [01:02:11]Write to MH i2c: E2 08 00 5F 31 80 13 00 00 00 00 00 00 0C [01:02:11]Write i2c OK [01:02:11]MH_I2C_Read... [01:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:11]Read from MH i2c: E2 [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: E2 62 00 [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: E2 62 00 5F 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 22 63 02 00 0E 04 04 00 19 02 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 D7 [01:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 22 63 02 00 0E 04 04 00 19 02 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 [01:02:11]wFMCommunicate OK [01:02:11]SAM_PROTO_GetFieldsCounters done [01:02:11]requested_item shift.num is exist - process it [01:02:11]requested_item shift.opened is exist - process it [01:02:11]req_shift_opened [01:02:11]FM_GetShiftState [01:02:11]SAM_PROTO_GetShiftState [01:02:11]wFMCommunicate request_size=4 [01:02:11]MH_SAM_APDU [01:02:11]CAPDU: 80 13 01 00 [01:02:11]Write to MH i2c: E2 08 00 60 31 80 13 01 00 00 00 00 00 0E [01:02:11]Write i2c OK [01:02:11]MH_I2C_Read... [01:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:11]Read from MH i2c: E2 [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: E2 0E 00 [01:02:11]MH_I2C_Read... [01:02:11]Read from MH i2c: E2 0E 00 60 31 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DB [01:02:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [01:02:11]wFMCommunicate OK [01:02:11]SAM_PROTO_GetShiftState done [01:02:11]FM_GetShiftState done [01:02:11]req_shift_opened done [01:02:11]requested_item shift.open_date is exist - process it [01:02:11]req_shift_open_date [01:02:11]req_shift_open_date done [01:02:11]produce_requested_data done [01:02:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156450,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [01:02:11]process_action_free close_receipt [01:02:11]json_value_free [01:02:11]json_value_free done [01:02:11]process_json_proto returns [01:02:11]Send response to host [01:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156450,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [01:02:11]free response buf [01:02:11]execute_script done [01:02:11]execute_script returns [01:02:11]free content buf [01:02:11]Sock 9.Close socket [01:02:11]Sock 9.Thread stoped [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:21]accept exits with 8 [01:04:21]New connection [01:04:21]New thread 3066977636 created [01:04:21]Thread 3066834276 joined [01:04:21]Waiting for new connection... [01:04:21] Sock 8.Parse request [01:04:21]Sock 8.Check first char [01:04:21]Sock 8.First char is OK [01:04:21]request: POST /json_proto HTTP/1.0 [01:04:21]Method: POST [01:04:21]URL: /json_proto [01:04:21]Method is POST - this is cgi request [01:04:21]url: /json_proto [01:04:21]query_string will be loaded in cgi processing [01:04:21]execute_cgi json_proto POST (null) [01:04:21]execute_cgi path=json_proto method=POST [01:04:21]POST find Content-Length [01:04:21]Host: 172.17.63.3:8080 [01:04:21]Content-Length: 765 [01:04:21]Content-Type: application/json [01:04:21] [01:04:21]POST finish read [01:04:21]Found Content-Length = 765 [01:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:04:21]execute_script... [01:04: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)99264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:04:21]POST & json_proto [01:04:21]process_json_proto [01:04:21]json parsed OK: [01:04:21]protocol is kg_v1.0 [01:04:21]action value=close_receipt [01:04:21]process_action close_receipt [01:04:21]cmd_close_receipt [01:04:21]MH_GetDate [01:04:21]Write to MH i2c: F0 00 00 61 31 81 [01:04:21]Write i2c OK [01:04:21]MH_I2C_Read... [01:04:21]Read from MH i2c: F0 [01:04:21]MH_I2C_Read... [01:04:21]Read from MH i2c: F0 09 00 [01:04:21]MH_I2C_Read... [01:04:21]Read from MH i2c: F0 09 00 61 31 00 98 91 1D 67 50 D1 6C 64 28 [01:04:21]GetLastDocTimeStamp 1729990932 [01:04:21]current date 1729991064 [01:04:21]FM_GetShiftState [01:04:21]SAM_PROTO_GetShiftState [01:04:21]wFMCommunicate request_size=4 [01:04:21]MH_SAM_APDU [01:04:21]CAPDU: 80 13 01 00 [01:04:21]Write to MH i2c: E2 08 00 62 31 80 13 01 00 00 00 00 00 10 [01:04:21]Write i2c OK [01:04:21]MH_I2C_Read... [01:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:22]Read from MH i2c: E2 [01:04:22]MH_I2C_Read... [01:04:22]Read from MH i2c: E2 0E 00 [01:04:22]MH_I2C_Read... [01:04:22]Read from MH i2c: E2 0E 00 62 31 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DD [01:04:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [01:04:22]wFMCommunicate OK [01:04:22]SAM_PROTO_GetShiftState done [01:04:22]FM_GetShiftState done [01:04:22]opened in 1729989044 [01:04:22]opened+sec_in_day 1730075444 [01:04:22]quantity*price = 60009 [01:04:22]sum+1 = 60010 [01:04:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 2 27.10.2024 01:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156451 ФПД: 224143010288822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010425&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156451&fm=224143010288822&tin=02508201610067®Number=0000000000091693&sum=60009 [01:04:23]StoreToDocumentArchive [01:04:23]shift 537 fd 156451 [01:04:23]save to /storage/0537/doc_00156451 [01:04:23]save last doc name /storage/0537/doc_00156451 to /storage/kkm_last_doc_name [01:04:23]save OK [01:04:23]Clear old archive folders... [01:04:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:04:23]tlvbuf is 017122D0 [01:04:23]SAM_PROTO_ClearQueue [01:04:23]wFMCommunicate request_size=4 [01:04:23]MH_SAM_APDU [01:04:23]CAPDU: 80 09 00 00 [01:04:23]Write to MH i2c: E2 08 00 6F 31 80 09 00 00 00 00 00 00 12 [01:04:23]Write i2c OK [01:04:23]MH_I2C_Read... [01:04:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:04:23]Read from MH i2c: E2 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 03 00 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 03 00 6F 31 00 90 00 14 [01:04:23]RAPDU: 90 00 [01:04:23]wFMCommunicate OK [01:04:23]SAM_PROTO_ClearQueue done [01:04:23]KKMCreateOFDPacket [01:04:23]OFDProtocolAddRootSTLVToBuf [01:04:23]FM_MakeSignedData [01:04:23]FM_MakeSignedData [01:04:23]SAM_PROTO_SignData [01:04:23]wFMCommunicate request_size=4 [01:04:23]MH_SAM_APDU [01:04:23]CAPDU: 80 0D 01 02 [01:04:23]Write to MH i2c: E2 08 00 70 31 80 0D 01 02 00 00 00 00 1A [01:04:23]Write i2c OK [01:04:23]MH_I2C_Read... [01:04:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:04:23]Read from MH i2c: E2 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 03 00 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 03 00 70 31 00 90 00 15 [01:04:23]RAPDU: 90 00 [01:04:23]wFMCommunicate OK [01:04:23]wFMCommunicate request_size=255 [01:04:23]MH_SAM_APDU [01:04:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 99 91 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 63 02 00 35 04 06 00 CB [01:04:23]Write to MH i2c: E2 02 01 71 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 99 91 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 63 02 00 35 04 06 00 CB 00 00 BB [01:04:23]Write i2c OK [01:04:23]MH_I2C_Read... [01:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:23]Read from MH i2c: E2 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 03 00 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 03 00 71 31 00 90 00 16 [01:04:23]RAPDU: 90 00 [01:04:23]wFMCommunicate OK [01:04:23]wFMCommunicate request_size=10 [01:04:23]MH_SAM_APDU [01:04:23]CAPDU: 80 0D 02 02 05 DB 5C 81 D4 B6 [01:04:23]Write to MH i2c: E2 0D 00 72 31 80 0D 02 02 05 00 DB 5C 81 D4 B6 00 00 69 [01:04:23]Write i2c OK [01:04:23]MH_I2C_Read... [01:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:23]Read from MH i2c: E2 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 03 00 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 03 00 72 31 00 90 00 17 [01:04:23]RAPDU: 90 00 [01:04:23]wFMCommunicate OK [01:04:23]wFMCommunicate request_size=4 [01:04:23]MH_SAM_APDU [01:04:23]CAPDU: 80 0D 03 02 [01:04:23]Write to MH i2c: E2 08 00 73 31 80 0D 03 02 00 00 00 00 1F [01:04:23]Write i2c OK [01:04:23]MH_I2C_Read... [01:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:04:23]Read from MH i2c: E2 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 0B 00 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 0B 00 73 31 00 2C CE 54 9A C0 89 CA 08 90 00 23 [01:04:23]RAPDU: 2C CE 54 9A C0 89 CA 08 90 00 [01:04:23]wFMCommunicate OK [01:04:23]SAM_PROTO_SignData done [01:04:23]FM_MakeSignedData done [01:04:23]CreateOFDProtocolMessage [01:04:23]wFMCommunicate request_size=4 [01:04:23]MH_SAM_APDU [01:04:23]CAPDU: 80 11 00 00 [01:04:23]Write to MH i2c: E2 08 00 74 31 80 11 00 00 00 00 00 00 1F [01:04:23]Write i2c OK [01:04:23]MH_I2C_Read... [01:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:23]Read from MH i2c: E2 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 17 00 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: E2 17 00 74 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 74 [01:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:04:23]wFMCommunicate OK [01:04:23]CreateOFDProtocolMessage done [01:04:23]OFDSenderStorePacket 156451 [01:04:23]StoreOFDPacket docnum=156451 [01:04:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E EB 07 01 26 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 99 91 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 63 02 00 35 04 06 00 CB DB 5C 81 D4 B6 2C CE 54 9A C0 89 CA 08 [01:04:23]CheckFolder [01:04:23]dirname=/storage/ofd_packets [01:04:23]CheckFolder done [01:04:23]ProducePacketName [01:04:23]name=ofd_packets/00156451 [01:04:23]NVStorageSaveData ofd_packets/00156451 [01:04:23]File name is /storage/ofd_packets/00156451 [01:04:23]Write 301 bytes [01:04:23]NVStorageSaveData done [01:04:23]OFDSenderStorePacket done [01:04:23]KKMCreateOFDPacket done [01:04:23]NVStorageSaveData kkm_last_timestamp [01:04:23]File name is /storage/kkm_last_timestamp [01:04:23]Write 4 bytes [01:04:23]NVStorageSaveData done [01:04:23]ExternCall_PrintAddStr [01:04:23]wPrintStart [01:04:23]Write to MH i2c: 01 00 00 75 31 A6 [01:04:23]Write i2c OK [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: 01 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: 01 07 00 [01:04:23]MH_I2C_Read... [01:04:23]Read from MH i2c: 01 07 00 75 31 00 00 00 00 00 FF 0F BB [01:04:23]RasterBufferAndPrint [01:04:23]line Счет N : (1)99264 [01:04:23]line ИНН: 02508201610067 [01:04:23]line Контрольно-Кассовый Чек [01:04:23]line ПРОДАЖА [01:04:23]line ТРК (МРК, ГНК) : 11 [01:04:23]line Товар: 2710124130 [01:04:23]line Аи-92-К-5 [01:04:23]line 8.970 * 66.90 [01:04:23]line = 600.09 [01:04:23]line НДС 12% НСП 1% [01:04:23]line > о реализуемом товаре [01:04:23]line ИТОГО: 600.09 [01:04:23]line НСП 1% : 5.31 [01:04:23]line НДС 12% : 63.73 [01:04:23]line Наличными: 0.00 [01:04:23]line Безнал.: 600.09 [01:04:23]line Место: АЗС № 143 "Партнер Нефть" [01:04:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [01:04:23]line СНО: Общий режим [01:04:23]line Чек 2 27.10.2024 01:04 [01:04:23]line Смена: 537 ФФД: 1.0 [01:04:23]line ЗНМ: 0300000096 [01:04:23]line РНМ: 0000000000091693 [01:04:23]line Версия ККМ: 001 [01:04:23]line Платежная система: Mbank [01:04:23]line ФМ: 0000000000871792 [01:04:23]line ФД: 156451 [01:04:23]line ФПД: 224143010288822 [01:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010425&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156451&fm=224143010288822&tin=02508201610067®Number=0000000000091693&sum=60009 [01:04:23]written 0, free lines is 4095 [01:04:23]OFD Sender: Processing packet 156451 [packets to send 31, broken 30] [01:04:23]ProducePacketName [01:04:23]name=ofd_packets/00156451 [01:04:24]OFD Sender: To server: pG, [01:04:24]CommunicateWithHost lk.salyk.kg:30040 [01:04:24]ConnectInit lk.salyk.kg [01:04:24]Connected sock=10 [01:04:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E EB 07 01 26 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 99 91 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 63 02 00 35 04 06 00 CB DB 5C 81 D4 B6 2C CE 54 9A C0 89 CA 08 [01:04:24]Write to MH i2c: 01 00 00 9E 31 CF [01:04:24]Write i2c OK [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: 01 [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: 01 07 00 [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: 01 07 00 9E 31 00 00 00 00 00 20 0D 03 [01:04:24]RasterBufferAndPrint [01:04:24]line [01:04:24]line [01:04:24]line [01:04:24]line [01:04:24]line [01:04:24]written 0, free lines is 3366 [01:04:24]process_action close_receipt done [01:04:24]requested_data is exist [01:04:24]produce_requested_data [01:04:24]requested_item fm.sn is exist - process it [01:04:24]wFMCommunicate request_size=4 [01:04:24]MH_SAM_APDU [01:04:24]CAPDU: 80 11 00 00 [01:04:24]Write to MH i2c: E2 08 00 A5 31 80 11 00 00 00 00 00 00 50 [01:04:24]Write i2c OK [01:04:24]MH_I2C_Read... [01:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:24]Read from MH i2c: E2 [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: E2 17 00 [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: E2 17 00 A5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [01:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:04:24]wFMCommunicate OK [01:04:24]requested_item fd.num is exist - process it [01:04:24]SAM_PROTO_GetFieldsCounters [01:04:24]wFMCommunicate request_size=4 [01:04:24]MH_SAM_APDU [01:04:24]CAPDU: 80 13 00 00 [01:04:24]Write to MH i2c: E2 08 00 A6 31 80 13 00 00 00 00 00 00 53 [01:04:24]Write i2c OK [01:04:24]MH_I2C_Read... [01:04:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6A A7 47 00 B5 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 31 37 39 32 10 04 04 00 23 63 02 00 F4 03 04 00 0A 37 1D 67 B6 04 01 00 00 93 FD 43 D1 E5 F1 A6 E4 [01:04:24]CommunicateWithHost err = 0 [01:04:24]CheckOFDResponse [01:04:24]1017 (14) - 77093643461234 [01:04:24]1041 (16) - 0000000000871792 [01:04:24]1040 (4) - 156451 [01:04:24]1012 (4) - 26.10.2024 18:38 [01:04:24]1206 (1) - 0 [01:04:24]OFD Sender: Remove packet 156451 [01:04:24]ProducePacketName [01:04:24]name=ofd_packets/00156451 [01:04:24]NVStorageDeleteData [01:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:04:24]Read from MH i2c: E2 [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: E2 62 00 [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: E2 62 00 A6 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 23 63 02 00 0E 04 04 00 19 02 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 22 [01:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 23 63 02 00 0E 04 04 00 19 02 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:04:24]wFMCommunicate OK [01:04:24]SAM_PROTO_GetFieldsCounters done [01:04:24]requested_item shift.num is exist - process it [01:04:24]requested_item shift.opened is exist - process it [01:04:24]req_shift_opened [01:04:24]FM_GetShiftState [01:04:24]SAM_PROTO_GetShiftState [01:04:24]wFMCommunicate request_size=4 [01:04:24]MH_SAM_APDU [01:04:24]CAPDU: 80 13 01 00 [01:04:24]Write to MH i2c: E2 08 00 A7 31 80 13 01 00 00 00 00 00 55 [01:04:24]Write i2c OK [01:04:24]MH_I2C_Read... [01:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:24]Read from MH i2c: E2 [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: E2 0E 00 [01:04:24]MH_I2C_Read... [01:04:24]Read from MH i2c: E2 0E 00 A7 31 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 22 [01:04:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [01:04:24]wFMCommunicate OK [01:04:24]SAM_PROTO_GetShiftState done [01:04:24]FM_GetShiftState done [01:04:24]req_shift_opened done [01:04:24]requested_item shift.open_date is exist - process it [01:04:24]req_shift_open_date [01:04:24]req_shift_open_date done [01:04:24]produce_requested_data done [01:04:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156451,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [01:04:24]process_action_free close_receipt [01:04:24]json_value_free [01:04:24]json_value_free done [01:04:24]process_json_proto returns [01:04:24]Send response to host [01:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156451,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [01:04:24]free response buf [01:04:24]execute_script done [01:04:24]execute_script returns [01:04:24]free content buf [01:04:24]Sock 8.Close socket [01:04:24]Sock 8.Thread stoped [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:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]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:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:33]accept exits with 9 [01:32:33]New connection [01:32:33]New thread 3066834276 created [01:32:33]Thread 3066977636 joined [01:32:33]Waiting for new connection... [01:32:33] Sock 9.Parse request [01:32:33]Sock 9.Check first char [01:32:33]Sock 9.First char is OK [01:32:33]request: POST /json_proto HTTP/1.0 [01:32:33]Method: POST [01:32:33]URL: /json_proto [01:32:33]Method is POST - this is cgi request [01:32:33]url: /json_proto [01:32:33]query_string will be loaded in cgi processing [01:32:33]execute_cgi json_proto POST (null) [01:32:33]execute_cgi path=json_proto method=POST [01:32:33]POST find Content-Length [01:32:33]Host: 172.17.63.3:8080 [01:32:33]Content-Length: 677 [01:32:33]Content-Type: application/json [01:32:33] [01:32:33]POST finish read [01:32:33]Found Content-Length = 677 [01:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:33]execute_script... [01:32: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)99265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:33]POST & json_proto [01:32:33]process_json_proto [01:32:33]json parsed OK: [01:32:33]protocol is kg_v1.0 [01:32:33]action value=close_receipt [01:32:33]process_action close_receipt [01:32:33]cmd_close_receipt [01:32:33]MH_GetDate [01:32:33]Write to MH i2c: F0 00 00 A8 31 C8 [01:32:33]Write i2c OK [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: F0 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: F0 09 00 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: F0 09 00 A8 31 00 34 98 1D 67 50 D1 6C 64 12 [01:32:33]GetLastDocTimeStamp 1729991065 [01:32:33]current date 1729992756 [01:32:33]FM_GetShiftState [01:32:33]SAM_PROTO_GetShiftState [01:32:33]wFMCommunicate request_size=4 [01:32:33]MH_SAM_APDU [01:32:33]CAPDU: 80 13 01 00 [01:32:33]Write to MH i2c: E2 08 00 A9 31 80 13 01 00 00 00 00 00 57 [01:32:33]Write i2c OK [01:32:33]MH_I2C_Read... [01:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:33]Read from MH i2c: E2 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: E2 0E 00 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: E2 0E 00 A9 31 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 24 [01:32:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [01:32:33]wFMCommunicate OK [01:32:33]SAM_PROTO_GetShiftState done [01:32:33]FM_GetShiftState done [01:32:33]opened in 1729989044 [01:32:33]opened+sec_in_day 1730075444 [01:32:33]quantity*price = 80012 [01:32:33]sum+1 = 80013 [01:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 3 27.10.2024 01:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156452 ФПД: 219789273018030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T013236&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156452&fm=219789273018030&tin=02508201610067®Number=0000000000091693&sum=80000 [01:32:34]StoreToDocumentArchive [01:32:34]shift 537 fd 156452 [01:32:34]save to /storage/0537/doc_00156452 [01:32:34]save last doc name /storage/0537/doc_00156452 to /storage/kkm_last_doc_name [01:32:34]save OK [01:32:34]Clear old archive folders... [01:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:32:34]tlvbuf is B6DAE430 [01:32:34]SAM_PROTO_ClearQueue [01:32:34]wFMCommunicate request_size=4 [01:32:34]MH_SAM_APDU [01:32:34]CAPDU: 80 09 00 00 [01:32:34]Write to MH i2c: E2 08 00 B6 31 80 09 00 00 00 00 00 00 59 [01:32:34]Write i2c OK [01:32:34]MH_I2C_Read... [01:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:32:34]Read from MH i2c: E2 [01:32:34]MH_I2C_Read... [01:32:34]Read from MH i2c: E2 03 00 [01:32:34]MH_I2C_Read... [01:32:34]Read from MH i2c: E2 03 00 B6 31 00 90 00 5B [01:32:34]RAPDU: 90 00 [01:32:34]wFMCommunicate OK [01:32:34]SAM_PROTO_ClearQueue done [01:32:34]KKMCreateOFDPacket [01:32:34]OFDProtocolAddRootSTLVToBuf [01:32:34]FM_MakeSignedData [01:32:34]FM_MakeSignedData [01:32:34]SAM_PROTO_SignData [01:32:34]wFMCommunicate request_size=4 [01:32:34]MH_SAM_APDU [01:32:34]CAPDU: 80 0D 01 02 [01:32:34]Write to MH i2c: E2 08 00 B7 31 80 0D 01 02 00 00 00 00 61 [01:32:34]Write i2c OK [01:32:34]MH_I2C_Read... [01:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:32:35]Read from MH i2c: E2 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 03 00 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 03 00 B7 31 00 90 00 5C [01:32:35]RAPDU: 90 00 [01:32:35]wFMCommunicate OK [01:32:35]wFMCommunicate request_size=255 [01:32:35]MH_SAM_APDU [01:32:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 34 98 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 63 02 00 35 04 06 00 C7 [01:32:35]Write to MH i2c: E2 02 01 B8 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 34 98 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 63 02 00 35 04 06 00 C7 00 00 9F [01:32:35]Write i2c OK [01:32:35]MH_I2C_Read... [01:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:35]Read from MH i2c: E2 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 03 00 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 03 00 B8 31 00 90 00 5D [01:32:35]RAPDU: 90 00 [01:32:35]wFMCommunicate OK [01:32:35]wFMCommunicate request_size=10 [01:32:35]MH_SAM_APDU [01:32:35]CAPDU: 80 0D 02 02 05 E5 AD 8B 2E AE [01:32:35]Write to MH i2c: E2 0D 00 B9 31 80 0D 02 02 05 00 E5 AD 8B 2E AE 00 00 67 [01:32:35]Write i2c OK [01:32:35]MH_I2C_Read... [01:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:35]Read from MH i2c: E2 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 03 00 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 03 00 B9 31 00 90 00 5E [01:32:35]RAPDU: 90 00 [01:32:35]wFMCommunicate OK [01:32:35]wFMCommunicate request_size=4 [01:32:35]MH_SAM_APDU [01:32:35]CAPDU: 80 0D 03 02 [01:32:35]Write to MH i2c: E2 08 00 BA 31 80 0D 03 02 00 00 00 00 66 [01:32:35]Write i2c OK [01:32:35]MH_I2C_Read... [01:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:32:35]Read from MH i2c: E2 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 0B 00 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 0B 00 BA 31 00 39 FF 4E B5 4E 1F 96 3A 90 00 DF [01:32:35]RAPDU: 39 FF 4E B5 4E 1F 96 3A 90 00 [01:32:35]wFMCommunicate OK [01:32:35]SAM_PROTO_SignData done [01:32:35]FM_MakeSignedData done [01:32:35]CreateOFDProtocolMessage [01:32:35]wFMCommunicate request_size=4 [01:32:35]MH_SAM_APDU [01:32:35]CAPDU: 80 11 00 00 [01:32:35]Write to MH i2c: E2 08 00 BB 31 80 11 00 00 00 00 00 00 66 [01:32:35]Write i2c OK [01:32:35]MH_I2C_Read... [01:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:35]Read from MH i2c: E2 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 17 00 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 17 00 BB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BB [01:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:32:35]wFMCommunicate OK [01:32:35]CreateOFDProtocolMessage done [01:32:35]OFDSenderStorePacket 156452 [01:32:35]StoreOFDPacket docnum=156452 [01:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6A C4 07 01 6D 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 34 98 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 63 02 00 35 04 06 00 C7 E5 AD 8B 2E AE 39 FF 4E B5 4E 1F 96 3A [01:32:35]CheckFolder [01:32:35]dirname=/storage/ofd_packets [01:32:35]CheckFolder done [01:32:35]ProducePacketName [01:32:35]name=ofd_packets/00156452 [01:32:35]NVStorageSaveData ofd_packets/00156452 [01:32:35]File name is /storage/ofd_packets/00156452 [01:32:35]Write 301 bytes [01:32:35]NVStorageSaveData done [01:32:35]OFDSenderStorePacket done [01:32:35]KKMCreateOFDPacket done [01:32:35]NVStorageSaveData kkm_last_timestamp [01:32:35]File name is /storage/kkm_last_timestamp [01:32:35]Write 4 bytes [01:32:35]NVStorageSaveData done [01:32:35]ExternCall_PrintAddStr [01:32:35]wPrintStart [01:32:35]Write to MH i2c: 01 00 00 BC 31 ED [01:32:35]Write i2c OK [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: 01 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: 01 07 00 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: 01 07 00 BC 31 00 00 00 00 00 FF 0F 02 [01:32:35]RasterBufferAndPrint [01:32:35]line Счет N : (1)99265 [01:32:35]line ИНН: 02508201610067 [01:32:35]line Контрольно-Кассовый Чек [01:32:35]line ПРОДАЖА [01:32:35]line ТРК (МРК, ГНК) : 31 [01:32:35]line Товар: 2710124130 [01:32:35]line Аи-92-К-5 [01:32:35]line 11.960 * 66.90 [01:32:35]line = 800.12 [01:32:35]line НДС 12% НСП 1% [01:32:35]line > о реализуемом товаре [01:32:35]line ОКРУГЛЕНИЕ: -0.12 [01:32:35]line ИТОГО: 800.00 [01:32:35]line Внесено: 800.00 [01:32:35]line СДАЧА: 0.00 [01:32:35]line НСП 1% : 7.08 [01:32:35]line НДС 12% : 84.97 [01:32:35]line Наличными: 800.00 [01:32:35]line Безнал.: 0.00 [01:32:35]line Место: АЗС № 143 "Партнер Нефть" [01:32:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [01:32:35]line СНО: Общий режим [01:32:35]line Чек 3 27.10.2024 01:32 [01:32:35]line Смена: 537 ФФД: 1.0 [01:32:35]line ЗНМ: 0300000096 [01:32:35]line РНМ: 0000000000091693 [01:32:35]line Версия ККМ: 001 [01:32:35]line ФМ: 0000000000871792 [01:32:35]line ФД: 156452 [01:32:35]line ФПД: 219789273018030 [01:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T013236&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156452&fm=219789273018030&tin=02508201610067®Number=0000000000091693&sum=80000 [01:32:35]OFD Sender: Processing packet 156452 [packets to send 31, broken 30] [01:32:35]ProducePacketName [01:32:35]name=ofd_packets/00156452 [01:32:35]OFD Sender: To server: pG, [01:32:35]CommunicateWithHost lk.salyk.kg:30040 [01:32:35]ConnectInit lk.salyk.kg [01:32:35]written 0, free lines is 4095 [01:32:36]Connected sock=10 [01:32:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6A C4 07 01 6D 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 34 98 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 63 02 00 35 04 06 00 C7 E5 AD 8B 2E AE 39 FF 4E B5 4E 1F 96 3A [01:32:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E2 19 47 00 72 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 63 02 00 F4 03 04 00 A6 3D 1D 67 B6 04 01 00 00 39 DD B3 06 9D F4 A4 9A [01:32:36]CommunicateWithHost err = 0 [01:32:36]CheckOFDResponse [01:32:36]1017 (14) - 77093643461234 [01:32:36]1041 (16) - 0000000000871792 [01:32:36]1040 (4) - 156452 [01:32:36]1012 (4) - 26.10.2024 19:06 [01:32:36]1206 (1) - 0 [01:32:36]OFD Sender: Remove packet 156452 [01:32:36]ProducePacketName [01:32:36]name=ofd_packets/00156452 [01:32:36]NVStorageDeleteData [01:32:36]Write to MH i2c: 01 00 00 E7 31 18 [01:32:36]Write i2c OK [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: 01 [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: 01 07 00 [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: 01 07 00 E7 31 00 00 00 00 00 D7 0C 02 [01:32:36]RasterBufferAndPrint [01:32:36]line [01:32:36]line [01:32:36]line [01:32:36]line [01:32:36]line [01:32:36]written 0, free lines is 3294 [01:32:36]process_action close_receipt done [01:32:36]requested_data is exist [01:32:36]produce_requested_data [01:32:36]requested_item fm.sn is exist - process it [01:32:36]wFMCommunicate request_size=4 [01:32:36]MH_SAM_APDU [01:32:36]CAPDU: 80 11 00 00 [01:32:36]Write to MH i2c: E2 08 00 EE 31 80 11 00 00 00 00 00 00 99 [01:32:36]Write i2c OK [01:32:36]MH_I2C_Read... [01:32:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:36]Read from MH i2c: E2 [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: E2 17 00 [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: E2 17 00 EE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [01:32:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:32:36]wFMCommunicate OK [01:32:36]requested_item fd.num is exist - process it [01:32:36]SAM_PROTO_GetFieldsCounters [01:32:36]wFMCommunicate request_size=4 [01:32:36]MH_SAM_APDU [01:32:36]CAPDU: 80 13 00 00 [01:32:36]Write to MH i2c: E2 08 00 EF 31 80 13 00 00 00 00 00 00 9C [01:32:36]Write i2c OK [01:32:36]MH_I2C_Read... [01:32:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:32:36]Read from MH i2c: E2 [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: E2 62 00 [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: E2 62 00 EF 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 24 63 02 00 0E 04 04 00 19 02 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 6F [01:32:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 24 63 02 00 0E 04 04 00 19 02 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:32:36]wFMCommunicate OK [01:32:36]SAM_PROTO_GetFieldsCounters done [01:32:36]requested_item shift.num is exist - process it [01:32:36]requested_item shift.opened is exist - process it [01:32:36]req_shift_opened [01:32:36]FM_GetShiftState [01:32:36]SAM_PROTO_GetShiftState [01:32:36]wFMCommunicate request_size=4 [01:32:36]MH_SAM_APDU [01:32:36]CAPDU: 80 13 01 00 [01:32:36]Write to MH i2c: E2 08 00 F0 31 80 13 01 00 00 00 00 00 9E [01:32:36]Write i2c OK [01:32:36]MH_I2C_Read... [01:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:36]Read from MH i2c: E2 [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: E2 0E 00 [01:32:36]MH_I2C_Read... [01:32:36]Read from MH i2c: E2 0E 00 F0 31 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6B [01:32:36]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [01:32:36]wFMCommunicate OK [01:32:36]SAM_PROTO_GetShiftState done [01:32:36]FM_GetShiftState done [01:32:36]req_shift_opened done [01:32:36]requested_item shift.open_date is exist - process it [01:32:36]req_shift_open_date [01:32:36]req_shift_open_date done [01:32:36]produce_requested_data done [01:32:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156452,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [01:32:36]process_action_free close_receipt [01:32:36]json_value_free [01:32:36]json_value_free done [01:32:36]process_json_proto returns [01:32:36]Send response to host [01:32:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156452,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [01:32:36]free response buf [01:32:36]execute_script done [01:32:36]execute_script returns [01:32:36]free content buf [01:32:36]Sock 9.Close socket [01:32:36]Sock 9.Thread stoped [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:53]ConnectInit Can't connect to host [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:00]ConnectInit Can't connect to host [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17: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:15]accept exits with 8 [02:18:15]New connection [02:18:15]New thread 3066977636 created [02:18:15]Thread 3066834276 joined [02:18:15]Waiting for new connection... [02:18:15] Sock 8.Parse request [02:18:15]Sock 8.Check first char [02:18:15]Sock 8.First char is OK [02:18:15]request: POST /json_proto HTTP/1.0 [02:18:15]Method: POST [02:18:15]URL: /json_proto [02:18:15]Method is POST - this is cgi request [02:18:15]url: /json_proto [02:18:15]query_string will be loaded in cgi processing [02:18:15]execute_cgi json_proto POST (null) [02:18:15]execute_cgi path=json_proto method=POST [02:18:15]POST find Content-Length [02:18:15]Host: 172.17.63.3:8080 [02:18:15]Content-Length: 676 [02:18:15]Content-Type: application/json [02:18:15] [02:18:15]POST finish read [02:18:15]Found Content-Length = 676 [02:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:15]execute_script... [02:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:15]POST & json_proto [02:18:15]process_json_proto [02:18:15]json parsed OK: [02:18:15]protocol is kg_v1.0 [02:18:15]action value=close_receipt [02:18:15]process_action close_receipt [02:18:15]cmd_close_receipt [02:18:15]MH_GetDate [02:18:15]Write to MH i2c: F0 00 00 F1 31 11 [02:18:15]Write i2c OK [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: F0 [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: F0 09 00 [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: F0 09 00 F1 31 00 EA A2 1D 67 50 D1 6C 64 1B [02:18:15]GetLastDocTimeStamp 1729992756 [02:18:15]current date 1729995498 [02:18:15]FM_GetShiftState [02:18:15]SAM_PROTO_GetShiftState [02:18:15]wFMCommunicate request_size=4 [02:18:15]MH_SAM_APDU [02:18:15]CAPDU: 80 13 01 00 [02:18:15]Write to MH i2c: E2 08 00 F2 31 80 13 01 00 00 00 00 00 A0 [02:18:15]Write i2c OK [02:18:15]MH_I2C_Read... [02:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:15]Read from MH i2c: E2 [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: E2 0E 00 [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: E2 0E 00 F2 31 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6D [02:18:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [02:18:15]wFMCommunicate OK [02:18:15]SAM_PROTO_GetShiftState done [02:18:15]FM_GetShiftState done [02:18:15]opened in 1729989044 [02:18:15]opened+sec_in_day 1730075444 [02:18:15]quantity*price = 50041 [02:18:15]sum+1 = 50042 [02:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 4 27.10.2024 02:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156453 ФПД: 66839438196149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T021818&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156453&fm=66839438196149&tin=02508201610067®Number=0000000000091693&sum=50000 [02:18:16]StoreToDocumentArchive [02:18:16]shift 537 fd 156453 [02:18:16]save to /storage/0537/doc_00156453 [02:18:16]save last doc name /storage/0537/doc_00156453 to /storage/kkm_last_doc_name [02:18:16]save OK [02:18:16]Clear old archive folders... [02:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:18:16]tlvbuf is 01795620 [02:18:16]SAM_PROTO_ClearQueue [02:18:16]wFMCommunicate request_size=4 [02:18:16]MH_SAM_APDU [02:18:16]CAPDU: 80 09 00 00 [02:18:16]Write to MH i2c: E2 08 00 FF 31 80 09 00 00 00 00 00 00 A2 [02:18:16]Write i2c OK [02:18:16]MH_I2C_Read... [02:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:18:16]Read from MH i2c: E2 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 03 00 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 03 00 FF 31 00 90 00 A4 [02:18:16]RAPDU: 90 00 [02:18:16]wFMCommunicate OK [02:18:16]SAM_PROTO_ClearQueue done [02:18:16]KKMCreateOFDPacket [02:18:16]OFDProtocolAddRootSTLVToBuf [02:18:16]FM_MakeSignedData [02:18:16]FM_MakeSignedData [02:18:16]SAM_PROTO_SignData [02:18:16]wFMCommunicate request_size=4 [02:18:16]MH_SAM_APDU [02:18:16]CAPDU: 80 0D 01 02 [02:18:16]Write to MH i2c: E2 08 00 00 32 80 0D 01 02 00 00 00 00 AB [02:18:16]Write i2c OK [02:18:16]MH_I2C_Read... [02:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:18:16]Read from MH i2c: E2 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 03 00 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 03 00 00 32 00 90 00 A6 [02:18:16]RAPDU: 90 00 [02:18:16]wFMCommunicate OK [02:18:16]wFMCommunicate request_size=255 [02:18:16]MH_SAM_APDU [02:18:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EA A2 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 63 02 00 35 04 06 00 3C [02:18:16]Write to MH i2c: E2 02 01 01 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EA A2 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 63 02 00 35 04 06 00 3C 00 00 34 [02:18:16]Write i2c OK [02:18:16]MH_I2C_Read... [02:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:16]Read from MH i2c: E2 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 03 00 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 03 00 01 32 00 90 00 A7 [02:18:16]RAPDU: 90 00 [02:18:16]wFMCommunicate OK [02:18:16]wFMCommunicate request_size=10 [02:18:16]MH_SAM_APDU [02:18:16]CAPDU: 80 0D 02 02 05 CA 44 F8 7D B5 [02:18:16]Write to MH i2c: E2 0D 00 02 32 80 0D 02 02 05 00 CA 44 F8 7D B5 00 00 F0 [02:18:16]Write i2c OK [02:18:16]MH_I2C_Read... [02:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:16]Read from MH i2c: E2 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 03 00 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 03 00 02 32 00 90 00 A8 [02:18:16]RAPDU: 90 00 [02:18:16]wFMCommunicate OK [02:18:16]wFMCommunicate request_size=4 [02:18:16]MH_SAM_APDU [02:18:16]CAPDU: 80 0D 03 02 [02:18:16]Write to MH i2c: E2 08 00 03 32 80 0D 03 02 00 00 00 00 B0 [02:18:16]Write i2c OK [02:18:16]MH_I2C_Read... [02:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:18:16]Read from MH i2c: E2 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 0B 00 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 0B 00 03 32 00 72 6E 7D 01 FE 81 BB EA 90 00 33 [02:18:16]RAPDU: 72 6E 7D 01 FE 81 BB EA 90 00 [02:18:16]wFMCommunicate OK [02:18:16]SAM_PROTO_SignData done [02:18:16]FM_MakeSignedData done [02:18:16]CreateOFDProtocolMessage [02:18:16]wFMCommunicate request_size=4 [02:18:16]MH_SAM_APDU [02:18:16]CAPDU: 80 11 00 00 [02:18:16]Write to MH i2c: E2 08 00 04 32 80 11 00 00 00 00 00 00 B0 [02:18:16]Write i2c OK [02:18:16]MH_I2C_Read... [02:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:16]Read from MH i2c: E2 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 17 00 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: E2 17 00 04 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 05 [02:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:18:16]wFMCommunicate OK [02:18:16]CreateOFDProtocolMessage done [02:18:16]OFDSenderStorePacket 156453 [02:18:16]StoreOFDPacket docnum=156453 [02:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 34 27 07 01 BD 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EA A2 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 63 02 00 35 04 06 00 3C CA 44 F8 7D B5 72 6E 7D 01 FE 81 BB EA [02:18:16]CheckFolder [02:18:16]dirname=/storage/ofd_packets [02:18:16]CheckFolder done [02:18:16]ProducePacketName [02:18:16]name=ofd_packets/00156453 [02:18:16]NVStorageSaveData ofd_packets/00156453 [02:18:16]File name is /storage/ofd_packets/00156453 [02:18:16]Write 301 bytes [02:18:16]NVStorageSaveData done [02:18:16]OFDSenderStorePacket done [02:18:16]KKMCreateOFDPacket done [02:18:16]NVStorageSaveData kkm_last_timestamp [02:18:16]File name is /storage/kkm_last_timestamp [02:18:16]Write 4 bytes [02:18:16]NVStorageSaveData done [02:18:16]ExternCall_PrintAddStr [02:18:16]wPrintStart [02:18:16]Write to MH i2c: 01 00 00 05 32 37 [02:18:16]Write i2c OK [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: 01 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: 01 07 00 [02:18:16]MH_I2C_Read... [02:18:16]Read from MH i2c: 01 07 00 05 32 00 00 00 00 00 FF 0F 4C [02:18:16]RasterBufferAndPrint [02:18:16]line Счет N : (1)99266 [02:18:16]line ИНН: 02508201610067 [02:18:16]line Контрольно-Кассовый Чек [02:18:16]line ПРОДАЖА [02:18:16]line ТРК (МРК, ГНК) : 11 [02:18:16]line Товар: 2710124130 [02:18:16]line Аи-92-К-5 [02:18:16]line 7.480 * 66.90 [02:18:16]line = 500.41 [02:18:16]line НДС 12% НСП 1% [02:18:16]line > о реализуемом товаре [02:18:16]line ОКРУГЛЕНИЕ: -0.41 [02:18:16]line ИТОГО: 500.00 [02:18:16]line Внесено: 500.00 [02:18:16]line СДАЧА: 0.00 [02:18:16]line НСП 1% : 4.43 [02:18:16]line НДС 12% : 53.14 [02:18:16]line Наличными: 500.00 [02:18:16]line Безнал.: 0.00 [02:18:16]line Место: АЗС № 143 "Партнер Нефть" [02:18:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [02:18:16]line СНО: Общий режим [02:18:16]line Чек 4 27.10.2024 02:18 [02:18:16]line Смена: 537 ФФД: 1.0 [02:18:16]line ЗНМ: 0300000096 [02:18:16]line РНМ: 0000000000091693 [02:18:16]line Версия ККМ: 001 [02:18:16]line ФМ: 0000000000871792 [02:18:16]line ФД: 156453 [02:18:16]line ФПД: 66839438196149 [02:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T021818&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156453&fm=66839438196149&tin=02508201610067®Number=0000000000091693&sum=50000 [02:18:17]OFD Sender: Processing packet 156453 [packets to send 31, broken 30] [02:18:17]ProducePacketName [02:18:17]name=ofd_packets/00156453 [02:18:17]OFD Sender: To server: pG, [02:18:17]CommunicateWithHost lk.salyk.kg:30040 [02:18:17]ConnectInit lk.salyk.kg [02:18:17]written 0, free lines is 4095 [02:18:17]Connected sock=10 [02:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 34 27 07 01 BD 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EA A2 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 63 02 00 35 04 06 00 3C CA 44 F8 7D B5 72 6E 7D 01 FE 81 BB EA [02:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B5 7D 47 00 48 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 31 37 39 32 10 04 04 00 25 63 02 00 F4 03 04 00 5B 48 1D 67 B6 04 01 00 00 F2 DE 89 50 3C DA 77 7B [02:18:17]CommunicateWithHost err = 0 [02:18:17]CheckOFDResponse [02:18:17]1017 (14) - 77093643461234 [02:18:17]1041 (16) - 0000000000871792 [02:18:17]1040 (4) - 156453 [02:18:17]1012 (4) - 26.10.2024 19:51 [02:18:17]1206 (1) - 0 [02:18:17]OFD Sender: Remove packet 156453 [02:18:17]ProducePacketName [02:18:17]name=ofd_packets/00156453 [02:18:17]NVStorageDeleteData [02:18:17]Write to MH i2c: 01 00 00 30 32 62 [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: 01 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: 01 07 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: 01 07 00 30 32 00 00 00 00 00 CD 0C 42 [02:18:17]RasterBufferAndPrint [02:18:17]line [02:18:17]line [02:18:17]line [02:18:17]line [02:18:17]line [02:18:17]written 0, free lines is 3283 [02:18:17]process_action close_receipt done [02:18:17]requested_data is exist [02:18:17]produce_requested_data [02:18:17]requested_item fm.sn is exist - process it [02:18:17]wFMCommunicate request_size=4 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 11 00 00 [02:18:17]Write to MH i2c: E2 08 00 37 32 80 11 00 00 00 00 00 00 E3 [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 17 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 17 00 37 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 38 [02:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:18:17]wFMCommunicate OK [02:18:17]requested_item fd.num is exist - process it [02:18:17]SAM_PROTO_GetFieldsCounters [02:18:17]wFMCommunicate request_size=4 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 13 00 00 [02:18:17]Write to MH i2c: E2 08 00 38 32 80 13 00 00 00 00 00 00 E6 [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 62 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 62 00 38 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 25 63 02 00 0E 04 04 00 19 02 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 BD [02:18: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 25 63 02 00 0E 04 04 00 19 02 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:18:17]wFMCommunicate OK [02:18:17]SAM_PROTO_GetFieldsCounters done [02:18:17]requested_item shift.num is exist - process it [02:18:17]requested_item shift.opened is exist - process it [02:18:17]req_shift_opened [02:18:17]FM_GetShiftState [02:18:17]SAM_PROTO_GetShiftState [02:18:17]wFMCommunicate request_size=4 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 13 01 00 [02:18:17]Write to MH i2c: E2 08 00 39 32 80 13 01 00 00 00 00 00 E8 [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:17]Read from MH i2c: E2 0E 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 0E 00 39 32 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B5 [02:18:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [02:18:17]wFMCommunicate OK [02:18:17]SAM_PROTO_GetShiftState done [02:18:17]FM_GetShiftState done [02:18:17]req_shift_opened done [02:18:17]requested_item shift.open_date is exist - process it [02:18:17]req_shift_open_date [02:18:17]req_shift_open_date done [02:18:17]produce_requested_data done [02:18:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156453,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [02:18:17]process_action_free close_receipt [02:18:17]json_value_free [02:18:17]json_value_free done [02:18:17]process_json_proto returns [02:18:17]Send response to host [02:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156453,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [02:18:17]free response buf [02:18:17]execute_script done [02:18:17]execute_script returns [02:18:17]free content buf [02:18:17]Sock 8.Close socket [02:18:17]Sock 8.Thread stoped [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:00]accept exits with 9 [02:40:00]New connection [02:40:00]New thread 3066834276 created [02:40:00]Thread 3066977636 joined [02:40:00]Waiting for new connection... [02:40:00] Sock 9.Parse request [02:40:00]Sock 9.Check first char [02:40:00]Sock 9.First char is OK [02:40:00]request: POST /json_proto HTTP/1.0 [02:40:00]Method: POST [02:40:00]URL: /json_proto [02:40:00]Method is POST - this is cgi request [02:40:00]url: /json_proto [02:40:00]query_string will be loaded in cgi processing [02:40:00]execute_cgi json_proto POST (null) [02:40:00]execute_cgi path=json_proto method=POST [02:40:00]POST find Content-Length [02:40:00]Host: 172.17.63.3:8080 [02:40:00]Content-Length: 677 [02:40:00]Content-Type: application/json [02:40:00] [02:40:00]POST finish read [02:40:00]Found Content-Length = 677 [02:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:40:00]execute_script... [02:40:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:40:00]POST & json_proto [02:40:00]process_json_proto [02:40:00]json parsed OK: [02:40:00]protocol is kg_v1.0 [02:40:00]action value=close_receipt [02:40:00]process_action close_receipt [02:40:00]cmd_close_receipt [02:40:00]MH_GetDate [02:40:00]Write to MH i2c: F0 00 00 3A 32 5B [02:40:00]Write i2c OK [02:40:00]MH_I2C_Read... [02:40:00]Read from MH i2c: F0 [02:40:00]MH_I2C_Read... [02:40:00]Read from MH i2c: F0 09 00 [02:40:00]MH_I2C_Read... [02:40:00]Read from MH i2c: F0 09 00 3A 32 00 03 A8 1D 67 50 D1 6C 64 84 [02:40:00]GetLastDocTimeStamp 1729995498 [02:40:00]current date 1729996803 [02:40:00]FM_GetShiftState [02:40:00]SAM_PROTO_GetShiftState [02:40:00]wFMCommunicate request_size=4 [02:40:00]MH_SAM_APDU [02:40:00]CAPDU: 80 13 01 00 [02:40:00]Write to MH i2c: E2 08 00 3B 32 80 13 01 00 00 00 00 00 EA [02:40:00]Write i2c OK [02:40:00]MH_I2C_Read... [02:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:40:00]Read from MH i2c: E2 [02:40:00]MH_I2C_Read... [02:40:00]Read from MH i2c: E2 0E 00 [02:40:00]MH_I2C_Read... [02:40:00]Read from MH i2c: E2 0E 00 3B 32 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B7 [02:40:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [02:40:00]wFMCommunicate OK [02:40:00]SAM_PROTO_GetShiftState done [02:40:00]FM_GetShiftState done [02:40:00]opened in 1729989044 [02:40:00]opened+sec_in_day 1730075444 [02:40:00]quantity*price = 70044 [02:40:00]sum+1 = 70045 [02:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 5 27.10.2024 02:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156454 ФПД: 267337037327413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T024003&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156454&fm=267337037327413&tin=02508201610067®Number=0000000000091693&sum=70000 [02:40:01]StoreToDocumentArchive [02:40:01]shift 537 fd 156454 [02:40:01]save to /storage/0537/doc_00156454 [02:40:01]save last doc name /storage/0537/doc_00156454 to /storage/kkm_last_doc_name [02:40:01]save OK [02:40:01]Clear old archive folders... [02:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:40:01]tlvbuf is 016A9E70 [02:40:01]SAM_PROTO_ClearQueue [02:40:01]wFMCommunicate request_size=4 [02:40:01]MH_SAM_APDU [02:40:01]CAPDU: 80 09 00 00 [02:40:01]Write to MH i2c: E2 08 00 48 32 80 09 00 00 00 00 00 00 EC [02:40:01]Write i2c OK [02:40:01]MH_I2C_Read... [02:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:40:01]Read from MH i2c: E2 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 03 00 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 03 00 48 32 00 90 00 EE [02:40:01]RAPDU: 90 00 [02:40:01]wFMCommunicate OK [02:40:01]SAM_PROTO_ClearQueue done [02:40:01]KKMCreateOFDPacket [02:40:01]OFDProtocolAddRootSTLVToBuf [02:40:01]FM_MakeSignedData [02:40:01]FM_MakeSignedData [02:40:01]SAM_PROTO_SignData [02:40:01]wFMCommunicate request_size=4 [02:40:01]MH_SAM_APDU [02:40:01]CAPDU: 80 0D 01 02 [02:40:01]Write to MH i2c: E2 08 00 49 32 80 0D 01 02 00 00 00 00 F4 [02:40:01]Write i2c OK [02:40:01]MH_I2C_Read... [02:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:40:01]Read from MH i2c: E2 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 03 00 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 03 00 49 32 00 90 00 EF [02:40:01]RAPDU: 90 00 [02:40:01]wFMCommunicate OK [02:40:01]wFMCommunicate request_size=255 [02:40:01]MH_SAM_APDU [02:40:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 03 A8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 63 02 00 35 04 06 00 F3 [02:40:01]Write to MH i2c: E2 02 01 4A 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 03 A8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 63 02 00 35 04 06 00 F3 00 00 65 [02:40:01]Write i2c OK [02:40:01]MH_I2C_Read... [02:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:40:01]Read from MH i2c: E2 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 03 00 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 03 00 4A 32 00 90 00 F0 [02:40:01]RAPDU: 90 00 [02:40:01]wFMCommunicate OK [02:40:01]wFMCommunicate request_size=10 [02:40:01]MH_SAM_APDU [02:40:01]CAPDU: 80 0D 02 02 05 24 41 25 2C 35 [02:40:01]Write to MH i2c: E2 0D 00 4B 32 80 0D 02 02 05 00 24 41 25 2C 35 00 00 EC [02:40:01]Write i2c OK [02:40:01]MH_I2C_Read... [02:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:40:01]Read from MH i2c: E2 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 03 00 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 03 00 4B 32 00 90 00 F1 [02:40:01]RAPDU: 90 00 [02:40:01]wFMCommunicate OK [02:40:01]wFMCommunicate request_size=4 [02:40:01]MH_SAM_APDU [02:40:01]CAPDU: 80 0D 03 02 [02:40:01]Write to MH i2c: E2 08 00 4C 32 80 0D 03 02 00 00 00 00 F9 [02:40:01]Write i2c OK [02:40:01]MH_I2C_Read... [02:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:40:01]Read from MH i2c: E2 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 0B 00 [02:40:01]MH_I2C_Read... [02:40:01]Read from MH i2c: E2 0B 00 4C 32 00 8A D5 99 51 6A D7 1B 7C 90 00 1B [02:40:01]RAPDU: 8A D5 99 51 6A D7 1B 7C 90 00 [02:40:01]wFMCommunicate OK [02:40:01]SAM_PROTO_SignData done [02:40:01]FM_MakeSignedData done [02:40:01]CreateOFDProtocolMessage [02:40:01]wFMCommunicate request_size=4 [02:40:01]MH_SAM_APDU [02:40:01]CAPDU: 80 11 00 00 [02:40:01]Write to MH i2c: E2 08 00 4D 32 80 11 00 00 00 00 00 00 F9 [02:40:01]Write i2c OK [02:40:01]MH_I2C_Read... [02:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:40:02]Read from MH i2c: E2 [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: E2 17 00 [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: E2 17 00 4D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4E [02:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:40:02]wFMCommunicate OK [02:40:02]CreateOFDProtocolMessage done [02:40:02]OFDSenderStorePacket 156454 [02:40:02]StoreOFDPacket docnum=156454 [02:40:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 87 07 01 5B 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 03 A8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 63 02 00 35 04 06 00 F3 24 41 25 2C 35 8A D5 99 51 6A D7 1B 7C [02:40:02]CheckFolder [02:40:02]dirname=/storage/ofd_packets [02:40:02]CheckFolder done [02:40:02]ProducePacketName [02:40:02]name=ofd_packets/00156454 [02:40:02]NVStorageSaveData ofd_packets/00156454 [02:40:02]File name is /storage/ofd_packets/00156454 [02:40:02]Write 301 bytes [02:40:02]NVStorageSaveData done [02:40:02]OFDSenderStorePacket done [02:40:02]KKMCreateOFDPacket done [02:40:02]NVStorageSaveData kkm_last_timestamp [02:40:02]File name is /storage/kkm_last_timestamp [02:40:02]Write 4 bytes [02:40:02]NVStorageSaveData done [02:40:02]ExternCall_PrintAddStr [02:40:02]wPrintStart [02:40:02]Write to MH i2c: 01 00 00 4E 32 80 [02:40:02]Write i2c OK [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: 01 [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: 01 07 00 [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: 01 07 00 4E 32 00 00 00 00 00 FF 0F 95 [02:40:02]RasterBufferAndPrint [02:40:02]line Счет N : (1)99267 [02:40:02]line ИНН: 02508201610067 [02:40:02]line Контрольно-Кассовый Чек [02:40:02]line ПРОДАЖА [02:40:02]line ТРК (МРК, ГНК) : 11 [02:40:02]line Товар: 2710124130 [02:40:02]line Аи-92-К-5 [02:40:02]line 10.470 * 66.90 [02:40:02]line = 700.44 [02:40:02]line НДС 12% НСП 1% [02:40:02]line > о реализуемом товаре [02:40:02]line ОКРУГЛЕНИЕ: -0.44 [02:40:02]line ИТОГО: 700.00 [02:40:02]line Внесено: 700.00 [02:40:02]line СДАЧА: 0.00 [02:40:02]line НСП 1% : 6.20 [02:40:02]line НДС 12% : 74.38 [02:40:02]line Наличными: 700.00 [02:40:02]line Безнал.: 0.00 [02:40:02]line Место: АЗС № 143 "Партнер Нефть" [02:40:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [02:40:02]line СНО: Общий режим [02:40:02]line Чек 5 27.10.2024 02:40 [02:40:02]line Смена: 537 ФФД: 1.0 [02:40:02]line ЗНМ: 0300000096 [02:40:02]line РНМ: 0000000000091693 [02:40:02]line Версия ККМ: 001 [02:40:02]line ФМ: 0000000000871792 [02:40:02]line ФД: 156454 [02:40:02]line ФПД: 267337037327413 [02:40:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T024003&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156454&fm=267337037327413&tin=02508201610067®Number=0000000000091693&sum=70000 [02:40:02]OFD Sender: Processing packet 156454 [packets to send 31, broken 30] [02:40:02]ProducePacketName [02:40:02]name=ofd_packets/00156454 [02:40:02]OFD Sender: To server: pG, [02:40:02]CommunicateWithHost lk.salyk.kg:30040 [02:40:02]ConnectInit lk.salyk.kg [02:40:02]written 0, free lines is 4095 [02:40:02]Write to MH i2c: 01 00 00 79 32 AB [02:40:02]Write i2c OK [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: 01 [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: 01 07 00 [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: 01 07 00 79 32 00 00 00 00 00 CD 0C 8B [02:40:02]RasterBufferAndPrint [02:40:02]line [02:40:02]line [02:40:02]line [02:40:02]line [02:40:02]line [02:40:02]written 0, free lines is 3281 [02:40:02]process_action close_receipt done [02:40:02]requested_data is exist [02:40:02]produce_requested_data [02:40:02]requested_item fm.sn is exist - process it [02:40:02]wFMCommunicate request_size=4 [02:40:02]MH_SAM_APDU [02:40:02]CAPDU: 80 11 00 00 [02:40:02]Write to MH i2c: E2 08 00 80 32 80 11 00 00 00 00 00 00 2C [02:40:02]Write i2c OK [02:40:02]MH_I2C_Read... [02:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:40:02]Read from MH i2c: E2 [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: E2 17 00 [02:40:02]MH_I2C_Read... [02:40:02]Read from MH i2c: E2 17 00 80 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 81 [02:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:40:02]wFMCommunicate OK [02:40:02]requested_item fd.num is exist - process it [02:40:02]SAM_PROTO_GetFieldsCounters [02:40:02]wFMCommunicate request_size=4 [02:40:02]MH_SAM_APDU [02:40:02]CAPDU: 80 13 00 00 [02:40:02]Write to MH i2c: E2 08 00 81 32 80 13 00 00 00 00 00 00 2F [02:40:02]Write i2c OK [02:40:02]MH_I2C_Read... [02:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:40:03]Read from MH i2c: E2 [02:40:03]MH_I2C_Read... [02:40:03]Read from MH i2c: E2 62 00 [02:40:03]MH_I2C_Read... [02:40:03]Read from MH i2c: E2 62 00 81 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 26 63 02 00 0E 04 04 00 19 02 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 0A [02:40: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 26 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:40:03]wFMCommunicate OK [02:40:03]SAM_PROTO_GetFieldsCounters done [02:40:03]requested_item shift.num is exist - process it [02:40:03]requested_item shift.opened is exist - process it [02:40:03]req_shift_opened [02:40:03]FM_GetShiftState [02:40:03]SAM_PROTO_GetShiftState [02:40:03]wFMCommunicate request_size=4 [02:40:03]MH_SAM_APDU [02:40:03]CAPDU: 80 13 01 00 [02:40:03]Write to MH i2c: E2 08 00 82 32 80 13 01 00 00 00 00 00 31 [02:40:03]Write i2c OK [02:40:03]MH_I2C_Read... [02:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:40:03]Read from MH i2c: E2 [02:40:03]MH_I2C_Read... [02:40:03]Read from MH i2c: E2 0E 00 [02:40:03]MH_I2C_Read... [02:40:03]Read from MH i2c: E2 0E 00 82 32 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 FE [02:40:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [02:40:03]wFMCommunicate OK [02:40:03]SAM_PROTO_GetShiftState done [02:40:03]FM_GetShiftState done [02:40:03]req_shift_opened done [02:40:03]requested_item shift.open_date is exist - process it [02:40:03]req_shift_open_date [02:40:03]req_shift_open_date done [02:40:03]produce_requested_data done [02:40:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156454,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [02:40:03]process_action_free close_receipt [02:40:03]json_value_free [02:40:03]json_value_free done [02:40:03]process_json_proto returns [02:40:03]Send response to host [02:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156454,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [02:40:03]free response buf [02:40:03]execute_script done [02:40:03]execute_script returns [02:40:03]free content buf [02:40:03]Sock 9.Close socket [02:40:03]Sock 9.Thread stoped [02:42:12]ConnectInit Can't connect to host [02:42:12]CommunicateWithHost connect error [02:42:12]CommunicateWithHost err = -1 [02:42:12]OFD Sender: Server communicate error [02:42:17]OFD Sender: Processing packet 156454 [packets to send 31, broken 30] [02:42:17]ProducePacketName [02:42:17]name=ofd_packets/00156454 [02:42:17]OFD Sender: To server: pG, [02:42:17]CommunicateWithHost lk.salyk.kg:30040 [02:42:17]ConnectInit lk.salyk.kg [02:42:18]Connected sock=9 [02:42:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 87 07 01 5B 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 03 A8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 63 02 00 35 04 06 00 F3 24 41 25 2C 35 8A D5 99 51 6A D7 1B 7C [02:42:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4C 50 47 00 75 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 31 37 39 32 10 04 04 00 26 63 02 00 F4 03 04 00 FC 4D 1D 67 B6 04 01 00 00 62 B2 0D C6 9F 92 4A A0 [02:42:18]CommunicateWithHost err = 0 [02:42:18]CheckOFDResponse [02:42:18]1017 (14) - 77093643461234 [02:42:18]1041 (16) - 0000000000871792 [02:42:18]1040 (4) - 156454 [02:42:18]1012 (4) - 26.10.2024 20:15 [02:42:18]1206 (1) - 0 [02:42:18]OFD Sender: Remove packet 156454 [02:42:18]ProducePacketName [02:42:18]name=ofd_packets/00156454 [02:42:18]NVStorageDeleteData [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send